]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
move the card-block flex action up to all card-blocks
authorMark Otto <markdotto@gmail.com>
Fri, 23 Dec 2016 00:40:58 +0000 (16:40 -0800)
committerMark Otto <markdotto@gmail.com>
Fri, 23 Dec 2016 00:40:58 +0000 (16:40 -0800)
this allows us to easily scale card blocks in groups and decks, without repeating it in our css

scss/_card.scss

index f4fca4c3736363189406eb788b2e7463ea51e5c9..9c38480e7a5b6e83c8abdfaa0556bdeec873c1c0 100644 (file)
@@ -12,6 +12,9 @@
 }
 
 .card-block {
+  // Enable `flex-grow: 1` for decks and groups so that card blocks take up
+  // as much space as possible, ensuring footers are aligned to the bottom.
+  flex: 1 1 auto;
   padding: $card-spacer-x;
 }
 
       margin-bottom: 0; // Margin balancing
       margin-left: $card-deck-margin;
     }
-
-    .card-block {
-      flex-grow: 1;
-    }
   }
 }