From b5f1201c4db35206a294aa3d94c998e800047c3a Mon Sep 17 00:00:00 2001 From: Roy Klutman Date: Sun, 26 Aug 2018 13:53:19 +0200 Subject: [PATCH] Proposed fix for double border on accordion --- scss/_card.scss | 40 ++++++++++++++++++++++++---------------- 1 file changed, 24 insertions(+), 16 deletions(-) diff --git a/scss/_card.scss b/scss/_card.scss index 28d7e624474c..fcae56d630fa 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; + } } }