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:
Diffstat (limited to 'assets/stylesheets/bootstrap/_card.scss')
-rw-r--r--assets/stylesheets/bootstrap/_card.scss41
1 files changed, 35 insertions, 6 deletions
diff --git a/assets/stylesheets/bootstrap/_card.scss b/assets/stylesheets/bootstrap/_card.scss
index 3982f6e..856d6c6 100644
--- a/assets/stylesheets/bootstrap/_card.scss
+++ b/assets/stylesheets/bootstrap/_card.scss
@@ -7,8 +7,10 @@
display: block;
margin-bottom: $card-spacer-y;
background-color: $card-bg;
- border: $card-border-width solid $card-border-color;
+ // border: $card-border-width solid $card-border-color;
@include border-radius($card-border-radius);
+ // Doesn't use mixin so that cards always have a "border"
+ box-shadow: inset 0 0 0 $card-border-width $card-border-color;
}
.card-block {
@@ -51,13 +53,15 @@
.card {
> .list-group:first-child {
.list-group-item:first-child {
- border-radius: $card-border-radius $card-border-radius 0 0;
+ border-top-left-radius: $card-border-radius;
+ border-top-right-radius: $card-border-radius;
}
}
> .list-group:last-child {
.list-group-item:last-child {
- border-radius: 0 0 $card-border-radius $card-border-radius;
+ border-bottom-right-radius: $card-border-radius;
+ border-bottom-left-radius: $card-border-radius;
}
}
}
@@ -72,7 +76,9 @@
@include clearfix;
padding: $card-spacer-y $card-spacer-x;
background-color: $card-cap-bg;
- border-bottom: $card-border-width solid $card-border-color;
+ // border-bottom: $card-border-width solid $card-border-color;
+ // Doesn't use mixin so that cards always have a "border"
+ box-shadow: inset 0 0 0 $card-border-width $card-border-color;
&:first-child {
@include border-radius($card-border-radius-inner $card-border-radius-inner 0 0);
@@ -83,7 +89,9 @@
@include clearfix;
padding: $card-spacer-y $card-spacer-x;
background-color: $card-cap-bg;
- border-top: $card-border-width solid $card-border-color;
+ // border-top: $card-border-width solid $card-border-color;
+ // Doesn't use mixin so that cards always have a "border"
+ box-shadow: inset 0 0 0 $card-border-width $card-border-color;
&:last-child {
@include border-radius(0 0 $card-border-radius-inner $card-border-radius-inner);
@@ -92,6 +100,27 @@
//
+// Header navs
+//
+
+.card-header-tabs {
+ margin-right: -($card-spacer-x / 2);
+ margin-bottom: -$card-spacer-y;
+ margin-left: -($card-spacer-x / 2);
+ border-bottom: 0;
+
+ .nav-item {
+ margin-bottom: 0;
+ }
+}
+
+.card-header-pills {
+ margin-right: -($card-spacer-x / 2);
+ margin-left: -($card-spacer-x / 2);
+}
+
+
+//
// Background variations
//
@@ -286,7 +315,7 @@
@include media-breakpoint-up(sm) {
.card-columns {
column-count: 3;
- column-gap: 1.25rem;
+ column-gap: $card-columns-sm-up-column-gap;
.card {
display: inline-block;