]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
clip to border-box, update overlay
authorMark Otto <markdotto@gmail.com>
Fri, 30 Jun 2017 22:28:50 +0000 (15:28 -0700)
committerMark Otto <markdotto@gmail.com>
Fri, 30 Jun 2017 22:28:50 +0000 (15:28 -0700)
docs/4.0/components/card.md
scss/_card.scss

index 799d0bcbc9cd12d513deaf0736db622ee662fc20..28483fc1371c243f47a224db7022259ee3694c99 100644 (file)
@@ -352,7 +352,7 @@ Similar to headers and footers, cards can include top and bottom "image caps"—
 Turn an image into a card background and overlay your card's text. Depending on the image, you may or may not need additional styles or utilities.
 
 {% example html %}
-<div class="card text-white">
+<div class="card bg-dark text-white">
   <img class="card-img" data-src="holder.js/100px270/#55595c:#373a3c/text:Card image" alt="Card image">
   <div class="card-img-overlay">
     <h4 class="card-title">Card title</h4>
index c3bda78cdca410d4036b802de40c0e20e5fbb363..1ab85a4ec22981c455d6bb63a0fc52c4bedca55a 100644 (file)
@@ -9,6 +9,7 @@
   min-width: 0;
   word-wrap: break-word;
   background-color: $card-bg;
+  background-clip: border-box;
   border: $card-border-width solid $card-border-color;
   @include border-radius($card-border-radius);
 }