diff options
| author | Martijn Cuppens <[email protected]> | 2019-07-15 13:34:01 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2019-07-15 14:34:01 +0300 |
| commit | 88e87ca7c918ac35d2e3dfa90924b7f89a4bb15c (patch) | |
| tree | e0a2a558b94f0513313ad432e68530dc9be8ebf8 /scss | |
| parent | d2f4e2bf97d823c2a8fc1ac8078f2bf5cce67abf (diff) | |
| download | bootstrap-88e87ca7c918ac35d2e3dfa90924b7f89a4bb15c.tar.xz bootstrap-88e87ca7c918ac35d2e3dfa90924b7f89a4bb15c.zip | |
Make text align configurable (#28989)
This was causing issues for RTL, see https://github.com/twbs/bootstrap/issues/28238
Diffstat (limited to 'scss')
| -rw-r--r-- | scss/_reboot.scss | 16 | ||||
| -rw-r--r-- | scss/_variables.scss | 1 |
2 files changed, 8 insertions, 9 deletions
diff --git a/scss/_reboot.scss b/scss/_reboot.scss index 3553c2491..6ff66a022 100644 --- a/scss/_reboot.scss +++ b/scss/_reboot.scss @@ -25,11 +25,9 @@ main { // Body // // 1. Remove the margin in all browsers. -// 2. Set an explicit initial text-align value so that we can later use -// the `inherit` value on things like `<th>` elements. -// 3. As a best practice, apply a default `background-color`. -// 4. Prevent adjustments of font size after orientation changes in IE on Windows Phone and in iOS. -// 5. Change the default tap highlight to be completely transparent in iOS. +// 2. As a best practice, apply a default `background-color`. +// 3. Prevent adjustments of font size after orientation changes in IE on Windows Phone and in iOS. +// 4. Change the default tap highlight to be completely transparent in iOS. body { margin: 0; // 1 font-family: $font-family-base; @@ -37,10 +35,10 @@ body { font-weight: $font-weight-base; line-height: $line-height-base; color: $body-color; - text-align: left; // 2 - background-color: $body-bg; // 3 - -webkit-text-size-adjust: 100%; // 4 - -webkit-tap-highlight-color: rgba($black, 0); // 5 + text-align: $body-text-align; + background-color: $body-bg; // 2 + -webkit-text-size-adjust: 100%; // 3 + -webkit-tap-highlight-color: rgba($black, 0); // 4 } // Future-proof rule: in browsers that support :focus-visible, suppress the focus outline diff --git a/scss/_variables.scss b/scss/_variables.scss index 0b1191fe7..146dd7316 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -148,6 +148,7 @@ $negative-spacers: negativify-map($spacers) !default; $body-bg: $white !default; $body-color: $gray-900 !default; +$body-text-align: null !default; // Links |
