A small problem with the use of css style

Syntax scss

.a {
  background-color :red;
  &.b{
    background-color: green;
  }
  &-c{
    background-color: blue;
  }
  .d{
    background-color: yellow;
  }
}

//ab c d 
//b
//

<div class="a b">
</div>

<div class="a">
 <div class="b">
 </div>
</div>

<div class="b">
</div>
Apr.11,2021

<div class="a b">
</div>

& means to refer to the parent selector. If there is one, it means that the reference is not in the same element

.
.a {
  .d{
    background-color: yellow;
  }
}

indicates that an and d are applied to father-son or grandfather-descendant nodes



    </div>
</div>
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3b85b-2c286.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3b85b-2c286.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?