Answer the question
In order to leave comments, you need to log in
How to combine identical media queries in SASS into one CSS?
There is such a construction in SASS:
.block
color: red
@media screen and (max-width: 767px)
.block
color: green
.block1
color: blue
@media screen and (max-width: 767px)
.block1
color: yellow
.block {
color: red
}
@media screen and (max-width:767px) {
.block {
color: green
}
}
.block1 {
color: blue
}
@media screen and (max-width:767px) {
.block1 {
color: yellow
}
}
.block {
color: red
}
.block1 {
color: blue
}
@media screen and (max-width:767px) {
.block {
color: green
}
.block1 {
color: yellow
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question