▲ | cxr 2 days ago | |||||||||||||||||||||||||
Only somewhat related and unfortunately misses the point. CSS Zen Garden was powered by style sheets as they were designed to be used. Want to offer a different look? Write an alternative style sheet. This site doesn't do that. It compiles everything to a big CSS blob and then uses JS (which for some reason is also compiled to a blob, despite consisting of a grand total of 325 SLOC before being fed into bundler) to insert/remove stuff from the page and fiddle with a "data-theme" attribute on the html element. Kind of a bummer since clicking through to the author's Mastodon profile shows a bunch of love for stuff like a talk about "Un-Sass'ing my CSS" and people advocating others "remove JS by pointing them to a modern CSS solution". (For comparison: Firefox's page style switcher and the DOM APIs it depends on[1] are older than Firefox itself. The spec[1] was made a recommendation in November 2000.) 1. <https://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-87355129>) | ||||||||||||||||||||||||||
▲ | reactordev 2 days ago | parent | next [-] | |||||||||||||||||||||||||
I fault her static site builder and not the author for that. It’s just how her bundler bundles. | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
▲ | extraduder_ire 2 days ago | parent | prev [-] | |||||||||||||||||||||||||
I'm disappointed no browsers other than Firefox support it anymore.[0] Chrome dropped support in version 47. It's very rare to see it used in the wild too, probably because it's not "sticky" across page loads. 0: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/... | ||||||||||||||||||||||||||
|