diff --git a/components/NavPortes.vue b/components/NavPortes.vue index 7370ee1..9441f9f 100644 --- a/components/NavPortes.vue +++ b/components/NavPortes.vue @@ -20,6 +20,7 @@ :actif="courant?.echelle ?? null" :lien="lienEntree" courant="page" + libelle="Échelles S, M, XL : ouvrir une échelle" :nom="false" :bouton="{ ouvert, controle: ID_VOLET, choisir: basculer }" /> @@ -194,13 +195,16 @@ onBeforeUnmount(() => { .nav-portes__pas :deep(.pas__item + .pas__item)::before { width: 16px; } .nav-portes__ici { display: block; } } -/* 768-1023 : l'échelle et l'onglet l'un sous l'autre (la barre est étroite) */ -@media (min-width: 768px) and (max-width: 1023px) { +/* À partir de 768 : l'échelle et l'onglet l'un sous l'autre (la barre est étroite) ; sur une ligne à partir de 1024 (min-width seulement, PROTOCOLE) */ +@media (min-width: 768px) { .nav-portes__echelle, .nav-portes__onglet { display: block; white-space: nowrap; } .nav-portes__sep { display: none; } } @media (min-width: 1024px) { + .nav-portes__echelle, + .nav-portes__onglet, + .nav-portes__sep { display: inline; } .nav-portes__ici { white-space: nowrap; } } diff --git a/components/VoletEchelle.vue b/components/VoletEchelle.vue index 58541b9..ecb3e36 100644 --- a/components/VoletEchelle.vue +++ b/components/VoletEchelle.vue @@ -57,7 +57,7 @@ :class="{ 'volet__carte--courante': o.actif(route) }" :aria-current="o.actif(route) ? 'page' : undefined" @click="emit('choisi')" - >{{ o.libelle }} + >{{ o.libelle }}

@@ -209,7 +209,7 @@ defineExpose({ premierFocus }) align-items: center; justify-content: center; min-width: 1.75rem; - padding: 2px 6px; + padding: var(--space-2xs) var(--space-xs); border-radius: var(--radius-sm); background: var(--accent); color: var(--on-accent); @@ -224,7 +224,7 @@ defineExpose({ premierFocus }) .volet__mots { display: flex; flex-wrap: wrap; - gap: 2px 0; + gap: var(--space-2xs) 0; margin: var(--space-xs) 0 0; padding: 0; list-style: none; @@ -249,7 +249,6 @@ defineExpose({ premierFocus }) .volet__carte { display: flex; align-items: center; - justify-content: space-between; gap: var(--space-xs); min-height: 48px; height: 100%;