1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-18 11:21:23 +02:00

Make text align configurable (#28989)

This was causing issues for RTL, see https://github.com/twbs/bootstrap/issues/28238
This commit is contained in:
Martijn Cuppens
2019-07-15 13:34:01 +02:00
committed by XhmikosR
parent d2f4e2bf97
commit 88e87ca7c9
3 changed files with 9 additions and 10 deletions

View File

@@ -24,7 +24,7 @@ The `<html>` and `<body>` elements are updated to provide better page-wide defau
- The `box-sizing` is globally set on every element—including `*::before` and `*::after`, to `border-box`. This ensures that the declared width of element is never exceeded due to padding or border.
- No base `font-size` is declared on the `<html>`, but `16px` is assumed (the browser default). `font-size: 1rem` is applied on the `<body>` for easy responsive type-scaling via media queries while respecting user preferences and ensuring a more accessible approach.
- The `<body>` also sets a global `font-family`, `line-height`, and `text-align`. This is inherited later by some form elements to prevent font inconsistencies.
- The `<body>` also sets a global `font-family`, `font-weight`, `line-height`, and `color`. This is inherited later by some form elements to prevent font inconsistencies.
- For safety, the `<body>` has a declared `background-color`, defaulting to `#fff`.
## Native font stack