]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Remove card decks in favor of the grid
authorMartijn Cuppens <martijn.cuppens@gmail.com>
Sat, 16 Nov 2019 11:49:38 +0000 (12:49 +0100)
committerMartijn Cuppens <martijn.cuppens@gmail.com>
Tue, 10 Mar 2020 19:30:29 +0000 (20:30 +0100)
scss/_card.scss
scss/_variables.scss
site/content/docs/4.3/migration.md

index 510fbcea1e5a5cb995443d3bdf3a725e92320569..132f79e1ebf5e975a3022adb6afca3ab3728b91e 100644 (file)
 }
 
 
-// Card deck
-
-.card-deck {
-  .card {
-    margin-bottom: $card-deck-margin;
-  }
-
-  @include media-breakpoint-up(sm) {
-    display: flex;
-    flex-flow: row wrap;
-    margin-right: -$card-deck-margin;
-    margin-left: -$card-deck-margin;
-
-    .card {
-      // Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4
-      flex: 1 0 0%;
-      margin-right: $card-deck-margin;
-      margin-bottom: 0; // Override the default
-      margin-left: $card-deck-margin;
-    }
-  }
-}
-
-
 //
 // Card groups
 //
index 624cb2bd223566109869b8c61c124f6fe6644225..037981d7ea8e2b09d892207348b40da06b2db9a5 100644 (file)
@@ -929,7 +929,6 @@ $card-bg:                           $white !default;
 $card-img-overlay-padding:          1.25rem !default;
 
 $card-group-margin:                 $grid-gutter-width / 2 !default;
-$card-deck-margin:                  $card-group-margin !default;
 
 
 // Tooltips
index a12ea277d3bfd0a05985717a0109fa82b65f1041..91d4bf20cccd553bc813c99bbef684bf9c5397cc 100644 (file)
@@ -121,6 +121,7 @@ Badges were overhauled to better differentiate themselves from buttons and to be
 ### Cards
 
 - Removed the card columns in favor of a Masonry grid [See #28922](https://github.com/twbs/bootstrap/pull/28922).
+- Removed card decks in favor of the grid which adds more flexibility over responsive behaviour.
 
 ### Jumbotron