Skip to content

Instantly share code, notes, and snippets.

@doughamlin
Last active December 22, 2015 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doughamlin/6465053 to your computer and use it in GitHub Desktop.
Save doughamlin/6465053 to your computer and use it in GitHub Desktop.
A simple SCSS proposal for spoiler alerts on the web.
$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