]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Update card header and footer
authorMark Otto <markdotto@gmail.com>
Thu, 12 May 2016 03:22:07 +0000 (20:22 -0700)
committerMark Otto <markdotto@gmail.com>
Thu, 12 May 2016 03:22:07 +0000 (20:22 -0700)
- Remove the box-shadow and switch back to border to match .card basics
- Update the header nav margin override--since we restored the border, we need that default negative margin at the bottom

scss/_card.scss

index 0b6a0aa030c727238e4cae6f4ecb16db5eaf3fb7..fdc5998de5835d1466f1e668febc5d8d9b89186c 100644 (file)
@@ -71,9 +71,7 @@
   @include clearfix;
   padding: $card-spacer-y $card-spacer-x;
   background-color: $card-cap-bg;
-  // 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;
+  border-bottom: $card-border-width solid $card-border-color;
 
   &:first-child {
     @include border-radius($card-border-radius-inner $card-border-radius-inner 0 0);
@@ -84,9 +82,7 @@
   @include clearfix;
   padding: $card-spacer-y $card-spacer-x;
   background-color: $card-cap-bg;
-  // 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;
+  border-top: $card-border-width solid $card-border-color;
 
   &:last-child {
     @include border-radius(0 0 $card-border-radius-inner $card-border-radius-inner);
   margin-bottom: -$card-spacer-y;
   margin-left: -($card-spacer-x / 2);
   border-bottom: 0;
-
-  .nav-item {
-    margin-bottom: 0;
-  }
 }
 
 .card-header-pills {