Earlier quoted context omitted.
Screenshot: https://imgur.com/a/mxaNky4 Whipped this up real quick... keeps the spirit of HN I think, and is pretty minimal. Not my best CSS but tables/current CSS make some selectors a little tricky and after all, it's less than 1kb added, no markup or stack changes needed, and this is 'Hacker News' right? :D @media (prefers-color-scheme: dark) { body { background-color: #1F2430; } #hnmain { background-color: #23283…
For those who want something more traditional I've modified to have a slight orange tint on the title bar, and higher contrast for text. Seems to be better for a11y too. Screenshot: https://imgur.com/a/XW1OCYb @media (prefers-color-scheme: dark) { body { background-color: #232834; } #hnmain { background-color: #1F2430; } a:link.storylink, #hnmain > tbody > tr:first-child > td a, .commtext, .commtext a:link, td { colo…
Ask HN: Dark mode for HN please?
281–290 of 469 posts
Re: Ask HN: Dark mode for HN please?
#282Earlier quoted context omitted.
Please, for God's sake, don't screw it up. I can keep up with news on this site from a 15 kb/s shared satellite link when I'm out at sea. Except perhaps for the really big threads. I love the simple interface. It's text, it's simple, it's readable, and when I hit the spacebar, it scrolls down a page. No fancy fonts, no javascript, no nothing. I love HN for its simplicity and speed. Thanks for maintaining a good engin…
"No fancy fonts, no javascript, no nothing." Truthfully, there is some Javascript. For example, onclick(). Voting without Javascript requires some extra effort.
Re: Ask HN: Dark mode for HN please?
#283Earlier quoted context omitted.
I'm on board with ceasing and desisting from screwing it up.
There are many ways for end users to force dark mode without any change on HN. "invert page colors" chrome extension, for example, does a nice job. Not ideal, but good enough. I second the other commenter, don't do anything. Or get someone really good to help you!
None of the extensions I've tested can match the dead simple CSS override I used in qutebrowser.
Re: Ask HN: Dark mode for HN please?
#284 It is the effect of having a line which is longer than the viewport - so we end up having to scroll that specific line. Some might say it is better not to wrap code but I more often see this as part of a quote. I you really do not like to wrap the lines then I would prefer a scrollbar on the whole section. (I hope this line demos the issues).
I am not asking for mobile CSS. It is just on mobile it is most obvious.My CSS knowledge is severely limited but I was thinking something along the lines of
pre {
overflow-x: auto;
white-space: pre-wrap;
white-space: -moz-pre-wrap;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
word-wrap: break-word;
}
Others might have better ideas. Please chime in.I salute the credo of moving slowly. And I hate to be a cry baby. I even hate the feature creep. But here I am :-}
Re: Ask HN: Dark mode for HN please?
#285Yet, I know of the popularity of dark themes. But I wonder if I'm the only one or whether there are more people that experience the same effect?
I think it gets worse when I have to switch between mostly-dark content to mostly-light content. Thus, since most pages on the web have (near-) white background, I imagine I would really suffer when switching to and from HN a lot if it were in dark mode.
But hey, maybe that would be a good thing for my productivity ;-)
Re: Ask HN: Dark mode for HN please?
#286https://gist.github.com/kirkegaard/0d7e96bf0ebbce5ddad98e59f...
This is what it looks like: https://imgur.com/a/KsLnoC4
Re: Ask HN: Dark mode for HN please?
#287Earlier quoted context omitted.
Blockchain. No one said blockchain yet. We have to blockchain it. Blockchain it with cryptos.
Also, if there's any way to incorporate machine learning algorithms into it, please try to find a way to do that.
Re: Ask HN: Dark mode for HN please?
#288Earlier quoted context omitted.
I think you guys overreact a bit, your reply alone occupies more bytes than the CSS needed to implement dark mode; it wouldn't affect anything related to scrolling with space-bar, or fonts, or JS functionality.
True, serving it to you was negligible, but that little extra being served millions of times, once for every request, in aggregate slows down servers, eats up peoples’ data, raises costs and generally quickens the heat death of the universe.
Re: Ask HN: Dark mode for HN please?
#289Re: Ask HN: Dark mode for HN please?
#290Ok, you guys, this isn't the first time we've heard this request ( https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que... ). I'm willing to do it (edit: not to change the default! just to add the option). It's just that any CSS issue that goes more than a quarter-inch deep is outside both my expertise and my interest. We can add CSS to https://news.ycombinator.com/news.css for prefers-color-scheme: dark , bu…
Perhaps make a mobile friendly stylesheet? Please!!!!