Live data from Hacker News

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

newcss.net

161–170 of 192 posts

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

#161
post #54

Earlier quoted context omitted.

hah, reminds me of http://www.csszengarden.com but simpler.

I would like these themes to go beyond a simple article view. We have tags like , , , , and now. Should be possible to build a complete app-shell with classless CSS.

As an exercice, I’m building my neighborhood newspaper website without any classes. It is surprisingly easy. With Grid and min(), I don’t even need media queries. CSS and HTML in 2020 is great, if you take the time to choose only the latest solutions.

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

#162
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/

It's a shame that none of these (as far as I can tell with the 60% I clicked though) restrict the page width to 100% to prevent horizontal scrolling on mobile. Simple enough to add yourself, but still.

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

#163
post #74

Hey sorry I’m not in the know, but what’s wrong with classes and styling?

Nothing, but a lot of the web dev community feels like we've gone overboard in terms of bloated CSS frameworks and this is what I perceive to be a reversion back to the basic ability to style a document without much need for writing and learning CSS or the frameworks themselves.

As a full-stack dev who has started/but not finished tons of side projects because I hate the design part (okay, I'm more backend than frontend, I like vue/js but css/scss isn't my favorite part of the stack though I can do it in bulma, material-ui, vuetify/etc....)

I think this sort of thing looks cool, though picnic.css (https://picnicss.com/tests) -- from another comment seems more my flavor.

Might be a good way to focus on the functionality, maybe use it w/ tailwinds for extra styles where needed, and launch faster make some $$ hire a person to do the design stuff I hate to do in an actual framework or something and launch a prettier v2.

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

#164
post #145

Earlier quoted context omitted.

It's a shame how few of these prevent horizontal scroll on mobile. Usually the table and/or video are not probably handled. My take away from this: Simple does not mean easy; check edge cases.

It's a tricky problem. I've been battling with it on MVP.css ( https://andybrewer.github.io/mvp/ ) but I think I found a good solution for responsive tables with some help from the community.

I'm probably gonna use your solution. Thanks.

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

#165
post #145

Earlier quoted context omitted.

It's a shame how few of these prevent horizontal scroll on mobile. Usually the table and/or video are not probably handled. My take away from this: Simple does not mean easy; check edge cases.

It's a tricky problem. I've been battling with it on MVP.css ( https://andybrewer.github.io/mvp/ ) but I think I found a good solution for responsive tables with some help from the community.

I'm also interested in your tables solution. Also, is there an organized MVP.css community somewhere?

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

#166
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/

Thanks! Does anyone know how these stylesheets interact with other frameworks like bootstrap? If I want to use bootstrap in a website, can I still start with one of the above as the base style?

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

#167

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…

Thanks for the feedback gwbas1c. How would you recommend improving form support? I'd be more than happy to merge any improvements.

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

#169
post #46

Earlier quoted context omitted.

Pity I cannot just receive vanilla mark up and pick a client side theme.

I doubt it would work well but you could put a theme in user.css (on Firefox) and block all .css files (with uBlock, say). Not sure if uBlock will block tags, but I think it can.

I think user.css automatically overrides any remote CSS, doesn't it?—so no need for blocking.

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

#170
post #91

Earlier quoted context omitted.

It's a shame how few of these prevent horizontal scroll on mobile. Usually the table and/or video are not probably handled. My take away from this: Simple does not mean easy; check edge cases.

As someone who constantly runs into mobile pages with poorly fitting content yet are still scroll-limited, I see this as a welcome feature. Most mobile browsers seem to lock the scroll direction while moving anyway, so atleast it isn't sloppy in practice, imho

I use a browser that locks the scroll direction and pages which overflow horizontally drive me mad. If your website does that, I will search for the reading mode button immediately because I cannot really work with handling scrolling in two directions.
Post reply on HN