diff options
-rw-r--r-- | scss/_card.scss | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/scss/_card.scss b/scss/_card.scss index 99f7c21958..2c74c0c971 100644 --- a/scss/_card.scss +++ b/scss/_card.scss @@ -190,17 +190,15 @@ .card-deck { display: flex; flex-flow: row wrap; + margin-right: -$card-deck-margin; + margin-left: -$card-deck-margin; .card { display: flex; flex: 1 0 0; flex-direction: column; - - // Selectively apply horizontal margins to cards to avoid doing the - // negative margin dance like our grid. This differs from the grid - // due to the use of margins as gutters instead of padding. - &:not(:first-child) { margin-left: $card-deck-margin; } - &:not(:last-child) { margin-right: $card-deck-margin; } + margin-right: $card-deck-margin; + margin-left: $card-deck-margin; } } } |