Answer the question
In order to leave comments, you need to log in
How to merge the contents of media mixins in sass?
Example:
@mixin media-sm() {
@media (min-width: 700px) {
@content;
}
}
h1{
font-size: 40px;
@include media-sm {
font-size: 30px;
}
}
h2{
font-size: 20px;
@include media-sm {
font-size: 15px;
}
}
Answer the question
In order to leave comments, you need to log in
Create postcss.config.js, and download via npm css-mqpacker (it belongs to PostCSS) and include it in postcss config.
Here is an example article: https://webdesign.tutsplus.com/ru/tutorials/using-...
Or... pogugli.com/?353838
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question