2022-03-03 08:52:51 +00:00
|
|
|
.editor-styles-wrapper .wp-block-woocommerce-mini-cart-contents {
|
2021-12-20 07:57:55 +00:00
|
|
|
max-width: 480px;
|
2021-12-22 11:03:58 +00:00
|
|
|
/* We need to override the margin top here to simulate the layout of
|
|
|
|
the mini cart contents on the front end. */
|
|
|
|
margin: 0 auto !important;
|
2022-01-08 00:51:20 +00:00
|
|
|
|
2022-03-23 02:58:03 +00:00
|
|
|
.wp-block-woocommerce-empty-mini-cart-contents-block[hidden],
|
|
|
|
.wp-block-woocommerce-filled-mini-cart-contents-block[hidden] {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2022-01-21 17:39:04 +00:00
|
|
|
.wp-block-woocommerce-filled-mini-cart-contents-block > .block-editor-inner-blocks > .block-editor-block-list__layout {
|
2021-12-20 07:57:55 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2022-01-21 17:39:04 +00:00
|
|
|
min-height: 100vh;
|
2021-12-20 07:57:55 +00:00
|
|
|
}
|
|
|
|
|
2022-01-21 17:39:04 +00:00
|
|
|
.wp-block-woocommerce-mini-cart-items-block {
|
|
|
|
display: grid;
|
|
|
|
flex-grow: 1;
|
|
|
|
margin-bottom: $gap;
|
|
|
|
padding: 0 $gap;
|
|
|
|
|
|
|
|
> .block-editor-inner-blocks > .block-editor-block-list__layout {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
height: 100%;
|
|
|
|
}
|
2022-02-10 10:33:48 +00:00
|
|
|
|
|
|
|
// Temporary fix after the appender button was positioned absolute
|
|
|
|
// See https://github.com/woocommerce/woocommerce-gutenberg-products-block/issues/5742#issuecomment-1032804168
|
|
|
|
.block-list-appender {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2022-01-21 17:39:04 +00:00
|
|
|
}
|
2022-01-08 00:51:20 +00:00
|
|
|
|
2022-01-21 17:39:04 +00:00
|
|
|
.wp-block-woocommerce-mini-cart-products-table-block {
|
|
|
|
margin-bottom: auto;
|
|
|
|
margin-top: $gap;
|
|
|
|
}
|
|
|
|
|
|
|
|
h2.wc-block-mini-cart__title {
|
|
|
|
@include font-size(larger);
|
|
|
|
margin: $gap-largest $gap 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
table.wc-block-cart-items {
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
.block-editor-button-block-appender {
|
|
|
|
box-shadow: inset 0 0 0 1px;
|
|
|
|
color: inherit;
|
|
|
|
}
|
2022-02-01 16:19:41 +00:00
|
|
|
|
|
|
|
.wp-block-woocommerce-empty-mini-cart-contents-block {
|
|
|
|
overflow-y: unset;
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
> .block-editor-inner-blocks {
|
|
|
|
max-height: 100vh;
|
|
|
|
overflow-y: auto;
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding: $gap-largest $gap $gap;
|
|
|
|
}
|
2022-02-10 10:33:48 +00:00
|
|
|
|
|
|
|
// Temporary fix after the appender button was positioned absolute
|
|
|
|
// See https://github.com/woocommerce/woocommerce-gutenberg-products-block/issues/5742#issuecomment-1032804168
|
|
|
|
.block-list-appender {
|
|
|
|
position: relative;
|
|
|
|
}
|
2022-03-29 13:48:59 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.wc-block-mini-cart__shopping-button a {
|
|
|
|
color: currentColor;
|
2022-02-01 16:19:41 +00:00
|
|
|
}
|
2021-12-20 07:57:55 +00:00
|
|
|
}
|