mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-28 20:52:21 +01:00
Stop hardcoding grid breakpoints in responsive alignment utility classes; fixes #18027
[skip sauce] [skip validator]
This commit is contained in:
parent
807fb8847a
commit
d3cb2ca43c
@ -60,32 +60,12 @@
|
||||
|
||||
// Responsive alignment
|
||||
|
||||
.text-xs-left { text-align: left; }
|
||||
.text-xs-right { text-align: right; }
|
||||
.text-xs-center { text-align: center; }
|
||||
|
||||
@include media-breakpoint-up(sm) {
|
||||
.text-sm-left { text-align: left; }
|
||||
.text-sm-right { text-align: right; }
|
||||
.text-sm-center { text-align: center; }
|
||||
}
|
||||
|
||||
@include media-breakpoint-up(md) {
|
||||
.text-md-left { text-align: left; }
|
||||
.text-md-right { text-align: right; }
|
||||
.text-md-center { text-align: center; }
|
||||
}
|
||||
|
||||
@include media-breakpoint-up(lg) {
|
||||
.text-lg-left { text-align: left; }
|
||||
.text-lg-right { text-align: right; }
|
||||
.text-lg-center { text-align: center; }
|
||||
}
|
||||
|
||||
@include media-breakpoint-up(xl) {
|
||||
.text-xl-left { text-align: left; }
|
||||
.text-xl-right { text-align: right; }
|
||||
.text-xl-center { text-align: center; }
|
||||
@each $breakpoint in map-keys($grid-breakpoints) {
|
||||
@include media-breakpoint-up($breakpoint) {
|
||||
.text-#{$breakpoint}-left { text-align: left; }
|
||||
.text-#{$breakpoint}-right { text-align: right; }
|
||||
.text-#{$breakpoint}-center { text-align: center; }
|
||||
}
|
||||
}
|
||||
|
||||
// Transformation
|
||||
|
Loading…
x
Reference in New Issue
Block a user