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); - } - } } } }