diff options
author | Andres Galante <agalante@gmail.com> | 2017-11-16 13:41:48 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2017-11-16 13:41:48 +0300 |
commit | 8e4ba117bc825a4538c7c960e50884d379626a0c (patch) | |
tree | a69493cc5d98cb1160f945fce68c8f84117ac0de /scss | |
parent | 615c9950801ac425cd566d1595f1a85fef82cf89 (diff) |
Fix nested cards on card group (#24766)
Diffstat (limited to 'scss')
-rw-r--r-- | scss/_card.scss | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/scss/_card.scss b/scss/_card.scss index a3a435a7f8..4c4845c0bb 100644 --- a/scss/_card.scss +++ b/scss/_card.scss @@ -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; |