Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <markdotto@gmail.com>2016-12-23 03:40:58 +0300
committerMark Otto <markdotto@gmail.com>2016-12-23 03:40:58 +0300
commit8d3b40211bed5911ec4a97695a4960921426b71e (patch)
treec77d58d4387fc1006f8cbbf3de2f01f3699ccef7 /scss/_card.scss
parent390a2a6c6043cb794c63b49e5e7b898e72ec4aba (diff)
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
Diffstat (limited to 'scss/_card.scss')
-rw-r--r--scss/_card.scss7
1 files changed, 3 insertions, 4 deletions
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;
- }
}
}