2e commune : module 2 (clavier et saisie) intégré au thème et au moteur commun

Ajout des types touche, combo, frappe et motsclic au moteur partagé,
pages du module 2 passées au gabarit du module 1, lien depuis l'index.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
lrdlgandClaude Opus 5.5 committed 2026-11-29 18:54:48 +01:00
1 parent ca52f90307
commit bfa12d082a
8 files changed
+648 -2

No files matched your search

+87
View File
@@ -167,6 +167,93 @@ svg .zone.juste { fill: var(--juste); fill-opacity: .3; stroke: var(--juste); }
svg .zone.faux { fill: var(--erreur); fill-opacity: .3; stroke: var(--erreur); }
svg text { font-family: inherit; font-size: 13px; fill: var(--encre); pointer-events: none; }
/* étiquettes des touches dans les schémas de clavier */
svg .kcap { font-size: 11px; }
svg .klab { font-size: 10px; fill: var(--encre-douce); }
/* ---------- capture d'une touche réelle ---------- */
.capture {
border: 2px dashed var(--accent);
border-radius: .5rem;
background: var(--papier);
padding: 1.1rem;
text-align: center;
font-size: 1.05rem;
cursor: text;
margin-top: .6rem;
}
.capture:focus {
background: var(--accent-fond);
border-style: solid;
outline: 2px solid var(--accent-encre);
outline-offset: 2px;
}
.capture--juste { border-color: var(--juste); background: var(--juste-fond); }
.touche-lue {
display: block;
margin-top: .5rem;
min-height: 1.4em;
font-family: var(--police-titre);
font-weight: 700;
color: var(--accent-encre);
}
/* ---------- défi de frappe ---------- */
.cible-texte {
background: var(--papier);
border: 1px solid var(--trait);
border-radius: .4rem;
padding: .75rem;
font-size: 1.05rem;
line-height: 1.7;
margin: .6rem 0;
}
.frappe {
font: inherit;
font-size: 1.02rem;
line-height: 1.6;
width: 100%;
min-height: 6rem;
padding: .6rem;
border: 1px solid var(--trait-fort);
border-radius: .4rem;
background: var(--blanc);
color: var(--encre);
}
.mesures {
display: flex;
flex-wrap: wrap;
gap: .6rem 1rem;
margin-top: .5rem;
font-size: .93rem;
}
.mesures span {
background: var(--papier);
border: 1px solid var(--trait);
border-radius: .4rem;
padding: .25rem .6rem;
}
/* ---------- repérage d'erreurs dans un texte ---------- */
.texte-clic { line-height: 2.1; font-size: 1.03rem; margin: .6rem 0; }
.mot {
font: inherit;
color: inherit;
background: none;
display: inline-block;
padding: .05rem .25rem;
border: 1px solid transparent;
border-radius: .25rem;
cursor: pointer;
}
.mot:hover:not([disabled]) { background: var(--accent-fond); border-color: var(--trait-fort); }
.mot.juste { background: var(--juste-fond); border-color: var(--juste); }
.mot.faux { background: var(--erreur-fond); border-color: var(--erreur); }
.mot[disabled] { cursor: default; }
/* ---------- verdict ---------- */
.retour {