Created
November 2, 2016 14:23
-
-
Save Camwyn/0fb93601f8e43946fba3890efeb0cbaa to your computer and use it in GitHub Desktop.
Visual focus mixins
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
| // Add styles on active/focus/hover | |
| @mixin visual-focus { | |
| &:active, | |
| &:focus, | |
| &:hover { | |
| @content; | |
| } | |
| } | |
| // Remove outline on active/focus/hover | |
| @mixin no-outline { | |
| @include visaul-focus() { | |
| outline: 0; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment