Design system : jetons clair et sombre, composants CSS, coquille de l'app
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
eaefff096f
commit
74db3014f0
@@ -0,0 +1,106 @@
|
||||
/* Composants de la séance guidée : exercice, superset, séries, ressenti. */
|
||||
|
||||
.exercises { display: grid; gap: var(--space-2); margin-top: var(--space-4); }
|
||||
|
||||
/* ---- Exercice (details/summary natif, accessible sans script) ---------- */
|
||||
.exercise { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
|
||||
.exercise[open] { border-color: var(--line-strong); }
|
||||
.exercise__head {
|
||||
display: flex; align-items: center; gap: var(--space-3);
|
||||
min-height: 64px; padding: var(--space-3) var(--space-4); cursor: pointer; list-style: none;
|
||||
border-radius: var(--radius);
|
||||
}
|
||||
.exercise__head::-webkit-details-marker { display: none; }
|
||||
/* Piège d'Atelier : combinateur enfant, et pas d'overflow:hidden sur la carte,
|
||||
sinon l'en-tête collant ne colle plus. */
|
||||
.exercise[open] > .exercise__head {
|
||||
position: sticky; top: 0; z-index: 5; background: var(--surface);
|
||||
border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0;
|
||||
}
|
||||
.exercise[open] > .exercise__head .chevron { transform: rotate(45deg); }
|
||||
.exercise__name { flex: 1; min-width: 0; display: grid; }
|
||||
.exercise__name strong { font-size: var(--fs-md); font-weight: 600; line-height: 1.25; }
|
||||
.exercise__sub { color: var(--text-muted); font-size: var(--fs-xs); }
|
||||
.exercise__count { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); color: var(--text-muted); }
|
||||
.exercise__count--done { color: var(--primary); }
|
||||
.exercise__body { padding: var(--space-3) var(--space-4) var(--space-4); }
|
||||
|
||||
.mini-label { font-family: var(--font-display); text-transform: uppercase; font-weight: 600; letter-spacing: 0.14em; font-size: var(--fs-xs); color: var(--text-muted); margin: var(--space-4) 0 var(--space-2); }
|
||||
.cues li, .mistakes li { position: relative; padding-left: 20px; margin-bottom: var(--space-2); font-size: var(--fs-sm); }
|
||||
.cues li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); }
|
||||
.mistakes { border-left: 3px solid var(--danger); padding-left: var(--space-1); }
|
||||
.mistakes li { color: var(--text-muted); padding-left: var(--space-3); }
|
||||
.tutorial { margin-top: var(--space-2); }
|
||||
|
||||
.objective { display: flex; align-items: baseline; gap: var(--space-3); margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--line); }
|
||||
.objective__value { font-size: var(--fs-xl); line-height: 1; }
|
||||
.objective__rest { margin-left: auto; font-family: var(--font-display); text-transform: uppercase; font-weight: 600; letter-spacing: .1em; font-size: var(--fs-sm); color: var(--text-muted); }
|
||||
|
||||
/* ---- Zone de saisie ----------------------------------------------------- */
|
||||
.work { display: grid; gap: var(--space-3); margin-top: var(--space-3); }
|
||||
.work__fields { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-4); align-items: center; }
|
||||
.set-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
|
||||
.set-btn {
|
||||
position: relative; width: 52px; height: 52px; border-radius: var(--radius);
|
||||
background: transparent; border: 1px solid var(--line-strong); color: var(--text);
|
||||
font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg);
|
||||
}
|
||||
.set-btn[aria-expanded="true"] { outline: 3px solid var(--text); outline-offset: 1px; }
|
||||
.set-btn--done { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
|
||||
/* Pastille du ressenti : la couleur double le texte (aria-label), jamais seule. */
|
||||
.set-btn--done::after {
|
||||
content: ""; position: absolute; right: 4px; top: 4px; width: 10px; height: 10px; border-radius: 50%;
|
||||
border: 2px solid var(--on-primary); background: var(--dot, transparent);
|
||||
}
|
||||
.set-btn[data-effort="easy"] { --dot: var(--effort-easy); }
|
||||
.set-btn[data-effort="ok"] { --dot: var(--effort-ok); }
|
||||
.set-btn[data-effort="hard"] { --dot: var(--effort-hard); }
|
||||
.set-btn[data-effort="failure"] { --dot: var(--effort-failure); }
|
||||
|
||||
.set-panel { background: var(--surface-sunk); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: var(--space-3); display: grid; gap: var(--space-3); }
|
||||
.set-panel__title, .set-panel__ask { font-family: var(--font-display); text-transform: uppercase; font-weight: 600; letter-spacing: .12em; font-size: var(--fs-sm); color: var(--text-muted); }
|
||||
|
||||
.stepper { display: flex; align-items: center; gap: var(--space-3); }
|
||||
.stepper__btn { width: 56px; height: 56px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text); font-size: 1.75rem; line-height: 1; }
|
||||
.stepper__value { min-width: 2.2ch; text-align: center; font-size: 2.5rem; line-height: 1; }
|
||||
.stepper__unit { font-family: var(--font-display); text-transform: uppercase; font-weight: 600; letter-spacing: .1em; font-size: var(--fs-sm); color: var(--text-muted); }
|
||||
|
||||
.effort-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
|
||||
.effort {
|
||||
display: grid; gap: 2px; text-align: left; min-height: 64px; padding: var(--space-2) var(--space-3);
|
||||
background: var(--surface); border: 1px solid var(--line-strong); border-left: 6px solid var(--c); border-radius: var(--radius); color: var(--text);
|
||||
}
|
||||
.effort[data-effort="easy"] { --c: var(--effort-easy); }
|
||||
.effort[data-effort="ok"] { --c: var(--effort-ok); }
|
||||
.effort[data-effort="hard"] { --c: var(--effort-hard); }
|
||||
.effort[data-effort="failure"] { --c: var(--effort-failure); }
|
||||
.effort[aria-pressed="true"] { border-color: var(--c); background: var(--surface-2); }
|
||||
.effort__label { font-family: var(--font-display); text-transform: uppercase; font-weight: 700; letter-spacing: .06em; font-size: var(--fs-lg); color: var(--c); }
|
||||
.effort__hint { font-size: var(--fs-xs); color: var(--text-muted); }
|
||||
|
||||
.tracking { display: grid; gap: 0; margin-top: var(--space-3); padding-top: var(--space-1); border-top: 1px solid var(--line); }
|
||||
|
||||
/* ---- Superset ----------------------------------------------------------- */
|
||||
.superset { border: 1px solid var(--work); border-radius: var(--radius); padding: var(--space-2); display: grid; gap: var(--space-2); }
|
||||
.superset__head { padding: var(--space-2); }
|
||||
.superset__text { color: var(--text-muted); font-size: var(--fs-xs); margin-top: var(--space-1); }
|
||||
.superset .exercise { background: var(--surface); }
|
||||
|
||||
/* ---- Échauffement ------------------------------------------------------- */
|
||||
.exercise--warmup { border-color: var(--primary); }
|
||||
.steps { display: grid; }
|
||||
.step { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--line); }
|
||||
.step:first-child { border-top: 0; }
|
||||
.step__text { flex: 1; min-width: 0; display: grid; }
|
||||
.step__text strong { font-size: var(--fs-sm); font-weight: 600; }
|
||||
.step__text span { color: var(--text-muted); font-size: var(--fs-xs); }
|
||||
.tick {
|
||||
width: 44px; height: 44px; flex: none; border-radius: var(--radius); background: transparent;
|
||||
border: 1px solid var(--line-strong); position: relative;
|
||||
}
|
||||
.tick[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); }
|
||||
.tick[aria-pressed="true"]::after {
|
||||
content: ""; position: absolute; left: 15px; top: 9px; width: 10px; height: 18px;
|
||||
border-right: 3px solid var(--on-primary); border-bottom: 3px solid var(--on-primary); transform: rotate(45deg);
|
||||
}
|
||||
.step__go { flex: none; }
|
||||
Reference in New Issue
Block a user