Last active
August 29, 2015 14:10
-
-
Save n9ti/608b6a6109a8501abdc6 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
<main> | |
<div class="one"><span></span></div> | |
<div class="two"><span></span></div> | |
<div class="three"><span></span></div> | |
</main> |
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.14) | |
// Compass (v1.0.1) | |
// Susy (v2.1.3) | |
// ---- | |
@import "susy"; | |
$susy: ( | |
gutter-position: inside-static, | |
container: 100%, | |
column-width: 200px, | |
gutters: 10px/200px, | |
columns: 10 | |
); | |
@include border-box-sizing; | |
main { | |
@include container(content-box); | |
padding: 0 5px; | |
outline: 1px solid red; | |
} | |
.one { @include span(3); } | |
.two { @include span(4); } | |
.three { @include span(3); } | |
/* Style */ | |
span { | |
display: block; | |
border-radius: 1px; | |
box-shadow: 0px 0px 4px; | |
height: 100px; | |
margin-top: 10px; | |
margin-bottom: 10px; | |
} |
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
*, *:before, *:after { | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
box-sizing: border-box; | |
} | |
main { | |
-moz-box-sizing: content-box; | |
-webkit-box-sizing: content-box; | |
box-sizing: content-box; | |
max-width: 100%; | |
margin-left: auto; | |
margin-right: auto; | |
padding: 0 5px; | |
outline: 1px solid red; | |
} | |
main:after { | |
content: " "; | |
display: block; | |
clear: both; | |
} | |
.one { | |
width: 30%; | |
float: left; | |
padding-left: 5px; | |
padding-right: 5px; | |
} | |
.two { | |
width: 40%; | |
float: left; | |
padding-left: 5px; | |
padding-right: 5px; | |
} | |
.three { | |
width: 30%; | |
float: left; | |
padding-left: 5px; | |
padding-right: 5px; | |
} | |
/* Style */ | |
span { | |
display: block; | |
border-radius: 1px; | |
box-shadow: 0px 0px 4px; | |
height: 100px; | |
margin-top: 10px; | |
margin-bottom: 10px; | |
} |
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
<main> | |
<div class="one"><span></span></div> | |
<div class="two"><span></span></div> | |
<div class="three"><span></span></div> | |
</main> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment