aboutsummaryrefslogtreecommitdiff
path: root/scss/_grid.scss
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2021-07-26 10:45:10 -0500
committerGitHub <[email protected]>2021-07-26 18:45:10 +0300
commite208774fc1b301b96e65997dd0fca92c94ac20fb (patch)
tree88b38d8918b48d826aefae2cbc12b170112e555d /scss/_grid.scss
parent905db7dadb60385dfc1d563c398c01121a80bf53 (diff)
downloadbootstrap-e208774fc1b301b96e65997dd0fca92c94ac20fb.tar.xz
bootstrap-e208774fc1b301b96e65997dd0fca92c94ac20fb.zip
Clean up a couple CSS Grid issues (#34572)
- Moves the make-cssgrid() mixin to the grid mixins stylesheet - Updates the g-start-* classes to start at 1 instead of 0 as 0 is an invalid value (fixes #34399) Co-authored-by: XhmikosR <[email protected]>
Diffstat (limited to 'scss/_grid.scss')
-rw-r--r--scss/_grid.scss23
1 files changed, 0 insertions, 23 deletions
diff --git a/scss/_grid.scss b/scss/_grid.scss
index 13f21a3ff..27fd55847 100644
--- a/scss/_grid.scss
+++ b/scss/_grid.scss
@@ -12,29 +12,6 @@
}
}
-@mixin make-cssgrid($columns: $grid-columns, $breakpoints: $grid-breakpoints) {
- @each $breakpoint in map-keys($breakpoints) {
- $infix: breakpoint-infix($breakpoint, $breakpoints);
-
- @include media-breakpoint-up($breakpoint, $breakpoints) {
- @if $columns > 0 {
- @for $i from 1 through $columns {
- .g-col#{$infix}-#{$i} {
- grid-column: auto / span $i;
- }
- }
-
- // `$columns - 1` because offsetting by the width of an entire row isn't possible
- @for $i from 0 through ($columns - 1) {
- .g-start#{$infix}-#{$i} {
- grid-column-start: $i;
- }
- }
- }
- }
- }
-}
-
@if $enable-cssgrid {
.grid {
display: grid;