by midenginedcoupe on 12/18/22, 1:29 PM with 51 comments
This isn't an attempt at a complete rebrand/redesign of the site, instead it's just fixing up what I think are the biggest design/readability issues whilst trying to remain true to the site's existing aesthetic.
Key features:
* Base font size increased
* A little more room around headings
* Top menu bar is full-width and with a little more padding
* Downvoted comments no longer faint hard-to-read grey. Instead they're rendered with a light gray background and in a smaller font size.
* Comments have a more readable max line length
* Quotes are parsed and transformed to look like genuine quotes. I.e. any p or span that starts with '>' is transformed and rendered with a light orange background and in italics.
* The 'Add comment' box on items is hidden by default. (Surely you'd want to read all the comments first before leaping in with your own 2p's worth!?)
Check out the repo's readme for example screenshots.by livre on 12/18/22, 5:42 PM
Btw thanks for the script, the alternating colours between comments and replies should be part of the standard hacker news experience, thanks for adding that.
by tutfbhuf on 12/18/22, 7:01 PM
by crtasm on 12/18/22, 5:40 PM
I suggest Violentmonkey (open source) over Tampermonkey (proprietary).
by jibbers on 12/19/22, 2:07 AM
.votearrow { background: none; } .votearrow:after { content: "\25B2"; position: relative; display: block; line-height: 0.9; color: rgb(154, 154, 154); font-size: 12px; }
https://github.com/dillonjohnbrown/user-styles/blob/main/hac...
by jccalhoun on 12/18/22, 5:40 PM
by allarm on 12/18/22, 6:15 PM
> downvoted comments no longer light gray text and hard to read
I don’t understand the reasoning behind this design decision. There’s often long comments threads starting from a downvoted comment and it’s super difficult for me to read it.
by Emigre_ on 12/18/22, 5:49 PM
This is below the minimum required level to conform to the Contrast and Color Accessibility requirements of the WCAG... a pity! See [2]. The minimum contrast is recommended to be 4.5:1.
The comments (below the main post text) text colour is black (#000000) and that has good contrast - it reaches level AAA in the WCAG guidelines, which is the best rating. Unfortunately as mentioned by OP downvotes faint the colour of the text!...
[1] https://www.accessibilitychecker.org/color-contrast-checker/
by mrj on 12/18/22, 6:23 PM
@media (min-width: 768px) {
body {
padding: 0 40px;
}
}
because it felt crowded on a desktop screen. I do feel like removing the :visited color difference is a usability negative.Also the 'add comment' input isn't a button so it doesn't get a normal pointer:
input[type='submit'] {
cursor: pointer;
}
HN's table layout makes it tough to do normal things you'd expect on a site like this.. kinda surprising to see a no-kidding table layout these days. It brings back bad memories. Thanks for posting.by giuliomagnifico on 12/18/22, 3:00 PM
by hamburglar on 12/18/22, 9:16 PM
by bastawhiz on 12/18/22, 10:41 PM
by Beltalowda on 12/18/22, 6:04 PM
body { margin: 0; color: #000; background-color: #eee; }
#hnmain { background-color: #fff; box-shadow: 0 0 6px rgba(0, 0, 0, .2) } /* Better colours */
.itemlist { padding-left: .5em; }
td { color: inherit; }
.togg { float: left; margin-right: .5em; } /* Collapse button to the left */
.comment { line-height: 1.4em; } /* Bit more line-height */
The thing I miss the most is the ability to clearly cite/quote things, whether it's other posts or something from an article. Yes, you can use ">", maybe wrapped in italics, but I find it pretty unclear, especially for longer texts. You can have some user CSS or whatnot to clarify that, but that won't work for the majority of folks reading your post.by Obscurity4340 on 12/19/22, 6:12 AM
Its cool that people are putting together their own solutions but there are options that have invented the wheel in a pleasing format already and might facillitate discovery and ease of use in a way that might not be as comprehensive.
by cowsup on 12/18/22, 5:31 PM
Two quirks:
1. In Safari on my iPad, “add comment” is invisible, since it still uses the white font from vanilla HN. I’ve fixed this by adding “color: #333;” just below your existing “background-color: white;”
2. There seems to be no way to indicate if I have already read a post. In vanilla HN, read posts are slightly more faint. This script breaks that by overriding all links, including a:visited.
Otherwise a nice set of great QoL changes.
by guiambros on 12/18/22, 4:23 PM
Just a heads that if you use a dark theme (e.g. [1]), then it makes a whole mess, with illegible colors, parts in white background and so on. Not a surprise, given both are fighting to manipulate the DOM.
by casmike on 12/28/22, 5:11 PM
I included a link to your original repository in my README.md as it would have taken some effort to fork just one directory properly. Thanks for the script.
by lapcat on 12/18/22, 5:38 PM
:root { color-scheme: light dark; }
* { background-color: revert !important; color: revert !important; font-size: revert !important; }
center { text-align: left !important; }
table#hnmain { width: 100% !important; }
by stefanvdw1 on 12/18/22, 5:41 PM
Felt the same way but took it a step further and designed a whole new front-end[0] so that it was easier to use on modern large format screens (and added some things like dark mode).
by justsomehnguy on 12/18/22, 7:12 PM
I have HN set to 130% and it's fine.
Please, stop messing with the font size, every time I see 1/3 of my FullHD monitor set with 28pt+ text (and barren wastelands on other 2/3) I really want to slap someone over TCP/IP.
by rrgok on 12/18/22, 5:56 PM
by cbeach on 12/20/22, 12:01 AM
by fourmajor on 12/19/22, 3:38 PM
by zzo38computer on 12/18/22, 8:16 PM
by sogen on 12/18/22, 8:09 PM
by petodo on 12/18/22, 4:03 PM