Answer the question
In order to leave comments, you need to log in
LESS: is it possible to combine the same @media into one?
There is approximately the following LESS structure:
.class1 {
font-size: 20px;
@ media (max-width: 400px) {
font-size: 10px;
}
}
.class2 {
color: blue;
@ media (max-width: 400px) {
color: red;
}
}
.class1 {
font-size: 20px;
}
@ media (max-width: 400px) {
.class1 { font-size: 10px; }
}
.class2 {
color: blue;
}
@ media (max-width: 400px) {
.class2 { color: blue; }
}
.class1 {
font-size: 20px;
}
.class2 {
color: blue;
}
@ media (max-width: 400px) {
.class1 { font-size: 10px; }
.class2 { color: blue; }
}
Answer the question
In order to leave comments, you need to log in
This is what post processors do. For example, gulp-combine-media-queries
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question