Here is a simple example that draws a square in SCSS. Why does the background color only take effect when it is in .color
, and not .black
?
<div class="color black"></div>
.color {
width: 112px;
height: 112px;
display: block;
// background: #000;
.black {
background: #000;
}
}