The Crystal website at crystal-lang.org has received a major overhaul.
We have a fresh design and a ton of other improvements, such as better support for mobile devices and dark mode, as well as updated and new content. Check out the new install page, for example!
@straight-shoota deserves a large chunk of the praise here In particular many of the improvements like the dark mode and other accessibility options are his own doing.
Hm, actually it looks like all pages lack margins? No idea what’s wrong there and I have no means to investigate myself.
Would you mind opening an issue at Issues · crystal-lang/crystal-website · GitHub with a couple of screenshots?
It would be a great help if you could take a look into the developer tools to see if any CSS rules show any errors?
Odd, we also got another report on the whole page being broken on Safari 16.6. With Safari 17.4.1 it looks good here. Is it possible for you to upgrade and test again?
We managed to work around a couple of layout issues in WebKit. So it should look much smoother in Safari now.
Lesson learned: WebKit needs more extensive testing, it apparently has fallen behind Blink quite a bit (and Gecko). As far as I can tell, the issues we had were genuine browser bugs and they weren’t even in the most modern CSS features (most are apparently caused by a faulty calculation of flexbox items’ inline size).
We’re still getting reports for some weird rendering issue in mobile Safari:
This is very hard to debug and we haven’t even established the specific conditions, looks like recent Safari versions are affected, but only on iPhone. Any help is appreciated.
Oh, that’s valuable information. Could you be more specific what’s the issue? White text on dark background? The dark background itself?
Is there some kind of browser setting that we could respond to?
I understand you’d prefer a version where the header has basically a filter: invert(); like this:
Yeah, that looks quite nice to me. In contrast (no pun intended) to most other developers, I find dark mode really strains my eyes, I have to squint to read it. Even then, I think the dark grey on top of the black background is hard to read, although maybe everyone else has their monitor on very high. Personally I keep everything in light as it’s easier to read, and I have the brightness down generally as low as it goes and never had any problems at 3AM. And I guess it also looks a bit odd having an all-black banner section given the website is in light mode by default. Just the top menu might make sense, but it’s a massive shift as I scroll down that looks a bit odd to me.
And yes, AFAIK most recent browsers have a light/dark setting. Nextcloud keeps resetting for me and it’s very annoying ;)