Add entering transition on Shop and fix some styling

- Center intro title vertically
- Cart item styling tweaks
- Add cart button quantity label inside of button so it's clickable
This commit is contained in:
2021-12-06 22:14:02 +01:00
parent 9da5ae55cd
commit f15a2f2e47
7 changed files with 72 additions and 15 deletions

View File

@@ -140,7 +140,7 @@
<div class="cart__content">
{#if $cartAmount > 0}
{#each $cartData.items as item, index}
<CartItem {item} {index}
<CartItem {item}
on:updatedQuantity={changedQuantity}
on:removed={removedItem}
/>
@@ -155,7 +155,7 @@
{/if}
{#if !$cartData || $cartIsUpdating}
<div class="cart__update">
<div class="cart__update" transition:fade={{ duration: 400 }}>
<p>Updating…</p>
</div>
{/if}