diff options
Diffstat (limited to 'scss/utilities')
| -rw-r--r-- | scss/utilities/_flex.scss | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/scss/utilities/_flex.scss b/scss/utilities/_flex.scss new file mode 100644 index 000000000..3bcf372bd --- /dev/null +++ b/scss/utilities/_flex.scss @@ -0,0 +1,35 @@ +// Flex variation +// +// Custom styles for additional flex alignment options. + +@if $enable-flex and $enable-grid-classes { + + // Flex column reordering + + @each $breakpoint in map-keys($grid-breakpoints) { + @include media-breakpoint-up($breakpoint) { + .flex-#{$breakpoint}-first { order: -1; } + .flex-#{$breakpoint}-last { order: 1; } + } + } + + // Alignment for every column in row + + @each $breakpoint in map-keys($grid-breakpoints) { + @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 + + @each $breakpoint in map-keys($grid-breakpoints) { + @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; } + } + } +} |
