Skip to content

Instantly share code, notes, and snippets.

@patrickbjohnson
Created August 31, 2015 01:52
Show Gist options
  • Select an option

  • Save patrickbjohnson/51f994bb9251b804db35 to your computer and use it in GitHub Desktop.

Select an option

Save patrickbjohnson/51f994bb9251b804db35 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div class="portfolio-item">thing</div>
<div class="portfolio-item">thing</div>
<div class="portfolio-item">thing</div>
// ----
// libsass (v3.2.5)
// ----
@import "susy";
$susy: (
gutters: 30px/360px,
);
.body {
overflow: hidden;
}
.portfolio-item{
@include gallery(4 of 12);
background: skyblue;
max-width:360px;
}
.body {
overflow: hidden;
}
.portfolio-item {
width: 32.90323%;
float: left;
background: skyblue;
max-width: 360px;
}
.portfolio-item:nth-child(3n + 1) {
margin-left: 0;
margin-right: -100%;
clear: both;
margin-left: 0;
}
.portfolio-item:nth-child(3n + 2) {
margin-left: 33.54839%;
margin-right: -100%;
clear: none;
}
.portfolio-item:nth-child(3n + 3) {
margin-left: 67.09677%;
margin-right: -100%;
clear: none;
}
<div class="portfolio-item">thing</div>
<div class="portfolio-item">thing</div>
<div class="portfolio-item">thing</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment