“Classic rock, Mario Kart, and why we can't agree on Tailwind”
1 min read
Great article from Josh Collinsworth explaining why Tailwind is good and bad for the exact same reasons.
isolationis a special property whose sole and unique purpose is to create a new stacking context on the element it is applied to, with no other side-effects. 😄– Francesco Vetere, in The CSS property you didn't know you needed
You learn something new everyday! Today, I learned about CSS's isolation property. I learned it through this Francesco Vetere post, which I highly recommend you to read, as he explains it way better than I do.
Basically, isolation: isolate is a very simple way of creating a stacking context in CSS. Stacking context is basically a "reset" of how z-index works, so you can manage indexes in a smaller scope.
Francesco gives a perfect example of a card element with a decorative element in its background. To make that element appear below the text, you'd naturally add z-index: -1;, but that means the element would show below the card as well! By creating a new stacking context on the card, you can safely manage z-index without worrying about any child element appearing below/outside its parent.
“Classic rock, Mario Kart, and why we can't agree on Tailwind”
1 min read
Great article from Josh Collinsworth explaining why Tailwind is good and bad for the exact same reasons.
Fantinel.dev v5 is here!
10 min read
Out with the green waves, in with the rainbow of pastel colors!
Setting up Storybook on an Astro project
7 min read
I really, really thought this was gonna be easy.
text-overflow: ellipsis on multi-line text
2 min read
Adding an automatic ellipsis to some text if it overflows its content is simple enough. But what if you want your text to have multiple lines?