Last active
August 29, 2015 14:21
-
-
Save dcouto/c71a6fc42e03e0751070 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
<h1>Susy Grid System Example</h1> | |
<div class="twelve-columns"> | |
<div> | |
<div>some content would go here</div> | |
</div> | |
<div> | |
<div>some content would go here</div> | |
</div> | |
<div> | |
<div>some content would go here</div> | |
</div> | |
<div> | |
<div>some content would go here</div> | |
</div> | |
<div> | |
<div>some content would go here</div> | |
</div> | |
<div> | |
<div>some content would go here</div> | |
</div> | |
<div> | |
<div>some content would go here</div> | |
</div> | |
<div> | |
<div>some content would go here</div> | |
</div> | |
<div> | |
<div>some content would go here</div> | |
</div> | |
<div> | |
<div>some content would go here</div> | |
</div> | |
<div> | |
<div>some content would go here</div> | |
</div> | |
<div> | |
<div>some content would go here</div> | |
</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
// ---- | |
// libsass (v3.2.4) | |
// ---- | |
@import "susy"; | |
$susy: ( | |
columns: 12, | |
gutters: .25, | |
gutter-position: inside, | |
); | |
.twelve-columns { | |
@include container(); | |
background-color: maroon; | |
padding-top: 10px; | |
padding-bottom: 10px; | |
> div { | |
@include span(1 of 12); | |
background-color: blue; | |
padding-top: 10px; | |
padding-bottom: 10px; | |
&:nth-child(even) { | |
background-color: green; | |
} | |
> div { | |
background-color: orange; | |
width: 100%; | |
min-height: 70px; | |
} | |
} | |
} |
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
.twelve-columns { | |
max-width: 100%; | |
margin-left: auto; | |
margin-right: auto; | |
background-color: maroon; | |
padding-top: 10px; | |
padding-bottom: 10px; | |
} | |
.twelve-columns:after { | |
content: " "; | |
display: block; | |
clear: both; | |
} | |
.twelve-columns > div { | |
-moz-box-sizing: border-box; | |
-webkit-box-sizing: border-box; | |
box-sizing: border-box; | |
width: 8.33333%; | |
float: left; | |
padding-left: 0.83333%; | |
padding-right: 0.83333%; | |
background-color: blue; | |
padding-top: 10px; | |
padding-bottom: 10px; | |
} | |
.twelve-columns > div:nth-child(even) { | |
background-color: green; | |
} | |
.twelve-columns > div > div { | |
background-color: orange; | |
width: 100%; | |
min-height: 70px; | |
} |
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
<h1>Susy Grid System Example</h1> | |
<div class="twelve-columns"> | |
<div> | |
<div>some content would go here</div> | |
</div> | |
<div> | |
<div>some content would go here</div> | |
</div> | |
<div> | |
<div>some content would go here</div> | |
</div> | |
<div> | |
<div>some content would go here</div> | |
</div> | |
<div> | |
<div>some content would go here</div> | |
</div> | |
<div> | |
<div>some content would go here</div> | |
</div> | |
<div> | |
<div>some content would go here</div> | |
</div> | |
<div> | |
<div>some content would go here</div> | |
</div> | |
<div> | |
<div>some content would go here</div> | |
</div> | |
<div> | |
<div>some content would go here</div> | |
</div> | |
<div> | |
<div>some content would go here</div> | |
</div> | |
<div> | |
<div>some content would go here</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment