From: Mark Otto Date: Fri, 23 Dec 2016 00:40:58 +0000 (-0800) Subject: move the card-block flex action up to all card-blocks X-Git-Tag: v4.0.0-alpha.6~235^2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d3b40211bed5911ec4a97695a4960921426b71e;p=thirdparty%2Fbootstrap.git move the card-block flex action up to all card-blocks this allows us to easily scale card blocks in groups and decks, without repeating it in our css --- diff --git a/scss/_card.scss b/scss/_card.scss index f4fca4c373..9c38480e7a 100644 --- a/scss/_card.scss +++ b/scss/_card.scss @@ -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; } @@ -204,10 +207,6 @@ margin-bottom: 0; // Margin balancing margin-left: $card-deck-margin; } - - .card-block { - flex-grow: 1; - } } }