A Media Breakpoint Mixin can be used to define custom responsive behaviour dependent on the screen size.
The bootstrap media-breakpoint mixins take breakpoint names as parameters (e.g. xs
, sm
, md
, lg
, xl
).
The css code is only included when the screen size is greater than the width of the breakpoint.
media-breakpoint-down(bp)
The css code is only included when the screen size is less than the width of the breakpoint.
media-breakpoint-between(sm, lg)
The css code is only included when the screen size is between the widths of the breakpoints.
@include media-breakpoint-up('lg'){
margin-bottom: 0;
}
You can also define your own media queries and can learn more at SCSS mixins here.