| 1 |
@use '../../sass-utilities' as *; |
| 2 |
|
| 3 |
$pf-v6-u-sizing--min-max--breakpoint-map: build-breakpoint-map(); |
| 4 |
// stylelint-disable |
| 5 |
|
| 6 |
// Width options |
| 7 |
$pf-v6-u-width-options: ( |
| 8 |
w-auto: (width auto), |
| 9 |
w-initial: (width initial), |
| 10 |
w-inherit: (width inherit), |
| 11 |
w-0: (width 0%), |
| 12 |
w-25: (width 25%), |
| 13 |
w-33: (width calc(100% / 3)), |
| 14 |
w-50: (width 50%), |
| 15 |
w-66: (width calc(100% / 3 * 2)), |
| 16 |
w-75: (width 75%), |
| 17 |
w-100: (width 100%), |
| 18 |
w-25vw: (width 25vw), |
| 19 |
w-33vw: (width calc(100vw / 3)), |
| 20 |
w-50vw: (width 50vw), |
| 21 |
w-66vw: (width calc(100vw / 3 * 2)), |
| 22 |
w-75vw: (width 75vw), |
| 23 |
w-100vw: (width 100vw) |
| 24 |
); |
| 25 |
|
| 26 |
// Height options |
| 27 |
$pf-v6-u-height-options: ( |
| 28 |
h-auto: (height auto), |
| 29 |
h-initial: (height initial), |
| 30 |
h-inherit: (height inherit), |
| 31 |
h-0: (height 0%), |
| 32 |
h-25: (height 25%), |
| 33 |
h-33: (height calc(100% / 3)), |
| 34 |
h-50: (height 50%), |
| 35 |
h-66: (height calc(100% / 3 * 2)), |
| 36 |
h-75: (height 75%), |
| 37 |
h-100: (height 100%), |
| 38 |
h-25vh: (height 25vh), |
| 39 |
h-33vh: (height calc(100vh / 3)), |
| 40 |
h-50vh: (height 50vh), |
| 41 |
h-66vh: (height calc(100vh / 3 * 2)), |
| 42 |
h-75vh: (height 75vh), |
| 43 |
h-100vh: (height 100vh) |
| 44 |
); |
| 45 |
|
| 46 |
@include pf-v6-utility-builder($pf-v6-u-width-options, $pf-v6-global--breakpoint-list); |
| 47 |
@include pf-v6-utility-builder($pf-v6-u-height-options, $pf-v6-global--breakpoint-list); |
| 48 |
|
| 49 |
.#{$pf-prefix}u-min-width { |
| 50 |
--#{$pf-prefix}u-min-width--MinWidth: 0; |
| 51 |
|
| 52 |
@include pf-v6-build-css-variable-stack( |
| 53 |
"min-width", |
| 54 |
"--#{$pf-prefix}u-min-width--MinWidth", |
| 55 |
$pf-v6-u-sizing--min-max--breakpoint-map, |
| 56 |
$important: true |
| 57 |
); |
| 58 |
} |
| 59 |
|
| 60 |
.#{$pf-prefix}u-max-width { |
| 61 |
--#{$pf-prefix}u-max-width--MaxWidth: auto; |
| 62 |
|
| 63 |
@include pf-v6-build-css-variable-stack( |
| 64 |
"max-width", |
| 65 |
"--#{$pf-prefix}u-max-width--MaxWidth", |
| 66 |
$pf-v6-u-sizing--min-max--breakpoint-map, |
| 67 |
$important: true |
| 68 |
); |
| 69 |
} |
| 70 |
|
| 71 |
.#{$pf-prefix}u-min-height { |
| 72 |
--#{$pf-prefix}u-min-height--MinHeight: 0; |
| 73 |
|
| 74 |
@include pf-v6-build-css-variable-stack( |
| 75 |
"min-height", |
| 76 |
"--#{$pf-prefix}u-min-height--MinHeight", |
| 77 |
$pf-v6-u-sizing--min-max--breakpoint-map, |
| 78 |
$important: true |
| 79 |
); |
| 80 |
} |
| 81 |
|
| 82 |
.#{$pf-prefix}u-max-height { |
| 83 |
--#{$pf-prefix}u-max-height--MaxHeight: auto; |
| 84 |
|
| 85 |
@include pf-v6-build-css-variable-stack( |
| 86 |
"max-height", |
| 87 |
"--#{$pf-prefix}u-max-height--MaxHeight", |
| 88 |
$pf-v6-u-sizing--min-max--breakpoint-map, |
| 89 |
$important: true |
| 90 |
); |
| 91 |
} |
| 92 |
|
| 93 |
// stylelint-enable |