aboutsummaryrefslogtreecommitdiff
path: root/scss
diff options
context:
space:
mode:
authorRoy Klutman <[email protected]>2018-10-21 08:49:05 +0200
committerXhmikosR <[email protected]>2018-10-21 09:49:05 +0300
commitfccdda544816202d1c02df673e528bb5a22f0484 (patch)
treeda90298b3c596e39be8756d91e9439f38f409949 /scss
parentbc2a98522d80b98431990347711789fb59faa7a9 (diff)
downloadbootstrap-fccdda544816202d1c02df673e528bb5a22f0484.tar.xz
bootstrap-fccdda544816202d1c02df673e528bb5a22f0484.zip
Fix for double border on cards in an accordion (#27133)
Diffstat (limited to 'scss')
-rw-r--r--scss/_card.scss40
1 files changed, 24 insertions, 16 deletions
diff --git a/scss/_card.scss b/scss/_card.scss
index 28d7e6244..fcae56d63 100644
--- a/scss/_card.scss
+++ b/scss/_card.scss
@@ -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;
+ }
}
}