Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Add spacing between Mini Cart title and products list when scrolled #8676

Merged
merged 1 commit into from
Mar 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion assets/js/blocks/mini-cart/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@

.wp-block-woocommerce-empty-mini-cart-contents-block,
.wp-block-woocommerce-filled-mini-cart-contents-block {
background: inherit;
height: 100%;
max-height: -webkit-fill-available;
max-height: -moz-available;
Expand All @@ -121,7 +122,11 @@

h2.wc-block-mini-cart__title {
@include font-size(larger);
margin: $gap $gap 0;
background: inherit;
margin: $gap $gap $gap * -2;
padding-bottom: $gap * 2;
mask-image: linear-gradient(#000 calc(100% - #{$gap * 1.5}), transparent);
z-index: 1;
}

.wc-block-mini-cart__items {
Expand Down