Maison filaire (lot ④) : le compteur de la poignée compte les étapes de la maison ; quatre onglets tiennent sur 390 px
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PWGVn3MeAPFsoCSyLs2zZW
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
86e928410f
commit
7f8b36d71c
+2
-1
@@ -198,7 +198,8 @@ function recadrer(duree = 700) {
|
|||||||
// La barre repliée : le picto, le titre et le compteur de la fiche courante.
|
// La barre repliée : le picto, le titre et le compteur de la fiche courante.
|
||||||
function majPoignee(f = E.mini || liste()[E.i]) {
|
function majPoignee(f = E.mini || liste()[E.i]) {
|
||||||
if (!f) return;
|
if (!f) return;
|
||||||
const L = E.mini ? [] : liste().filter((x) => x.chapitre === f.chapitre), k = L.indexOf(f);
|
const S = E.modeS && echelleDe(f.cadrage) === 'S'; // en S, on compte les étapes de la maison
|
||||||
|
const L = E.mini ? [] : liste().filter((x) => x.chapitre === f.chapitre && (!S || indexDe(ETAPES, x.id) >= 0)), k = L.indexOf(f);
|
||||||
$('p-icone').innerHTML = picto(f.picto, BULLES);
|
$('p-icone').innerHTML = picto(f.picto, BULLES);
|
||||||
$('p-titre').innerHTML = f.titre;
|
$('p-titre').innerHTML = f.titre;
|
||||||
$('p-compte').textContent = L.length > 1 ? `${k + 1} / ${L.length}` : '';
|
$('p-compte').textContent = L.length > 1 ? `${k + 1} / ${L.length}` : '';
|
||||||
|
|||||||
@@ -96,6 +96,7 @@ body[data-echelle="XL"] #b-tourner, body.bandeau-plein #b-tourner { display: non
|
|||||||
#fiches[data-etat="fil"] .corps > .fil { flex: 1 1 0; }
|
#fiches[data-etat="fil"] .corps > .fil { flex: 1 1 0; }
|
||||||
#fiches[data-etat="fil"] .corps > .pied { flex: none; margin-left: auto; }
|
#fiches[data-etat="fil"] .corps > .pied { flex: none; margin-left: auto; }
|
||||||
#fiches[data-etat="fil"] .pied .compteur { display: none; }
|
#fiches[data-etat="fil"] .pied .compteur { display: none; }
|
||||||
|
body[data-echelle="S"] .onglets button { padding: 5px 9px; gap: 5px; letter-spacing: .02em; } /* quatre onglets tiennent sur 390 px */
|
||||||
@media (max-width: 899px) { #fiches[data-etat="fil"] :is(#b-prec, #b-suiv) { display: none; } }
|
@media (max-width: 899px) { #fiches[data-etat="fil"] :is(#b-prec, #b-suiv) { display: none; } }
|
||||||
/* un logo allumé : l'anneau de la couleur du chapitre, 1,08 d'échelle (« comme t'inviter à cliquer ») */
|
/* un logo allumé : l'anneau de la couleur du chapitre, 1,08 d'échelle (« comme t'inviter à cliquer ») */
|
||||||
#points .maillon.allume { opacity: 1; filter: none; transform: scale(1.08); box-shadow: 0 0 0 2px var(--c-fond, #fff), 0 0 0 4px var(--c, var(--encre)); }
|
#points .maillon.allume { opacity: 1; filter: none; transform: scale(1.08); box-shadow: 0 0 0 2px var(--c-fond, #fff), 0 0 0 4px var(--c, var(--encre)); }
|
||||||
|
|||||||
Reference in New Issue
Block a user