Skip to content

Instantly share code, notes, and snippets.

@ae-elaine-axis
Created January 16, 2018 08:40
Show Gist options
  • Save ae-elaine-axis/05d2497939bc4f81043de7e153137fe4 to your computer and use it in GitHub Desktop.
Save ae-elaine-axis/05d2497939bc4f81043de7e153137fe4 to your computer and use it in GitHub Desktop.
New product list: the same number of categories in the first row
.grid__categories {
&[data-cols="1"] {
.grid-category {
@include grid-category-settings(2, 2);
}
}
@for $i from 2 through 10 {
&[data-cols="#{$i}"] .grid-category {
@include grid-category-settings($i, $i);
}
}
&.grid__categories--large-items {
&[data-cols="1"] {
justify-content: center;
.grid-category {
max-width: 480px;
@include grid-category-settings(1, 1);
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment