| 1 |
@use "sass:map"; |
| 2 |
|
| 3 |
// Grid breakpoints |
| 4 |
// Define the minimum dimensions at which your layout will change, |
| 5 |
// adapting to different screen sizes, for use in media queries. |
| 6 |
|
| 7 |
$grid-breakpoints: ( |
| 8 |
xs: 0, |
| 9 |
xl: $media-lg, |
| 10 |
lg: $media-md, |
| 11 |
md: $media-sm, |
| 12 |
sm: $media-xs, |
| 13 |
) !default; |
| 14 |
|
| 15 |
@include _assert-descending($grid-breakpoints, "$grid-breakpoints"); |
| 16 |
@include _assert-starts-at-zero($grid-breakpoints); |
| 17 |
|
| 18 |
// Grid containers |
| 19 |
// Define the maximum width of `.container` for different screen sizes. |
| 20 |
|
| 21 |
$container-max-widths: ( |
| 22 |
sm: 540px, |
| 23 |
md: 720px, |
| 24 |
lg: 960px, |
| 25 |
xl: 1140px |
| 26 |
) !default; |
| 27 |
|
| 28 |
@include _assert-ascending($container-max-widths, "$container-max-widths"); |
| 29 |
|
| 30 |
// Grid columns |
| 31 |
// Set the number of columns and specify the width of the gutters. |
| 32 |
|
| 33 |
$grid-columns: 12 !default; |
| 34 |
$grid-gutter-width: map.get($grid-gaps, md) !default; |
| 35 |
|