Skip to content

Instantly share code, notes, and snippets.

@krisbulman
Created August 17, 2015 16:13
Show Gist options
  • Save krisbulman/7d3423ea152723fc789c to your computer and use it in GitHub Desktop.
Save krisbulman/7d3423ea152723fc789c to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div class="grid-wrapper">
<div class="grid-item">one</div>
<div class="grid-item">two</div>
</div>
// ----
// libsass (v3.2.5)
// ----
@import 'susy';
.grid-wrapper {
width: 1190px;
margin: 0 auto;
}
.grid-item {
@include gallery(6 of 12 70px/35px);
background-color: #ccc;
}
.grid-wrapper {
width: 1190px;
margin: 0 auto;
}
.grid-item {
width: 47.05882%;
float: left;
background-color: #ccc;
}
.grid-item:nth-child(2n + 1) {
margin-left: 0;
margin-right: -100%;
clear: both;
margin-left: 0;
}
.grid-item:nth-child(2n + 2) {
margin-left: 52.94118%;
margin-right: -100%;
clear: none;
}
<div class="grid-wrapper">
<div class="grid-item">one</div>
<div class="grid-item">two</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment