This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'trunk' into release/10.6.0
- Loading branch information
Showing
88 changed files
with
590 additions
and
249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
108 changes: 5 additions & 103 deletions
108
assets/js/atomic/blocks/product-elements/rating/style.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,110 +1,12 @@ | ||
.wc-block-components-product-rating { | ||
display: block; | ||
line-height: 1; | ||
|
||
&__stars { | ||
display: inline-block; | ||
overflow: hidden; | ||
position: relative; | ||
width: 5.3em; | ||
height: 1.618em; | ||
line-height: 1.618; | ||
font-size: 1em; | ||
/* stylelint-disable-next-line font-family-no-missing-generic-family-keyword */ | ||
font-family: star; | ||
font-weight: 400; | ||
|
||
&.wc-block-grid__product-rating__stars { | ||
margin: 0; | ||
} | ||
|
||
&::before { | ||
content: "\53\53\53\53\53"; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
position: absolute; | ||
opacity: 0.5; | ||
color: inherit; | ||
white-space: nowrap; | ||
} | ||
span { | ||
overflow: hidden; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
position: absolute; | ||
color: inherit; | ||
padding-top: 1.5em; | ||
} | ||
span::before { | ||
content: "\53\53\53\53\53"; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
position: absolute; | ||
color: inherit; | ||
white-space: nowrap; | ||
.wc-block-components-product-rating__container { | ||
> * { | ||
vertical-align: middle; | ||
} | ||
} | ||
|
||
.wc-block-all-products & { | ||
margin-top: 0; | ||
margin-bottom: $gap-small; | ||
} | ||
|
||
&__container { | ||
display: flex; | ||
align-items: center; | ||
column-gap: $gap-smaller; | ||
} | ||
|
||
&__norating-container { | ||
display: inline-flex; | ||
flex-direction: row; | ||
align-items: center; | ||
gap: $gap-smaller; | ||
} | ||
|
||
&__norating { | ||
.wc-block-components-product-rating__stars { | ||
display: inline-block; | ||
overflow: hidden; | ||
position: relative; | ||
width: 1.5em; | ||
height: 1.618em; | ||
line-height: 1.618; | ||
font-size: 1em; | ||
/* stylelint-disable-next-line font-family-no-missing-generic-family-keyword */ | ||
font-family: star; | ||
font-weight: 400; | ||
-webkit-text-stroke: 2px var(--wp--preset--color--black, #000); | ||
&::before { | ||
content: "\53"; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
position: absolute; | ||
color: transparent; | ||
white-space: nowrap; | ||
text-align: center; | ||
} | ||
} | ||
} | ||
|
||
.wc-block-all-products, | ||
.wp-block-query { | ||
.is-loading { | ||
.wc-block-components-product-rating { | ||
@include placeholder(); | ||
width: 7em; | ||
} | ||
} | ||
|
||
.wc-block-components-product-rating__container { | ||
display: block; | ||
} | ||
|
||
.wc-block-components-product-rating__stars.wc-block-grid__product-rating__stars { | ||
margin: inherit; | ||
margin: 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
@import "node_modules/@wordpress/base-styles/breakpoints"; | ||
@import "node_modules/@wordpress/base-styles/mixins"; | ||
@import "node_modules/wordpress-components/src/combobox-control/style"; | ||
|
||
.wc-block-components-country-input { | ||
margin-top: em($gap-large); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
.wc-block-components-product-rating { | ||
display: block; | ||
line-height: 1; | ||
|
||
&__stars { | ||
display: inline-block; | ||
overflow: hidden; | ||
position: relative; | ||
width: 5.3em; | ||
height: 1.618em; | ||
line-height: 1.618; | ||
font-size: 1em; | ||
/* stylelint-disable-next-line font-family-no-missing-generic-family-keyword */ | ||
font-family: star; | ||
font-weight: 400; | ||
|
||
&.wc-block-grid__product-rating__stars { | ||
margin: 0; | ||
} | ||
|
||
&::before { | ||
content: "\53\53\53\53\53"; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
position: absolute; | ||
opacity: 0.5; | ||
color: inherit; | ||
white-space: nowrap; | ||
} | ||
span { | ||
overflow: hidden; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
position: absolute; | ||
color: inherit; | ||
padding-top: 1.5em; | ||
} | ||
span::before { | ||
content: "\53\53\53\53\53"; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
position: absolute; | ||
color: inherit; | ||
white-space: nowrap; | ||
} | ||
} | ||
|
||
.wc-block-all-products & { | ||
margin-top: 0; | ||
margin-bottom: $gap-small; | ||
} | ||
|
||
&__container { | ||
> * { | ||
vertical-align: middle; | ||
} | ||
} | ||
|
||
&__reviews_count { | ||
margin-left: $gap-smaller; | ||
} | ||
|
||
&__norating-container { | ||
display: inline-flex; | ||
flex-direction: row; | ||
align-items: center; | ||
gap: $gap-smaller; | ||
} | ||
|
||
&__norating { | ||
display: inline-block; | ||
overflow: hidden; | ||
position: relative; | ||
width: 1.5em; | ||
height: 1.618em; | ||
line-height: 1.618; | ||
font-size: 1em; | ||
/* stylelint-disable-next-line font-family-no-missing-generic-family-keyword */ | ||
font-family: star; | ||
font-weight: 400; | ||
-webkit-text-stroke: 2px var(--wp--preset--color--black, #000); | ||
&::before { | ||
content: "\53"; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
position: absolute; | ||
color: transparent; | ||
white-space: nowrap; | ||
text-align: center; | ||
} | ||
} | ||
} | ||
|
||
.wc-block-all-products, | ||
.wp-block-query { | ||
.is-loading { | ||
.wc-block-components-product-rating { | ||
@include placeholder(); | ||
width: 7em; | ||
} | ||
} | ||
|
||
.wc-block-components-product-rating__container { | ||
display: block; | ||
} | ||
|
||
.wc-block-components-product-rating__stars.wc-block-grid__product-rating__stars { | ||
margin: inherit; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.