Skip to content

Commit

Permalink
fixes nested cards on card group
Browse files Browse the repository at this point in the history
  • Loading branch information
andresgalante committed Nov 13, 2017
1 parent 9a0bba9 commit 1a9956c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scss/_card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,17 @@
display: flex;
flex-direction: column;

.card {
// The child selector allows nested `.card` within `.card-group`
// to display properly.
> .card {
margin-bottom: $card-group-margin;
}

@include media-breakpoint-up(sm) {
flex-flow: row wrap;

.card {
// The child selector allows nested `.card` within `.card-group`
// to display properly.
> .card {
// Flexbugs #4: https://github.com/philipwalton/flexbugs#4-flex-shorthand-declarations-with-unitless-flex-basis-values-are-ignored
flex: 1 0 0%;
margin-bottom: 0;
Expand Down

0 comments on commit 1a9956c

Please sign in to comment.