⬆️ Upgrade CSS and classes to support Bootstrap 5

This commit is contained in:
Dan Jones 2021-09-16 13:48:50 -05:00
commit 28e4d64885
4 changed files with 18 additions and 12 deletions

View file

@ -1,14 +1,18 @@
@use "sass:map";
@each $prop, $abbrev in (width: w, height: h) {
@each $bpname,$bpsize in $grid-breakpoints {
@media (min-width: $bpsize) {
@each $size, $length in $sizes {
.#{$abbrev}-#{$bpname}-#{$size} {
#{$prop}: $length;
}
.m#{$abbrev}-#{$bpname}-#{$size} {
max-#{$prop}: $length;
}
@media (min-width: $bpsize) {
$props: map-get($utilities, $prop);
$propValues: map-get($props, 'values');
@each $size, $length in $propValues {
.#{$abbrev}-#{$bpname}-#{$size} {
#{$prop}: $length;
}
.m#{$abbrev}-#{$bpname}-#{$size} {
max-#{$prop}: $length;
}
}
}
}
}
}