2021-11-22 23:40:24 +00:00
|
|
|
.wc-block-mini-cart {
|
2021-11-17 15:39:07 +00:00
|
|
|
background-color: transparent !important;
|
2021-10-29 02:35:17 +00:00
|
|
|
display: flex;
|
|
|
|
justify-content: flex-end;
|
2021-11-17 15:39:07 +00:00
|
|
|
|
2021-11-22 23:40:24 +00:00
|
|
|
&.align-center {
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.align-left {
|
|
|
|
justify-content: flex-start;
|
|
|
|
}
|
|
|
|
|
2021-11-17 15:39:07 +00:00
|
|
|
&.is-transparent .wc-block-mini-cart__button {
|
|
|
|
background-color: transparent !important;
|
|
|
|
}
|
2021-10-29 02:35:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-mini-cart__button {
|
|
|
|
align-items: center;
|
|
|
|
border: none;
|
2021-11-17 15:39:07 +00:00
|
|
|
color: inherit;
|
2021-10-29 02:35:17 +00:00
|
|
|
display: flex;
|
|
|
|
font-weight: 400;
|
|
|
|
padding: em($gap-small) em($gap-smaller);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
opacity: 0.6;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-mini-cart__amount {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
font-weight: 600;
|
|
|
|
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
|
|
|
|
|
|
|
.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 {
|
2021-12-20 07:57:55 +00:00
|
|
|
position: absolute;
|
|
|
|
top: $gap-largest;
|
|
|
|
right: $gap;
|
2021-10-28 15:48:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-mini-cart__items {
|
2022-01-08 00:51:20 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2021-10-28 15:48:39 +00:00
|
|
|
flex-grow: 1;
|
2022-01-08 00:51:20 +00:00
|
|
|
overflow-y: hidden;
|
2021-12-22 11:03:58 +00:00
|
|
|
padding: 0 $gap;
|
2022-01-08 00:51:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-mini-cart__products-table {
|
|
|
|
margin-bottom: auto;
|
|
|
|
margin-right: -$gap;
|
|
|
|
overflow-y: auto;
|
|
|
|
padding-right: $gap;
|
2021-10-28 15:48:39 +00:00
|
|
|
|
|
|
|
.wc-block-cart-items__row:last-child::after {
|
|
|
|
content: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-20 07:57:55 +00:00
|
|
|
// @todo Review the class naming convention for Mini Cart inner blocks.
|
|
|
|
.wp-block-woocommerce-mini-cart-contents {
|
|
|
|
background: #fff;
|
|
|
|
box-sizing: border-box;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
height: 100vh;
|
2021-12-22 11:03:58 +00:00
|
|
|
padding: 0;
|
|
|
|
justify-content: center;
|
2021-12-20 07:57:55 +00:00
|
|
|
}
|
|
|
|
|
2022-01-08 00:51:20 +00:00
|
|
|
h2.wc-block-mini-cart__title {
|
|
|
|
@include font-size(larger);
|
2021-12-22 11:03:58 +00:00
|
|
|
margin: $gap-largest $gap 0;
|
2021-12-20 07:57:55 +00:00
|
|
|
}
|
|
|
|
|
2021-10-28 15:48:39 +00:00
|
|
|
.wc-block-mini-cart__footer {
|
|
|
|
border-top: 1px solid $gray-300;
|
2021-12-22 11:03:58 +00:00
|
|
|
padding: $gap-large $gap;
|
2021-10-28 15:48:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-components-totals-item.wc-block-mini-cart__footer-subtotal {
|
|
|
|
font-weight: 600;
|
|
|
|
margin-bottom: $gap;
|
|
|
|
|
|
|
|
.wc-block-components-totals-item__description {
|
|
|
|
display: none;
|
|
|
|
font-size: 0.75em;
|
|
|
|
font-weight: 400;
|
|
|
|
|
|
|
|
@media only screen and (min-width: 480px) {
|
|
|
|
display: unset;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-mini-cart__footer-actions {
|
|
|
|
display: flex;
|
|
|
|
gap: $gap;
|
|
|
|
|
|
|
|
.wc-block-mini-cart__footer-cart.wc-block-components-button {
|
|
|
|
background-color: transparent;
|
|
|
|
border: 1px solid $gray-900;
|
|
|
|
color: $gray-900;
|
|
|
|
display: none;
|
|
|
|
flex-grow: 1;
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
|
|
@media only screen and (min-width: 480px) {
|
|
|
|
display: inline-flex;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-mini-cart__footer-checkout {
|
|
|
|
border: 1px solid $gray-900;
|
|
|
|
flex-grow: 1;
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-mini-cart__footer .wc-block-components-payment-method-icons {
|
|
|
|
margin-top: $gap;
|
2021-09-07 08:27:16 +00:00
|
|
|
}
|