Created by: jonnitto
When you use Bootstrap as a layout tool, with all it mixins, I come often in the situation where I want to select the previous breakpoint. For example, I set a variable for the breakpoint of a navigation and want to use the media-breakpoint-down
mixin. Without this function, I have to set a second variable with the lower breakpoint. With this function, I can set it dynamically:
$variable: lg;
@include media-breakpoint-down(breakpoint-prev($variable)) {
// Content
}