Skip to content

Instantly share code, notes, and snippets.

@mvgrimes
Created November 4, 2014 21:43
Show Gist options
  • Save mvgrimes/dfbde7fc530232bca44d to your computer and use it in GitHub Desktop.
Save mvgrimes/dfbde7fc530232bca44d to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div id="container">
<ul>
<li>one</li>
<li>two</li>
<li>three</li>
<li>four</li>
</ul>
</div>
// ----
// Sass (v3.4.6)
// Compass (v1.0.1)
// Susy (v2.1.3)
// ----
@import "compass";
@import "susy";
$susy: ( global-box-sizing: border-box );
html {
@include box-sizing(border-box);
}
*, *:before, *:after {
box-sizing: inherit;
}
#container {
@include container();
}
ul{
list-style-type:none;
padding: 0;
width: 100%;
}
li{
@include span( 3 wide of 12 no-gutter);
background-color: #ccc;
height: 30px;
}
li:nth-child(even) {
background-color: #ddd;
}
html {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
*, *:before, *:after {
box-sizing: inherit;
}
#container {
max-width: 100%;
margin-left: auto;
margin-right: auto;
}
#container:after {
content: " ";
display: block;
clear: both;
}
ul {
list-style-type: none;
padding: 0;
width: 100%;
}
li {
width: 25.42373%;
float: left;
background-color: #ccc;
height: 30px;
}
li:nth-child(even) {
background-color: #ddd;
}
<div id="container">
<ul>
<li>one</li>
<li>two</li>
<li>three</li>
<li>four</li>
</ul>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment