From: Andres Galante Date: Tue, 10 Oct 2017 22:18:56 +0000 (-0300) Subject: Add border radius to an image when it's the only card of a card group (#24321) X-Git-Tag: v4.0.0-beta.2~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=776188ad73769884825ae8805f9a62547a8dd461;p=thirdparty%2Fbootstrap.git Add border radius to an image when it's the only card of a card group (#24321) --- diff --git a/scss/_card.scss b/scss/_card.scss index b4d4950dc9..a739f19355 100644 --- a/scss/_card.scss +++ b/scss/_card.scss @@ -215,6 +215,13 @@ &:only-child { @include border-radius($card-border-radius); + + .card-img-top { + @include border-top-radius($card-border-radius); + } + .card-img-bottom { + @include border-bottom-radius($card-border-radius); + } } &:not(:first-child):not(:last-child):not(:only-child) {