From bd62b185f6de341baeb9eee228dc602f4d613340 Mon Sep 17 00:00:00 2001 From: ju1ius Date: Mon, 11 Jan 2016 22:36:30 +0100 Subject: [PATCH] Don't clearfix if flexbox is enabled. Fixes #18849 --- scss/_card.scss | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/scss/_card.scss b/scss/_card.scss index 3982f6e852..646a281582 100644 --- a/scss/_card.scss +++ b/scss/_card.scss @@ -12,7 +12,9 @@ } .card-block { - @include clearfix; + @if (not $enable-flex) { + @include clearfix; + } padding: $card-spacer-x; } @@ -69,7 +71,9 @@ // .card-header { - @include clearfix; + @if (not $enable-flex) { + @include clearfix; + } padding: $card-spacer-y $card-spacer-x; background-color: $card-cap-bg; border-bottom: $card-border-width solid $card-border-color; @@ -80,7 +84,9 @@ } .card-footer { - @include clearfix; + @if (not $enable-flex) { + @include clearfix; + } padding: $card-spacer-y $card-spacer-x; background-color: $card-cap-bg; border-top: $card-border-width solid $card-border-color;