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
path: root/scss
diff options
context:
space:
mode:
authorMark Otto <markdotto@gmail.com>2018-02-20 02:04:55 +0300
committerMark Otto <markdotto@gmail.com>2018-02-20 02:04:55 +0300
commit982aeea1f7a27109d60baf07adcc73cd08742939 (patch)
tree8f903860dde80370d5f464a227e9f14d2fd2ec0a /scss
parent6a52ebfe1a7c7409d308d1c87c088b770a845e88 (diff)
parentc0246e926f0e9e955f34b34286f97cc201582ba1 (diff)
Merge branch 'accordion-borders' of https://github.com/andresgalante/bootstrap into v4-dev
Diffstat (limited to 'scss')
-rw-r--r--scss/_card.scss29
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;
+ }
+}