dice.camp is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon server for RPG folks to hang out and talk. Not owned by a billionaire.

Administered by:

Server stats:

1.5K
active users

#css

48 posts43 participants0 posts today

I finally came around to writing up the details behind the CSS-only code listings I use on my blog. These listings wrap on page resize with line continuation markers, show scrollbars past a configurable minimum width, support native text selection without the line numbers being copied, and number lines in plain CSS without any JS involved. Have a look, the post is simultaneously a demo:

jaseg.de/blog/css-only-code-bl

#css#web#html

Can anyone explain to me how #tailwind somehow doesn't suffer from all the same problems as traditional inlined #css using the style attribute?

Only argument I've seen right now is that tailwind can make use of things like ::after or target child elements, but none of that stuff has ever been the reason why inline style fell out of fashion.

Am I missing something, or is it really just a new generation of developers repeating the mistakes of the past and doomed to find out eventually?

Did some maintenance work on my #Hugo #blog just now: combined all css into one bundle using a bundle-resource partial, trimmed out whitespace in <head> (looks much neater now) and removed fontawesome.

The number of requests is down and I feel the page loads way snappier (I could be biased lol). I just realise aliases in Hugo creates a lot of extra folders/files in /public. Once I check there's no new incoming traffic from those I'll delete it?

512KB/1MB club soon? 👀

Does the CSS font-family property use ”Name For Humans", "Family Name" or “Fontname” from the “PS Names” tab in FontForge’s “Font Information”?

My testing has been inconclusive. I first though it was “Family Name”, but noticed inconsistencies. Now I believe “Fontname” might be it. But it’s impractical, because Arial on one OS might have one “Fontname” and Arial on another OS might have another.

I should add that the LLMs hallucinate wildly on this question.

Tailwind is the Worst of All Worlds, colton.dev/blog/tailwind-is-th.

The article explains why Tailwind (tailwindcss.com/) is based on and encourages bad practices, which creates more maintenance burden and larger bundles. The article also explains why Tailwind met success and what other better tools should learn from that.

colton.devTailwind is the Worst of All WorldsApparently this horse hasn't been beaten enough.