Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartijn Cuppens <martijn.cuppens@gmail.com>2019-10-03 10:43:45 +0300
committerXhmikosR <xhmikosr@gmail.com>2019-10-14 12:12:05 +0300
commitd521e147f94a4c2492c7eee6bd4ceeb487fe721f (patch)
treea51f81c087e4141746f9ecb2d06f12465a7fa071
parentf47243460e58a56a2bad9ab852abe2ae47bdf5b8 (diff)
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 c23568f37b..313a0f80d7 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;
}
}