Re:What working with Tailwind CSS every day for 2 years look...
by joshmn on Tuesday November 29, 2022 @11:12AM
(#33789369)
I have been working with HTML since I was 11 — 20ish years. I thought I knew most things. text-decoration-thickness? Nope. I have been adding border-bottom to spans for far too long it looks like.
[ Parent
| on HN ]
Re:What working with Tailwind CSS every day for 2 years look...
by philliphaydon on Tuesday November 29, 2022 @11:23AM
(#33789541)
I started html when I was about 11 so I’m at 25 years.
I just discovered last night there’s an aspect ratio property…
Re:What working with Tailwind CSS every day for 2 years look...
by pewpewyouhit on Tuesday November 29, 2022 @11:42AM
(#33789791)
It’s pretty new though. Less than 2 years I think.
Re:What working with Tailwind CSS every day for 2 years look...
by philliphaydon on Tuesday November 29, 2022 @11:45AM
(#33789843)
I was just shocked. Last night I’m like “hmm need to maintain aspect ratio on this box. Maybe I can use calc and vh or something.
And this shocked up in Google. Rocked my world. I wanna go back across a bunch of products I’ve worked on over the years to fix stuff using this!
One of my favourite features now!
Re:What working with Tailwind CSS every day for 2 years look...
by troysk on Tuesday November 29, 2022 @01:01PM
(#33790913)
It is definitely magical! So many hours saved trying to find the right responsive break points for those particular card UIs.
Re:What working with Tailwind CSS every day for 2 years look...
by dekerta on Tuesday November 29, 2022 @11:34AM
(#33789687)
aspect-ratio is a new standard, so don't feel too bad about that
Re:What working with Tailwind CSS every day for 2 years look...
by qiller on Tuesday November 29, 2022 @11:14AM
(#33789404)
Those are pretty new. text-underline-offset is another one that made my "fake" underlines obsolete
Re:What working with Tailwind CSS every day for 2 years look...
by Gualdrapo on Tuesday November 29, 2022 @11:21AM
(#33789511)
Also remember text-decoration-style, text-decoration-color and text-decoration-skip - setting this last one to 'ink' will make the underline, ahem, skip over the glyphs with descenders, adding to legibility
Re:What working with Tailwind CSS every day for 2 years look...
by frankzander on Tuesday November 29, 2022 @12:05PM
(#33790157)
no problem. I work every day with CSS ... you can't know every new feature unless you have at least one use case to get know the new feature.
The "old" technics are still working but if you want the benefits of new technics like text-decoration-skip-ink you have to use the new ones. So as long as you do not run into such problems like "skip-ink" you do not have to learn ne new ones.
Re:What working with Tailwind CSS every day for 2 years look...
by themosaad on Tuesday November 29, 2022 @06:22PM
(#33794818)
That's a good side effect from using Tailwind CSS docs. They curate new CSS properties and add the most important (in their opinion) once they're supported by all modern browsers.