Skip to content

Instantly share code, notes, and snippets.

@andrewplummer
Last active May 29, 2016 18:23
Show Gist options
  • Save andrewplummer/8486c66ba2422b341d479e827125d186 to your computer and use it in GitHub Desktop.
Save andrewplummer/8486c66ba2422b341d479e827125d186 to your computer and use it in GitHub Desktop.
@extend starting to go nuts
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// ----
.example-block {
color: blue;
}
.example__actions {
background-color: red;
}
.example:hover .example__actions {
visibility: visible;
}
pre {
@extend .example-block;
}
pre code {
@extend .example;
}
.example__content {
@extend code;
}
// ----
// Sass (v3.4.21)
// Compass (v1.0.3)
// ----
.example__actions {
background-color: red;
}
.example:hover .example__actions {
visibility: visible;
}
pre code {
@extend .example;
}
.example__content {
@extend code;
}
.example__actions {
background-color: red;
}
.example:hover .example__actions, pre code:hover .example__actions, pre .example__content:hover .example__actions {
visibility: visible;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment