ソースを参照

Merge branch 'enhancement/add-wc-support' into enhancement/add-wc-support-shawburn

Allan Cole 5 年 前
コミット
476c913210

+ 5 - 0
varia/sass/vendors/woocommerce/widgets/_product-lists.scss

@@ -15,6 +15,11 @@ body[class*="woocommerce"] #page { // adding #page here to override default wc s
 				margin-bottom: #{map-deep-get($config-global, "spacing", "vertical")};
 				margin-bottom: #{map-deep-get($config-global, "spacing", "vertical")};
 				padding: 0;
 				padding: 0;
 				width: calc((100% / 3) - #{map-deep-get($config-global, "spacing", "unit")});
 				width: calc((100% / 3) - #{map-deep-get($config-global, "spacing", "unit")});
+
+				&:nth-child(3n+2):last-child {
+					margin-left: #{1.5 * map-deep-get($config-global, "spacing", "unit")};
+					margin-right: auto;
+				}
 			}
 			}
 		}
 		}
 	}
 	}

+ 4 - 0
varia/style-woocommerce.css

@@ -1915,4 +1915,8 @@ body[class*="woocommerce"] #page .widget_price_filter .price_slider_wrapper .ui-
 		padding: 0;
 		padding: 0;
 		width: calc((100% / 3) - 16px);
 		width: calc((100% / 3) - 16px);
 	}
 	}
+	body[class*="woocommerce"] #page .widget.woocommerce ul.product_list_widget:not(.woocommerce-mini-cart) > li:nth-child(3n+2):last-child {
+		margin-left: 24px;
+		margin-right: auto;
+	}
 }
 }