diff --git a/site/assets/scss/_component-examples.scss b/site/assets/scss/_component-examples.scss index 6c6cc677f9..25385cf8e0 100644 --- a/site/assets/scss/_component-examples.scss +++ b/site/assets/scss/_component-examples.scss @@ -134,7 +134,7 @@ background-color: rgba(var(--bd-violet-rgb), .15); } -.bd-example-flex div { +.bd-example-flex div:not(.vr) { background-color: rgba(var(--bd-violet-rgb), .15); border: 1px solid rgba(var(--bd-violet-rgb), .3); } diff --git a/site/content/docs/5.3/helpers/stacks.md b/site/content/docs/5.3/helpers/stacks.md index b8133ba454..2be6b30b4c 100644 --- a/site/content/docs/5.3/helpers/stacks.md +++ b/site/content/docs/5.3/helpers/stacks.md @@ -17,11 +17,11 @@ Heads up! Support for gap utilities with flexbox was recently added to Safari, s Use `.vstack` to create vertical layouts. Stacked items are full-width by default. Use `.gap-*` utilities to add space between items. -{{< example >}} +{{< example class="bd-example-flex" >}}
-
First item
-
Second item
-
Third item
+
First item
+
Second item
+
Third item
{{< /example >}} @@ -29,32 +29,32 @@ Use `.vstack` to create vertical layouts. Stacked items are full-width by defaul Use `.hstack` for horizontal layouts. Stacked items are vertically centered by default and only take up their necessary width. Use `.gap-*` utilities to add space between items. -{{< example >}} +{{< example class="bd-example-flex" >}}
-
First item
-
Second item
-
Third item
+
First item
+
Second item
+
Third item
{{< /example >}} Using horizontal margin utilities like `.ms-auto` as spacers: -{{< example >}} +{{< example class="bd-example-flex" >}}
-
First item
-
Second item
-
Third item
+
First item
+
Second item
+
Third item
{{< /example >}} And with [vertical rules]({{< docsref "/helpers/vertical-rule" >}}): -{{< example >}} +{{< example class="bd-example-flex" >}}
-
First item
-
Second item
+
First item
+
Second item
-
Third item
+
Third item
{{< /example >}} diff --git a/site/content/docs/5.3/helpers/vertical-rule.md b/site/content/docs/5.3/helpers/vertical-rule.md index f10a16d08e..334eb3e0a4 100644 --- a/site/content/docs/5.3/helpers/vertical-rule.md +++ b/site/content/docs/5.3/helpers/vertical-rule.md @@ -35,11 +35,11 @@ Vertical rules scale their height in flex layouts: They can also be used in [stacks]({{< docsref "/helpers/stacks" >}}): -{{< example >}} +{{< example class="bd-example-flex" >}}
-
First item
-
Second item
+
First item
+
Second item
-
Third item
+
Third item
{{< /example >}}