aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartijn Cuppens <[email protected]>2019-10-03 09:43:45 +0200
committerXhmikosR <[email protected]>2019-10-14 12:12:05 +0300
commitd521e147f94a4c2492c7eee6bd4ceeb487fe721f (patch)
treea51f81c087e4141746f9ecb2d06f12465a7fa071
parentf47243460e58a56a2bad9ab852abe2ae47bdf5b8 (diff)
downloadbootstrap-d521e147f94a4c2492c7eee6bd4ceeb487fe721f.tar.xz
bootstrap-d521e147f94a4c2492c7eee6bd4ceeb487fe721f.zip
Fix border for single card in accordion (#29453)
-rw-r--r--scss/_card.scss18
1 files changed, 4 insertions, 14 deletions
diff --git a/scss/_card.scss b/scss/_card.scss
index c23568f37..313a0f80d 100644
--- a/scss/_card.scss
+++ b/scss/_card.scss
@@ -266,27 +266,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;
}
}