diff options
author | Anal-Retentive Squirrel Hunter <43895102+lacutah@users.noreply.github.com> | 2021-06-03 19:18:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-03 19:18:00 +0300 |
commit | f2b47e1c8a263f4406255991af9fd55984c22a0e (patch) | |
tree | b6dced14aa652825d494782dba79f21d44e38c9c /scss | |
parent | f14d1a4c1700ddb0df72645bab3551877be2b21e (diff) |
Allow individual grid classes to override `.row-cols` (#33621)
Diffstat (limited to 'scss')
-rw-r--r-- | scss/mixins/_grid.scss | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scss/mixins/_grid.scss b/scss/mixins/_grid.scss index d757eac740..36031df796 100644 --- a/scss/mixins/_grid.scss +++ b/scss/mixins/_grid.scss @@ -65,8 +65,8 @@ @mixin make-grid-columns($columns: $grid-columns, $gutter: $grid-gutter-width, $breakpoints: $grid-breakpoints) { @each $breakpoint in map-keys($breakpoints) { + // .row-cols defaults must all appear before .col overrides so they can be overridden. $infix: breakpoint-infix($breakpoint, $breakpoints); - @include media-breakpoint-up($breakpoint, $breakpoints) { // Provide basic `.col-{bp}` classes for equal-width flexbox columns .col#{$infix} { @@ -84,7 +84,13 @@ } } } + } + } + @each $breakpoint in map-keys($breakpoints) { + $infix: breakpoint-infix($breakpoint, $breakpoints); + + @include media-breakpoint-up($breakpoint, $breakpoints) { .col#{$infix}-auto { @include make-col-auto(); } |