Answers for "sass how to implement two different class"

CSS
2

sass class with another class

.myclass {
  font-weight: bold;
  font-size: 90px;
}

.myotherclass {
  @extend .myclass;
  color: #000000;
}
Posted by: Guest on March-27-2020
0

scss multiple classes

.container {
    background:red;
    &.desc{
       background:blue;
    }
}

/* compiles to: */
.container {
    background: red;
}
.container.desc {
    background: blue;
}
Posted by: Guest on February-27-2021

Code answers related to "sass how to implement two different class"

Browse Popular Code Answers by Language