mirror of
https://github.com/twbs/bootstrap.git
synced 2025-04-09 01:53:53 +02:00
Merge pull request #18028 from twbs/fix-18027
Stop hardcoding grid breakpoints in responsive alignment utility classes
This commit is contained in:
commit
77f565a608
@ -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