Created
April 6, 2015 14:56
-
-
Save efuller/2f839d1247a6f3c8487d 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"> | |
<ul> | |
<li>block 1</li> | |
<li>block 2</li> | |
<li>block 3</li> | |
<li>block 4</li> | |
<li>block 5</li> | |
<li>block 6</li> | |
<li>block 7</li> | |
<li>block 8</li> | |
<li>block 9</li> | |
<li>block 10</li> | |
</ul> | |
</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.12) | |
// Compass (v1.0.3) | |
// Bourbon (v4.2.0) | |
// Neat (v1.6.0) | |
// ---- | |
@import "bourbon/bourbon"; | |
@import "neat/neat"; | |
.container { | |
@include outer-container(); | |
background-color: gray; | |
padding-right: 35px; | |
ul { | |
list-style-type: none; | |
} | |
li { | |
@include span-columns(3); | |
@include omega(4n); | |
background: #ccc; | |
height:50px; | |
margin-bottom: 15px; | |
text-align: center; | |
} | |
} |
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
* { | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
box-sizing: border-box; | |
} | |
.container { | |
*zoom: 1; | |
max-width: 68em; | |
margin-left: auto; | |
margin-right: auto; | |
background-color: gray; | |
padding-right: 35px; | |
} | |
.container:before, .container:after { | |
content: " "; | |
display: table; | |
} | |
.container:after { | |
clear: both; | |
} | |
.container ul { | |
list-style-type: none; | |
} | |
.container li { | |
float: left; | |
display: block; | |
margin-right: 2.35765%; | |
width: 23.23176%; | |
background: #ccc; | |
height: 50px; | |
margin-bottom: 15px; | |
text-align: center; | |
} | |
.container li:last-child { | |
margin-right: 0; | |
} | |
.container li:nth-child(4n) { | |
margin-right: 0; | |
} | |
.container li:nth-child(4n+1) { | |
clear: left; | |
} |
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"> | |
<ul> | |
<li>block 1</li> | |
<li>block 2</li> | |
<li>block 3</li> | |
<li>block 4</li> | |
<li>block 5</li> | |
<li>block 6</li> | |
<li>block 7</li> | |
<li>block 8</li> | |
<li>block 9</li> | |
<li>block 10</li> | |
</ul> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment