Comment by hacker42
10 years ago
It would also be handy to have some visual guides for the indentation levels of nested comments as on Reddit. I've hacked my own indentation marks using a CSS injection for now, but this is clearly still not optimal:
@-moz-document url-prefix(https://news.ycombinator.com/) {
td { vertical-align: top }
td > img { background: repeating-linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,0) 38px, rgba(0,0,0,0.3) 38px, rgba(0,0,0,0.3) 40px); margin-top: 4px; height: 12px!important; }
div.votearrow { padding-bottom: 3px; background: url('http://localhost/uparrow.png') !important; background-size: 12px 20px !important; width: 12px!important;}
}
I've also increased the size of the voting arrow because it's just uncomfortably small. By Fitt's law [0], smaller buttons require more time and effort to click!
Riffing off your code, this extends the bars all the way up/down.
Slight addition using wider, shadowy gradients to conceal some aliasing issues:
Screenshot: https://i.imgur.com/f2WfHyp.png
Unfortunately it breaks on the 'threads' page.
Proper nesting layout will only work if they use proper nesting. Given the limitations - great job! I only use the first two lines as the png does not load.
Try this:
of course it doesn't.
the url leads you to localhost. you'd need a local webserver which serves your preferred upvote picture.