4 ms·
Wow, such a marvel of engineering, which is absolutely readable both on my 4k landscape monitor and my portrait smartphone! Does anybody knows, what CSS and JS
by justsomehnguy 3y ago
Wow, such a marvel of engineering, which is absolutely readable both on my 4k landscape monitor and my portrait smartphone!
Does anybody knows, what CSS and JS magic did the guy used here?
- ainiriand 3y agoSarcasm will not be tolerated.
- AlecSchueler 3y agoWithout joking, it's the only page I've opened in a long long time that was readable on mobile without lots of pinching and scrolling.
- MrDresden 3y agoHN is pretty usuable, except maybe for some of the small touch surfaces.
- Brajeshwar 3y agoEvery webpages starts out responsive and adaptive by default. :-)
- niemenmaa 3y agoKinda reminds me of this saga (lots of foul language ahead) - http://motherfuckingwebsite.com/ http://motherfuckingwebsite.com/ - http://bettermotherfuckingwebsite.com/ http://bettermotherfuckingwebsite.com/ - https://perfectmotherfuckingwebsite.com/ https://perfectmotherfuckingwebsite.com/
- fragmede 3y agoYou joke, but the first web page came out in 1991. CSS wouldn't come out into 1996, and JavaScript was 1995.
- Closi 3y agoThat was the joke, don’t worry we get it ;)
- zilti 3y agoTechnically, there was DSSSL already though. It is missed dearly.
- tannhaeuser 3y agoWhoa, that was unexpected. But technically, DSSSL (OpenJade) was used to render pages to print/PDF and never ran as part of a browser stack (unless I've overlooked some stubborn Schemer implementing it in JS or emscripten or sth; but don't tell HN's Lisp fraction to given them ideas ...) Unlike SGML itself, which is mentioned in TBL's docs as the basis for HTML markup. Btw SGML does have its own styling language in link processes which basically just re-uses regular attribute declaration syntax, plus has some explicit state machine representation (aka "links"). But yeah, using a Lisp derivative would've definitely prevented the syntax proliferation that is CSS, its terseness/magic, and habit of re-use of property names for different purposes as a way to sneak in complex layouting features by understated surface syntax changes.
- RGamma 3y agoThey use the very efficient noop framework. Go check it out here: