Re-organize SASS structure (#1425)
This commit is contained in:
parent
27fc314b55
commit
5c74dc9fa8
52 changed files with 541 additions and 515 deletions
64
sass/plugins/woocommerce/_products.scss
Normal file
64
sass/plugins/woocommerce/_products.scss
Normal file
|
@ -0,0 +1,64 @@
|
|||
ul.products {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
li.product {
|
||||
list-style: none;
|
||||
position: relative;
|
||||
margin-bottom: 2em;
|
||||
|
||||
.woocommerce-loop-product__title {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
img {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.button {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 48em) {
|
||||
|
||||
ul.products {
|
||||
|
||||
li.product {
|
||||
|
||||
@include column-width(3);
|
||||
float: left;
|
||||
margin-right: $columns__margin;
|
||||
|
||||
&.first {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
&.last {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ul.products.columns-1 {
|
||||
|
||||
li.product {
|
||||
float: none;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@for $i from 2 through 6 {
|
||||
|
||||
ul.products.columns-#{$i} {
|
||||
|
||||
li.product {
|
||||
|
||||
@include column-width( $i );
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue