diff options
| author | Christopher Morrissey <[email protected]> | 2020-02-14 01:22:10 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-02-13 22:22:10 -0800 |
| commit | 7fd6dd9d58e2b2dac5c8ad69ea21aad70c019131 (patch) | |
| tree | e270f9e2f6eaa857d1c7b6c428869769bc15cbe6 | |
| parent | f2aeea6927a78012331476251e188dc7a019648c (diff) | |
| download | bootstrap-7fd6dd9d58e2b2dac5c8ad69ea21aad70c019131.tar.xz bootstrap-7fd6dd9d58e2b2dac5c8ad69ea21aad70c019131.zip | |
v5 docs: added wrapping class for rounded utils (#29379)
* Added wrapping class for rounded utils
Tweak /utilities/borders/#border-radius #29343
* Remove the extra div.
Co-authored-by: XhmikosR <[email protected]>
| -rw-r--r-- | site/assets/scss/_component-examples.scss | 6 | ||||
| -rw-r--r-- | site/content/docs/4.3/utilities/borders.md | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/site/assets/scss/_component-examples.scss b/site/assets/scss/_component-examples.scss index 492d19ecc..0122a4386 100644 --- a/site/assets/scss/_component-examples.scss +++ b/site/assets/scss/_component-examples.scss @@ -224,6 +224,12 @@ } } +.bd-example-rounded-utils { + [class*="rounded"] { + margin: .25rem; + } +} + // // Code snippets // diff --git a/site/content/docs/4.3/utilities/borders.md b/site/content/docs/4.3/utilities/borders.md index 8264e7740..5cf1ed29d 100644 --- a/site/content/docs/4.3/utilities/borders.md +++ b/site/content/docs/4.3/utilities/borders.md @@ -47,7 +47,7 @@ Change the border color using utilities built on our theme colors. Add classes to an element to easily round its corners. -{{< example >}} +{{< example class="bd-example-rounded-utils" >}} {{< placeholder width="75" height="75" class="rounded" title="Example rounded image" >}} {{< placeholder width="75" height="75" class="rounded-top" title="Example top rounded image" >}} {{< placeholder width="75" height="75" class="rounded-right" title="Example right rounded image" >}} @@ -63,7 +63,7 @@ Add classes to an element to easily round its corners. Use `.rounded-lg` or `.rounded-sm` for larger or smaller border-radius. -{{< example >}} +{{< example class="bd-example-rounded-utils" >}} {{< placeholder width="75" height="75" class="rounded-sm" title="Example small rounded image" >}} {{< placeholder width="75" height="75" class="rounded-lg" title="Example large rounded image" >}} {{< /example >}} |
