Created
February 11, 2015 13:32
-
-
Save SasSam/ed7c087af02eab29f6d8 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or 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
<div class="container"> | |
<p>Hello world</p> | |
</div> |
This file contains hidden or 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
// ---- | |
// 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; | |
} | |
} | |
} |
This file contains hidden or 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
.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; } |
This file contains hidden or 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
<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