less.js
less.js copied to clipboard
Less. The dynamic stylesheet language.
I've looked through the issues, but couldn't find something similar. The below code used to work in less 2.x. ``` const less = require('less'); const raw = ` @import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700');`;...
Hey @seven-phases-max @matthew-dean @hirosato @Justineo and everyone in here. :) This is with regards to **lessc**. Say, I have three files:- 1. **less0.less (empty)** `(empty)` 2. **less1.less** `@import 'less0.less'` 3....
We have this solution: ``` // LESS .selector { @r: ~'.selector'; &--mode { @{r}__block { prop: value; } } } // CSS .selector--mode .selector__block { prop: value; } ``` I...
### style.less `.my-app { @import url("variables.less"); color: @text-color; background-color: @body-bg; }` ### variables.less `@body-bg: #f1f2f3; @text-color: #5e5e5e;` ### Compiling with `modifyVars: {"body-bg": 'yellow', 'text-color' : 'purple' }` ### Style.css is...
## short term filter nodes passed to functions ## long term 1. move all constructor args to be {} 2. a) do not use the constructor.. use Element.create(args) and this.clone(newArgs)...
https://github.com/less/less.js/blob/2d43c0b9648daee7f226f1be9952654c80dea033/bin/lessc#L73-L76 To me, the above lines optimistically consider that no string variables containing an "=" char will ever be passed. Considering the scenario where: - in a **less** file, I...
I apologize if this is not the right repo. I am using the less loader in webpack and I pass a lot of variables to modifyVars (almost 60). passing these...
i use less client side, all i want is `document.querySelector("body").style.backgroundColor = less.vars["background-color"];` this is would be so easy
Is this a bug or is this an expected behavior? Demo (Less 3.11.3): https://jsbin.com/hewizek/6/edit?html,js,console **Input:** ```less @supports selector( :focus-visible // *"a" ) { a { color: red; } } ```...
We use a variable to define a prefix which user may override it, and we defined a function inside a plugin which will consume this variable. Currently we have to...