Attempting to incorporate a responsive design into my web application utilizing media queries with Bootstrap 4.4.1.
Conducting tests on the media queries using the following
Shown below is the styles.css code
@media only screen and (max-width: 575.98px) {
body {
background-color: red;
}
}
@include media-breakpoint-up(sm) {
.buttons {
background-color:rgba(255,180,50,0.7);
}
}
No changes when tested on a smaller device. Chrome dev tools display the style, yet it remains unapplied when running the application.
Is something missing here? Is there a specific import needed to utilize media queries with Bootstrap?
Which rule is more appropriate to use,
@include
or just@media
?