Answer the question
In order to leave comments, you need to log in
How to properly write media queries sass?
Good afternoon! I read on the bootstrap off site that you can use queries like:
@include media-breakpoint-up(576px) {
.some-class {
display: block;
}
}
@include media-breakpoint-up(576px)
^
No mixin named media-breakpoint-up
Answer the question
In order to leave comments, you need to log in
First, the name of the breakpoint must be passed to the parameter.
Second, you didn't include the bootstrap grid mixins in your file at all.
You need to include two files, then call mixins
@import 'bootstrap/variables';
@import 'bootstrap/mixins';
@include media-breakpoint-up(sm) {
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question