Created
November 28, 2014 12:56
-
-
Save lewismcarey/b395566188f83d11fe30 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="block"> | |
<div class="element">one</div> | |
<div class="element">two</div> | |
<span class="element">three</span> | |
<div class="element">four</div> | |
</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
// ---- | |
// Sass (v3.4.7) | |
// Compass (v1.0.1) | |
// ---- | |
* { | |
box-sizing: border-box; | |
} | |
.block { | |
display: table; | |
width: 100%; | |
padding: 0; | |
& + & { | |
padding: 1em; | |
} | |
@at-root div { | |
border: 10px white solid; | |
display: table-cell; | |
background: hotpink; | |
text-align: center; | |
padding: 10px; | |
& + div { | |
opacity: 0.5; | |
} | |
& ~ div { | |
color: white; | |
} | |
} | |
} | |
li ~ span { | |
color: red; | |
} |
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
* { | |
box-sizing: border-box; | |
} | |
.block { | |
display: table; | |
width: 100%; | |
padding: 0; | |
} | |
.block + .block { | |
padding: 1em; | |
} | |
div { | |
border: 10px white solid; | |
display: table-cell; | |
background: hotpink; | |
text-align: center; | |
padding: 10px; | |
} | |
div + div { | |
opacity: 0.5; | |
} | |
div ~ div { | |
color: white; | |
} | |
li ~ span { | |
color: red; | |
} |
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="block"> | |
<div class="element">one</div> | |
<div class="element">two</div> | |
<span class="element">three</span> | |
<div class="element">four</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment