mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-11 18:02:28 +03:00
v5: Add .fs-* utilities for font-size and rename font-weight/-style utilities (#30571)
* v5: Add .fs-* utilities for font-size - Adds new font-sizes Sass map - Generates six new classes for setting only font-size - Updates docs to mention this, including a scss-docs reference * Update font utilities - Make .fs-* utils for font-size use RFS - Rename .font-weight-* utils to .fw-* - Rename .font-style-* utils to .f-* - Update order of utilities a bit - Update docs to match * Update migration docs to make note of these changes * Be more specific in font-size docs about scale * Update font-style abbreviation to .fst * Fix font-weight property * Formatting & font style utility fix * Move to Alpha 3 migration section * Update migration guide for more details, splitting alpha 2 stuff back to the appropriate section in Migration guide * Tweak language on example Co-authored-by: Martijn Cuppens <martijn.cuppens@gmail.com>
This commit is contained in:
@@ -21,10 +21,22 @@ toc: true
|
||||
|
||||
- Introduce `$enable-smooth-scroll`, which applies `scroll-behavior: smooth` globally—except for users asking for reduced motion through `prefers-reduced-motion` media query. [See #31877](https://github.com/twbs/bootstrap/pull/31877)
|
||||
|
||||
<<<<<<< HEAD
|
||||
### Forms
|
||||
|
||||
- The longstanding [Missing border radius on input group with validation feedback bug](https://github.com/twbs/bootstrap/issues/25110) is finally fixed by adding an additional `.has-validation` class to input groups with validation.
|
||||
|
||||
### Utilities
|
||||
|
||||
=======
|
||||
### Utilities
|
||||
|
||||
>>>>>>> Update migration guide for more details, splitting alpha 2 stuff back to the appropriate section in Migration guide
|
||||
- **Text utilities:**
|
||||
- Added `.fs-*` utilities for `font-size` utilities (with RFS enabled). These use the same scale as HTML's default headings (1-6, large to small), and can be modified via Sass map.
|
||||
- Renamed `.font-weight-*` utilities as `.fw-*` for brevity and consistency.
|
||||
- Renamed `.font-style-*` utilities as `.fst-*` for brevity and consistency.
|
||||
|
||||
## v5.0.0-alpha2
|
||||
|
||||
### Sass
|
||||
@@ -138,6 +150,9 @@ toc: true
|
||||
- Some great examples have been added to the docs to show these off.
|
||||
- [#31484](https://github.com/twbs/bootstrap/pull/31484): Added new [`border-width` utility]({{< docsref "/utilities/borders#border-width" >}}).
|
||||
- [#31473](https://github.com/twbs/bootstrap/pull/31473): The `.d-none` utility was moved in our CSS to give it more weight over other display utilities.
|
||||
- Renamed `.text-monospace` to `.font-monospace`.
|
||||
- Removed `.text-hide` as it's an antiquated method for hiding text that shouldn't be used anymore.
|
||||
- New `line-height` utilities: `.lh-1`, `.lh-sm`, `.lh-base` and `.lh-lg`. See [here]({{< docsref "/utilities/text#line-height" >}}).
|
||||
|
||||
---
|
||||
|
||||
@@ -320,12 +335,13 @@ Badges were overhauled to better differentiate themselves from buttons and to be
|
||||
|
||||
### Utilities
|
||||
|
||||
- Renamed `.text-monospace` to `.font-monospace`
|
||||
### Grid
|
||||
|
||||
- Decreased the number of responsive order utilities per breakpoint. The highest order utility with a number now is `.order-5` instead of `.order-12`. [See #28874](https://github.com/twbs/bootstrap/pull/28874).
|
||||
- New `line-height` utilities: `.lh-1`, `.lh-sm`, `.lh-base` and `.lh-lg`. See [here]({{< docsref "/utilities/text#line-height" >}}).
|
||||
|
||||
### Misc
|
||||
|
||||
- Added `.bg-body` for quickly setting the `<body>`'s background to additional elements.
|
||||
- Drop `.text-hide` as it's an antiquated method for hiding text that shouldn't be used anymore
|
||||
- Split utilities into property-value utility classes and helpers
|
||||
- Negative margin utilities are disabled by default. You can re-enable them by setting `$enable-negative-margins: true`, but keep in mind this can increase the file size quite a lot.
|
||||
|
||||
### Docs
|
||||
|
||||
Reference in New Issue
Block a user