mirror of
https://github.com/less/less.js.git
synced 2026-05-01 03:00:22 -04:00
* Fixes Mixin call args not being visited * Add ability to use ES6 in tests * Fixes #3205 and partial 3.0 math regression #1880
50 lines
950 B
Plaintext
50 lines
950 B
Plaintext
@function-name: regexp;
|
|
@d-value: 15;
|
|
@-moz-document @function-name("(\d{0,@{d-value}})") {
|
|
a {
|
|
color: red;
|
|
}
|
|
}
|
|
|
|
.custom-property {
|
|
--this: () => {
|
|
basically anything until final semi-colon;
|
|
even other stuff; // i\'m serious;
|
|
};
|
|
@this: () => {
|
|
basically anything until final semi-colon;
|
|
even other stuff; // i\'m serious;
|
|
};
|
|
--that: @this;
|
|
@red: lighten(red, 10%);
|
|
--custom-color: @red lighten(red, 10%);
|
|
custom-color: $--custom-color;
|
|
}
|
|
|
|
@iostat: 1;
|
|
.var {
|
|
--fortran: read (*, *, iostat=@iostat) radius, height;
|
|
}
|
|
|
|
@boom-boom: bam;
|
|
@-moz-whatever (foo: "(" @boom-boom ")") {
|
|
bar: foo;
|
|
}
|
|
|
|
@selectorList: #selector, .bar, foo[attr="blah"];
|
|
@{selectorList} {
|
|
bar: value;
|
|
}
|
|
|
|
@size: 640px;
|
|
@tablet: (min-width: @size);
|
|
@media @tablet {
|
|
.holy-crap {
|
|
this: works;
|
|
}
|
|
}
|
|
// @todo - fix comment absorption after property
|
|
.test-comment {
|
|
--value: a/* { ; } */;
|
|
--comment-within: ( /* okay?; comment; */ );
|
|
} |