Answer the question
In order to leave comments, you need to log in
Inheritance in SCSS of one property?
Learning sass-scss.ru/guide
Here
is an example:
.message {
border: 1px solid #ccc;
padding: 10px;
color: #333;
}
.success {
@extend .message;
border-color: green;
}
.message {
border: 1px solid #ccc;
padding: 10px;
color: #333;
}
.message2 {
border: 1px solid #ccc;
padding: 10px;
}
.header {
background: transparentize($cwhite,0.15);
position: fixed;
width: 100%;
z-index: 100;
&:after {
content: '';
position: absolute;
background: transparentize($cwhite,0.15);
width: 100%;
left: 0;
bottom: -50px;
height: 50px;
border-bottom-right-radius: 50%;
border-bottom-left-radius: 50%;
}
}
Answer the question
In order to leave comments, you need to log in
%bgtrans {
background: transparentize($cwhite,0.15);
}
.header {
@extend %bgtrans;
&:after {
@extend %bgtrans;
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question