Skip to content

Instantly share code, notes, and snippets.

@alxjrvs
Created October 8, 2014 02:31
Show Gist options
  • Save alxjrvs/7f400364300ea44ec8e8 to your computer and use it in GitHub Desktop.
Save alxjrvs/7f400364300ea44ec8e8 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
.button
Click
.button--error
Error
.button--success
Success
.button--pending
Pending
// ----
// Sass (v3.4.4)
// Compass (v1.0.1)
// ----
// Extending a Silent Class
%button {
height: 100px;
width: 200px;
background: white;
}
.button {
@extend %button;
&--success {
@extend %button;
background: green;
}
}
.button--dark {
@extend %button;
background: black;
}
.button, .button--success, .button--dark {
height: 100px;
width: 200px;
background: white;
}
.button--success {
background: green;
}
.button--dark {
background: black;
}
.button
Click
.button--error
Error
.button--success
Success
.button--pending
Pending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment