Answers for "scss classes"

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
1

scss classes

%fullimgbg {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  height: 100vh;
}

.veiligheid{
  @extend %fullimgbg;
  background-image: url('some_img.jpg);
}

.slot{
  @extend %fullimgbg;
  background-image: url('some_other_img.jpg');
}
Posted by: Guest on February-27-2021

Browse Popular Code Answers by Language