Add min-size-[...] & max-size-[...] too #18589
Replies: 2 comments 3 replies
-
You can add this without help from the TW team. The ![]() ![]() |
Beta Was this translation helpful? Give feedback.
-
As mentioned by @happycollision, you can do it yourself. But then you should handle not only the Among the properties with
You can never write two values at the same time, so there's no issue with this. @utility min-size-* {
min-width: --spacing(--value(number));
min-height: --spacing(--value(number));
min-width: calc(--value(ratio, [ratio]) * 100%);
min-height: calc(--value(ratio, [ratio]) * 100%);
min-width: --value([percentage], [length]);
min-height: --value([percentage], [length]);
}
@utility max-size-* {
max-width: --spacing(--value(number));
max-height: --spacing(--value(number));
max-width: calc(--value(ratio, [ratio]) * 100%);
max-height: calc(--value(ratio, [ratio]) * 100%);
max-width: --value([percentage], [length]);
max-height: --value([percentage], [length]);
} |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there
Please add min-size-[...] & max-size-[...] too, it will be so usefull:
bad & too long:
min-h-[...]
max-h-[...]
min-w-[...]
max-w-[...]
instead:
min-size-[...]
max-size-[...]
Beta Was this translation helpful? Give feedback.
All reactions