Skip to content

Instantly share code, notes, and snippets.

@frontendbeast
Created June 4, 2015 15:08
Show Gist options
  • Save frontendbeast/d7a8a370bd4d757c8b7f to your computer and use it in GitHub Desktop.
Save frontendbeast/d7a8a370bd4d757c8b7f to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// libsass (v3.2.4)
// ----
$namespace: c-nav;
.#{$namespace} {
position: relative;
&:before {
content: 'Menu';
display: inline-block;
padding: 1rem;
.#{$namespace}:focus &,
.#{$namespace}:hover & {
background-color: grey;
}
}
}
.c-nav {
position: relative;
}
.c-nav:before {
content: 'Menu';
display: inline-block;
padding: 1rem;
}
.c-nav:focus .c-nav:before,
.c-nav:hover .c-nav:before {
background-color: grey;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment