Live data from Hacker News

New.css – A classless CSS framework to write modern websites using only HTML

newcss.net

151–160 of 192 posts

Re: New.css – A classless CSS framework to write modern websites using only HTML

#151
post #146
post #97

Seems one of these things hits the front page every month or so. My question is, why don't the browser makers adopt something like this as the default stylesheet? Are they constrained by the spec here or is it just a matter of inertia?

> Seems one of these things hits the front page every month or so. Yep! MVP.css was featured in March: https://news.ycombinator.com/item?id=22681270

To continue the chain, we had 98.css last month, although a little more niche: https://news.ycombinator.com/item?id=22940564

Re: New.css – A classless CSS framework to write modern websites using only HTML

#152
post #141

Earlier quoted context omitted.

"Classless" also made my brow furrow when I realized they didn't mean, say, CSS components styled without a bunch of classes (a la Twitter Bootstrap) but rather, it just has no components. It's classless because it only styles some basic html elements.

That's exactly how I understood it and it sounds useful to me. No need to look up what styles do what, you can just use the standard elements and expect them to look coherent and as expected. E.g. " " is descriptive enough since HTML5 introduced it.

It didn't mean that for me because we've been sharing minimal css files for decades without without calling them frameworks or "classless". Usually when you see a new term, it describes a spin on the old act. If they had also called it a "serverless" CSS framework, I wouldn't have guessed they meant that the CSS file just doesn't make any HTTP requests.

Re: New.css – A classless CSS framework to write modern websites using only HTML

#156
post #31

This Github repository tracks a whole bunch of these drop-in CSS files: https://github.com/dohliam/dropin-minimal-css And you can use this demo site to switch between them all on the fly: https://dohliam.github.io/dropin-minimal-css/

That's very cool ! My microframework is on there and I wasn't even aware.

Re: New.css – A classless CSS framework to write modern websites using only HTML

#157
I love the terminal theme. I've been trying to do something that looks like an older terminal for a configuration page, and this version almost does it.

Why almost? The theme totally screws up wide tables. They bleed off the edge of the page, and there's no vertical scrollbar. Furthermore, widening the page just moves everything, including the table, to the right. The only way to see a wide table is to have a giant window with a big empty space on the left.

Re: New.css – A classless CSS framework to write modern websites using only HTML

#159
post #32

It doesn't work properly. The body has a max-width of 750px, and the header uses a padding hack of 'calc(50vw - 50%)'. That 50% means '50% of the containing element', so if 50vw is more than 750px (eg your viewport is more than 1500px wide) the header element stops being centred and starts spilling over on the right hand side.

A good place for the under-appreciated CSS ‘clamp’ function!

... that doesn't work in Safari or iOS, or non-Chrome Android browsers yet.
Post reply on HN