diff options
| author | Martijn Cuppens <[email protected]> | 2019-10-03 09:43:45 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-10-03 09:43:45 +0200 |
| commit | 393ddae09b0578c8d381540bdbb4e68cdec1b45b (patch) | |
| tree | 0200b28fd9f8ed7aa3d6fc7f74fdce8389cd35ec | |
| parent | 03c9788f7a0293beef328c004b124f4433c3c64d (diff) | |
| download | bootstrap-393ddae09b0578c8d381540bdbb4e68cdec1b45b.tar.xz bootstrap-393ddae09b0578c8d381540bdbb4e68cdec1b45b.zip | |
Fix border for single card in accordion (#29453)
| -rw-r--r-- | scss/_card.scss | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/scss/_card.scss b/scss/_card.scss index d055ca310..542220b40 100644 --- a/scss/_card.scss +++ b/scss/_card.scss @@ -245,27 +245,17 @@ > .card { overflow: hidden; - &:not(:first-of-type) { - .card-header:first-child { - @include border-radius(0); - } - - &:not(:last-of-type) { - border-bottom: 0; - @include border-radius(0); - } - } - - &:first-of-type:not(:last-of-type) { + &:not(:last-of-type) { border-bottom: 0; @include border-bottom-radius(0); } - &:last-of-type { + &:not(:first-of-type) { @include border-top-radius(0); } - .card-header { + > .card-header { + @include border-radius(0); margin-bottom: -$card-border-width; } } |
