2022-05-19 16:16:46 +00:00
|
|
|
@mixin with-content-selection {
|
|
|
|
background-color: inherit;
|
2022-04-12 15:16:00 +00:00
|
|
|
|
2022-05-19 16:16:46 +00:00
|
|
|
&__selection {
|
|
|
|
width: 100%;
|
2022-05-18 14:08:32 +00:00
|
|
|
}
|
2022-05-19 16:16:46 +00:00
|
|
|
}
|
2022-05-18 14:08:32 +00:00
|
|
|
|
2022-05-19 16:16:46 +00:00
|
|
|
%with-media-controls {
|
2022-05-03 07:11:13 +00:00
|
|
|
// Applying image edits
|
|
|
|
.is-applying {
|
|
|
|
.components-spinner {
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
|
|
|
margin-top: -9px;
|
|
|
|
margin-left: -9px;
|
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
opacity: 0.3;
|
|
|
|
}
|
|
|
|
}
|
2022-02-01 14:01:31 +00:00
|
|
|
}
|
|
|
|
|
2022-05-19 16:16:46 +00:00
|
|
|
%with-resizable-box {
|
|
|
|
.components-resizable-box__container {
|
|
|
|
position: absolute !important;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
min-height: 50px;
|
|
|
|
|
|
|
|
&:not(.is-resizing) {
|
|
|
|
height: auto !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.components-resizable-box__handle {
|
|
|
|
z-index: 10;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
%wp-block-featured-item {
|
|
|
|
background-color: transparent;
|
|
|
|
border-color: transparent;
|
|
|
|
color: #fff;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin wc-block-featured-item {
|
|
|
|
$block: &;
|
|
|
|
|
|
|
|
@include with-background-dim();
|
|
|
|
@include with-content-selection();
|
|
|
|
|
2022-04-21 07:20:10 +00:00
|
|
|
align-content: center;
|
|
|
|
align-items: center;
|
2019-01-13 17:22:15 +00:00
|
|
|
background-position: center center;
|
2022-05-19 16:16:46 +00:00
|
|
|
background-size: cover;
|
2019-01-13 17:22:15 +00:00
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
2022-04-21 07:20:10 +00:00
|
|
|
justify-content: center;
|
|
|
|
margin: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
2019-01-13 17:22:15 +00:00
|
|
|
|
|
|
|
&.has-left-content {
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
2022-05-19 16:16:46 +00:00
|
|
|
#{$block}__description,
|
|
|
|
#{$block}__price,
|
|
|
|
#{$block}__title,
|
|
|
|
#{$block}__variation {
|
2019-01-13 17:22:15 +00:00
|
|
|
margin-left: 0;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.has-right-content {
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
2022-05-19 16:16:46 +00:00
|
|
|
#{$block}__description,
|
|
|
|
#{$block}__price,
|
|
|
|
#{$block}__title,
|
|
|
|
#{$block}__variation {
|
2019-01-13 17:22:15 +00:00
|
|
|
margin-right: 0;
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-19 16:16:46 +00:00
|
|
|
&.is-repeated {
|
|
|
|
background-repeat: repeat;
|
|
|
|
background-size: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__description,
|
|
|
|
&__price,
|
|
|
|
&__title,
|
|
|
|
&__variation {
|
2019-01-13 17:22:15 +00:00
|
|
|
line-height: 1.25;
|
|
|
|
margin-bottom: 0;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
a,
|
|
|
|
a:hover,
|
|
|
|
a:focus,
|
|
|
|
a:active {
|
|
|
|
color: $white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-19 16:16:46 +00:00
|
|
|
&__description,
|
|
|
|
&__link,
|
|
|
|
&__price,
|
|
|
|
&__title,
|
|
|
|
&__variation {
|
|
|
|
color: inherit;
|
2019-02-08 23:57:58 +00:00
|
|
|
width: 100%;
|
2022-05-19 16:16:46 +00:00
|
|
|
padding: 0 48px 16px 48px;
|
2019-02-08 23:57:58 +00:00
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
2022-05-19 16:16:46 +00:00
|
|
|
& &__background-image {
|
2022-04-12 15:16:00 +00:00
|
|
|
@include absolute-stretch();
|
|
|
|
object-fit: none;
|
2022-05-18 14:08:32 +00:00
|
|
|
|
|
|
|
&.has-parallax {
|
|
|
|
background-attachment: fixed;
|
|
|
|
|
|
|
|
// Mobile Safari does not support fixed background attachment properly.
|
|
|
|
// See also https://stackoverflow.com/questions/24154666/background-size-cover-not-working-on-ios
|
|
|
|
// Chrome on Android does not appear to support the attachment at all: https://issuetracker.google.com/issues/36908439
|
|
|
|
@supports (-webkit-overflow-scrolling: touch) {
|
|
|
|
background-attachment: scroll;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Remove the appearance of scrolling based on OS-level animation preferences.
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
|
|
background-attachment: scroll;
|
|
|
|
}
|
|
|
|
}
|
2022-04-12 15:16:00 +00:00
|
|
|
}
|
|
|
|
|
2022-05-19 16:16:46 +00:00
|
|
|
&__description {
|
|
|
|
color: inherit;
|
2021-04-06 06:16:55 +00:00
|
|
|
|
2022-05-19 16:16:46 +00:00
|
|
|
p {
|
|
|
|
margin: 0;
|
2022-04-12 15:16:00 +00:00
|
|
|
}
|
2019-01-13 17:22:15 +00:00
|
|
|
}
|
|
|
|
|
2022-05-31 15:43:03 +00:00
|
|
|
& &__title {
|
|
|
|
color: inherit;
|
2022-05-19 16:16:46 +00:00
|
|
|
margin-top: 0;
|
2019-01-13 17:22:15 +00:00
|
|
|
|
2022-05-19 16:16:46 +00:00
|
|
|
div {
|
|
|
|
color: inherit;
|
|
|
|
}
|
2019-01-13 17:22:15 +00:00
|
|
|
|
2022-05-19 16:16:46 +00:00
|
|
|
&::before {
|
|
|
|
display: none;
|
2019-01-13 17:22:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-19 16:16:46 +00:00
|
|
|
&__wrapper {
|
|
|
|
align-content: center;
|
|
|
|
align-items: center;
|
|
|
|
box-sizing: border-box;
|
2019-01-13 17:22:15 +00:00
|
|
|
display: flex;
|
2022-05-19 16:16:46 +00:00
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: center;
|
|
|
|
overflow: hidden;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.wp-block-button.aligncenter {
|
|
|
|
text-align: center;
|
2019-01-13 17:22:15 +00:00
|
|
|
}
|
|
|
|
}
|