Skip to content

Instantly share code, notes, and snippets.

@simplethemes
Created February 12, 2016 07:01
Show Gist options
  • Save simplethemes/100bf30e61dd0aebcdc7 to your computer and use it in GitHub Desktop.
Save simplethemes/100bf30e61dd0aebcdc7 to your computer and use it in GitHub Desktop.
WordPress Gallery Columns - SASS / Bourbon Neat
.gallery-columns-2 {
@include row();
.gallery-item {
margin:0;
@include span-columns(6 of 12);
@include omega(2n);
text-align: center;
}
}
.gallery-columns-3 {
@include row();
.gallery-item {
margin:0;
@include span-columns(4 of 12);
@include omega(3n);
text-align: center;
}
}
.gallery-columns-4 {
@include row();
.gallery-item {
margin:0;
@include span-columns(3 of 12);
@include omega(4n);
}
}
.gallery-columns-5 {
@include row();
.gallery-item {
margin:0;
@include span-columns(2.4 of 12);
@include omega(5n);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment