applying multiple classes to an element scss code example
Example 1: css multiple classes
//HTML Code
<div class = 'firstClass secondClass'></div>
//CSS Code
.firstClass.secondClass {
}
Example 2: scss multiple classes
.container {
background:red;
&.desc{
background:blue;
}
}
/* compiles to: */
.container {
background: red;
}
.container.desc {
background: blue;
}