2022-02-01 14:01:31 +00:00
|
|
|
.wp-block-woocommerce-featured-product {
|
2022-04-12 15:16:00 +00:00
|
|
|
background-color: transparent;
|
2022-02-01 14:01:31 +00:00
|
|
|
border-color: transparent;
|
|
|
|
color: #fff;
|
2022-03-11 12:01:15 +00:00
|
|
|
box-sizing: border-box;
|
2022-04-12 15:16:00 +00:00
|
|
|
|
|
|
|
.components-resizable-box__container {
|
|
|
|
position: absolute !important;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
min-height: 50px;
|
|
|
|
|
|
|
|
&:not(.is-resizing) {
|
|
|
|
height: auto !important;
|
|
|
|
}
|
|
|
|
}
|
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
|
|
|
}
|
|
|
|
|
2019-01-13 17:22:15 +00:00
|
|
|
.wc-block-featured-product {
|
2022-04-21 07:20:10 +00:00
|
|
|
align-content: center;
|
|
|
|
align-items: center;
|
2019-01-13 17:22:15 +00:00
|
|
|
background-size: cover;
|
|
|
|
background-position: center center;
|
|
|
|
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
|
|
|
|
2019-02-05 20:49:24 +00:00
|
|
|
.wc-block-featured-product__wrapper {
|
2022-04-21 07:20:10 +00:00
|
|
|
align-content: center;
|
2019-02-05 20:49:24 +00:00
|
|
|
align-items: center;
|
2022-04-21 07:20:10 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
display: flex;
|
2019-02-05 20:49:24 +00:00
|
|
|
flex-wrap: wrap;
|
2022-04-21 07:20:10 +00:00
|
|
|
height: 100%;
|
|
|
|
justify-content: center;
|
|
|
|
overflow: hidden;
|
2019-02-05 20:49:24 +00:00
|
|
|
}
|
|
|
|
|
2019-01-13 17:22:15 +00:00
|
|
|
&.has-left-content {
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
|
|
|
.wc-block-featured-product__title,
|
2019-07-09 09:48:31 +00:00
|
|
|
.wc-block-featured-product__variation,
|
2019-01-13 17:22:15 +00:00
|
|
|
.wc-block-featured-product__description,
|
2019-02-08 23:57:58 +00:00
|
|
|
.wc-block-featured-product__price {
|
2019-01-13 17:22:15 +00:00
|
|
|
margin-left: 0;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.has-right-content {
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
|
|
|
.wc-block-featured-product__title,
|
2019-07-09 09:48:31 +00:00
|
|
|
.wc-block-featured-product__variation,
|
2019-01-13 17:22:15 +00:00
|
|
|
.wc-block-featured-product__description,
|
2019-02-08 23:57:58 +00:00
|
|
|
.wc-block-featured-product__price {
|
2019-01-13 17:22:15 +00:00
|
|
|
margin-right: 0;
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-featured-product__title,
|
2019-07-09 09:48:31 +00:00
|
|
|
.wc-block-featured-product__variation,
|
2019-01-13 17:22:15 +00:00
|
|
|
.wc-block-featured-product__description,
|
2019-02-08 23:57:58 +00:00
|
|
|
.wc-block-featured-product__price {
|
2019-01-13 17:22:15 +00:00
|
|
|
line-height: 1.25;
|
|
|
|
margin-bottom: 0;
|
|
|
|
text-align: center;
|
2022-02-01 14:01:31 +00:00
|
|
|
color: inherit;
|
2019-01-13 17:22:15 +00:00
|
|
|
|
|
|
|
a,
|
|
|
|
a:hover,
|
|
|
|
a:focus,
|
|
|
|
a:active {
|
|
|
|
color: $white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-02-08 23:57:58 +00:00
|
|
|
.wc-block-featured-product__title,
|
2019-07-09 09:48:31 +00:00
|
|
|
.wc-block-featured-product__variation,
|
2019-02-08 23:57:58 +00:00
|
|
|
.wc-block-featured-product__description,
|
|
|
|
.wc-block-featured-product__price,
|
|
|
|
.wc-block-featured-product__link {
|
|
|
|
width: 100%;
|
2019-07-09 09:48:31 +00:00
|
|
|
padding: 16px 48px 0 48px;
|
2019-02-08 23:57:58 +00:00
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
2019-07-09 09:48:31 +00:00
|
|
|
.wc-block-featured-product__title,
|
|
|
|
.wc-block-featured-product__variation {
|
2019-01-13 17:22:15 +00:00
|
|
|
margin-top: 0;
|
2019-07-09 09:48:31 +00:00
|
|
|
border: 0;
|
2019-01-13 17:22:15 +00:00
|
|
|
|
2019-07-09 10:50:09 +00:00
|
|
|
&::before {
|
2019-01-13 17:22:15 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-09 09:48:31 +00:00
|
|
|
.wc-block-featured-product__variation {
|
|
|
|
font-style: italic;
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
|
|
|
|
2019-01-13 17:22:15 +00:00
|
|
|
.wc-block-featured-product__description {
|
|
|
|
p {
|
|
|
|
margin: 0;
|
2022-03-28 13:00:20 +00:00
|
|
|
line-height: 1.5;
|
2019-01-13 17:22:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-04-12 15:16:00 +00:00
|
|
|
.wc-block-featured-product__background-image {
|
|
|
|
@include absolute-stretch();
|
|
|
|
object-fit: none;
|
|
|
|
}
|
|
|
|
|
2021-04-06 06:16:55 +00:00
|
|
|
.wp-block-button.aligncenter {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2022-04-12 15:16:00 +00:00
|
|
|
&.has-background-dim {
|
|
|
|
.wc-block-featured-product__overlay::before {
|
|
|
|
background: inherit;
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
|
|
|
opacity: 0.5;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
2019-01-13 17:22:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@for $i from 1 through 10 {
|
2022-04-12 15:16:00 +00:00
|
|
|
&.has-background-dim.has-background-dim-#{ $i * 10 } {
|
|
|
|
.wc-block-featured-product__overlay::before {
|
|
|
|
opacity: $i * 0.1;
|
|
|
|
}
|
2019-01-13 17:22:15 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Apply max-width to floated items that have no intrinsic width
|
|
|
|
&.alignleft,
|
|
|
|
&.alignright {
|
2021-08-24 11:37:43 +00:00
|
|
|
max-width: $content-width * 0.5;
|
2019-01-13 17:22:15 +00:00
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Using flexbox without an assigned height property breaks vertical center alignment in IE11.
|
|
|
|
// Appending an empty ::after element tricks IE11 into giving the cover image an implicit height, which sidesteps this issue.
|
|
|
|
&::after {
|
|
|
|
display: block;
|
|
|
|
content: "";
|
|
|
|
font-size: 0;
|
|
|
|
min-height: inherit;
|
|
|
|
|
|
|
|
// IE doesn't support flex so omit that.
|
|
|
|
@supports (position: sticky) {
|
|
|
|
content: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Aligned cover blocks should not use our global alignment rules
|
|
|
|
&.aligncenter,
|
|
|
|
&.alignleft,
|
|
|
|
&.alignright {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
}
|