2016-01-06 16:01:00 -08:00
|
|
|
// Flex variation
|
|
|
|
//
|
|
|
|
// Custom styles for additional flex alignment options.
|
|
|
|
|
2016-02-06 01:29:51 -08:00
|
|
|
@if $enable-flex and $enable-grid-classes {
|
|
|
|
@each $breakpoint in map-keys($grid-breakpoints) {
|
|
|
|
// Flex column reordering
|
|
|
|
@include media-breakpoint-up($breakpoint) {
|
|
|
|
.flex-#{$breakpoint}-first { order: -1; }
|
|
|
|
.flex-#{$breakpoint}-last { order: 1; }
|
|
|
|
}
|
2016-01-06 16:01:00 -08:00
|
|
|
|
2016-02-06 01:29:51 -08:00
|
|
|
// Alignment for every column in row
|
|
|
|
@include media-breakpoint-up($breakpoint) {
|
|
|
|
.flex-items-#{$breakpoint}-top { align-items: flex-start; }
|
|
|
|
.flex-items-#{$breakpoint}-center { align-items: center; }
|
|
|
|
.flex-items-#{$breakpoint}-bottom { align-items: flex-end; }
|
|
|
|
}
|
2016-01-06 16:01:00 -08:00
|
|
|
|
2016-02-06 01:29:51 -08:00
|
|
|
// Alignment per column
|
|
|
|
@include media-breakpoint-up($breakpoint) {
|
|
|
|
.flex-#{$breakpoint}-top { align-self: flex-start; }
|
|
|
|
.flex-#{$breakpoint}-center { align-self: center; }
|
|
|
|
.flex-#{$breakpoint}-bottom { align-self: flex-end; }
|
|
|
|
}
|
2016-01-06 16:01:00 -08:00
|
|
|
}
|
|
|
|
}
|