Created
November 5, 2013 10:42
-
-
Save jackw/7317145 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains 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
// ---- | |
// Sass (v3.3.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
%my-placeholder { | |
background:black; | |
padding:20px; | |
position:relative; | |
color:red; | |
&:before { | |
background:purple; | |
content:'I was here before you.'; | |
padding:20px; | |
position:absolute; | |
top:0; | |
right:100%; | |
} | |
&:after { | |
background:pink; | |
content:'I come after you.'; | |
padding:20px; | |
position:absolute; | |
top:0; | |
left:100%; | |
} | |
} | |
@media all and (max-width: 699px) and (min-width: 520px), (min-width: 1151px) { | |
.can-i-extend { | |
@extend %my-placeholder; | |
} | |
} |
This file contains 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
You may not @extend an outer selector from within @media. | |
You may only @extend selectors within the same directive. | |
From "@extend %my-placeholder" on line 27 of /app/lib/sassmeister.rb. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment