Created
May 14, 2014 17:49
-
-
Save nhall/fe7cf7e15563712a7aed to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains 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.3.7) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
// Using `&` operator and parent selectors | |
/*! All Sass versions */ | |
.parent { | |
background-color: #0e0e0e; | |
.child { | |
text-align: center; | |
&:hover { | |
color: inherit; | |
} | |
} | |
.modifier & { | |
visibility: hidden; | |
} | |
} | |
/*! Sass 3.3 */ | |
.nav-sub { | |
background-color: #0e0e0e; | |
&-link { | |
text-align: center; | |
} | |
} |
This file contains 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
/*! All Sass versions */ | |
.parent { | |
background-color: #0e0e0e; | |
} | |
.parent .child { | |
text-align: center; | |
} | |
.parent .child:hover { | |
color: inherit; | |
} | |
.modifier .parent { | |
visibility: hidden; | |
} | |
/*! Sass 3.3 */ | |
.nav-sub { | |
background-color: #0e0e0e; | |
} | |
.nav-sub-link { | |
text-align: center; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment