Skip to content

Commit

Permalink
WC: Use single column under 600px
Browse files Browse the repository at this point in the history
Resolves #339.
  • Loading branch information
Misplon committed Aug 26, 2018
1 parent 28e8b8b commit 67cfba9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 19 deletions.
21 changes: 8 additions & 13 deletions sass/woocommerce/_archives.scss
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,11 @@
width: 17.68%;
}

@media (max-width: 768px) {
@media (max-width: 600px) {

@at-root body.responsive#{&} {
width: 48%;
margin: 0 0 2.992em;
margin-right: 0;
width: 100%;
}
}

Expand Down Expand Up @@ -169,21 +170,15 @@
display: flex;
flex-wrap: wrap;

@media (max-width: 600px) {
display: block;
}

.button {
margin-top: auto;
margin-right: auto;
margin-left: auto;
}

@media (max-width: 768px) {

@at-root body.responsive#{&} {

&:nth-of-type(2n) {
margin-left: auto;
}
}
}
}
}
}
Expand Down
12 changes: 6 additions & 6 deletions woocommerce.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 67cfba9

Please sign in to comment.