]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add .rounded-0 utility class (#21214)
authorKen Dale <ken@kendaleiv.com>
Sun, 27 Nov 2016 00:47:53 +0000 (19:47 -0500)
committerMark Otto <markd.otto@gmail.com>
Sun, 27 Nov 2016 00:47:53 +0000 (16:47 -0800)
* Add rounded-0 class

docs/utilities/borders.md
scss/utilities/_borders.scss

index 0088a28275b1e3a6196c877e9ab6eb53bdcf4b22..1eb716c1f9c6f231a308abba655a8df956e0cb8d 100644 (file)
@@ -25,12 +25,13 @@ Add classes to an element to remove all borders or some borders.
 Add classes to an element to easily round its corners.
 
 <div class="bd-example bd-example-images">
-  <img data-src="holder.js/100x100" class="rounded" alt="Example rounded image">
-  <img data-src="holder.js/100x100" class="rounded-top" alt="Example top rounded image">
-  <img data-src="holder.js/100x100" class="rounded-right" alt="Example right rounded image">
-  <img data-src="holder.js/100x100" class="rounded-bottom" alt="Example bottom rounded image">
-  <img data-src="holder.js/100x100" class="rounded-left" alt="Example left rounded image">
-  <img data-src="holder.js/100x100" class="rounded-circle" alt="Completely round image">
+  <img data-src="holder.js/75x75" class="rounded" alt="Example rounded image">
+  <img data-src="holder.js/75x75" class="rounded-top" alt="Example top rounded image">
+  <img data-src="holder.js/75x75" class="rounded-right" alt="Example right rounded image">
+  <img data-src="holder.js/75x75" class="rounded-bottom" alt="Example bottom rounded image">
+  <img data-src="holder.js/75x75" class="rounded-left" alt="Example left rounded image">
+  <img data-src="holder.js/75x75" class="rounded-circle" alt="Completely round image">
+  <img data-src="holder.js/75x75" class="rounded-0" alt="Example non-rounded image (overrides rounding applied elsewhere)">
 </div>
 
 {% highlight html %}
@@ -40,4 +41,5 @@ Add classes to an element to easily round its corners.
 <img src="..." alt="..." class="rounded-bottom">
 <img src="..." alt="..." class="rounded-left">
 <img src="..." alt="..." class="rounded-circle">
+<img src="..." alt="..." class="rounded-0">
 {% endhighlight %}
index e3e31de4bf810ba3db5ecbc6c219aa86cffcf148..015c9b943bd69a0e10f8f4c98c3375e93db321f6 100644 (file)
@@ -31,3 +31,7 @@
 .rounded-circle {
   border-radius: 50%;
 }
+
+.rounded-0 {
+  border-radius: 0;
+}