In Sass, is there any way to use root / top-level selectors inside a nested element? That would be helpful.
For example, I want to define the same style for all tags aat the root level and tags lionly inside ul. Here's an imaginary example where it /does the following:
ul {
li, /a {
color:black;
}
}
The presented stylesheet will look like this:
a {
color: black;
}
ul li {
color: black;
}
source
share