News for hackers. Stuff that matters.
Re:Tailwind CSS and the death of web craftsmanship by swanson on Wednesday August 02, 2023 @05:31PM (#36977864)
RE "neutered inspector": you can inspect the element and click ".cls" to toggle off classes: https://i.imgur.com/ig2SQw3.png

RE "you can't chain selectors": you can stack modifiers like `dark:hover`. The example of having the same styles for hover, active, and focus actually seems Not Great as those are different states that you 99% of the time want to look visually different (Tailwind examples include things like hover:bg-blue-600 active:bg-blue-700 which just seems like a better guardrail)

Re:Tailwind CSS and the death of web craftsmanship by paradox460 on Wednesday August 02, 2023 @09:40PM (#36980308)
RE: RE: Neutered inspector. Thanks for showing me that, I legitimately missed when it was added and never got it into my workflow. I'll stick a note on that section of the article

RE: RE: You can't chain selectors. Its still a valid issue, a lot of styles you would want to apply text decoration to hover/focus/focus-visible, but not the visited, active, or plain state. You still have to write `hover:underline focus:underline focus-visible:underline`.