JulianNorton / subreddit-css

used for /r/web_design and /r/graphic_design
https://www.reddit.com/r/web_design
45 stars 23 forks source link

Fixed rule qualification/hovering bug at line 2804 #34

Closed andrebu closed 9 years ago

andrebu commented 9 years ago

The rule at line 2804, ".comment .expand:hover", is being overridden by reddit's default ".comment.collapsed .tagline, .comment.collapsed .tagline a {color:gray}" (line 4600 of reddit's stylesheet), so that when a user hovers over the "[+]"(plus) of a collapsed comment, the hovering causes the background to go blue, but the plus sign would remain gray (it should turn white on hover).

This is resolved by strengthening the qualification of the rule in question by adding the ".collapsed" class to the ".comment" class, so that the rule reads as ".comment.collapsed .expand:hover", instead of just ".comment .expand:hover".

screen shot 2015-07-31 at 8 48 13 pm screen shot 2015-07-31 at 8 48 58 pm

(This is my first GH contribution/edit ever, so please tell me if my commenting is inadequate in any way)

purduekenny commented 9 years ago

@iamandrebulatov Great explanation of changes, by the way. Thanks for your contribution.