Skip to content

Instantly share code, notes, and snippets.

@br4nnigan
Last active December 19, 2017 05:10
Show Gist options
  • Save br4nnigan/357bb3b4a35b0d4cdc507d73bbc6ea7c to your computer and use it in GitHub Desktop.
Save br4nnigan/357bb3b4a35b0d4cdc507d73bbc6ea7c to your computer and use it in GitHub Desktop.
snippet for reddit that hides subreddit names unless hovered
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