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
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-mini-cart__amount {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-09-02 09:44:25 +00:00
|
|
|
.modal-open .wc-block-mini-cart__button {
|
|
|
|
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 {
|
|
|
|
.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
|
|
|
.components-modal__content {
|
2021-12-20 07:57:55 +00:00
|
|
|
padding: 0;
|
|
|
|
position: relative;
|
2021-10-28 15:48:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.components-modal__header {
|
2022-12-22 14:48:24 +00:00
|
|
|
position: relative;
|
|
|
|
height: calc($gap-largest + $gap);
|
2021-12-20 07:57:55 +00:00
|
|
|
position: absolute;
|
|
|
|
top: $gap-largest;
|
2022-12-22 14:48:24 +00:00
|
|
|
right: $gap-smallest;
|
|
|
|
|
2022-01-21 17:39:04 +00:00
|
|
|
button {
|
2022-12-22 14:48:24 +00:00
|
|
|
margin: 0;
|
|
|
|
right: 0;
|
|
|
|
transform: translateY(-50%);
|
2022-01-21 17:39:04 +00:00
|
|
|
}
|
2021-10-28 15:48:39 +00:00
|
|
|
|
2022-01-21 17:39:04 +00:00
|
|
|
svg {
|
|
|
|
fill: currentColor;
|
2022-12-22 14:48:24 +00:00
|
|
|
display: block;
|
2021-10-28 15:48:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-03 08:52:51 +00:00
|
|
|
.wp-block-woocommerce-mini-cart-contents {
|
2021-12-20 07:57:55 +00:00
|
|
|
box-sizing: border-box;
|
2023-02-01 16:48:37 +00:00
|
|
|
height: 100dvh;
|
2021-12-22 11:03:58 +00:00
|
|
|
padding: 0;
|
|
|
|
justify-content: center;
|
2021-12-20 07:57:55 +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;
|
|
|
|
margin-right: -$gap;
|
|
|
|
padding-right: $gap;
|
|
|
|
|
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-07-25 05:39:47 +00:00
|
|
|
display: none;
|
|
|
|
|
2022-01-21 17:39:04 +00:00
|
|
|
@media only screen and (min-width: 480px) {
|
|
|
|
display: inline-flex;
|
|
|
|
}
|
|
|
|
}
|
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
|
|
|
}
|
|
|
|
}
|
2022-12-22 14:48:24 +00:00
|
|
|
|
|
|
|
.admin-bar .wp-block-woocommerce-mini-cart-contents {
|
2023-03-10 08:25:24 +00:00
|
|
|
margin-top: 46px;
|
|
|
|
height: calc(100dvh - 46px);
|
2022-12-22 14:48:24 +00:00
|
|
|
}
|
|
|
|
|
2023-03-10 08:25:24 +00:00
|
|
|
@media only screen and (min-width: 783px) {
|
|
|
|
.admin-bar .wp-block-woocommerce-mini-cart-contents {
|
|
|
|
margin-top: 32px;
|
|
|
|
height: calc(100dvh - 32px);
|
|
|
|
}
|
2022-12-22 14:48:24 +00:00
|
|
|
}
|