1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-28 23:59:53 +02:00

stub out flexbox grid variation via -flex

This commit is contained in:
Mark Otto
2015-04-27 01:43:14 -07:00
parent b9ed61854c
commit 9d4d6ef3a2
4 changed files with 45 additions and 3 deletions

View File

@@ -44,3 +44,28 @@
@include make-grid-columns();
// Flex column reordering
@if $enable-flex {
.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; }
}
}