4 var mode
= CodeMirror
.getMode({indentUnit
: 2}, "text/x-less");
5 function MT(name
) { test
.mode(name
, mode
, Array
.prototype.slice
.call(arguments
, 1), "less"); }
8 "[variable-2 @base]: [atom #f04615];",
9 "[qualifier .class] {",
10 " [property width]: [variable percentage]([number 0.5]); [comment // returns `50%`]",
11 " [property color]: [variable saturate]([variable-2 @base], [number 5%]);",
15 "[qualifier .child], [qualifier .sibling] {",
16 " [qualifier .parent] [atom &] {",
17 " [property color]: [keyword black];",
19 " [atom &] + [atom &] {",
20 " [property color]: [keyword red];",
25 "[qualifier .mixin] ([variable dark]; [variable-2 @color]) {",
26 " [property color]: [variable darken]([variable-2 @color], [number 10%]);",
28 "[qualifier .mixin] ([variable light]; [variable-2 @color]) {",
29 " [property color]: [variable lighten]([variable-2 @color], [number 10%]);",
31 "[qualifier .mixin] ([variable-2 @_]; [variable-2 @color]) {",
32 " [property display]: [atom block];",
34 "[variable-2 @switch]: [variable light];",
35 "[qualifier .class] {",
36 " [qualifier .mixin]([variable-2 @switch]; [atom #888]);",
41 " [def @media] ([property width]: [number 400px]) {",
42 " [property font-size]: [number 1.2em];",
43 " [def @media] [attribute print] [keyword and] [property color] {",
44 " [property color]: [keyword blue];",