Sourced from sass's releases.
Dart Sass 1.95.0
To install Sass 1.95.0, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
Add support for the CSS-style
if()function. In addition to supporting the plain CSS syntax, this also supports asass()query that takes a Sass expression that evaluates totrueorfalseat preprocessing time depending on whether the Sass value is truthy. If there are no plain-CSS queries, the function will return the first value whose query returns true during preprocessing. For example,if(sass(false): 1; sass(true): 2; else: 3)returns2.The old Sass
if()syntax is now deprecated. Users are encouraged to migrate to the new CSS syntax.if($condition, $if-true, $if-false)can be changed toif(sass($condition): $if-true; else: $if-false).See the Sass website for details.
Plain-CSS
if()functions are now considered "special numbers", meaning that they can be used in place of arguments to CSS color functions.Plain-CSS
if()functions andattr()functions are now considered "special variable strings" (likevar()), meaning they can now be used in place of multiple arguments or syntax fragments in various CSS functions.See the full changelog for changes in earlier releases.
Dart Sass 1.94.3
To install Sass 1.94.3, download one of the packages below and add it to your PATH, or see the Sass website for full installation instructions.
Changes
- Fix the span reported for standalone
%expressions followed by whitespace.See the full changelog for changes in earlier releases.
Sourced from sass's changelog.
1.95.0
Add support for the CSS-style
if()function. In addition to supporting the plain CSS syntax, this also supports asass()query that takes a Sass expression that evaluates totrueorfalseat preprocessing time depending on whether the Sass value is truthy. If there are no plain-CSS queries, the function will return the first value whose query returns true during preprocessing. For example,if(sass(false): 1; sass(true): 2; else: 3)returns2.The old Sass
if()syntax is now deprecated. Users are encouraged to migrate to the new CSS syntax.if($condition, $if-true, $if-false)can be changed toif(sass($condition): $if-true; else: $if-false).See the Sass website for details.
Plain-CSS
if()functions are now considered "special numbers", meaning that they can be used in place of arguments to CSS color functions.Plain-CSS
if()functions andattr()functions are now considered "special variable strings" (likevar()), meaning they can now be used in place of multiple arguments or syntax fragments in various CSS functions.1.94.3
- Fix the span reported for standalone
%expressions followed by whitespace.
2abc89e
Merge pull request #2693
from sass/css-if2f7a16c
Revert "Bump chokidar from 4.0.3 to 5.0.0 in /package (#2690)"
(#2691)38d4ac8
Add ArgumentList.namedSpans6f9a593
Add support for plain-CSS if()3b95eb7
Rename IfExpression to LegacyIfExpressione2bf843
Make the recursive AST visitor comprehensive (#2694)9380924
Fix the operator span when parsing a standalone % (#2667)f8a8a51
Bump chokidar from 4.0.3 to 5.0.0 in /package (#2690)e4837d1
Bump archive from 3.6.1 to 4.0.7 (#2688)293200b
Bump protoc_plugin from 23.0.0 to 24.0.0 (#2677)