Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?



Without 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.


HN is pretty usuable, except maybe for some of the small touch surfaces.


Every webpages starts out responsive and adaptive by default. :-)


They use the very efficient noop framework. Go check it out here:



You joke, but the first web page came out in 1991. CSS wouldn't come out into 1996, and JavaScript was 1995.


That was the joke, don’t worry we get it ;)


Technically, there was DSSSL already though. It is missed dearly.


Whoa, 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.


Sarcasm will not be tolerated.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: