Less. The dynamic stylesheet language.
this
pointer so that it is not empty. (@lumburr)@media
queries generated when compiling less file with (reference) to bootstrap (@MoonCoral)disablePluginRule
flag for render() options (#3710) (@broofa @edhgoose)This was maybe too big a change without some kind of deprecation or conversion. So for this version, this works again:
.mixin;
This release has 2 breaking changes:
This aligns it with syntax for calling detached rulesets.
Example
.mixin() {}
.mixin; // error in 4.0
Parentheses are required (by default) around division-like expressions, to force math evaluation.
Example:
@ratio_large: 16;
@ratio_small: 9;
/** The following will produce `device-aspect-ratio: 1.77777778` by default in 3.x */
@media all and (device-aspect-ratio: @ratio_large / @ratio_small) {
.body { max-width: 800px; }
}
Produces:
@media all and (device-aspect-ratio: 16 / 9) {
.body {
max-width: 800px;
}
}
You can, of course, get old math behavior. See: http://lesscss.org/usage/#less-options-math
isdefined(@unknown)
)rgb(0 128 255 / 50%)
)&
now work better\r
newlines now process ok (regression in 2.0.0)@plugin
directive to load function plugins@import (css)
does not pull the directive above comments