diff options
author | Mark Otto <markdotto@gmail.com> | 2018-02-20 02:04:55 +0300 |
---|---|---|
committer | Mark Otto <markdotto@gmail.com> | 2018-02-20 02:04:55 +0300 |
commit | 982aeea1f7a27109d60baf07adcc73cd08742939 (patch) | |
tree | 8f903860dde80370d5f464a227e9f14d2fd2ec0a /scss | |
parent | 6a52ebfe1a7c7409d308d1c87c088b770a845e88 (diff) | |
parent | c0246e926f0e9e955f34b34286f97cc201582ba1 (diff) |
Merge branch 'accordion-borders' of https://github.com/andresgalante/bootstrap into v4-dev
Diffstat (limited to 'scss')
-rw-r--r-- | scss/_card.scss | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/scss/_card.scss b/scss/_card.scss index 4c4845c0bb..c4b9a725da 100644 --- a/scss/_card.scss +++ b/scss/_card.scss @@ -268,3 +268,32 @@ } } } + + +// +// Accordion +// + +.accordion { + .card:not(:first-of-type):not(:last-of-type) { + border-bottom: 0; + border-radius: 0; + } + + .card:not(:first-of-type) { + .card-header:first-child { + border-radius: 0; + } + } + + .card: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; + } +} |