Responsive
Available breakpoints
Define the minimum and maximum dimensions at which your layout will change, adapting to different screen sizes, for use in media queries.
Breakpoint | Class infix | Min width | Max Width |
---|---|---|---|
Extra small | xs | - | 576px |
Small | sm | 576px | 768px |
Medium | md | 768px | 992px |
Large | lg | 992px | 1200px |
Extra large | xl | 1200px | 1400px |
Extra extra large | xxl | 1400px | - |
Basic usage
To access or change the breakpoints in the scss use $grid-breakpoints
variable.
Example when the screen is narrower than md
breakpoint.
@include media-breakpoint-down(map-get($grid-breakpoints, 'md')) { // styles here }
Example when the screen is wider than lg
breakpoint.
@include media-breakpoint-up(map-get($grid-breakpoints, 'lg')) { // styles here }