Live data from Hacker News

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

newcss.net

51–60 of 192 posts

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

#51
I don't understand the claims re: font loading.

> Vercel's impossibly fast CDN delivers new.css and the font Inter using xz/fonts, so there's virtually no bloat added to your pages.

It's 300kb of font downloads, hardly light. And the xz/fonts page says:

>Break your users from unethical tracking networks

I'm still making a request to a 3rd party CDN with an origin header that says what page I'm looking at, so I'm not sure what privacy I'm gaining here.

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

#52
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.

Yeah... Looks terrible for me.

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

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

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

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

#55
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 excellent. It would be funny if that 'LaTeX CSS' moved all images to the end of the web page..

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

#56
post #46
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/

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.

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

#58
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.

Seems to work properly in Firefox (https://i.imgur.com/AQ2M1G3.png) but breaks in Chrome (https://i.imgur.com/U2tVg2k.png); Chrome doesn't accept the margin value (https://i.imgur.com/pH7X0ZO.png).

When the margin works, the logic makes sense. 50vw sets the padding of the side in question (e.g. left) to the middle of the screen, 50% subtracts half of the containing element's width () from it. Doing this for both left and right and then negating it with equal negative margins results in the content area in the header being centered and having the same width as body, but the padding stretching out to the edges of the window.

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

#59
post #9

Earlier quoted context omitted.

A variation on Cunningham's Law?

Without classes, CSS is a race to the bottom.

I disagree. For many simple things you can get a long way without or with minimal amount of classes. Coincidentially I am working on implementing some changes to a really bad case of the vile disease classinitis. With names such as: xyz_product__form and g-region--desktop-one-half. Lest not forget about their actual use in the markup: `class="form-field__input form-field__input--button button button--cta button--large button-mobile-full u-flex-1"`

Ah how could I even live without getting hired for this job and all of its lustful classes?!

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

#60
post #6

5 comments with 5 alternatives so far. Oh the irony.

This is the reason I actually "favourite" threads such as this one. The comments help me find alternatives to try out. There was an Ask HN, "Ask HN: Is there a search engine which excludes the world's biggest websites?'[0]. I commented that I search HN for different subjects and read through the comments. This is probably better than searching Google for minimal CSS.

[0]https://news.ycombinator.com/item?id=23202850

Post reply on HN