Created
September 11, 2014 19:58
-
-
Save kuatsure/f2ba543c3312ea82a6b0 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or 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
// ---- | |
// Sass (v3.4.3) | |
// Compass (v1.0.1) | |
// ---- | |
// 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%); | |
} | |
} |
This file contains hidden or 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
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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment