diff options
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; } + } } } |
