Skip to content

Instantly share code, notes, and snippets.

@j-mes
Created June 17, 2014 17:09
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 j-mes/0edd3575f8e6b6236e40 to your computer and use it in GitHub Desktop.
Save j-mes/0edd3575f8e6b6236e40 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.19)
// ----
// When we give an element some ‘attention’.
@mixin attention() {
&:hover,
&:active,
&:focus {
@content;
}
}
a {
font-weight: bold;
text-decoration: none;
color: #c00;
@include attention() {
outline: none;
color: #09f;
}
}
.btn {
background-color: #09f;
@include attention() {
background-color: darken(#09f, 10%);
}
}
a {
font-weight: bold;
text-decoration: none;
color: #c00;
}
a:hover, a:active, a:focus {
outline: none;
color: #09f;
}
.btn {
background-color: #09f;
}
.btn:hover, .btn:active, .btn:focus {
background-color: #007acc;
}
@j-mes
Copy link
Author

j-mes commented Jun 17, 2014

This is by Harry Roberts. I think it's a piece of genius anyway.

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