Created
October 27, 2014 15:31
-
-
Save pederan/5c346a571f89ed3b7e5f 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="container"> | |
<ul> | |
<li>Test</li> | |
<li>Test 2</li> | |
<li>Test 3</li> | |
</ul> | |
</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.3.14) | |
// Compass (v1.0.1) | |
// Susy (v2.1.3) | |
// ---- | |
@import "susy"; | |
$susy: ( | |
columns: 12, | |
gutters: 1/3 | |
); | |
.container { | |
@include container(70.5em); | |
background-color: lightgrey; | |
} | |
li { | |
@include gallery(2 of 12); | |
} |
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
.container { | |
max-width: 70.5em; | |
margin-left: auto; | |
margin-right: auto; | |
background-color: lightgrey; | |
} | |
.container:after { | |
content: " "; | |
display: block; | |
clear: both; | |
} | |
li { | |
width: 14.89362%; | |
float: left; | |
} | |
li:nth-child(6n + 1) { | |
margin-left: 0; | |
margin-right: -100%; | |
clear: both; | |
margin-left: 0; | |
} | |
li:nth-child(6n + 2) { | |
margin-left: 17.02128%; | |
margin-right: -100%; | |
clear: none; | |
} | |
li:nth-child(6n + 3) { | |
margin-left: 34.04255%; | |
margin-right: -100%; | |
clear: none; | |
} | |
li:nth-child(6n + 4) { | |
margin-left: 51.06383%; | |
margin-right: -100%; | |
clear: none; | |
} | |
li:nth-child(6n + 5) { | |
margin-left: 68.08511%; | |
margin-right: -100%; | |
clear: none; | |
} | |
li:nth-child(6n + 6) { | |
margin-left: 85.10638%; | |
margin-right: -100%; | |
clear: none; | |
} |
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="container"> | |
<ul> | |
<li>Test</li> | |
<li>Test 2</li> | |
<li>Test 3</li> | |
</ul> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment