less.js
less.js copied to clipboard
Less. The dynamic stylesheet language.
**To reproduce:** ```less @variable: .bucket; @{variable} { // interpolated selector color: blue; } .some-class:extend(.bucket) {} // does nothing, no match is found ``` **Current behavior:** ```css .bucket, .some-class { color:...
**To reproduce:** This can be reproduced using the CLI or the programmatic API. Assuming that LESS is already installed, it is most straightforward to reproduce using the CLI: ``` echo...
When creating a Parent Selector rule, everything before the `&` gets prepended to the outermost scope. The feature could be greatly improved by allowing for "parent targeting", where you could...
Maybe this isn't strictly a bug report. I found the similar issue report (https://github.com/less/less.js/issues/2709) but this might be more of a feature request? that how I wish Less compiler works....
**To reproduce:** I want to define a variable in plugin. It will insert `@x: 33px` to current scope. ```js module.exports = class LessPluginBestMixin { install(less, pluginManager, functions) { functions.add("x", ()...
**To reproduce:** ```less .foo { @import (reference) "abc"; .one { .two(); // defined in abc.less } } ``` in another file ```less .bar { @import (reference) "abc"; .three { .two();...
**To reproduce:** In the docs, it describes how mixins match on arity (number of arguments). That is, you can do this: ``` .mixin(@a) { value: @a; } .mixin(@a, @b) {...
correctly parse all entities in a comma separated list such that all URLs are rewritten correctly Resolves: https://github.com/less/less.js/issues/4211 Given: ``` root ├─index.html ├─asset | ├─rabbit | | ├─hello.jpg ├─style |...
https://lesscss.org/features/#extend-feature-selector-interpolation-with-extend The section opens with the example: > Selector with variable will not be matched: ``` @variable: .bucket; @{variable} { // interpolated selector color: blue; } .some-class:extend(.bucket) {} // does...
**What**: `image-size`, `image-width`, `image-height` can accept parameter like `url(a.png)` **Why**: I can write code like ```css .xxx{ background: url(a.png); width: image-width($background); } ``` else I have to write: ```css @img:...