⬆️ Upgrade CSS and classes to support Bootstrap 5
This commit is contained in:
parent
7dede6ddbd
commit
28e4d64885
4 changed files with 18 additions and 12 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue