From: Mark Otto Date: Fri, 30 Jun 2017 22:28:50 +0000 (-0700) Subject: clip to border-box, update overlay X-Git-Tag: v4.0.0-beta~89 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88b9e558fbb19fd1a653ced4dd5e1292df8e87c0;p=thirdparty%2Fbootstrap.git clip to border-box, update overlay --- diff --git a/docs/4.0/components/card.md b/docs/4.0/components/card.md index 799d0bcbc9..28483fc137 100644 --- a/docs/4.0/components/card.md +++ b/docs/4.0/components/card.md @@ -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 %} -
+
Card image

Card title

diff --git a/scss/_card.scss b/scss/_card.scss index c3bda78cdc..1ab85a4ec2 100644 --- a/scss/_card.scss +++ b/scss/_card.scss @@ -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); }