Skip to content

Instantly share code, notes, and snippets.

@SasSam
Created February 11, 2015 13:32
Show Gist options
  • Save SasSam/ed7c087af02eab29f6d8 to your computer and use it in GitHub Desktop.
Save SasSam/ed7c087af02eab29f6d8 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div class="container">
<p>Hello world</p>
</div>
// ----
// libsass (v3.1.0-beta)
// ----
.test-class-1 {
color: #0f0;
width: 10px;
height: 10px;
border: 1px solid #0f0;
}
.test-class-2 {
color: #f00;
width: 20px;
height: 20px;
border: 1px solid #f00;
}
.container {
background: #ff0;
&:before {
@extend .test-class-1;
content: "O";
display: inline-block;
overflow: none;
@media (min-width: 1000px) {
@extend .test-class-2;
}
}
}
.test-class-1, .container:before {
color: #0f0;
width: 10px;
height: 10px;
border: 1px solid #0f0; }
.test-class-2, .container:before {
color: #f00;
width: 20px;
height: 20px;
border: 1px solid #f00; }
.container {
background: #ff0; }
.container:before {
content: "O";
display: inline-block;
overflow: none; }
<div class="container">
<p>Hello world</p>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment