|
3 | 3 | // Set the container width, and override it for fixed navbars in media queries. |
4 | 4 |
|
5 | 5 | @if $enable-container-classes { |
6 | | - // Single container class with breakpoint max-widths |
7 | | - .container, |
8 | 6 | // 100% wide container at all breakpoints |
9 | 7 | .container-fluid { |
10 | 8 | @include make-container(); |
11 | 9 | } |
12 | 10 |
|
13 | | - // Responsive containers that are 100% wide until a breakpoint |
14 | | - @each $breakpoint, $container-max-width in $container-max-widths { |
15 | | - .container-#{$breakpoint} { |
16 | | - @extend .container-fluid; |
| 11 | + @if $enable-bootstrap-compatibility { // OUDS mod |
| 12 | + // OUDS mod |
| 13 | + // Single container class with breakpoint max-widths |
| 14 | + .container { |
| 15 | + @include make-container(); |
17 | 16 | } |
| 17 | + // End mod |
18 | 18 |
|
19 | | - @include media-breakpoint-up($breakpoint, $grid-breakpoints) { |
20 | | - %responsive-container-#{$breakpoint} { |
21 | | - max-width: $container-max-width; |
| 19 | + // Responsive containers that are 100% wide until a breakpoint |
| 20 | + @each $breakpoint, $container-max-width in $container-max-widths { |
| 21 | + .container-#{$breakpoint} { |
| 22 | + @extend .container-fluid; |
22 | 23 | } |
23 | 24 |
|
24 | | - // Extend each breakpoint which is smaller or equal to the current breakpoint |
25 | | - $extend-breakpoint: true; |
| 25 | + @include media-breakpoint-up($breakpoint, $grid-breakpoints) { |
| 26 | + %responsive-container-#{$breakpoint} { |
| 27 | + max-width: $container-max-width; |
| 28 | + } |
26 | 29 |
|
27 | | - @each $name, $width in $grid-breakpoints { |
28 | | - @if ($extend-breakpoint) { |
29 | | - .container#{breakpoint-infix($name, $grid-breakpoints)} { |
30 | | - @extend %responsive-container-#{$breakpoint}; |
31 | | - } |
| 30 | + // Extend each breakpoint which is smaller or equal to the current breakpoint |
| 31 | + $extend-breakpoint: true; |
| 32 | + |
| 33 | + @each $name, $width in $grid-breakpoints { |
| 34 | + @if ($extend-breakpoint) { |
| 35 | + .container#{breakpoint-infix($name, $grid-breakpoints)} { |
| 36 | + @extend %responsive-container-#{$breakpoint}; |
| 37 | + } |
32 | 38 |
|
33 | | - // Once the current breakpoint is reached, stop extending |
34 | | - @if ($breakpoint == $name) { |
35 | | - $extend-breakpoint: false; |
| 39 | + // Once the current breakpoint is reached, stop extending |
| 40 | + @if ($breakpoint == $name) { |
| 41 | + $extend-breakpoint: false; |
| 42 | + } |
36 | 43 | } |
37 | 44 | } |
38 | 45 | } |
39 | 46 | } |
40 | 47 | } |
41 | 48 |
|
42 | | - // OUDS mod |
43 | 49 | // scss-docs-start containers-max |
44 | 50 | .container-max-width { |
45 | 51 | @include media-breakpoint-up(get-breakpoint-from-width()) { |
|
0 commit comments