Update Menu component: replace header h2 by p, fix header font-size and sticky gradient z-index

This commit is contained in:
Timothée Goguely 2024-09-04 19:12:29 +02:00
parent 209cb06540
commit 4cf00533d0

View file

@ -7,7 +7,7 @@
</button>
<div v-if="isExpanded" id="menu" class="flex | rounded-lg">
<header class="w-full | flex">
<h2>Nom du service</h2>
<p>Nom du service</p>
</header>
<nav class="w-full | flow">
<ul class="flex">
@ -105,7 +105,7 @@ button[aria-controls="menu"][aria-expanded="false"] {
padding-left: var(--gap);
min-height: var(--space-40);
font-family: var(--font-serif);
font-size: var(--text-lg);
font-size: var(--text-md);
background: var(--color-background);
position: -webkit-sticky;
position: sticky;
@ -120,6 +120,7 @@ button[aria-controls="menu"][aria-expanded="false"] {
left: 0;
right: 0;
bottom: -2rem;
z-index: -1;
background: linear-gradient(to bottom, var(--color-background) 0%, var(--color-background) 75%, transparent 100%);
}