I am using Sass
, and I see many multiple classes in html file, such as:
<a href="#" class="button white">a link</a>
Why should I use multiple classes?
And it seems that the css
should be:
.button {
font-size: 12px;
}
.button.white {
background-color: #fff;
}
but why this doesn't work:
.button {
font-size: 12px;
.white {
background-color: #fff;
}
}
so how can I use sass
simplify the css
file?