diff options
author | Martijn Cuppens <martijn.cuppens@gmail.com> | 2018-12-23 10:19:07 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2018-12-23 10:19:07 +0300 |
commit | 81e35985b8edf38422d2057f903d9134a1083e17 (patch) | |
tree | 01d8c2358dab0142253a20f52cfe35650318d80c /scss | |
parent | 39b14c980678279c20aa63591bebdf0f974d7a71 (diff) |
Simplify card group css (#27901)
Diffstat (limited to 'scss')
-rw-r--r-- | scss/_card.scss | 28 |
1 files changed, 2 insertions, 26 deletions
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); - } - } } } } |