]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
v5 docs: added wrapping class for rounded utils (#29379)
authorChristopher Morrissey <morrissey@ingenious.org>
Fri, 14 Feb 2020 06:22:10 +0000 (01:22 -0500)
committerGitHub <noreply@github.com>
Fri, 14 Feb 2020 06:22:10 +0000 (22:22 -0800)
* Added wrapping class for rounded utils

Tweak /utilities/borders/#border-radius #29343

* Remove the extra div.

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
site/assets/scss/_component-examples.scss
site/content/docs/4.3/utilities/borders.md

index 492d19eccc1fbf59de11657d252886756badf1e6..0122a43868251dfecc1ffa811d6e111d35a292ed 100644 (file)
   }
 }
 
+.bd-example-rounded-utils {
+  [class*="rounded"] {
+    margin: .25rem;
+  }
+}
+
 //
 // Code snippets
 //
index 8264e77400de4b07a00543789a6931aed4b24a0f..5cf1ed29db69d28ba40ebd1597707b40b0bd0f97 100644 (file)
@@ -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 >}}