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-12-20 14:41:25 +0300
committerGleb Mazovetskiy <glex.spb@gmail.com>2018-12-20 14:41:25 +0300
commit4192f905e57968d24d0d3fbb7bd1c091a41aaeb4 (patch)
tree1f978bbe9b6d78be9a4d728c43f7e0d2dab2c16b /assets/stylesheets/bootstrap/_card.scss
parent804e3dd5a00f2994409b1bf845f1fa5f073210ec (diff)
rake update[v4-dev]
Diffstat (limited to 'assets/stylesheets/bootstrap/_card.scss')
-rw-r--r--assets/stylesheets/bootstrap/_card.scss51
1 files changed, 30 insertions, 21 deletions
diff --git a/assets/stylesheets/bootstrap/_card.scss b/assets/stylesheets/bootstrap/_card.scss
index 28d7e62..377bec0 100644
--- a/assets/stylesheets/bootstrap/_card.scss
+++ b/assets/stylesheets/bootstrap/_card.scss
@@ -43,7 +43,7 @@
}
.card-subtitle {
- margin-top: -($card-spacer-y / 2);
+ margin-top: -$card-spacer-y / 2;
margin-bottom: 0;
}
@@ -68,6 +68,7 @@
.card-header {
padding: $card-spacer-y $card-spacer-x;
margin-bottom: 0; // Removes the default margin-bottom of <hN>
+ color: $card-cap-color;
background-color: $card-cap-bg;
border-bottom: $card-border-width solid $card-border-color;
@@ -98,15 +99,15 @@
//
.card-header-tabs {
- margin-right: -($card-spacer-x / 2);
+ margin-right: -$card-spacer-x / 2;
margin-bottom: -$card-spacer-y;
- margin-left: -($card-spacer-x / 2);
+ margin-left: -$card-spacer-x / 2;
border-bottom: 0;
}
.card-header-pills {
- margin-right: -($card-spacer-x / 2);
- margin-left: -($card-spacer-x / 2);
+ margin-right: -$card-spacer-x / 2;
+ margin-left: -$card-spacer-x / 2;
}
// Card image
@@ -277,25 +278,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;
+ }
}
}