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 {
|
|
|
|
.container {
|
|
|
|
@include make-container();
|
|
|
|
@include make-container-max-widths();
|
|
|
|
}
|
2012-11-30 21:42:37 +01:00
|
|
|
}
|
2012-01-29 22:06:57 +01:00
|
|
|
|
2013-12-08 05:52:51 +01:00
|
|
|
// Fluid container
|
|
|
|
//
|
|
|
|
// Utilizes the mixin meant for fixed width containers, but without any defined
|
|
|
|
// width for fluid, full width layouts.
|
|
|
|
|
2015-12-27 00:14:01 +01:00
|
|
|
@if $enable-grid-classes {
|
|
|
|
.container-fluid {
|
|
|
|
@include make-container();
|
|
|
|
}
|
2013-12-08 05:52:51 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Row
|
|
|
|
//
|
|
|
|
// Rows contain and clear the floats of your columns.
|
|
|
|
|
2015-08-24 07:13:58 +02:00
|
|
|
@if $enable-grid-classes {
|
|
|
|
.row {
|
|
|
|
@include make-row();
|
|
|
|
}
|
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();
|
|
|
|
}
|
2013-01-16 02:55:14 +01:00
|
|
|
|
2015-04-27 23:11:07 +02:00
|
|
|
|
|
|
|
// Flex variation
|
|
|
|
//
|
|
|
|
// Custom styles for additional flex alignment options.
|
|
|
|
|
2015-08-24 07:13:58 +02:00
|
|
|
@if $enable-flex and $enable-grid-classes {
|
2015-04-27 23:11:07 +02:00
|
|
|
|
|
|
|
// Flex column reordering
|
|
|
|
|
2015-10-23 21:05:12 +02:00
|
|
|
@each $breakpoint in map-keys($grid-breakpoints) {
|
|
|
|
@include media-breakpoint-up($breakpoint) {
|
|
|
|
.col-#{$breakpoint}-first { order: -1; }
|
|
|
|
.col-#{$breakpoint}-last { order: 1; }
|
|
|
|
}
|
2015-04-27 10:43:14 +02:00
|
|
|
}
|
2015-04-27 23:11:07 +02:00
|
|
|
|
|
|
|
// Alignment for every column in row
|
|
|
|
|
2015-10-23 21:05:12 +02:00
|
|
|
@each $breakpoint in map-keys($grid-breakpoints) {
|
|
|
|
@include media-breakpoint-up($breakpoint) {
|
|
|
|
.row-#{$breakpoint}-top { align-items: flex-start; }
|
|
|
|
.row-#{$breakpoint}-center { align-items: center; }
|
|
|
|
.row-#{$breakpoint}-bottom { align-items: flex-end; }
|
|
|
|
}
|
2015-04-27 23:11:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Alignment per column
|
|
|
|
|
2015-10-23 21:05:12 +02:00
|
|
|
@each $breakpoint in map-keys($grid-breakpoints) {
|
|
|
|
@include media-breakpoint-up($breakpoint) {
|
|
|
|
.col-#{$breakpoint}-top { align-self: flex-start; }
|
|
|
|
.col-#{$breakpoint}-center { align-self: center; }
|
|
|
|
.col-#{$breakpoint}-bottom { align-self: flex-end; }
|
|
|
|
}
|
2015-04-27 23:11:07 +02:00
|
|
|
}
|
2015-05-28 00:49:55 +02:00
|
|
|
}
|