Skip to content

Commit e6d63a7

Browse files
Better grouped product styles.
1 parent 171c183 commit e6d63a7

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

app/customize/output/color-gray-600.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
'selectors' => [
4545
'.product__has-variations .button.button--pill',
4646
'.widget_layered_nav_filters .button.button--pill',
47+
'.woocommerce-grouped-product-list-item__quantity .button',
4748
],
4849
'declarations' => [
4950
'color' => esc_attr( $gray600 ),

resources/assets/scss/mixins/card.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,10 @@
1414
background: rgba($color, 0.1);
1515
box-shadow: inset rgba($color, 0.1) 0 0 0 3px, rgba($color, 0.3) 0 1px 2px;
1616
}
17+
18+
@mixin card--reset() {
19+
padding: 0;
20+
background: none;
21+
border: 0;
22+
box-shadow: none;
23+
}

resources/assets/scss/modules/woocommerce-single-product-purchase.scss

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
max-width: 400px;
2121
}
2222

23+
&--grouped {
24+
25+
@include card--reset();
26+
}
27+
2328
.stock {
2429
font-size: $font-size-sm;
2530
margin-top: 0;
@@ -39,9 +44,10 @@
3944
}
4045

4146
.woocommerce-grouped-product-list {
42-
margin-bottom: $spacer;
4347

44-
@include vertical-spacing("margin", "up");
48+
@include vertical-spacing("margin", "both", (
49+
sm: 1,
50+
));
4551
}
4652

4753
.woocommerce-grouped-product-list-item {
@@ -63,6 +69,12 @@
6369
.action-list__item-label {
6470
flex: 0;
6571
}
72+
73+
.button {
74+
75+
@include button--pill();
76+
@include button--size-xs();
77+
}
6678
}
6779

6880
.woocommerce-grouped-product-list-item__price {

0 commit comments

Comments
 (0)