From 272745673eab4d7cf7264ad8499f4553ceac6649 Mon Sep 17 00:00:00 2001 From: SpicyDwarf Date: Tue, 26 Sep 2017 07:11:32 +1000 Subject: [PATCH] Fix no rounded corners if there is only one card in a card-group (#24080) --- scss/_card.scss | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); + } } } }