2013-12-08 12:52:51 +08:00
|
|
|
// Container widths
|
|
|
|
//
|
|
|
|
// Set the container width, and override it for fixed navbars in media queries.
|
|
|
|
|
2015-12-27 07:14:01 +08:00
|
|
|
@if $enable-grid-classes {
|
2019-07-22 08:38:36 +08:00
|
|
|
// Single container class with breakpoint max-widths
|
2020-06-14 05:25:39 +08:00
|
|
|
.container,
|
2019-07-22 08:38:36 +08:00
|
|
|
// 100% wide container at all breakpoints
|
2015-12-27 07:14:01 +08:00
|
|
|
.container-fluid {
|
|
|
|
@include make-container();
|
|
|
|
}
|
2019-07-22 08:38:36 +08:00
|
|
|
|
|
|
|
// Responsive containers that are 100% wide until a breakpoint
|
|
|
|
@each $breakpoint, $container-max-width in $container-max-widths {
|
|
|
|
.container-#{$breakpoint} {
|
2019-07-23 14:50:24 +08:00
|
|
|
@extend .container-fluid;
|
2019-07-22 08:38:36 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
@include media-breakpoint-up($breakpoint, $grid-breakpoints) {
|
2019-08-06 03:12:16 +08:00
|
|
|
%responsive-container-#{$breakpoint} {
|
2019-07-22 08:38:36 +08:00
|
|
|
max-width: $container-max-width;
|
|
|
|
}
|
2019-08-06 03:12:16 +08:00
|
|
|
|
2019-12-26 04:16:58 +08:00
|
|
|
// Extend each breakpoint which is smaller or equal to the current breakpoint
|
|
|
|
$extend-breakpoint: true;
|
|
|
|
|
2019-08-06 03:12:16 +08:00
|
|
|
@each $name, $width in $grid-breakpoints {
|
2019-12-26 04:16:58 +08:00
|
|
|
@if ($extend-breakpoint) {
|
2019-08-06 03:12:16 +08:00
|
|
|
.container#{breakpoint-infix($name, $grid-breakpoints)} {
|
|
|
|
@extend %responsive-container-#{$breakpoint};
|
|
|
|
}
|
2019-12-26 04:16:58 +08:00
|
|
|
|
|
|
|
// Once the current breakpoint is reached, stop extending
|
|
|
|
@if ($breakpoint == $name) {
|
|
|
|
$extend-breakpoint: false;
|
|
|
|
}
|
2019-08-06 03:12:16 +08:00
|
|
|
}
|
|
|
|
}
|
2019-07-22 08:38:36 +08:00
|
|
|
}
|
|
|
|
}
|
2013-12-08 12:52:51 +08:00
|
|
|
}
|
|
|
|
|
2019-07-22 08:38:36 +08:00
|
|
|
|
2013-12-08 12:52:51 +08:00
|
|
|
// Row
|
|
|
|
//
|
2019-07-27 14:30:39 +08:00
|
|
|
// Rows contain your columns.
|
2013-12-08 12:52:51 +08:00
|
|
|
|
2015-08-24 13:13:58 +08:00
|
|
|
@if $enable-grid-classes {
|
|
|
|
.row {
|
|
|
|
@include make-row();
|
|
|
|
}
|
2016-11-27 04:13:15 +08: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 14:47:00 +08:00
|
|
|
> .col,
|
2016-11-27 04:13:15 +08:00
|
|
|
> [class*="col-"] {
|
|
|
|
padding-right: 0;
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
}
|
2013-01-16 09:55:14 +08:00
|
|
|
}
|
2013-04-27 14:59:51 +08:00
|
|
|
|
2013-12-08 12:52:51 +08:00
|
|
|
// Columns
|
|
|
|
//
|
2013-04-27 14:59:51 +08:00
|
|
|
// Common styles for small and large grid columns
|
2013-12-08 12:52:51 +08:00
|
|
|
|
2015-08-24 13:13:58 +08:00
|
|
|
@if $enable-grid-classes {
|
|
|
|
@include make-grid-columns();
|
|
|
|
}
|