alphapapa / solarized-everything-css

A collection of Solarized user-stylesheets for...everything?
GNU General Public License v3.0
278 stars 43 forks source link

Add reddit #10

Closed The-Compiler closed 7 years ago

The-Compiler commented 7 years ago

This is not perfect, but improves the most annoying issues:

Before

reddit-before-2 reddit-before-1

After

reddit-after-1 reddit-after-2

Reddit is quite difficult as every subreddit has its own stylesheet though, and apparently some contain:

.comment,.comment .comment .comment,.comment .comment .comment .comment .comment,.comment .comment .comment .comment .comment .comment .comment,.comment .comment .comment .comment .comment .comment .comment .comment .comment {
    background-color: #313e3e!important;
}

.comment .comment,.comment .comment .comment .comment,.comment .comment .comment .comment .comment .comment,.comment .comment .comment .comment .comment .comment .comment .comment,.comment .comment .comment .comment .comment .comment .comment .comment .comment .comment {
    background-color: #f5f5f5!important
}

Or:

body .comment,body .comment .comment .comment,body .comment .comment .comment .comment .comment,body .comment .comment .comment .comment .comment .comment .comment,body .comment .comment .comment .comment .comment .comment .comment .comment .comment,.res-commentBoxes .content .comment,.res-commentBoxes .content .comment .comment .comment,.res-commentBoxes .content .comment .comment .comment .comment .comment,.res-commentBoxes .content .comment .comment .comment .comment .comment .comment .comment,.res-commentBoxes .content .comment .comment .comment .comment .comment .comment .comment .comment .comment {
    background-color: #F5F5F5!important;
    border-radius: 0!important
}

.comment .comment,.comment .comment .comment .comment,.comment .comment .comment .comment .comment .comment,.comment .comment .comment .comment .comment .comment .comment .comment,.comment .comment .comment .comment .comment .comment .comment .comment .comment .comment,.res-commentBoxes .content .comment .comment,.res-commentBoxes .content .comment .comment .comment .comment,.res-commentBoxes .content .comment .comment .comment .comment .comment .comment,.res-commentBoxes .content .comment .comment .comment .comment .comment .comment .comment .comment,.res-commentBoxes .content .comment .comment .comment .comment .comment .comment .comment .comment .comment .comment {
    background-color: #fff!important;
    border-radius: 0!important
}

Is there a sane way to override that kind of stuff?

alphapapa commented 7 years ago

Thanks, looks great!

I'm not sure about the subreddit sheet issues you mentioned. I made a sheet for the /r/Emacs sub (https://github.com/alphapapa/reddit-emacs-css but they recently changed it to another--IMHO quite ugly--one without explanation, but it still works as a user-style), and I didn't have to use any selectors like the ones you showed. I'm guessing any subreddit sheets that have selectors like that were made by people who either didn't know what they were doing, or wanted to achieve an unusual, complicated effect. I doubt that it would be feasible to account for ones like that if there are as many variations as it sounds like there are, but I may be wrong. :)