Skip to content

Instantly share code, notes, and snippets.

@cararemixed
Created September 4, 2013 15:15
Show Gist options
  • Save cararemixed/6438436 to your computer and use it in GitHub Desktop.
Save cararemixed/6438436 to your computer and use it in GitHub Desktop.
Sass extend problem/bug
/* output from running `scss extend.scss` */
error, .badError {
border: 1px #f00;
background: #fdd; }
.error.intrusion, .intrusion.badError {
font-size: 1.3em;
font-weight: bold; }
.badError {
border-width: 3px; }
.error, .badError {
border: 1px #f00;
background: #fdd;
}
.error.intrusion,
.badError.intrusion {
font-size: 1.3em;
font-weight: bold;
}
.badError {
border-width: 3px;
}
/* from the Sass homepage */
.error {
border: 1px #f00;
background: #fdd;
}
.error.intrusion {
font-size: 1.3em;
font-weight: bold;
}
.badError {
@extend .error;
border-width: 3px;
}
@cararemixed
Copy link
Author

$ scss -v
Sass 3.2.10 (Media Mark)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment