aboutsummaryrefslogtreecommitdiff
path: root/scss
diff options
context:
space:
mode:
authorAnal-Retentive Squirrel Hunter <[email protected]>2021-06-03 12:18:00 -0400
committerGitHub <[email protected]>2021-06-03 19:18:00 +0300
commitf2b47e1c8a263f4406255991af9fd55984c22a0e (patch)
treeb6dced14aa652825d494782dba79f21d44e38c9c /scss
parentf14d1a4c1700ddb0df72645bab3551877be2b21e (diff)
downloadbootstrap-f2b47e1c8a263f4406255991af9fd55984c22a0e.tar.xz
bootstrap-f2b47e1c8a263f4406255991af9fd55984c22a0e.zip
Allow individual grid classes to override `.row-cols` (#33621)
Diffstat (limited to 'scss')
-rw-r--r--scss/mixins/_grid.scss8
1 files changed, 7 insertions, 1 deletions
diff --git a/scss/mixins/_grid.scss b/scss/mixins/_grid.scss
index d757eac74..36031df79 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();
}