From: Martijn Cuppens Date: Sun, 23 Dec 2018 07:19:07 +0000 (+0100) Subject: Simplify card group css (#27901) X-Git-Tag: v4.3.0~143 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81e35985b8edf38422d2057f903d9134a1083e17;p=thirdparty%2Fbootstrap.git Simplify card group css (#27901) --- diff --git a/scss/_card.scss b/scss/_card.scss index bbdb15bce5..9ed6ee129a 100644 --- a/scss/_card.scss +++ b/scss/_card.scss @@ -195,7 +195,7 @@ // Handle rounded corners @if $enable-rounded { - &:first-child { + &:not(:last-child) { @include border-right-radius(0); .card-img-top, @@ -210,7 +210,7 @@ } } - &:last-child { + &:not(:first-child) { @include border-left-radius(0); .card-img-top, @@ -224,30 +224,6 @@ border-bottom-left-radius: 0; } } - - &:only-child { - @include border-radius($card-border-radius); - - .card-img-top, - .card-header { - @include border-top-radius($card-border-radius); - } - .card-img-bottom, - .card-footer { - @include border-bottom-radius($card-border-radius); - } - } - - &:not(:first-child):not(:last-child):not(:only-child) { - @include border-radius(0); - - .card-img-top, - .card-img-bottom, - .card-header, - .card-footer { - @include border-radius(0); - } - } } } }