Hacker News new | ask | show | jobs
by mikae1 32 days ago
All of them failed my ten second evaluation. It's amazing how many mediocre CSS frameworks that are out there.
5 comments

What's your ten second evaluation?
What do you think of https://starter.bryanhogan.com/ then?
I don't see that on my Android phone with Chrome. Looks good for me.
What the hell browser is that?
It's broken in the exact same way in the last version of Vivaldi that works on Windows <10.

From a quick look at the second horizontal strip that starts "what is this?", and without wasting time doing too much digging, it appears to be ultimately caused by using a grid layout for a heading followed by a few paragraphs, all of which fill the available (constrained) width, which amounts to one of the absolute simplest layouts possible in CSS - block. Last time I saw something similar, albeit with flexbox not grid, it was from a junior developer who appeared to have only learned flexbox and nothing else.

As a quick semi-fix, just disabling grid-template-columns on .base-layout is enough to fix almost everything except the constrained width.

Sounds like that older Vivaldi version does not support CSS nesting. I looked into it. I'm assuming you are using Vivaldi 5.6 which uses Chromium 108, native CSS nesting became supported in Chromium 112.

The layout approach is based on this Kevin Powell video: https://m.youtube.com/watch?v=c13gpBrnGEw

It uses CSS Grid to create a centered, width-constrained content area while allowing individual elements to break out of it or span the full viewport width. This provides a flexible, consistent layout without the need for additional wrapper elements in the HTML.

CSS nesting has had full browser support for more than 3 years now, I recommend updating. I'll also add fallback for older browsers, but the Grid layout itself isn't the issue.

> Vivaldi 5.6 which uses Chromium 108

Yes, that's right. I thought I'd try it in that older browser that I still happen to have installed, as the user above didn't immediately let us know what that mobile browser was. It may or may not help by at least giving you a browser version you can use to test. As I mentioned somewhere else, it makes sense to use some sort of older browser as a proxy for older browsers in general, when testing.

Developers are always looking for new ways to do what we've always done, often using more technically complicated ways to recreate the simplest things. It's fun from the puzzle-solving point of view, but your choice of earliest browsers you want to support depends on your user base.

Yes, but what browser is it?
Despite its idiotic naming, I still use PureCSS[0]. Not sure why they keep maintaining it. I don't mind, nothing ever seems to change anyway.

How's your ten second evaluation of it?

[0]: https://pure-css.github.io/

I'm using it but it's such a pain in the arse to find anything else online about it.

It's one of the reasons I'm planning on moving stuff over to Pico.

Or now, I guess, just writing some CSS from scratch, which I hate.

I built https://purecss.com (not pure-css.github.io), maybe you'd find the site helpful? Currently it's 77 CSS patterns and another ~20 coming in the next few weeks. Each have a demo and the code underneath. Check it out and let me know if there's something you can think of that you'd like to see there. Happy CSS'ing!
So actually "pure CSS", and not the "pure.css" library that's so hard to search for? A lot of that looks pretty good!
Yea, exactly and thanks! I love making CSS things that were previously only possible with JavaScript. Carouses, accordions, toggle switches, etc. I love how powerful CSS has become over the last few years!
Yes it is a pain. But the whole thing is like two pages, so I^H my LLM just reads it. I used to read it. It was ok readable (and I'm not very good at CSS).
Whats the first thing in a CSS framework that you notice and makes you say "nah"?
CSS frameworks are like children, almost everyone can make one.