Created
December 3, 2014 07:33
-
-
Save oksushi/ef73a72746df2dbcb566 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
<div class='container'> | |
<div class='inner'></div> | |
</div> | |
<div class='container big'> | |
<div class='inner'></div> | |
</div> |
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.4.7) | |
// Compass (v1.0.1) | |
// ---- | |
// Sass (v3.4.7) | |
// Compass (v1.0.1) | |
// ---- | |
$size: 100px; | |
.container { | |
width: $size; | |
height: $size; | |
margin: 20px; | |
background: #c00; | |
float: left; | |
position: relative; | |
.inner{ | |
margin: auto; | |
position: absolute; | |
top: 25%; | |
bottom: 25%; | |
left: 25%; | |
right: 25%; | |
background: #0c0; | |
} | |
&.big { | |
width: $size*2; | |
height: $size*2; | |
} | |
} |
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
.container { | |
width: 100px; | |
height: 100px; | |
margin: 20px; | |
background: #c00; | |
float: left; | |
position: relative; | |
} | |
.container .inner { | |
margin: auto; | |
position: absolute; | |
top: 25%; | |
bottom: 25%; | |
left: 25%; | |
right: 25%; | |
background: #0c0; | |
} | |
.container.big { | |
width: 200px; | |
height: 200px; | |
} |
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
<div class='container'> | |
<div class='inner'></div> | |
</div> | |
<div class='container big'> | |
<div class='inner'></div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment