mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
26 lines
830 B
SCSS
26 lines
830 B
SCSS
// Flex variation
|
|
//
|
|
// Custom styles for additional flex alignment options.
|
|
|
|
@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; }
|
|
}
|
|
|
|
// Alignment for every column in row
|
|
@include media-breakpoint-up($breakpoint) {
|
|
.flex-all-#{$breakpoint}-top { align-items: flex-start; }
|
|
.flex-all-#{$breakpoint}-center { align-items: center; }
|
|
.flex-all-#{$breakpoint}-bottom { align-items: flex-end; }
|
|
}
|
|
|
|
// 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; }
|
|
}
|
|
}
|