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
New.css – A classless CSS framework to write modern websites using only HTML
151–160 of 192 posts
Re: New.css – A classless CSS framework to write modern websites using only HTML
#152Earlier 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.
Re: New.css – A classless CSS framework to write modern websites using only HTML
#153and you can keep even more of your work directly in html.
Re: New.css – A classless CSS framework to write modern websites using only HTML
#154Re: New.css – A classless CSS framework to write modern websites using only HTML
#155Re: New.css – A classless CSS framework to write modern websites using only HTML
#156This 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/
Re: New.css – A classless CSS framework to write modern websites using only HTML
#157Why 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
#158Re: New.css – A classless CSS framework to write modern websites using only HTML
#159It 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!