Well I used the translator to read this SASS documentation and I did not understand the what he can do ... Then:
- What does
@at-root
do?
Well I used the translator to read this SASS documentation and I did not understand the what he can do ... Then:
@at-root
do? @at-root
is a directive. It works to ' jump ' from where you nested in your Sass to a higher level.
For example, you can use it like this:
h1 {
font-size: 16px;
@at-root {
header {
margin: 0 auto;
width: 98%;
}
}
}
And the result looks like this:
h1 {
font-size: 16px;
}
header {
margin: 0 auto;
width: 98%;
}