2021-11-22 23:40:24 +00:00
|
|
|
.wc-block-mini-cart {
|
2022-03-09 09:13:52 +00:00
|
|
|
display: inline-block;
|
2021-10-29 02:35:17 +00:00
|
|
|
}
|
|
|
|
|
2023-05-16 08:41:26 +00:00
|
|
|
.wc-block-mini-cart__template-part,
|
|
|
|
.wp-block-woocommerce-mini-cart-contents {
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
2021-10-29 02:35:17 +00:00
|
|
|
.wc-block-mini-cart__button {
|
|
|
|
align-items: center;
|
2022-03-09 09:13:52 +00:00
|
|
|
background-color: transparent;
|
2021-10-29 02:35:17 +00:00
|
|
|
border: none;
|
2021-11-17 15:39:07 +00:00
|
|
|
color: inherit;
|
2021-10-29 02:35:17 +00:00
|
|
|
display: flex;
|
2022-05-30 08:45:15 +00:00
|
|
|
font-size: inherit;
|
|
|
|
font-family: inherit;
|
2022-10-31 10:47:01 +00:00
|
|
|
font-weight: inherit;
|
2021-10-29 02:35:17 +00:00
|
|
|
padding: em($gap-small) em($gap-smaller);
|
|
|
|
|
2022-02-22 14:40:48 +00:00
|
|
|
&:hover:not([disabled]) {
|
2021-10-29 02:35:17 +00:00
|
|
|
opacity: 0.6;
|
2024-06-06 14:54:48 +00:00
|
|
|
cursor: pointer;
|
2021-10-29 02:35:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-mini-cart__amount {
|
2023-05-23 07:28:40 +00:00
|
|
|
margin-right: 0.5em;
|
2021-10-29 02:35:17 +00:00
|
|
|
}
|
|
|
|
|
2023-02-28 17:40:06 +00:00
|
|
|
.wc-block-mini-cart--preview {
|
|
|
|
.wc-block-mini-cart__amount {
|
|
|
|
display: initial;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-03 09:45:06 +00:00
|
|
|
.wc-block-mini-cart__tax-label {
|
|
|
|
margin-right: em($gap-smaller);
|
|
|
|
}
|
|
|
|
|
2021-10-29 02:35:17 +00:00
|
|
|
@media screen and (min-width: 768px) {
|
|
|
|
.wc-block-mini-cart__amount {
|
|
|
|
display: initial;
|
2022-10-31 10:47:01 +00:00
|
|
|
font-size: inherit;
|
|
|
|
font-weight: inherit;
|
2021-10-29 02:35:17 +00:00
|
|
|
margin-right: $gap-smaller;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-16 08:41:26 +00:00
|
|
|
.drawer-open .wc-block-mini-cart__button {
|
2021-09-02 09:44:25 +00:00
|
|
|
pointer-events: none;
|
|
|
|
}
|
2021-09-07 08:27:16 +00:00
|
|
|
|
|
|
|
// Reset font size so it doesn't depend on drawer's ancestors.
|
|
|
|
.wc-block-mini-cart__drawer {
|
|
|
|
font-size: 1rem;
|
2021-10-28 15:48:39 +00:00
|
|
|
|
2022-12-22 14:48:24 +00:00
|
|
|
.wp-block-woocommerce-mini-cart-contents {
|
2023-05-16 08:41:26 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
padding: 0;
|
2023-05-30 13:39:19 +00:00
|
|
|
position: relative;
|
2023-05-16 08:41:26 +00:00
|
|
|
justify-content: center;
|
|
|
|
|
2022-12-22 14:48:24 +00:00
|
|
|
.wc-block-components-notices {
|
|
|
|
margin: #{$gap} #{$gap-largest} -#{$gap} #{$gap};
|
|
|
|
margin-bottom: unset;
|
|
|
|
|
|
|
|
.wc-block-components-notices__notice {
|
|
|
|
margin-bottom: unset;
|
|
|
|
}
|
2021-10-28 15:48:39 +00:00
|
|
|
|
2023-05-16 08:41:26 +00:00
|
|
|
&:empty {
|
|
|
|
display: none;
|
|
|
|
}
|
2021-10-28 15:48:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-10-28 15:30:51 +00:00
|
|
|
:where(.wp-block-woocommerce-mini-cart-contents) {
|
|
|
|
background: #fff;
|
|
|
|
}
|
2021-12-20 07:57:55 +00:00
|
|
|
|
2022-03-08 13:24:52 +00:00
|
|
|
.wp-block-woocommerce-empty-mini-cart-contents-block,
|
|
|
|
.wp-block-woocommerce-filled-mini-cart-contents-block {
|
2023-03-14 08:42:53 +00:00
|
|
|
background: inherit;
|
2023-03-10 08:25:24 +00:00
|
|
|
height: 100%;
|
2023-02-01 16:48:37 +00:00
|
|
|
max-height: -webkit-fill-available;
|
2023-03-10 08:25:24 +00:00
|
|
|
max-height: -moz-available;
|
|
|
|
max-height: fill-available;
|
2022-03-08 13:24:52 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
.wp-block-woocommerce-empty-mini-cart-contents-block {
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.wp-block-woocommerce-filled-mini-cart-contents-block {
|
|
|
|
justify-content: space-between;
|
|
|
|
}
|
|
|
|
|
2023-02-28 17:40:06 +00:00
|
|
|
.wp-block-woocommerce-empty-mini-cart-contents-block
|
|
|
|
.wc-block-mini-cart__empty-cart-wrapper {
|
2022-02-01 16:19:41 +00:00
|
|
|
overflow-y: auto;
|
|
|
|
padding: $gap-largest $gap $gap;
|
|
|
|
}
|
|
|
|
|
2022-01-08 00:51:20 +00:00
|
|
|
h2.wc-block-mini-cart__title {
|
2023-04-14 07:21:21 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: baseline;
|
2023-03-14 08:42:53 +00:00
|
|
|
background: inherit;
|
|
|
|
padding-bottom: $gap * 2;
|
|
|
|
mask-image: linear-gradient(#000 calc(100% - #{$gap * 1.5}), transparent);
|
|
|
|
z-index: 1;
|
2023-04-14 07:21:21 +00:00
|
|
|
margin: $gap $gap $gap * -2;
|
|
|
|
@include font-size(larger);
|
|
|
|
|
|
|
|
span:first-child {
|
|
|
|
margin-right: $gap-smaller;
|
|
|
|
}
|
2021-12-20 07:57:55 +00:00
|
|
|
}
|
|
|
|
|
2022-01-21 17:39:04 +00:00
|
|
|
.wc-block-mini-cart__items {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex-grow: 1;
|
2022-06-15 08:18:50 +00:00
|
|
|
overflow-y: auto;
|
2022-02-16 15:13:26 +00:00
|
|
|
padding: $gap $gap 0;
|
2022-01-21 17:39:04 +00:00
|
|
|
|
|
|
|
.wc-block-mini-cart__products-table {
|
|
|
|
margin-bottom: auto;
|
|
|
|
|
2022-02-16 15:13:26 +00:00
|
|
|
.wc-block-cart-items__row {
|
|
|
|
padding-top: $gap-smaller;
|
|
|
|
padding-bottom: $gap-smaller;
|
|
|
|
|
|
|
|
&:last-child::after {
|
|
|
|
content: none;
|
|
|
|
}
|
2022-01-21 17:39:04 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-28 15:48:39 +00:00
|
|
|
.wc-block-mini-cart__footer {
|
2023-04-26 14:59:35 +00:00
|
|
|
@include with-translucent-border( 1px 0 0 );
|
2021-12-22 11:03:58 +00:00
|
|
|
padding: $gap-large $gap;
|
2021-10-28 15:48:39 +00:00
|
|
|
|
2022-01-21 17:39:04 +00:00
|
|
|
.wc-block-components-totals-item.wc-block-mini-cart__footer-subtotal {
|
|
|
|
font-weight: 600;
|
|
|
|
margin-bottom: $gap;
|
2021-10-28 15:48:39 +00:00
|
|
|
|
2022-01-21 17:39:04 +00:00
|
|
|
.wc-block-components-totals-item__description {
|
|
|
|
display: none;
|
|
|
|
font-size: 0.75em;
|
|
|
|
font-weight: 400;
|
2021-10-28 15:48:39 +00:00
|
|
|
|
2022-01-21 17:39:04 +00:00
|
|
|
@media only screen and (min-width: 480px) {
|
|
|
|
display: unset;
|
|
|
|
}
|
2021-10-28 15:48:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-04-14 14:53:39 +00:00
|
|
|
// First selector for the frontend, second selector for the editor.
|
2023-03-23 15:55:53 +00:00
|
|
|
.wc-block-mini-cart__footer-actions,
|
2023-04-14 14:53:39 +00:00
|
|
|
.wc-block-mini-cart__footer-actions > .block-editor-inner-blocks > .block-editor-block-list__layout {
|
2022-01-21 17:39:04 +00:00
|
|
|
display: flex;
|
|
|
|
gap: $gap;
|
|
|
|
|
2023-03-23 15:55:53 +00:00
|
|
|
.wc-block-components-button,
|
2023-04-14 14:53:39 +00:00
|
|
|
.wp-block-button,
|
|
|
|
.wp-block-woocommerce-mini-cart-cart-button-block,
|
|
|
|
.wp-block-woocommerce-mini-cart-checkout-button-block {
|
2022-01-21 17:39:04 +00:00
|
|
|
flex-grow: 1;
|
2023-03-23 15:55:53 +00:00
|
|
|
display: inline-flex;
|
2022-07-25 05:39:47 +00:00
|
|
|
}
|
|
|
|
|
2023-04-14 14:53:39 +00:00
|
|
|
.wp-block-woocommerce-mini-cart-cart-button-block {
|
2022-01-21 17:39:04 +00:00
|
|
|
@media only screen and (min-width: 480px) {
|
|
|
|
display: inline-flex;
|
|
|
|
}
|
|
|
|
}
|
2023-05-30 20:07:30 +00:00
|
|
|
|
|
|
|
@media only screen and (max-width: 480px) {
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
2021-10-28 15:48:39 +00:00
|
|
|
}
|
|
|
|
|
2022-01-21 17:39:04 +00:00
|
|
|
.wc-block-components-payment-method-icons {
|
|
|
|
margin-top: $gap;
|
2021-10-28 15:48:39 +00:00
|
|
|
}
|
|
|
|
}
|
2022-02-15 06:48:06 +00:00
|
|
|
|
|
|
|
.wc-block-mini-cart__shopping-button {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
a {
|
|
|
|
border: 2px solid;
|
2022-03-29 13:48:59 +00:00
|
|
|
color: currentColor;
|
2022-03-30 11:38:29 +00:00
|
|
|
font-weight: 600;
|
2022-02-15 06:48:06 +00:00
|
|
|
padding: $gap-small $gap-large;
|
|
|
|
text-decoration: none;
|
2022-03-30 11:38:29 +00:00
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background-color: $gray-900;
|
|
|
|
border-color: $gray-900;
|
|
|
|
color: $white;
|
|
|
|
}
|
2022-02-15 06:48:06 +00:00
|
|
|
}
|
|
|
|
}
|