Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap-rubygem.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Mazovetskiy <glex.spb@gmail.com>2018-04-16 14:37:20 +0300
committerGleb Mazovetskiy <glex.spb@gmail.com>2018-04-16 14:37:20 +0300
commit5a78819c01c9d6fae1216fa94a7f64a353afad05 (patch)
tree87dad69c30a60701c4dcb01e9935138acf0201b9 /assets/stylesheets/bootstrap/_card.scss
parentfad13e5e60e6ece5223e1b66d498716a0d70b1cd (diff)
rake update[v4.1.0]
Diffstat (limited to 'assets/stylesheets/bootstrap/_card.scss')
-rw-r--r--assets/stylesheets/bootstrap/_card.scss35
1 files changed, 33 insertions, 2 deletions
diff --git a/assets/stylesheets/bootstrap/_card.scss b/assets/stylesheets/bootstrap/_card.scss
index 4c4845c..28d7e62 100644
--- a/assets/stylesheets/bootstrap/_card.scss
+++ b/assets/stylesheets/bootstrap/_card.scss
@@ -153,7 +153,7 @@
.card {
display: flex;
- // Flexbugs #4: https://github.com/philipwalton/flexbugs#4-flex-shorthand-declarations-with-unitless-flex-basis-values-are-ignored
+ // Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4
flex: 1 0 0%;
flex-direction: column;
margin-right: $card-deck-margin;
@@ -183,7 +183,7 @@
// The child selector allows nested `.card` within `.card-group`
// to display properly.
> .card {
- // Flexbugs #4: https://github.com/philipwalton/flexbugs#4-flex-shorthand-declarations-with-unitless-flex-basis-values-are-ignored
+ // Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4
flex: 1 0 0%;
margin-bottom: 0;
@@ -261,6 +261,8 @@
@include media-breakpoint-up(sm) {
column-count: $card-columns-count;
column-gap: $card-columns-gap;
+ orphans: 1;
+ widows: 1;
.card {
display: inline-block; // Don't let them vertically span multiple columns
@@ -268,3 +270,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;
+ }
+}