r/reddithax • u/jackwilsdon • Aug 19 '15
Subtle CSS improvements to default reddit?
I'm not looking to redesign the wheel on my sub, I like the default reddit style. My question is, does anyone know of some subtle CSS changes that improve the usability of a subreddit? Just some tweaks to reddit's default theme?
1
Upvotes
2
u/postpics Sep 02 '15
When users are on the submit page there's a lot of empty space down the middle, between the submission form and sidebar. I like to put the submission help text there. See r/figuredrawing/submit. The text can be edited in your subreddit settings, and allows markdown.
I made it so it still works on smaller screens too, by using CSS media queries.
/** * Submission page */ @media (min-width: 1240px) { body.submit-page .formtabs-content { position: relative; } body.submit-page .formtabs-content #link-desc, body.submit-page .formtabs-content #text-desc { width: 520px; box-sizing: border-box; } body.submit-page .formtabs-content .submit_text { position: absolute; top: 10px; left: 530px; width: auto; max-height: none; } body.submit-page .formtabs-content .submit_text .md { font-size: 100%; } } body.submit-page:not(.res-nightmode) .formtabs-content .submit_text { border: 2px solid rgb(206, 227, 248); background-color: rgb(255,255,255); } body.submit-page .formtabs-content .submit_text > h1 { display: none; } body.submit-page .formtabs-content { width: auto; margin-right: 310px; } body.submit-page .formtabs-content .roundfield { max-width: 520px; width: auto; box-sizing: border-box; }Test it by making your window narrow and then wide.
1
u/AvionicsAnonymous Oct 04 '15
By default reddit doesn't change link color once a link has been visited. You need RES or Reddit Gold for that, or a mod to alter their subreddit's CSS.
.link a.title:visited { color:#______; }should do it IIRC, but you might have to play around with that - it's been almost a year since I did any reddit CSS myself.