2013-12-07 23:52:51 -05:00
|
|
|
// Container widths
|
|
|
|
//
|
|
|
|
// Set the container width, and override it for fixed navbars in media queries.
|
|
|
|
|
2015-12-26 18:14:01 -05:00
|
|
|
@if $enable-grid-classes {
|
2019-07-21 20:38:36 -04:00
|
|
|
// Single container class with breakpoint max-widths
|
2015-12-26 18:14:01 -05:00
|
|
|
.container {
|
|
|
|
@include make-container();
|
|
|
|
@include make-container-max-widths();
|
|
|
|
}
|
2013-12-07 23:52:51 -05:00
|
|
|
|
2019-07-21 20:38:36 -04:00
|
|
|
// 100% wide container at all breakpoints
|
2015-12-26 18:14:01 -05:00
|
|
|
.container-fluid {
|
|
|
|
@include make-container();
|
|
|
|
}
|
2019-07-21 20:38:36 -04:00
|
|
|
|
|
|
|
// Responsive containers that are 100% wide until a breakpoint
|
|
|
|
@each $breakpoint, $container-max-width in $container-max-widths {
|
|
|
|
.container-#{$breakpoint} {
|
2019-07-23 02:50:24 -04:00
|
|
|
@extend .container-fluid;
|
2019-07-21 20:38:36 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
@include media-breakpoint-up($breakpoint, $grid-breakpoints) {
|
2019-08-05 15:12:16 -04:00
|
|
|
%responsive-container-#{$breakpoint} {
|
2019-07-21 20:38:36 -04:00
|
|
|
max-width: $container-max-width;
|
|
|
|
}
|
2019-08-05 15:12:16 -04:00
|
|
|
|
|
|
|
@each $name, $width in $grid-breakpoints {
|
|
|
|
@if ($container-max-width > $width or $breakpoint == $name) {
|
|
|
|
.container#{breakpoint-infix($name, $grid-breakpoints)} {
|
|
|
|
@extend %responsive-container-#{$breakpoint};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-07-21 20:38:36 -04:00
|
|
|
}
|
|
|
|
}
|
2013-12-07 23:52:51 -05:00
|
|
|
}
|
|
|
|
|
2019-07-21 20:38:36 -04:00
|
|
|
|
2013-12-07 23:52:51 -05:00
|
|
|
// Row
|
|
|
|
//
|
2019-07-27 02:30:39 -04:00
|
|
|
// Rows contain your columns.
|
2013-12-07 23:52:51 -05:00
|
|
|
|
2015-08-24 01:13:58 -04:00
|
|
|
@if $enable-grid-classes {
|
|
|
|
.row {
|
|
|
|
@include make-row();
|
|
|
|
}
|
2016-11-26 15:13:15 -05:00
|
|
|
|
|
|
|
// Remove the negative margin from default .row, then the horizontal padding
|
|
|
|
// from all immediate children columns (to prevent runaway style inheritance).
|
|
|
|
.no-gutters {
|
|
|
|
margin-right: 0;
|
|
|
|
margin-left: 0;
|
|
|
|
|
2016-11-28 01:47:00 -05:00
|
|
|
> .col,
|
2016-11-26 15:13:15 -05:00
|
|
|
> [class*="col-"] {
|
|
|
|
padding-right: 0;
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
}
|
2013-01-15 20:55:14 -05:00
|
|
|
}
|
2013-04-27 02:59:51 -04:00
|
|
|
|
2013-12-07 23:52:51 -05:00
|
|
|
// Columns
|
|
|
|
//
|
2013-04-27 02:59:51 -04:00
|
|
|
// Common styles for small and large grid columns
|
2013-12-07 23:52:51 -05:00
|
|
|
|
2015-08-24 01:13:58 -04:00
|
|
|
@if $enable-grid-classes {
|
|
|
|
@include make-grid-columns();
|
|
|
|
}
|