Skip to content

Commit

Permalink
Fix for double border on cards in an accordion (#27133)
Browse files Browse the repository at this point in the history
  • Loading branch information
royklutman authored and XhmikosR committed Oct 21, 2018
1 parent bc2a985 commit fccdda5
Showing 1 changed file with 24 additions and 16 deletions.
40 changes: 24 additions & 16 deletions scss/_card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -277,25 +277,33 @@
//

.accordion {
.card:not(:first-of-type):not(:last-of-type) {
border-bottom: 0;
border-radius: 0;
}
.card {
overflow: hidden;

&:not(:first-of-type) {
.card-header:first-child {
border-radius: 0;
}

.card:not(:first-of-type) {
.card-header:first-child {
border-radius: 0;
&:not(:last-of-type) {
border-bottom: 0;
border-radius: 0;
}
}
}

.card:first-of-type {
border-bottom: 0;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}
&:first-of-type {
border-bottom: 0;
border-bottom-right-radius: 0;
border-bottom-left-radius: 0;
}

.card:last-of-type {
border-top-left-radius: 0;
border-top-right-radius: 0;
&:last-of-type {
border-top-left-radius: 0;
border-top-right-radius: 0;
}

.card-header {
margin-bottom: -$card-border-width;
}
}
}

0 comments on commit fccdda5

Please sign in to comment.