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