@jaredpdesigns/pasta
Version:
Pasta provides a great starting place for web projects. It combines light styling for common web elements, yummy!
25 lines (22 loc) • 511 B
CSS
@layer props {
:root {
@each $widthKey, $widthVal in (xxs, xs, s, m, ml, l, xl, xxl, xxxl),
(10rem, 15rem, 20rem, 30rem, 40rem, 60rem, 80rem, 105rem, 152rem)
{
--width__$(widthKey): $(widthVal);
}
}
}
@layer helpers {
@each $width in (xxs, xs, s, m, ml, l, xl, xxl, xxxl) {
.width__$(width) {
margin-inline: auto;
max-inline-size: var(--width__$(width));
inline-size: 100%;
}
}
.width__full {
max-inline-size: 100%;
inline-size: 100%;
}
}