mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-19 16:54:24 +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
|
// Responsive alignment
|
||||||
|
|
||||||
.text-xs-left { text-align: left; }
|
@each $breakpoint in map-keys($grid-breakpoints) {
|
||||||
.text-xs-right { text-align: right; }
|
@include media-breakpoint-up($breakpoint) {
|
||||||
.text-xs-center { text-align: center; }
|
.text-#{$breakpoint}-left { text-align: left; }
|
||||||
|
.text-#{$breakpoint}-right { text-align: right; }
|
||||||
@include media-breakpoint-up(sm) {
|
.text-#{$breakpoint}-center { text-align: center; }
|
||||||
.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; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Transformation
|
// Transformation
|
||||||
|
Loading…
x
Reference in New Issue
Block a user