1 .mixin (@a: 1px, @b: 50%) {
6 .mixina (@style, @width, @color: black) {
7 border: @width @style @color;
17 color: transparent; // asd
48 .mixin(@var, (@var * 2));
56 .maxa(@arg1: 10, @arg2: #f00) {
57 padding: (@arg1 * 2px);
74 .nested-ruleset (@width: 200px) {
76 .column { margin: @width; }
79 .nested-ruleset(600px);
84 .same-var-name2(@radius) {
87 .same-var-name(@radius) {
88 .same-var-name2(@radius);
100 #var-inside { .var-inside; }
102 .mixin-arguments (@width: 0px, ...) {
108 .mixin-arguments(1px, solid, black);
117 .mixin-arguments2 (@width, @rest...) {
123 .mixin-arguments2(0, 1, 2, 3, 4);
129 .mixin-arguments("{");
132 // Division vs. Literal Slash
133 .border-radius(@r: 2px/5px) {
138 .border-radius(5px/10px);
139 .border-radius((3px * 2));
141 // semi-colon vs comma for delimiting
143 .mixin-takes-one(@a) {
147 .mixin-takes-two(@a; @b) {
152 .comma-vs-semi-colon {
153 .mixin-takes-two(@a : a; @b : b, c);
154 .mixin-takes-two(@a : d, e; @b : f);
155 .mixin-takes-one(@a: g);
156 .mixin-takes-one(@a : h;);
158 .mixin-takes-one(j;);
159 .mixin-takes-two(k, l);
160 .mixin-takes-one(m, n;);
161 .mixin-takes-two(o, p; q);
162 .mixin-takes-two(r, s; t;);
165 .mixin-conflict(@a:defA, @b:defB, @c:defC) {
169 .mixin-conflict(@a:defA, @b:defB, @c:defC, @d:defD) {
170 four: @a, @b, @c, @d;
174 .mixin-conflict(11, 12, 13, @a:a);
175 .mixin-conflict(@a:a, 21, 22, 23);
178 .mixin-default-arg(@a: 1px, @b: @a, @c: @b) {
179 defaults: 1px 1px 1px;
180 defaults: 2px 2px 2px;
183 .test-mixin-default-arg {
184 .mixin-default-arg();
185 .mixin-default-arg(2px);
188 .mixin-comma-default1(@color; @padding; @margin: 2, 2, 2, 2) {
192 .mixin-comma-default1(#33acfe; 4);
194 .mixin-comma-default2(@margin: 2, 2, 2, 2;) {
198 .mixin-comma-default2();
200 .mixin-comma-default3(@margin: 2, 2, 2, 2) {
204 .mixin-comma-default3(4,2,2,2);
207 .test-calling-one-arg-mixin(@a) {
210 .test-calling-one-arg-mixin(@a, @b, @rest...) {
214 .test-calling-one-arg-mixin(1);