Skip to content

Instantly share code, notes, and snippets.

@rabellamy
Last active August 29, 2015 13:57
Show Gist options
  • Save rabellamy/9494803 to your computer and use it in GitHub Desktop.
Save rabellamy/9494803 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.1)
// Compass (v1.0.0.alpha.18)
// Breakpoint (v2.4.1)
// Singularity.gs (v1.2.0.rc.6)
// ----
@import "compass";
@import "breakpoint";
@import "singularitygs";
$view-gutter: 1/3;
.view-team {
.views-row {
margin-bottom: 1em;
@include breakpoint(700px) {
&:nth-of-type(odd) {
@include grid-span(1, 1, (1 1), $gutter: $view-gutter, $options: 'right');
}
&:nth-of-type(even) {
@include grid-span(1, 2, (1 1), $gutter: $view-gutter, $options: 'right');
}
}
@include breakpoint(1040px) {
&:nth-of-type(1n) {
@include grid-span(1, 1, (1 1 1), $gutter: $view-gutter, $options: 'right');
}
&:nth-of-type(2n) {
@include grid-span(1, 2, (1 1 1), $gutter: $view-gutter, $options: 'right');
}
&:nth-of-type(3n) {
@include grid-span(1, 3, (1 1 1), $gutter: $view-gutter, $options: 'right');
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment