Created
January 16, 2018 08:40
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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