diff options
| author | Starsam80 <[email protected]> | 2016-11-26 21:33:46 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2016-11-26 20:33:46 -0800 |
| commit | b1e8d60348ab84895b7b722487a03264a53aedfb (patch) | |
| tree | 49aa074990ffc26c7bdb4f9ccf65b677e331c601 /scss | |
| parent | eb5ad730ee85ea02a2eba6e7e9ed1e9a8dd837f4 (diff) | |
| download | bootstrap-b1e8d60348ab84895b7b722487a03264a53aedfb.tar.xz bootstrap-b1e8d60348ab84895b7b722487a03264a53aedfb.zip | |
Remove 'xs' from text utilities (#21217)
Diffstat (limited to 'scss')
| -rw-r--r-- | scss/utilities/_text.scss | 14 |
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; } + } } } |
