aboutsummaryrefslogtreecommitdiff
path: root/scss
diff options
context:
space:
mode:
authorStarsam80 <[email protected]>2016-11-26 21:33:46 -0700
committerMark Otto <[email protected]>2016-11-26 20:33:46 -0800
commitb1e8d60348ab84895b7b722487a03264a53aedfb (patch)
tree49aa074990ffc26c7bdb4f9ccf65b677e331c601 /scss
parenteb5ad730ee85ea02a2eba6e7e9ed1e9a8dd837f4 (diff)
downloadbootstrap-b1e8d60348ab84895b7b722487a03264a53aedfb.tar.xz
bootstrap-b1e8d60348ab84895b7b722487a03264a53aedfb.zip
Remove 'xs' from text utilities (#21217)
Diffstat (limited to 'scss')
-rw-r--r--scss/utilities/_text.scss14
1 files changed, 11 insertions, 3 deletions
diff --git a/scss/utilities/_text.scss b/scss/utilities/_text.scss
index 5ad2ee9b3..2bf21804f 100644
--- a/scss/utilities/_text.scss
+++ b/scss/utilities/_text.scss
@@ -12,9 +12,17 @@
@each $breakpoint in map-keys($grid-breakpoints) {
@include media-breakpoint-up($breakpoint) {
- .text-#{$breakpoint}-left { text-align: left !important; }
- .text-#{$breakpoint}-right { text-align: right !important; }
- .text-#{$breakpoint}-center { text-align: center !important; }
+ $min: breakpoint-min($breakpoint, $grid-breakpoints);
+
+ @if $min {
+ .text-#{$breakpoint}-left { text-align: left !important; }
+ .text-#{$breakpoint}-right { text-align: right !important; }
+ .text-#{$breakpoint}-center { text-align: center !important; }
+ } @else {
+ .text-left { text-align: left !important; }
+ .text-right { text-align: right !important; }
+ .text-center { text-align: center !important; }
+ }
}
}