Skip to content

Commit

Permalink
simplify source scss code
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Jul 24, 2019
1 parent fc7fee7 commit 5a7d8b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scss/_card.scss
Expand Up @@ -175,14 +175,14 @@
}
}

$row-columns: 0, 1, 2, 3, 4, 5 !default;
$row-columns: 6 !default;

@each $breakpoint in map-keys($grid-breakpoints) {
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);

@each $count in $row-columns {
.row-cols#{$infix}-#{$count} > [class^="col"] {
flex: 0 0 calc(100% / #{$count});
@for $i from 1 through $row-columns {
.row-cols#{$infix}-#{$i} > [class^="col"] {
flex: 0 0 calc(100% / #{$i});
}
}
}
Expand Down

0 comments on commit 5a7d8b2

Please sign in to comment.