Skip to content

Instantly share code, notes, and snippets.

@taupecat
Created May 8, 2014 15:28
Show Gist options
  • Save taupecat/152ddee8bd7dfdc2594e to your computer and use it in GitHub Desktop.
Save taupecat/152ddee8bd7dfdc2594e to your computer and use it in GitHub Desktop.
@mixin highlight($adjustment: 0) {
$color-test: rgba(255, 0, 255, 0.2);
background-color: adjust-hue($color-test, $adjustment * 1deg);
}
@taupecat
Copy link
Author

taupecat commented May 8, 2014

A little mixin for adding a semi-transparent background color (defaults to magenta at 20% opacity, but the hue can be adjusted with a parameter) for development/debugging purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment