2021-10-29 02:35:17 +00:00
|
|
|
.wc-block-mini-cart__quantity-badge {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
2023-05-11 15:23:36 +00:00
|
|
|
position: relative;
|
2021-10-29 02:35:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-mini-cart__badge {
|
|
|
|
align-items: center;
|
|
|
|
border-radius: 1em;
|
|
|
|
box-sizing: border-box;
|
|
|
|
display: flex;
|
|
|
|
font-size: 0.875em;
|
|
|
|
font-weight: 600;
|
2022-01-13 14:01:36 +00:00
|
|
|
height: math.div(em(20px), 0.875);
|
2021-10-29 02:35:17 +00:00
|
|
|
justify-content: center;
|
2023-05-11 15:23:36 +00:00
|
|
|
left: 100%;
|
|
|
|
margin-left: -44%;
|
2022-01-13 14:01:36 +00:00
|
|
|
min-width: math.div(em(20px), 0.875);
|
2021-10-29 02:35:17 +00:00
|
|
|
padding: 0 em($gap-smallest);
|
2023-05-11 15:23:36 +00:00
|
|
|
position: absolute;
|
2021-10-29 02:35:17 +00:00
|
|
|
transform: translateY(-50%);
|
|
|
|
white-space: nowrap;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
2023-05-11 15:23:36 +00:00
|
|
|
:where(.wc-block-mini-cart__badge) {
|
|
|
|
// These values will be overridden in JS.
|
|
|
|
background-color: transparent;
|
|
|
|
color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-mini-cart__badge:empty {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
2021-10-29 02:35:17 +00:00
|
|
|
.wc-block-mini-cart__icon {
|
|
|
|
display: block;
|
2023-06-12 20:23:52 +00:00
|
|
|
height: em(32px);
|
|
|
|
width: em(32px);
|
|
|
|
margin: -0.25em;
|
2022-04-20 08:52:22 +00:00
|
|
|
|
|
|
|
html[dir="rtl"] & {
|
|
|
|
transform: scaleX(-1);
|
|
|
|
}
|
2021-10-29 02:35:17 +00:00
|
|
|
}
|