Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Déramond <julien.deramond@orange.com>2022-07-25 20:11:44 +0300
committerGitHub <noreply@github.com>2022-07-25 20:11:44 +0300
commit99cd8ca8a0f2cb0db8276316943fdd1a2199e791 (patch)
tree61682ebc3006f7e253f4a77be24df0692eb68d4a
parente547c9c2e90549ffec84b8c2c293770c5c213e39 (diff)
Docs: use added-in shortcode in Offcanvas (#36836)
-rw-r--r--site/content/docs/5.2/components/offcanvas.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/site/content/docs/5.2/components/offcanvas.md b/site/content/docs/5.2/components/offcanvas.md
index 39a5fb826d..ffe69a8986 100644
--- a/site/content/docs/5.2/components/offcanvas.md
+++ b/site/content/docs/5.2/components/offcanvas.md
@@ -155,7 +155,7 @@ When backdrop is set to static, the offcanvas will not close when clicking outsi
## Responsive
-<small class="d-inline-flex px-2 py-1 fw-semibold text-success bg-success bg-opacity-10 rounded-2">Added in v5.2.0</small>
+{{< added-in "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.
@@ -245,7 +245,7 @@ Since the offcanvas panel is conceptually a modal dialog, be sure to add `aria-l
### Variables
-<small class="d-inline-flex px-2 py-1 fw-semibold text-success bg-success bg-opacity-10 rounded-2">Added in v5.2.0</small>
+{{< added-in "5.2.0" >}}
As part of Bootstrap's 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.