Design : une seule fonte (Barlow Condensed Bold, sous-ensemble), jetons noir, blanc et signal
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
f47660ffd4
commit
89e45bbad2
+45
-36
@@ -1,9 +1,8 @@
|
||||
/* Base : remise à zéro, typographie, mise en page de l'écran. */
|
||||
*, *::before, *::after { box-sizing: border-box; }
|
||||
/* Base : remise à zéro, typographie, mise en page de l'écran. Angles droits
|
||||
partout, aucune ombre, aucun dégradé. */
|
||||
*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
|
||||
html {
|
||||
-webkit-text-size-adjust: 100%; text-size-adjust: 100%;
|
||||
/* Le défilement vers un élément (focus, lien) tient compte de l'en-tête
|
||||
collant de l'exercice et des barres fixées en bas. */
|
||||
scroll-padding-top: 72px;
|
||||
scroll-padding-bottom: calc(var(--action-bar-h) + var(--space-4));
|
||||
}
|
||||
@@ -11,68 +10,78 @@ html:has(body.has-timer) { scroll-padding-bottom: calc(var(--action-bar-h) + var
|
||||
html, body { margin: 0; padding: 0; }
|
||||
body {
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
color: var(--ink);
|
||||
font-family: var(--font-body);
|
||||
font-size: var(--fs-md);
|
||||
line-height: 1.5;
|
||||
line-height: 1.45;
|
||||
overscroll-behavior-y: none;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
/* place pour la barre d'action collée en bas */
|
||||
padding-bottom: calc(var(--action-bar-h) + env(safe-area-inset-bottom));
|
||||
}
|
||||
body.has-timer { padding-bottom: calc(var(--action-bar-h) + var(--timer-h) + env(safe-area-inset-bottom)); }
|
||||
|
||||
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
|
||||
|
||||
h1, h2, h3, p, ul, ol { margin: 0; }
|
||||
h1, h2, h3, p, ul, ol, figure { margin: 0; }
|
||||
ul, ol { padding: 0; list-style: none; }
|
||||
a { color: inherit; }
|
||||
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 2px; }
|
||||
button, input, select, textarea { font: inherit; color: inherit; }
|
||||
button { cursor: pointer; }
|
||||
[hidden] { display: none !important; }
|
||||
svg { display: block; }
|
||||
|
||||
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
|
||||
:focus-visible { outline: var(--b) solid var(--focus); outline-offset: 3px; }
|
||||
h1:focus { outline: none; }
|
||||
|
||||
.visually-hidden {
|
||||
position: absolute !important; width: 1px; height: 1px; overflow: hidden;
|
||||
clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
|
||||
}
|
||||
.skip-link { position: absolute; left: var(--space-2); top: -100px; z-index: 50; }
|
||||
.skip-link:focus { top: var(--space-2); background: var(--surface); padding: var(--space-2) var(--space-3); }
|
||||
.skip-link { position: absolute; left: var(--space-2); top: -100px; z-index: 50; background: var(--signal); color: var(--on-signal); padding: var(--space-2) var(--space-3); }
|
||||
.skip-link:focus { top: var(--space-2); }
|
||||
|
||||
/* Chiffres alignés partout où l'on compare des nombres. */
|
||||
.tnum, .timer__time, .stepper__value, .set-btn, .field__input, .exercise__count, .objective__value, .action-bar__meta { font-variant-numeric: tabular-nums; }
|
||||
.num, .timer__time, .stepper__value, .set-btn, .field__input, .exercise__count, .action-bar__meta, .stat__value { font-variant-numeric: tabular-nums lining-nums; }
|
||||
|
||||
/* Typographie d'affichage : capitales condensées. */
|
||||
.kicker, .section-label, .mini-label, .card__eyebrow, .plate__id, .plate__last, .tag, .back, .btn, .timer__label {
|
||||
font-family: var(--font-display);
|
||||
text-transform: uppercase;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.1em;
|
||||
/* Trois voix typographiques :
|
||||
- affichage (fonte condensée, capitales) : titres et grands chiffres ;
|
||||
- marquage (chasse fixe du système, capitales) : étiquettes, comme un ruban
|
||||
ou un chiffre frappé sur un disque ;
|
||||
- texte courant (police du système). */
|
||||
.title, .h2, .num, .btn, .stat__value, .timer__time, .stepper__value, .set-btn, .dialog__title {
|
||||
font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em;
|
||||
}
|
||||
.title, .card__title, .plate__name, .note__title, .dialog__title, .timer__time, .objective__value, .stepper__value {
|
||||
font-family: var(--font-display);
|
||||
font-weight: 700;
|
||||
.mark, .kicker, .tape, .back, .field__label, .mini-label, .tag, .badge, .stat__label, .chip, .timer__label, .action-bar__meta {
|
||||
font-family: var(--font-mark); font-size: var(--fs-mark); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700;
|
||||
}
|
||||
|
||||
.screen-head { padding: var(--space-5) 0 var(--space-4); }
|
||||
.kicker { font-size: var(--fs-xs); color: var(--text-muted); letter-spacing: 0.16em; }
|
||||
.title { font-size: var(--fs-3xl); line-height: 0.95; text-transform: uppercase; margin-top: var(--space-1); letter-spacing: -0.005em; }
|
||||
.title--hero { font-size: 3.25rem; }
|
||||
.lede { color: var(--text-muted); font-size: var(--fs-sm); margin-top: var(--space-2); max-width: 46ch; }
|
||||
.muted { color: var(--text-muted); font-size: var(--fs-sm); }
|
||||
.foot { color: var(--text-muted); font-size: var(--fs-xs); margin: var(--space-6) 0 var(--space-4); }
|
||||
.empty { color: var(--text-muted); padding: var(--space-5) 0; }
|
||||
.screen-head { padding: var(--space-4) 0 var(--space-3); border-bottom: var(--b-heavy) solid var(--ink); margin-bottom: var(--space-4); }
|
||||
.kicker { color: var(--muted); display: block; }
|
||||
.title { font-size: var(--fs-3xl); line-height: 0.88; margin-top: var(--space-2); overflow-wrap: anywhere; }
|
||||
.title--hero { font-size: 4rem; }
|
||||
.lede { color: var(--muted); margin-top: var(--space-2); max-width: 46ch; }
|
||||
.h2 { font-size: var(--fs-xl); line-height: 0.95; }
|
||||
.muted { color: var(--muted); font-size: var(--fs-sm); }
|
||||
.foot { color: var(--muted); font-size: var(--fs-sm); margin: var(--space-6) 0 var(--space-4); border-top: var(--b) solid var(--ink); padding-top: var(--space-3); }
|
||||
.empty { color: var(--muted); padding: var(--space-4) 0; }
|
||||
.prose > * + * { margin-top: var(--space-3); }
|
||||
|
||||
.section-label {
|
||||
font-size: var(--fs-sm); color: var(--text-muted); letter-spacing: 0.16em;
|
||||
margin: var(--space-6) 0 var(--space-3); display: flex; align-items: baseline; gap: var(--space-2);
|
||||
/* Ruban adhésif de salle : l'étiquette d'une section. */
|
||||
.tape {
|
||||
display: inline-block; background: var(--signal); color: var(--on-signal);
|
||||
padding: 4px var(--space-2); margin: var(--space-6) 0 var(--space-3);
|
||||
}
|
||||
.section-label__hint { font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: none; font-family: var(--font-body); font-weight: 400; }
|
||||
:root[data-theme="light"] .tape, :root[data-theme="light"] .badge--signal { outline: 2px solid var(--ink); }
|
||||
@media (prefers-color-scheme: light) {
|
||||
:root:not([data-theme="dark"]) .tape, :root:not([data-theme="dark"]) .badge--signal { outline: 2px solid var(--ink); }
|
||||
}
|
||||
.tape__hint { margin-left: var(--space-2); color: var(--muted); font-family: var(--font-body); font-size: var(--fs-sm); text-transform: none; letter-spacing: 0; font-weight: 400; }
|
||||
.section-head { display: flex; align-items: baseline; flex-wrap: wrap; }
|
||||
|
||||
.status { min-height: 1.5em; margin-top: var(--space-3); color: var(--danger); font-size: var(--fs-sm); }
|
||||
.status--ok { color: var(--primary); }
|
||||
.status { min-height: 1.45em; margin-top: var(--space-3); font-weight: 700; }
|
||||
.status:empty { min-height: 0; margin: 0; }
|
||||
.status--err:not(:empty)::before { content: "! "; }
|
||||
.status--ok:not(:empty)::before { content: "✓ "; }
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*, *::before, *::after { transition: none !important; animation: none !important; }
|
||||
|
||||
Reference in New Issue
Block a user