aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2016-02-06 01:47:04 -0800
committerMark Otto <[email protected]>2016-02-06 01:47:04 -0800
commit9e3214051d203db8f3578a0c0ada82d2ed94872a (patch)
treec7a656b19cdce918b671797021c0041680664f09
parent5e41887c3cf2eb2c3f8969c477b38fe2585973be (diff)
downloadbootstrap-9e3214051d203db8f3578a0c0ada82d2ed94872a.tar.xz
bootstrap-9e3214051d203db8f3578a0c0ada82d2ed94872a.zip
add horizontal flex utils
-rw-r--r--scss/utilities/_flex.scss9
1 files changed, 9 insertions, 0 deletions
diff --git a/scss/utilities/_flex.scss b/scss/utilities/_flex.scss
index c22e0114f..194e85094 100644
--- a/scss/utilities/_flex.scss
+++ b/scss/utilities/_flex.scss
@@ -23,5 +23,14 @@
.flex-#{$breakpoint}-middle { align-self: center; }
.flex-#{$breakpoint}-bottom { align-self: flex-end; }
}
+
+ // Horizontal alignment of item
+ @include media-breakpoint-up($breakpoint) {
+ .flex-items-#{$breakpoint}-left { justify-content: flex-start; }
+ .flex-items-#{$breakpoint}-center { justify-content: center; }
+ .flex-items-#{$breakpoint}-right { justify-content: flex-end; }
+ .flex-items-#{$breakpoint}-around { justify-content: space-around; }
+ .flex-items-#{$breakpoint}-between { justify-content: space-between; }
+ }
}
}