File: input.scss

package info (click to toggle)
node-node-sass 9.0.0%2Bgit20240131.6081731%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 75,520 kB
  • sloc: javascript: 7,313; cpp: 1,495; perl: 428; makefile: 11
file content (15 lines) | stat: -rw-r--r-- 613 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// We assume that by default classes don't apply to the :root unless marked explicitly.
:root .foo-1 { test: 1; }
.bar-1 .baz-1 { @extend .foo-1; }

// We know the two classes must be the same :root element so we can combine them.
.foo-2:root .bar-2 { test: 2; }
.baz-2:root .bang-2 { @extend .bar-2; }

// This extend should not apply because the :root elements are different.
html:root .bar-3 { test: 3; }
xml:root .bang-3 { @extend .bar-3}

// We assume that direct descendant of the :root is not the same element as a descendant.
.foo-4:root > .bar-4 .x-4 { test: 4; }
.baz-4:root .bang-4 .y-4 {@extend .x-4}