1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-25 12:59:05 +02:00

Remove added badges from docs pages (#41694)

* Remove added badges from docs pages

* Remove AddedIn
This commit is contained in:
Mark Otto
2025-08-27 20:13:31 -07:00
committed by Mark Otto
parent 01c72e6c09
commit 9f939c55c2
44 changed files with 33 additions and 135 deletions

View File

@@ -1,16 +0,0 @@
---
/*
* Outputs badge to identify the first version something was added
*/
interface Props {
version: string
}
const { version } = Astro.props
---
<small
class="d-inline-flex mb-3 px-2 py-1 fw-semibold text-success-emphasis bg-success-subtle border border-success-subtle rounded-2"
>Added in v{version}</small
>

View File

@@ -0,0 +1,13 @@
---
interface Props {
component: string
className?: string
}
const { component, className } = Astro.props
---
<p>
{component} use local CSS variables on <code>.{className}</code> for real-time customization.
Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
</p>

View File

@@ -149,9 +149,7 @@ Please read the [collapse accessibility section]([[docsref:/components/collapse#
### Variables ### Variables
<AddedIn version="5.2.0" /> <CSSVariables component="Accordions" className="accordion" />
As part of Bootstraps evolving CSS variables approach, accordions now use local CSS variables on `.accordion` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
<ScssDocs name="accordion-css-vars" file="scss/_accordion.scss" /> <ScssDocs name="accordion-css-vars" file="scss/_accordion.scss" />

View File

@@ -122,9 +122,7 @@ When an alert is dismissed, the element is completely removed from the page stru
### Variables ### Variables
<AddedIn version="5.2.0" /> <CSSVariables component="Alerts" className="alert" />
As part of Bootstraps evolving CSS variables approach, alerts now use local CSS variables on `.alert` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
<ScssDocs name="alert-css-vars" file="scss/_alert.scss" /> <ScssDocs name="alert-css-vars" file="scss/_alert.scss" />

View File

@@ -54,8 +54,6 @@ You can also replace the `.badge` class with a few more utilities without a coun
## Background colors ## Background colors
<AddedIn version="5.2.0" />
Set a `background-color` with contrasting foreground `color` with [our `.text-bg-{color}` helpers]([[docsref:helpers/color-background]]). Previously it was required to manually pair your choice of [`.text-{color}`]([[docsref:/utilities/colors]]) and [`.bg-{color}`]([[docsref:/utilities/background]]) utilities for styling, which you still may use if you prefer. Set a `background-color` with contrasting foreground `color` with [our `.text-bg-{color}` helpers]([[docsref:helpers/color-background]]). Previously it was required to manually pair your choice of [`.text-{color}`]([[docsref:/utilities/colors]]) and [`.bg-{color}`]([[docsref:/utilities/background]]) utilities for styling, which you still may use if you prefer.
<Example code={getData('theme-colors').map((themeColor) => `<span class="badge text-bg-${themeColor.name}">${themeColor.title}</span>`)} /> <Example code={getData('theme-colors').map((themeColor) => `<span class="badge text-bg-${themeColor.name}">${themeColor.title}</span>`)} />
@@ -72,9 +70,7 @@ Use the `.rounded-pill` utility class to make badges more rounded with a larger
### Variables ### Variables
<AddedIn version="5.2.0" /> <CSSVariables component="Badges" className="badge" />
As part of Bootstraps evolving CSS variables approach, badges now use local CSS variables on `.badge` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
<ScssDocs name="badge-css-vars" file="scss/_badge.scss" /> <ScssDocs name="badge-css-vars" file="scss/_badge.scss" />

View File

@@ -86,9 +86,7 @@ For more information, see the [ARIA Authoring Practices Guide breadcrumb pattern
### Variables ### Variables
<AddedIn version="5.2.0" /> <CSSVariables component="Breadcrumbs" className="breadcrumb" />
As part of Bootstraps evolving CSS variables approach, breadcrumbs now use local CSS variables on `.breadcrumb` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
<ScssDocs name="breadcrumb-css-vars" file="scss/_breadcrumb.scss" /> <ScssDocs name="breadcrumb-css-vars" file="scss/_breadcrumb.scss" />

View File

@@ -190,9 +190,7 @@ document.querySelectorAll('.btn').forEach(buttonElement => {
### Variables ### Variables
<AddedIn version="5.2.0" /> <CSSVariables component="Buttons" className="btn" />
As part of Bootstraps evolving CSS variables approach, buttons now use local CSS variables on `.btn` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
<ScssDocs name="btn-css-vars" file="scss/_buttons.scss" /> <ScssDocs name="btn-css-vars" file="scss/_buttons.scss" />

View File

@@ -379,8 +379,6 @@ Cards include various options for customizing their backgrounds, borders, and co
### Background and color ### Background and color
<AddedIn version="5.2.0" />
Set a `background-color` with contrasting foreground `color` with [our `.text-bg-{color}` helpers]([[docsref:helpers/color-background]]). Previously it was required to manually pair your choice of [`.text-{color}`]([[docsref:/utilities/colors]]) and [`.bg-{color}`]([[docsref:/utilities/background]]) utilities for styling, which you still may use if you prefer. Set a `background-color` with contrasting foreground `color` with [our `.text-bg-{color}` helpers]([[docsref:helpers/color-background]]). Previously it was required to manually pair your choice of [`.text-{color}`]([[docsref:/utilities/colors]]) and [`.bg-{color}`]([[docsref:/utilities/background]]) utilities for styling, which you still may use if you prefer.
<Example code={getData('theme-colors').map((themeColor) => `<div class="card text-bg-${themeColor.name} mb-3" style="max-width: 18rem;"> <Example code={getData('theme-colors').map((themeColor) => `<div class="card text-bg-${themeColor.name} mb-3" style="max-width: 18rem;">
@@ -662,9 +660,7 @@ In `v4` we used a CSS-only technique to mimic the behavior of [Masonry](https://
### Variables ### Variables
<AddedIn version="5.2.0" /> <CSSVariables component="Cards" className="card" />
As part of Bootstraps evolving CSS variables approach, cards now use local CSS variables on `.card` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
<ScssDocs name="card-css-vars" file="scss/_card.scss" /> <ScssDocs name="card-css-vars" file="scss/_card.scss" />

View File

@@ -29,9 +29,7 @@ Add `data-bs-theme="dark"` to the `.btn-close`, or to its parent element, to inv
### Variables ### Variables
<AddedIn version="5.3.0" /> <CSSVariables component="Close button" className="btn-close" />
As part of Bootstraps evolving CSS variables approach, close button now uses local CSS variables on `.btn-close` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
<ScssDocs name="close-css-vars" file="scss/_close.scss" /> <ScssDocs name="close-css-vars" file="scss/_close.scss" />

View File

@@ -927,9 +927,7 @@ By default, the dropdown menu is closed when clicking inside or outside the drop
### Variables ### Variables
<AddedIn version="5.2.0" /> <CSSVariables component="Dropdowns" className="dropdown-menu" />
As part of Bootstraps evolving CSS variables approach, dropdowns now use local CSS variables on `.dropdown-menu` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
<ScssDocs name="dropdown-css-vars" file="scss/_dropdown.scss" /> <ScssDocs name="dropdown-css-vars" file="scss/_dropdown.scss" />

View File

@@ -253,9 +253,7 @@ You can use `.stretched-link` on `<label>`s to make the whole list group item cl
### Variables ### Variables
<AddedIn version="5.2.0" /> <CSSVariables component="List groups" className="list-group" />
As part of Bootstraps evolving CSS variables approach, list groups now use local CSS variables on `.list-group` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
<ScssDocs name="list-group-css-vars" file="scss/_list-group.scss" /> <ScssDocs name="list-group-css-vars" file="scss/_list-group.scss" />

View File

@@ -725,9 +725,7 @@ Another override is the option to pop up a modal that covers the user viewport,
### Variables ### Variables
<AddedIn version="5.2.0" /> <CSSVariables component="Modals" className="modal" />
As part of Bootstraps evolving CSS variables approach, modals now use local CSS variables on `.modal` and `.modal-backdrop` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
<ScssDocs name="modal-css-vars" file="scss/_modal.scss" /> <ScssDocs name="modal-css-vars" file="scss/_modal.scss" />

View File

@@ -721,9 +721,7 @@ When using offcanvas in a dark navbar, be aware that you may need to have a dark
### Variables ### Variables
<AddedIn version="5.2.0" /> <CSSVariables component="Navbars" className="navbar" />
As part of Bootstraps evolving CSS variables approach, navbars now use local CSS variables on `.navbar` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
<ScssDocs name="navbar-css-vars" file="scss/_navbar.scss" /> <ScssDocs name="navbar-css-vars" file="scss/_navbar.scss" />

View File

@@ -295,9 +295,7 @@ Add dropdown menus with a little extra HTML and the [dropdowns JavaScript plugin
### Variables ### Variables
<AddedIn version="5.2.0" /> <CSSVariables component="Navs" className="nav" />
As part of Bootstraps evolving CSS variables approach, navs now use local CSS variables on `.nav`, `.nav-tabs`, and `.nav-pills` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
On the `.nav` base class: On the `.nav` base class:
@@ -311,8 +309,6 @@ On the `.nav-pills` modifier class:
<ScssDocs name="nav-pills-css-vars" file="scss/_nav.scss" /> <ScssDocs name="nav-pills-css-vars" file="scss/_nav.scss" />
<AddedIn version="5.3.0" />
On the `.nav-underline` modifier class: On the `.nav-underline` modifier class:
<ScssDocs name="nav-underline-css-vars" file="scss/_nav.scss" /> <ScssDocs name="nav-underline-css-vars" file="scss/_nav.scss" />

View File

@@ -139,8 +139,6 @@ Change the appearance of offcanvases with utilities to better match them to diff
## Responsive ## Responsive
<AddedIn version="5.2.0" />
Responsive offcanvas classes hide content outside the viewport from a specified breakpoint and down. Above that breakpoint, the contents within will behave as usual. For example, `.offcanvas-lg` hides content in an offcanvas below the `lg` breakpoint, but shows the content above the `lg` breakpoint. Responsive offcanvas classes are available for each breakpoint. Responsive offcanvas classes hide content outside the viewport from a specified breakpoint and down. Above that breakpoint, the contents within will behave as usual. For example, `.offcanvas-lg` hides content in an offcanvas below the `lg` breakpoint, but shows the content above the `lg` breakpoint. Responsive offcanvas classes are available for each breakpoint.
- `.offcanvas` - `.offcanvas`
@@ -221,9 +219,7 @@ Since the offcanvas panel is conceptually a modal dialog, be sure to add `aria-l
### Variables ### Variables
<AddedIn version="5.2.0" /> <CSSVariables component="Offcanvas" className="offcanvas" />
As part of Bootstraps evolving CSS variables approach, offcanvas now uses local CSS variables on `.offcanvas` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
<ScssDocs name="offcanvas-css-vars" file="scss/_offcanvas.scss" /> <ScssDocs name="offcanvas-css-vars" file="scss/_offcanvas.scss" />

View File

@@ -156,9 +156,7 @@ Or with `.justify-content-end`:
### Variables ### Variables
<AddedIn version="5.2.0" /> <CSSVariables component="Pagination" className="pagination" />
As part of Bootstraps evolving CSS variables approach, pagination now uses local CSS variables on `.pagination` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
<ScssDocs name="pagination-css-vars" file="scss/_pagination.scss" /> <ScssDocs name="pagination-css-vars" file="scss/_pagination.scss" />

View File

@@ -2,8 +2,6 @@
title: Placeholders title: Placeholders
description: Use loading placeholders (skeleton loaders) for your components or pages to indicate something may still be loading. description: Use loading placeholders (skeleton loaders) for your components or pages to indicate something may still be loading.
toc: true toc: true
added:
version: "5.1"
--- ---
import { getData } from '@libs/data' import { getData } from '@libs/data'

View File

@@ -81,8 +81,6 @@ const popover = new bootstrap.Popover('.example-popover', {
### Custom popovers ### Custom popovers
<AddedIn version="5.2.0" />
You can customize the appearance of popovers using [CSS variables](#variables). We set a custom class with `data-bs-custom-class="custom-popover"` to scope our custom appearance and use it to override some of the local CSS variables. You can customize the appearance of popovers using [CSS variables](#variables). We set a custom class with `data-bs-custom-class="custom-popover"` to scope our custom appearance and use it to override some of the local CSS variables.
<ScssDocs name="custom-popovers" file="site/src/scss/_component-examples.scss" /> <ScssDocs name="custom-popovers" file="site/src/scss/_component-examples.scss" />
@@ -125,9 +123,7 @@ For disabled popover triggers, you may also prefer `data-bs-trigger="hover focus
### Variables ### Variables
<AddedIn version="5.2.0" /> <CSSVariables component="Popovers" className="popover" />
As part of Bootstraps evolving CSS variables approach, popovers now use local CSS variables on `.popover` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
<ScssDocs name="popover-css-vars" file="scss/_popover.scss" /> <ScssDocs name="popover-css-vars" file="scss/_popover.scss" />

View File

@@ -153,9 +153,7 @@ The striped gradient can also be animated. Add `.progress-bar-animated` to `.pro
### Variables ### Variables
<AddedIn version="5.2.0" /> <CSSVariables component="Progress" className="progress" />
As part of Bootstraps evolving CSS variables approach, progress bars now use local CSS variables on `.progress` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
<ScssDocs name="progress-css-vars" file="scss/_progress.scss" /> <ScssDocs name="progress-css-vars" file="scss/_progress.scss" />

View File

@@ -139,9 +139,7 @@ Use spinners within buttons to indicate an action is currently processing or tak
### Variables ### Variables
<AddedIn version="5.2.0" /> <CSSVariables component="Spinners" className="spinner-{border|grow}" />
As part of Bootstraps evolving CSS variables approach, spinners now use local CSS variables on `.spinner-border` and `.spinner-grow` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
Border spinner variables: Border spinner variables:

View File

@@ -294,9 +294,7 @@ While technically its possible to add focusable/actionable controls (such as
### Variables ### Variables
<AddedIn version="5.2.0" /> <CSSVariables component="Toasts" className="toast" />
As part of Bootstraps evolving CSS variables approach, toasts now use local CSS variables on `.toast` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
<ScssDocs name="toast-css-vars" file="scss/_toasts.scss" /> <ScssDocs name="toast-css-vars" file="scss/_toasts.scss" />

View File

@@ -45,8 +45,6 @@ Hover over the links below to see tooltips:
### Custom tooltips ### Custom tooltips
<AddedIn version="5.2.0" />
You can customize the appearance of tooltips using [CSS variables](#variables). We set a custom class with `data-bs-custom-class="custom-tooltip"` to scope our custom appearance and use it to override a local CSS variable. You can customize the appearance of tooltips using [CSS variables](#variables). We set a custom class with `data-bs-custom-class="custom-tooltip"` to scope our custom appearance and use it to override a local CSS variable.
<ScssDocs name="custom-tooltip" file="site/src/scss/_component-examples.scss" /> <ScssDocs name="custom-tooltip" file="site/src/scss/_component-examples.scss" />
@@ -108,9 +106,7 @@ With an SVG:
### Variables ### Variables
<AddedIn version="5.2.0" /> <CSSVariables component="Tooltips" className="tooltip" />
As part of Bootstraps evolving CSS variables approach, tooltips now use local CSS variables on `.tooltip` for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
<ScssDocs name="tooltip-css-vars" file="scss/_tooltip.scss" /> <ScssDocs name="tooltip-css-vars" file="scss/_tooltip.scss" />

View File

@@ -18,8 +18,6 @@ Here are our guidelines and reasons for choosing what to override in Reboot:
## CSS variables ## CSS variables
<AddedIn version="5.2.0"/>
With v5.1.1, we standardized our required `@import`s across all our CSS bundles (including `bootstrap.css`, `bootstrap-reboot.css`, and `bootstrap-grid.css`) to include `_root.scss`. This adds `:root` level CSS variables to all bundles, regardless of how many of them are used in that bundle. Ultimately Bootstrap 5 will continue to see more [CSS variables]([[docsref:/customize/css-variables]]) added over time, in order to provide more real-time customization without the need to always recompile Sass. Our approach is to take our source Sass variables and transform them into CSS variables. That way, even if you dont use CSS variables, you still have all the power of Sass. **This is still in-progress and will take time to fully implement.** With v5.1.1, we standardized our required `@import`s across all our CSS bundles (including `bootstrap.css`, `bootstrap-reboot.css`, and `bootstrap-grid.css`) to include `_root.scss`. This adds `:root` level CSS variables to all bundles, regardless of how many of them are used in that bundle. Ultimately Bootstrap 5 will continue to see more [CSS variables]([[docsref:/customize/css-variables]]) added over time, in order to provide more real-time customization without the need to always recompile Sass. Our approach is to take our source Sass variables and transform them into CSS variables. That way, even if you dont use CSS variables, you still have all the power of Sass. **This is still in-progress and will take time to fully implement.**
For example, consider these `:root` CSS variables for common `<body>` styles: For example, consider these `:root` CSS variables for common `<body>` styles:

View File

@@ -2,8 +2,6 @@
title: Color modes title: Color modes
description: Bootstrap now supports color modes, or themes, as of v5.3.0. Explore our default light color mode and the new dark mode, or create your own using our styles as your template. description: Bootstrap now supports color modes, or themes, as of v5.3.0. Explore our default light color mode and the new dark mode, or create your own using our styles as your template.
toc: true toc: true
added:
version: "5.3"
--- ---
import { getDocsRelativePath } from '@libs/path' import { getDocsRelativePath } from '@libs/path'

View File

@@ -9,8 +9,6 @@ import { getSequence } from '@libs/utils'
## Colors ## Colors
<AddedIn version="5.3.0" />
Bootstraps color palette has continued to expand and become more nuanced in v5.3.0. Weve added new variables for `secondary` and `tertiary` text and background colors, plus `{color}-bg-subtle`, `{color}-border-subtle`, and `{color}-text-emphasis` for our theme colors. These new colors are available through Sass and CSS variables (but not our color maps or utility classes) with the express goal of making it easier to customize across multiple colors modes like light and dark. These new variables are globally set on `:root` and are adapted for our new dark color mode while our original theme colors remain unchanged. Bootstraps color palette has continued to expand and become more nuanced in v5.3.0. Weve added new variables for `secondary` and `tertiary` text and background colors, plus `{color}-bg-subtle`, `{color}-border-subtle`, and `{color}-text-emphasis` for our theme colors. These new colors are available through Sass and CSS variables (but not our color maps or utility classes) with the express goal of making it easier to customize across multiple colors modes like light and dark. These new variables are globally set on `:root` and are adapted for our new dark color mode while our original theme colors remain unchanged.
Colors ending in `-rgb` provide the `red, green, blue` values for use in `rgb()` and `rgba()` color modes. For example, `rgba(var(--bs-secondary-bg-rgb), .5)`. Colors ending in `-rgb` provide the `red, green, blue` values for use in `rgb()` and `rgba()` color modes. For example, `rgba(var(--bs-secondary-bg-rgb), .5)`.
@@ -470,8 +468,6 @@ Heres how you can use these in your Sass:
## Generating utilities ## Generating utilities
<AddedIn version="5.1.0"/>
Bootstrap doesnt include `color` and `background-color` utilities for every color variable, but you can generate these yourself with our [utility API]([[docsref:/utilities/api]]) and our extended Sass maps added in v5.1.0. Bootstrap doesnt include `color` and `background-color` utilities for every color variable, but you can generate these yourself with our [utility API]([[docsref:/utilities/api]]) and our extended Sass maps added in v5.1.0.
1. To start, make sure youve imported our functions, variables, mixins, and utilities. 1. To start, make sure youve imported our functions, variables, mixins, and utilities.

View File

@@ -53,8 +53,6 @@ a {
## Focus variables ## Focus variables
<AddedIn version="5.3.0"/>
Bootstrap provides custom `:focus` styles using a combination of Sass and CSS variables that can be optionally added to specific components and elements. We do not yet globally override all `:focus` styles. Bootstrap provides custom `:focus` styles using a combination of Sass and CSS variables that can be optionally added to specific components and elements. We do not yet globally override all `:focus` styles.
In our Sass, we set default values that can be customized before compiling. In our Sass, we set default values that can be customized before compiling.

View File

@@ -339,8 +339,6 @@ If your form layout allows it, you can swap the `.{valid|invalid}-feedback` clas
### Variables ### Variables
<AddedIn version="5.3.0"/>
As part of Bootstraps evolving CSS variables approach, forms now use local CSS variables for validation for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too. As part of Bootstraps evolving CSS variables approach, forms now use local CSS variables for validation for enhanced real-time customization. Values for the CSS variables are set via Sass, so Sass customization is still supported, too.
<ScssDocs name="root-form-validation-variables" file="scss/_root.scss" /> <ScssDocs name="root-form-validation-variables" file="scss/_root.scss" />

View File

@@ -3,9 +3,6 @@ title: Contribute
description: Help develop Bootstrap with our documentation build scripts and tests. description: Help develop Bootstrap with our documentation build scripts and tests.
toc: true toc: true
aliases: "/docs/[[config:docs_version]]/getting-started/build-tools/" aliases: "/docs/[[config:docs_version]]/getting-started/build-tools/"
added:
show_badge: false
version: "5.1"
--- ---
## Tooling setup ## Tooling setup

View File

@@ -3,9 +3,6 @@ title: Bootstrap and Vite
description: The official guide for how to include and bundle Bootstraps CSS and JavaScript in your project using Vite. description: The official guide for how to include and bundle Bootstraps CSS and JavaScript in your project using Vite.
toc: true toc: true
thumbnail: guides/bootstrap-vite@2x.png thumbnail: guides/bootstrap-vite@2x.png
added:
show_badge: false
version: "5.2"
--- ---
<img class="d-block mx-auto mb-4 img-fluid rounded-3" srcset="/docs/[[config:docs_version]]/assets/img/guides/bootstrap-vite.png, /docs/[[config:docs_version]]/assets/img/guides/bootstrap-vite@2x.png 2x" src="/docs/[[config:docs_version]]/assets/img/guides/bootstrap-vite.png" width="800" height="400" alt="" /> <img class="d-block mx-auto mb-4 img-fluid rounded-3" srcset="/docs/[[config:docs_version]]/assets/img/guides/bootstrap-vite.png, /docs/[[config:docs_version]]/assets/img/guides/bootstrap-vite@2x.png 2x" src="/docs/[[config:docs_version]]/assets/img/guides/bootstrap-vite.png" width="800" height="400" alt="" />

View File

@@ -2,8 +2,6 @@
title: Color and background title: Color and background
description: Set a background color with contrasting foreground color. description: Set a background color with contrasting foreground color.
toc: true toc: true
added:
version: "5.2"
--- ---
import { getData } from '@libs/data' import { getData } from '@libs/data'

View File

@@ -23,8 +23,6 @@ You can use the `.link-*` classes to colorize links. Unlike the [`.text-*` class
## Link utilities ## Link utilities
<AddedIn version="5.3.0"/>
Colored links can also be modified by our [link utilities]([[docsref:/utilities/link/]]). Colored links can also be modified by our [link utilities]([[docsref:/utilities/link/]]).
<Example code={[ <Example code={[

View File

@@ -2,8 +2,6 @@
title: Focus ring title: Focus ring
description: Utility classes that allows you to add and modify custom focus ring styles to elements and components. description: Utility classes that allows you to add and modify custom focus ring styles to elements and components.
toc: true toc: true
added:
version: "5.3"
--- ---
import { getData } from '@libs/data' import { getData } from '@libs/data'

View File

@@ -2,8 +2,6 @@
title: Icon link title: Icon link
description: Quickly create stylized hyperlinks with Bootstrap Icons or other icons. description: Quickly create stylized hyperlinks with Bootstrap Icons or other icons.
toc: true toc: true
added:
version: "5.3"
--- ---
The icon link helper component modifies our default link styles to enhance their appearance and quickly align any pairing of icon and text. Alignment is set via inline flexbox styling and a default `gap` value. We stylize the underline with a custom offset and color. Icons are automatically sized to `1em` to best match their associated texts `font-size`. The icon link helper component modifies our default link styles to enhance their appearance and quickly align any pairing of icon and text. Alignment is set via inline flexbox styling and a default `gap` value. We stylize the underline with a custom offset and color. Icons are automatically sized to `1em` to best match their associated texts `font-size`.

View File

@@ -2,8 +2,6 @@
title: Stacks title: Stacks
description: Shorthand helpers that build on top of our flexbox utilities to make component layout faster and easier than ever. description: Shorthand helpers that build on top of our flexbox utilities to make component layout faster and easier than ever.
toc: true toc: true
added:
version: "5.1"
--- ---
Stacks offer a shortcut for applying a number of flexbox properties to quickly and easily create layouts in Bootstrap. All credit for the concept and implementation goes to the open source [Pylon project](https://almonk.github.io/pylon/). Stacks offer a shortcut for applying a number of flexbox properties to quickly and easily create layouts in Bootstrap. All credit for the concept and implementation goes to the open source [Pylon project](https://almonk.github.io/pylon/).

View File

@@ -2,8 +2,6 @@
title: Vertical rule title: Vertical rule
description: Use the custom vertical rule helper to create vertical dividers like the `<hr>` element. description: Use the custom vertical rule helper to create vertical dividers like the `<hr>` element.
toc: true toc: true
added:
version: "5.1"
--- ---
## How it works ## How it works

View File

@@ -2,8 +2,6 @@
title: CSS Grid title: CSS Grid
description: Learn how to enable, use, and customize our alternate layout system built on CSS Grid with examples and code snippets. description: Learn how to enable, use, and customize our alternate layout system built on CSS Grid with examples and code snippets.
toc: true toc: true
added:
version: "5.1"
--- ---
Bootstraps default grid system represents the culmination of over a decade of CSS layout techniques, tried and tested by millions of people. But, it was also created without many of the modern CSS features and techniques were seeing in browsers like the new CSS Grid. Bootstraps default grid system represents the culmination of over a decade of CSS layout techniques, tried and tested by millions of people. But, it was also created without many of the modern CSS features and techniques were seeing in browsers like the new CSS Grid.

View File

@@ -42,8 +42,6 @@ Do you need a gradient in your custom CSS? Just add `background-image: var(--bs-
## Opacity ## Opacity
<AddedIn version="5.1.0" />
As of v5.1.0, `background-color` utilities are generated with Sass using CSS variables. This allows for real-time color changes without compilation and dynamic alpha transparency changes. As of v5.1.0, `background-color` utilities are generated with Sass using CSS variables. This allows for real-time color changes without compilation and dynamic alpha transparency changes.
### How it works ### How it works

View File

@@ -62,8 +62,6 @@ Or modify the default `border-color` of a component:
## Opacity ## Opacity
<AddedIn version="5.2.0" />
Bootstrap `border-{color}` utilities are generated with Sass using CSS variables. This allows for real-time color changes without compilation and dynamic alpha transparency changes. Bootstrap `border-{color}` utilities are generated with Sass using CSS variables. This allows for real-time color changes without compilation and dynamic alpha transparency changes.
### How it works ### How it works
@@ -135,8 +133,6 @@ Use the scaling classes for larger or smaller rounded corners. Sizes range from
### Variables ### Variables
<AddedIn version="5.2.0" />
<ScssDocs name="root-border-var" file="scss/_root.scss" /> <ScssDocs name="root-border-var" file="scss/_root.scss" />
### Sass variables ### Sass variables

View File

@@ -31,8 +31,6 @@ Color utilities like `.text-*` that generated from our original `$theme-colors`
## Opacity ## Opacity
<AddedIn version="5.1.0" />
As of v5.1.0, text color utilities are generated with Sass using CSS variables. This allows for real-time color changes without compilation and dynamic alpha transparency changes. As of v5.1.0, text color utilities are generated with Sass using CSS variables. This allows for real-time color changes without compilation and dynamic alpha transparency changes.
### How it works ### How it works

View File

@@ -2,8 +2,6 @@
title: Link title: Link
description: Link utilities are used to stylize your anchors to adjust their color, opacity, underline offset, underline color, and more. description: Link utilities are used to stylize your anchors to adjust their color, opacity, underline offset, underline color, and more.
toc: true toc: true
added:
version: "5.3"
--- ---
import { getData } from '@libs/data' import { getData } from '@libs/data'

View File

@@ -2,8 +2,6 @@
title: Object fit title: Object fit
description: Use the object fit utilities to modify how the content of a <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/Replaced_element" target="_blank" rel="noopener noreferrer">replaced element</a>, such as an `<img>` or `<video>`, should be resized to fit its container. description: Use the object fit utilities to modify how the content of a <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/Replaced_element" target="_blank" rel="noopener noreferrer">replaced element</a>, such as an `<img>` or `<video>`, should be resized to fit its container.
toc: true toc: true
added:
version: "5.3"
--- ---
## How it works ## How it works

View File

@@ -1,8 +1,6 @@
--- ---
title: Opacity title: Opacity
description: Control the opacity of elements. description: Control the opacity of elements.
added:
version: "5.1"
--- ---
The `opacity` property sets the opacity level for an element. The opacity level describes the transparency level, where `1` is not transparent at all, `.5` is 50% visible, and `0` is completely transparent. The `opacity` property sets the opacity level for an element. The opacity level describes the transparency level, where `1` is not transparent at all, `.5` is 50% visible, and `0` is completely transparent.

View File

@@ -2,8 +2,6 @@
title: Z-index title: Z-index
description: Use our low-level `z-index` utilities to quickly change the stack level of an element or component. description: Use our low-level `z-index` utilities to quickly change the stack level of an element or component.
toc: true toc: true
added:
version: "5.3"
--- ---
## Example ## Example

View File

@@ -8,6 +8,7 @@
export declare global { export declare global {
export const AddedIn: typeof import('@shortcodes/AddedIn.astro').default export const AddedIn: typeof import('@shortcodes/AddedIn.astro').default
export const BsTable: typeof import('@shortcodes/BsTable.astro').default export const BsTable: typeof import('@shortcodes/BsTable.astro').default
export const CSSVariables: typeof import('@shortcodes/CSSVariables.astro').default
export const Callout: typeof import('@shortcodes/Callout.astro').default export const Callout: typeof import('@shortcodes/Callout.astro').default
export const CalloutDeprecatedDarkVariants: typeof import('@shortcodes/CalloutDeprecatedDarkVariants.astro').default export const CalloutDeprecatedDarkVariants: typeof import('@shortcodes/CalloutDeprecatedDarkVariants.astro').default
export const Code: typeof import('@shortcodes/Code.astro').default export const Code: typeof import('@shortcodes/Code.astro').default