2019-02-21 19:00:47 +00:00
|
|
|
.wp-block-woocommerce-handpicked-products,
|
|
|
|
.wp-block-woocommerce-product-best-sellers,
|
|
|
|
.wp-block-woocommerce-product-category,
|
|
|
|
.wp-block-woocommerce-product-top-rated,
|
|
|
|
.wp-block-woocommerce-products-by-attribute {
|
|
|
|
&.is-hidden-title {
|
|
|
|
.woocommerce-loop-product__title {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-hidden-price {
|
|
|
|
.price {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-03-06 18:50:32 +00:00
|
|
|
&.is-hidden-rating {
|
|
|
|
.star-rating {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-02-21 19:00:47 +00:00
|
|
|
&.is-hidden-button {
|
2019-05-16 13:03:11 +00:00
|
|
|
.add_to_cart_button {
|
2019-02-21 19:00:47 +00:00
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-05-16 13:03:11 +00:00
|
|
|
|
|
|
|
.wc-block-grid {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
list-style: none;
|
|
|
|
padding-left: 0;
|
|
|
|
|
|
|
|
&.has-1-columns {
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
.wc-block-grid__product {
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@for $i from 2 to 9 {
|
|
|
|
&.has-#{$i}-columns .wc-block-grid__product {
|
|
|
|
flex: 1 0 calc(#{ 100% / $i });
|
|
|
|
max-width: 100% / $i;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-grid__product-title {
|
|
|
|
line-height: 1.2;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.has-4-columns:not(.alignwide):not(.alignfull),
|
|
|
|
&.has-5-columns:not(.alignfull),
|
|
|
|
&.has-6-columns:not(.alignfull),
|
|
|
|
&.has-7-columns,
|
|
|
|
&.has-8-columns {
|
|
|
|
|
|
|
|
.wc-block-grid__product-title {
|
|
|
|
font-size: 0.9em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-grid__product-price {
|
|
|
|
font-size: 0.8em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-grid__product-add-to-cart {
|
|
|
|
font-size: 0.8em;
|
|
|
|
line-height: 1.4;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-grid__product {
|
|
|
|
padding-left: $gap/2;
|
|
|
|
padding-right: $gap/2;
|
|
|
|
|
|
|
|
.wc-block-grid__product-image img {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-grid__product-image,
|
|
|
|
.wc-block-grid__product-title,
|
|
|
|
.wc-block-grid__product-price,
|
|
|
|
.wc-block-grid__product-rating {
|
|
|
|
margin-bottom: $gap-small;
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-grid__product-add-to-cart a {
|
|
|
|
word-break: break-word;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.has-multiple-rows .wc-block-grid__product {
|
|
|
|
margin-bottom: $gap-large;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Remove some default storefront styles.
|
|
|
|
.site-main &.products li.product {
|
|
|
|
float: none;
|
|
|
|
width: auto;
|
|
|
|
margin-right: 0;
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
}
|