Skip to content

Instantly share code, notes, and snippets.

@DanielMSchmidt
Last active August 29, 2015 14:23
Show Gist options
  • Select an option

  • Save DanielMSchmidt/b3e8fd401b9df3e83039 to your computer and use it in GitHub Desktop.

Select an option

Save DanielMSchmidt/b3e8fd401b9df3e83039 to your computer and use it in GitHub Desktop.
Safe-touch mixin (works with sass >= 3.4 & modernizr)
@mixin safe-hover {
@at-root #{selector-append("html.no-touch", &, ":hover")} {
@content;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment