2012-06-29 00:46:45 -04:00
|
|
|
//
|
|
|
|
// Grid system
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
2013-12-07 23:52:51 -05:00
|
|
|
|
|
|
|
// Container widths
|
|
|
|
//
|
|
|
|
// Set the container width, and override it for fixed navbars in media queries.
|
|
|
|
|
2012-11-30 15:42:37 -05:00
|
|
|
.container {
|
2014-12-02 17:02:35 -05:00
|
|
|
@include make-container();
|
2013-11-28 17:22:31 -05:00
|
|
|
|
2014-12-20 10:03:30 -05:00
|
|
|
// For each breakpoint, define the maximum width of the container in a media query
|
|
|
|
@each $breakpoint, $container-max-width in $container-max-widths {
|
2014-12-29 16:37:20 -05:00
|
|
|
@include media-breakpoint-up($breakpoint) {
|
2014-12-20 10:03:30 -05:00
|
|
|
max-width: $container-max-width;
|
|
|
|
}
|
2013-11-28 17:22:31 -05:00
|
|
|
}
|
2012-11-30 15:42:37 -05:00
|
|
|
}
|
2012-01-29 16:06:57 -05:00
|
|
|
|
2013-12-07 23:52:51 -05:00
|
|
|
|
|
|
|
// Fluid container
|
|
|
|
//
|
|
|
|
// Utilizes the mixin meant for fixed width containers, but without any defined
|
|
|
|
// width for fluid, full width layouts.
|
|
|
|
|
|
|
|
.container-fluid {
|
2014-12-02 17:02:35 -05:00
|
|
|
@include make-container();
|
2013-12-07 23:52:51 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Row
|
|
|
|
//
|
|
|
|
// Rows contain and clear the floats of your columns.
|
|
|
|
|
2013-01-15 20:55:14 -05:00
|
|
|
.row {
|
2014-12-02 17:02:35 -05:00
|
|
|
@include make-row();
|
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
|
|
|
|
2014-12-02 17:02:35 -05:00
|
|
|
@include make-grid-columns();
|
2013-01-15 20:55:14 -05:00
|
|
|
|
2015-04-27 17:11:07 -04:00
|
|
|
|
|
|
|
// Flex variation
|
|
|
|
//
|
|
|
|
// Custom styles for additional flex alignment options.
|
|
|
|
|
2015-04-27 04:43:14 -04:00
|
|
|
@if $enable-flex {
|
2015-04-27 17:11:07 -04:00
|
|
|
|
|
|
|
// Flex column reordering
|
|
|
|
|
2015-04-27 04:43:14 -04:00
|
|
|
.col-xs-first { order: -1; }
|
|
|
|
.col-xs-last { order: 1; }
|
|
|
|
|
|
|
|
@include media-breakpoint-up(sm) {
|
|
|
|
.col-sm-first { order: -1; }
|
|
|
|
.col-sm-last { order: 1; }
|
|
|
|
}
|
|
|
|
@include media-breakpoint-up(md) {
|
|
|
|
.col-md-first { order: -1; }
|
|
|
|
.col-md-last { order: 1; }
|
|
|
|
}
|
|
|
|
@include media-breakpoint-up(lg) {
|
|
|
|
.col-lg-first { order: -1; }
|
|
|
|
.col-lg-last { order: 1; }
|
|
|
|
}
|
|
|
|
@include media-breakpoint-up(xl) {
|
|
|
|
.col-xl-first { order: -1; }
|
|
|
|
.col-xl-last { order: 1; }
|
|
|
|
}
|
2015-04-27 17:11:07 -04:00
|
|
|
|
|
|
|
// Alignment for every column in row
|
|
|
|
|
|
|
|
.row-xs-top { align-items: flex-start; }
|
|
|
|
.row-xs-center { align-items: center; }
|
|
|
|
.row-xs-bottom { align-items: flex-end; }
|
|
|
|
|
|
|
|
@include media-breakpoint-up(sm) {
|
|
|
|
.row-sm-top { align-items: flex-start; }
|
|
|
|
.row-sm-center { align-items: center; }
|
|
|
|
.row-sm-bottom { align-items: flex-end; }
|
|
|
|
}
|
|
|
|
@include media-breakpoint-up(md) {
|
|
|
|
.row-md-top { align-items: flex-start; }
|
|
|
|
.row-md-center { align-items: center; }
|
|
|
|
.row-md-bottom { align-items: flex-end; }
|
|
|
|
}
|
|
|
|
@include media-breakpoint-up(lg) {
|
|
|
|
.row-lg-top { align-items: flex-start; }
|
|
|
|
.row-lg-center { align-items: center; }
|
|
|
|
.row-lg-bottom { align-items: flex-end; }
|
|
|
|
}
|
|
|
|
@include media-breakpoint-up(xl) {
|
|
|
|
.row-xl-top { align-items: flex-start; }
|
|
|
|
.row-xl-center { align-items: center; }
|
|
|
|
.row-xl-bottom { align-items: flex-end; }
|
|
|
|
}
|
|
|
|
|
|
|
|
// Alignment per column
|
|
|
|
|
|
|
|
.col-xs-top { align-self: flex-start; }
|
|
|
|
.col-xs-center { align-self: center; }
|
|
|
|
.col-xs-bottom { align-self: flex-end; }
|
|
|
|
|
|
|
|
@include media-breakpoint-up(sm) {
|
|
|
|
.col-sm-top { align-self: flex-start; }
|
|
|
|
.col-sm-center { align-self: center; }
|
|
|
|
.col-sm-bottom { align-self: flex-end; }
|
|
|
|
}
|
|
|
|
@include media-breakpoint-up(md) {
|
|
|
|
.col-md-top { align-self: flex-start; }
|
|
|
|
.col-md-center { align-self: center; }
|
|
|
|
.col-md-bottom { align-self: flex-end; }
|
|
|
|
}
|
|
|
|
@include media-breakpoint-up(lg) {
|
|
|
|
.col-lg-top { align-self: flex-start; }
|
|
|
|
.col-lg-center { align-self: center; }
|
|
|
|
.col-lg-bottom { align-self: flex-end; }
|
|
|
|
}
|
|
|
|
@include media-breakpoint-up(xl) {
|
|
|
|
.col-xl-top { align-self: flex-start; }
|
|
|
|
.col-xl-center { align-self: center; }
|
|
|
|
.col-xl-bottom { align-self: flex-end; }
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|