Is it common practice to directly invoke media queries in order to manually adjust the layout of elements when using Bootstrap?
In other words, if I have a custom element that I need to display or position in a specific way, is it acceptable to call the media query directly and make adjustments there, or should I strive to utilize Bootstrap's classes to achieve the desired behavior?
For example...
// Invoking the media query
@media (max-width: 768px) {
.my-element {
background: red;
}
}
Just a heads up - By "calling media queries" I mean utilizing the default media queries in Bootstrap, such as 750px
, 970px
, and 1170px
.
Appreciate your input.