浏览代码

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

Allan Cole 5 年之前
父节点
当前提交
476c913210
共有 2 个文件被更改,包括 9 次插入0 次删除
  1. 5 0
      varia/sass/vendors/woocommerce/widgets/_product-lists.scss
  2. 4 0
      varia/style-woocommerce.css

+ 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")};
 				padding: 0;
 				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;
 		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;
+	}
 }