scss classes code example
Example 1: sass class with another class
.myclass {
font-weight: bold;
font-size: 90px;
}
.myotherclass {
@extend .myclass;
color: #000000;
}
Example 2: 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');
}