From: SpicyDwarf Date: Mon, 25 Sep 2017 21:11:32 +0000 (+1000) Subject: Fix no rounded corners if there is only one card in a card-group (#24080) X-Git-Tag: v4.0.0-beta.2~227 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=272745673eab4d7cf7264ad8499f4553ceac6649;p=thirdparty%2Fbootstrap.git Fix no rounded corners if there is only one card in a card-group (#24080) --- diff --git a/scss/_card.scss b/scss/_card.scss index 40fa425107..b652794788 100644 --- a/scss/_card.scss +++ b/scss/_card.scss @@ -207,7 +207,7 @@ } } - &:not(:first-child):not(:last-child) { + &:not(:first-child):not(:last-child):not(:only-child) { border-radius: 0; .card-img-top, @@ -215,6 +215,10 @@ border-radius: 0; } } + + &:only-child { + @include border-radius($card-border-radius); + } } } }