Last active
December 19, 2017 05:10
-
-
Save br4nnigan/357bb3b4a35b0d4cdc507d73bbc6ea7c to your computer and use it in GitHub Desktop.
snippet for reddit that hides subreddit names unless hovered
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a.subreddit[href$="r/nononono/"]:hover, | |
a.subreddit[href$="r/SweatyPalms/"]:hover { | |
min-width: 12em; | |
display: inline-block; | |
margin-bottom: 0; | |
} | |
a.subreddit[href$="r/nononono/"]:not(:hover), | |
a.subreddit[href$="r/SweatyPalms/"]:not(:hover) { | |
font-size: 0; | |
position: relative; | |
} | |
a.subreddit[href$="r/nononono/"]:not(:hover):before, | |
a.subreddit[href$="r/SweatyPalms/"]:not(:hover):before { | |
font-size: x-small; | |
color: #369; | |
content: "r/resSpoilerProtection"; | |
display: inline-block; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment