diff options
| author | Gleb Mazovetskiy <[email protected]> | 2014-12-20 15:03:30 +0000 |
|---|---|---|
| committer | Gleb Mazovetskiy <[email protected]> | 2014-12-24 22:27:11 +0200 |
| commit | 93f51eb0e9c178ab7fb6399c21e3b0e7ba2ed792 (patch) | |
| tree | 4a755b8855d4f52b68ab77239a0f45a0b3994bf2 /scss/_grid.scss | |
| parent | 4d9aa90c8ec0e3692a39412d1c97510a7cda1f96 (diff) | |
| download | bootstrap-93f51eb0e9c178ab7fb6399c21e3b0e7ba2ed792.tar.xz bootstrap-93f51eb0e9c178ab7fb6399c21e3b0e7ba2ed792.zip | |
Automate breakpoints
Breakpoints and container widths are now defined as maps.
Diffstat (limited to 'scss/_grid.scss')
| -rw-r--r-- | scss/_grid.scss | 57 |
1 files changed, 5 insertions, 52 deletions
diff --git a/scss/_grid.scss b/scss/_grid.scss index 6374d77de..1129cff6d 100644 --- a/scss/_grid.scss +++ b/scss/_grid.scss @@ -10,14 +10,11 @@ .container { @include make-container(); - @media (min-width: $screen-sm-min) { - max-width: $container-sm; - } - @media (min-width: $screen-md-min) { - max-width: $container-md; - } - @media (min-width: $screen-lg-min) { - max-width: $container-lg; + // For each breakpoint, define the maximum width of the container in a media query + @each $breakpoint, $container-max-width in $container-max-widths { + @include media-breakpoint-min($breakpoint) { + max-width: $container-max-width; + } } } @@ -47,47 +44,3 @@ @include make-grid-columns(); - -// Extra small grid -// -// Columns, offsets, pushes, and pulls for extra small devices like -// smartphones. - -@include make-grid(xs); - - -// Small grid -// -// Columns, offsets, pushes, and pulls for the small device range, from phones -// to tablets. - -@include media-sm { - @include make-grid(sm); -} - - -// Medium grid -// -// Columns, offsets, pushes, and pulls for the desktop device range. - -@include media-md { - @include make-grid(md); -} - - -// Large grid -// -// Columns, offsets, pushes, and pulls for the large desktop device range. - -@include media-lg { - @include make-grid(lg); -} - - -// Large grid -// -// Columns, offsets, pushes, and pulls for the large desktop device range. - -@include media-lg { - @include make-grid(xl); -} |
