Skip to content

Instantly share code, notes, and snippets.

@Camwyn
Created November 2, 2016 14:23
Show Gist options
  • Select an option

  • Save Camwyn/0fb93601f8e43946fba3890efeb0cbaa to your computer and use it in GitHub Desktop.

Select an option

Save Camwyn/0fb93601f8e43946fba3890efeb0cbaa to your computer and use it in GitHub Desktop.
Visual focus mixins
// 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