Last active
December 22, 2015 11:19
-
-
Save doughamlin/6465053 to your computer and use it in GitHub Desktop.
A simple SCSS proposal for spoiler alerts on the web.
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
$background: #fff; | |
$text: #444; | |
.spoiler { | |
color: $background; | |
background: $background; | |
&:hover { color: $text; } | |
&:before { | |
content: '(Spoiler alert. Hover to reveal.): '; | |
color: darken($text, %10); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment