INTJ and introvert.
MSc. at Ca' Foscari university (Venice, ITA).
Inclusive Frontend Developer (A11y) & CSS lover.
Also: Dad, 5-string bass player
https://fabrizio.dev/
—
it creates a responsive grid layout with columns that automatically adjust in size. Each column has a minimum width of --min (`30ch` in the example) and expand up to `1fr` to fit the available space.
Code in action: codepen.io/fcalderan/fu...
it creates a responsive grid layout with columns that automatically adjust in size. Each column has a minimum width of --min (`30ch` in the example) and expand up to `1fr` to fit the available space.
Code in action: codepen.io/fcalderan/fu...
.link {
grid-template-columns: auto var(--len, 0fr);
gap: var(--gap, 0);
transition: .33s;
&:is(:hover, :focus) {
--len: 1fr;
--gap: .5rem;
}
Code in the reply 👇🏻
.link {
grid-template-columns: auto var(--len, 0fr);
gap: var(--gap, 0);
transition: .33s;
&:is(:hover, :focus) {
--len: 1fr;
--gap: .5rem;
}
Code in the reply 👇🏻