• Shaarli
  • Tag cloud
  • Picture wall
  • Daily
  • RSS
  • Login
4251 shaares
Filters

Sass: Sass and Native Nesting

QRCode
.foo, #bar {
  .baz { /* ... */ }
}

produces the selector .foo .baz, #bar .baz in Sass but :is(.foo, #bar)) .baz in native CSS. This changes the specificity: :is() always has the specificity of its most specific selector,

Sass nesting and native CSS nesting both support syntax that looks like &foo, but it means different things.

https://sass-lang.com/blog/sass-and-native-nesting/
August 31, 2023 at 10:22:03 AM EDT *
sass css
FILLER
Shaarli · The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community · Documentation
Fold Fold all Expand Expand all Are you sure you want to delete this link? Are you sure you want to delete this tag? The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community