less.js
less.js copied to clipboard
Less. The dynamic stylesheet language.
On the page: https://lesscss.org/features/#mixins-feature-mixins-parametric-feature Line: "Note: As of Less 4.0, you can escape a list value using bracket escaping [~()]". Is misleading. Please remove the brackets or change the text...
On the page: https://lesscss.org/features/#mixins-feature-guarded-namespaces Invalid code: `#sp_1 when (default()) {` ` #sp_2 when (default()) {` ` .mixin() when not(default()) { /* */ }` ` }` `}` Namespaces in LESS cannot...
**What**: Remove redundant code. Credit to @anny21 who found this at https://gerrit.wikimedia.org/r/1129964, https://github.com/wikimedia/less.php/commit/bed2c0cd7b2f0b3fab304db679d122f415404a0d. **Why**: Follows-up 53f84f02bad6e, which added the conditional with a check for `i + 1 < this.value.length`, which...
On this page: https://lesscss.org/features/#extend-feature-extend-all This example does not work: `.bucket { color: blue; }` `@{variable}:extend(.bucket) {}` `@variable: .selector;` compiles to: `.bucket, .selector { color: blue; }` You need to write...
**To reproduce:** https://lesscss.org/less-preview/#eyJjb2RlIjoiI2xpYigpIHtcbiAgICAuY29sb3JzKCkge1xuICAgICAgQHByaW1hcnk6IGJsdWU7XG4gICAgICBAc2Vjb25kYXJ5OiBncmVlbjtcbiAgICB9XG4gICAgLnJ1bGVzKEBzaXplKSB7XG4gICAgICBib3JkZXI6IEBzaXplIHNvbGlkIHdoaXRlO1xuICAgIH1cbiAgfVxuICBcbiAgLmJveCB3aGVuICgjbGliLmNvbG9yc1tAcHJpbWFyeV0gPSBibHVlKSB7XG4gICAgd2lkdGg6IDEwMHB4O1xuICAgIGhlaWdodDogKCR3aWR0aCAvIDIpO1xuICB9XG4gIFxuICAuYmFyOmV4dGVuZCguYm94KSB7XG4gICAgQG1lZGlhIChtaW4td2lkdGg6IDYwMHB4KSB7XG4gICAgICB3aWR0aDogMjAwcHg7XG4gICAgICAjbGliLnJ1bGVzKDFweCk7XG4gICAgfVxuICB9IiwiYWN0aXZlVmVyc2lvbiI6IjQuMi4yIiwibWF0aCI6InBhcmVucy1kaXZpc2lvbiIsInN0cmljdFVuaXRzIjpmYWxzZX0= ```less .print(@list) { length-is { a: length(@list); } } .print({ @a: { overflow: hidden; } @b: { overflow: hidden; } }); ``` **Current behavior:** Output is: ```css...
**What**: Runtime at browser. fix for less.js is inject into browser by `TamperMonkey` or `ViolentMonkey`, but there is no head tag or even html tag. **Why**: without head tag, less.js...
**What**: PR contains a fix for issue #4313 selector list not expanding with & symbol. **Why**: In Less.js version 4.2.2, this Less: ```css .broken { &:not(&--a, &--b):hover { background-color: green;...
Sorry that my time has been fairly limited in the last year to contribute & maintain Less. I'm hoping to be able to squeeze some more time for open source...
**To reproduce:** ```less div { background: rgb(from blue calc(r + 100) g b); } ``` **Current behavior:** Less throws a `Could not parse call arguments or missing ')'` error. **Expected...
`:not(&--a):not(&--b)` does expand the & symbol into the parent's selector as expected. `:not(&--a, &--b)` doesn't expand the & symbol into the parent's selector. **To reproduce:** ```less .works { &:not(&--a):not(&--b):hover {...