less.js
less.js copied to clipboard
Less. The dynamic stylesheet language.
https://youtrack.jetbrains.com/issue/WEB-50647#focus=Comments-27-4853266.0-0 ``` // wrong(no error in WebStorm) &:not(first-child) { background: red; } // true &:not(:first-child) { background: red; } ```
### Input ```less #namespace { @ruleset: { foo: bar; } } .my-selector { #namespace.@ruleset(); } ``` ### Output ModuleBuildError: Module build failed (from ../node_modules/less-loader/dist/cjs.js): .my-selector { #namespace.@ruleset(); ^ Unrecognised input...
https://github.com/less/less.js/blob/b37922cfb2932f00d1e8b340f4799ff24a2af0f2/packages/less/src/less/tree/ruleset.js#L238 Case: importRules might be a very large array, when use import Options `multiple` to import files which contains lots of mixins, Variable, CSS Guards and so on Error: 
Hi According to http://lesscss.org/functions/ `data-uri('image/svg+xml;charset=UTF-8', 'image.svg');`should output `url("data:image/svg+xml;charset=UTF-8,%3Csvg%3E%3Ccircle%20r%3D%229%22%2F%3E%3C%2Fsvg%3E");` Tested here https://codepen.io/ZeGregg/pen/RwoOqLG?editors=1100 and compiled css output `background-image: url("https://getuikit.com/assets/uikit/src/images/icons/cloud-download.svg");` Any help would be appreciated Greg
``` $ lessc --version lessc 4.1.1 (Less Compiler) [JavaScript] $ lessc
less: ^3.12.2 ``` TypeError: str.replace is not a function at less/lib/less/parser/parser.js:182 ```
A while ago I switched the project from JSHint to ESLint (the latter being better-maintained and offering more features). However, I set many of the settings as warnings because I...
Example I have selector .abs-action-addto-product is defined in _extends.less, and it contains another extend: My file styles.less have this @import (reference) _extends.less; .action.towishlist { &:extend(.abs-action-addto-product all); } i have imported...
I keep running into issues today it seems. Example: ```less #media { #desktop (@ruleset) { @media (min-width: 700px) { @ruleset(); } } #mobile (@ruleset) { @media (max-width: 699px) { @ruleset();...
Functions that are added to a `#namespace` by a `@plugin` directive cannot be referenced by mixins residing in the namespace. Given a simple plugin that adds a trivial plugin function,...