144 lines
11 KiB
CSS
144 lines
11 KiB
CSS
/* La séance guidée : exercice, superset, séries, ressenti, minuteur. Les
|
|
chiffres sont énormes : on les lit à un mètre, la barre dans les mains. */
|
|
|
|
.exercises { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
|
|
|
|
/* ---- exercice (details/summary natif) --------------------------------------- */
|
|
.exercise { border: var(--b) solid var(--ink); background: var(--bg); }
|
|
.exercise__head {
|
|
display: flex; align-items: center; gap: var(--space-3);
|
|
min-height: 72px; padding: var(--space-2) var(--space-3); cursor: pointer; list-style: none;
|
|
}
|
|
.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(--bg); border-bottom: var(--b) solid var(--ink);
|
|
}
|
|
.exercise[open] > .exercise__head .chevron::after { content: "↓"; }
|
|
.exercise .badge { font-family: var(--font-display); font-size: var(--fs-lg); }
|
|
.exercise__name { flex: 1; min-width: 0; display: grid; }
|
|
.exercise__name strong { font-size: var(--fs-lg); line-height: 1.15; }
|
|
.exercise__sub { color: var(--muted); font-family: var(--font-mark); font-size: var(--fs-mark); }
|
|
.exercise__count { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xl); }
|
|
.exercise__count--done { background: var(--signal); color: var(--on-signal); padding: 0 6px; }
|
|
.exercise__body { padding: var(--space-3); }
|
|
.exercise__body > .coach-note { margin-bottom: var(--space-3); }
|
|
|
|
.cues li, .mistakes li { padding-left: 1.4em; text-indent: -1.4em; margin-bottom: var(--space-2); font-size: var(--fs-sm); }
|
|
.cues li::before { content: "▪ "; font-family: var(--font-mark); }
|
|
.mistakes li { color: var(--muted); }
|
|
.mistakes li::before { content: "✕ "; font-family: var(--font-mark); color: var(--ink); }
|
|
.tutorial { margin-top: var(--space-3); }
|
|
|
|
.objective { display: flex; align-items: baseline; gap: var(--space-3); margin-top: var(--space-4); padding-top: var(--space-3); border-top: var(--b) solid var(--ink); }
|
|
.objective__value { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-3xl); line-height: 0.85; }
|
|
.objective__rest { margin-left: auto; font-family: var(--font-mark); font-weight: 700; font-size: var(--fs-mark); text-transform: uppercase; color: var(--muted); }
|
|
|
|
/* Conseil de progression : « Prêt à monter » */
|
|
.advice { border: var(--b) solid var(--signal); padding: var(--space-3); margin-top: var(--space-3); display: grid; gap: var(--space-2); }
|
|
.advice__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
|
|
.advice__head .mark { background: var(--signal); color: var(--on-signal); padding: 2px 6px; }
|
|
.advice__kg { font-size: var(--fs-2xl); line-height: 0.9; }
|
|
|
|
/* ---- saisie ------------------------------------------------------------------- */
|
|
.work { display: grid; gap: var(--space-3); margin-top: var(--space-3); }
|
|
.work__fields { display: grid; gap: var(--space-3); }
|
|
.set-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: var(--space-2); }
|
|
.set-btn {
|
|
height: 72px; display: grid; place-content: center; gap: 2px; padding: 0;
|
|
background: var(--bg); border: var(--b) solid var(--ink); color: var(--ink); font-size: var(--fs-2xl); line-height: 0.9;
|
|
}
|
|
.set-btn[aria-expanded="true"] { outline: var(--b) solid var(--focus); outline-offset: 2px; }
|
|
.set-btn--done { background: var(--ink); color: var(--bg); }
|
|
.set-btn__effort { font-family: var(--font-mark); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
|
|
/* Un échec se voit : rayé, jamais mis en valeur. */
|
|
.set-btn--done[data-effort="failure"] { background: var(--bg); color: var(--ink); border-style: dashed; }
|
|
.set-btn--done[data-effort="failure"] .set-btn__n { text-decoration: line-through; text-decoration-thickness: 3px; }
|
|
|
|
.set-panel { border: var(--b) solid var(--ink); background: var(--sunk); padding: var(--space-3); display: grid; gap: var(--space-3); }
|
|
.set-panel__title, .set-panel__ask { font-family: var(--font-mark); font-weight: 700; font-size: var(--fs-mark); text-transform: uppercase; }
|
|
|
|
.stepper { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; gap: var(--space-2); }
|
|
.stepper__btn { height: 64px; background: var(--bg); border: var(--b) solid var(--ink); color: var(--ink); font-family: var(--font-display); font-size: 2.25rem; line-height: 1; }
|
|
.stepper__btn:active { background: var(--ink); color: var(--bg); }
|
|
.stepper__value { text-align: center; font-size: var(--fs-num); line-height: 0.85; }
|
|
.stepper__unit { grid-column: 1 / -1; text-align: center; font-family: var(--font-mark); font-weight: 700; font-size: var(--fs-mark); text-transform: uppercase; color: var(--muted); }
|
|
|
|
.effort-picker { display: grid; grid-template-columns: 1fr 1fr; gap: var(--b); background: var(--ink); border: var(--b) solid var(--ink); }
|
|
.effort { display: grid; gap: 2px; text-align: left; min-height: 64px; padding: var(--space-2) var(--space-3); background: var(--bg); border: 0; color: var(--ink); }
|
|
.effort[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
|
|
.effort__label { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: var(--fs-xl); line-height: 1; }
|
|
.effort__hint { font-size: var(--fs-sm); color: var(--muted); }
|
|
.effort[aria-pressed="true"] .effort__hint { color: inherit; }
|
|
.effort[data-effort="failure"] .effort__label::before { content: "✕ "; }
|
|
|
|
.btn--work { border-style: solid; border-width: var(--b-heavy); }
|
|
.tracking { margin-top: var(--space-4); padding-top: var(--space-3); border-top: var(--b) solid var(--ink); }
|
|
.tracking .mini-label { margin-top: 0; }
|
|
|
|
/* ---- superset : deux exercices dans un même cadre épais ------------------------- */
|
|
.superset { border: var(--b-heavy) solid var(--ink); padding: var(--space-2); display: grid; gap: var(--space-2); }
|
|
.superset__head { padding: var(--space-1) var(--space-1) var(--space-2); }
|
|
.tag--superset { background: var(--ink); color: var(--bg); border-color: var(--ink); }
|
|
.superset__text { color: var(--muted); font-size: var(--fs-sm); margin-top: var(--space-1); }
|
|
|
|
/* ---- échauffement ----------------------------------------------------------------- */
|
|
.exercise--warmup { border-style: dashed; }
|
|
.steps { display: grid; }
|
|
.step { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) 0; border-top: 2px solid var(--rule-soft); }
|
|
.step:first-child { border-top: 0; }
|
|
.step__text { flex: 1; min-width: 0; display: grid; }
|
|
.step__text strong { font-size: var(--fs-md); }
|
|
.step__text span { color: var(--muted); font-size: var(--fs-sm); }
|
|
.tick { width: var(--tap); height: var(--tap); flex: none; background: var(--bg); border: var(--b) solid var(--ink); color: var(--bg); font-family: var(--font-display); font-size: var(--fs-xl); }
|
|
.tick[aria-pressed="true"] { background: var(--ink); }
|
|
.tick[aria-pressed="true"]::after { content: "✓"; }
|
|
.step__go { flex: none; }
|
|
|
|
/* ---- minuteur, sous la barre d'action -------------------------------------------- */
|
|
.timer {
|
|
position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--timer-h) + env(safe-area-inset-bottom));
|
|
background: var(--ink); color: var(--bg); padding-bottom: env(safe-area-inset-bottom);
|
|
}
|
|
.timer__bar { height: 8px; background: var(--bg); }
|
|
.timer__bar::after { content: ""; display: block; height: 100%; width: 100%; background: var(--meter); transform-origin: left; transform: scaleX(var(--progress, 0)); }
|
|
.timer__in { max-width: var(--max); margin: 0 auto; padding: var(--space-1) var(--gutter); display: flex; align-items: center; gap: var(--space-3); height: calc(var(--timer-h) - 8px); }
|
|
.timer__read { flex: 1; min-width: 0; display: grid; }
|
|
.timer__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.timer__time { font-size: 3.75rem; line-height: 0.85; }
|
|
.timer__btns { display: flex; gap: var(--space-2); }
|
|
.timer .btn { border-color: var(--bg); background: var(--ink); color: var(--bg); min-height: 56px; font-size: var(--fs-lg); }
|
|
.timer .btn--primary { background: var(--signal); color: var(--on-signal); border-color: var(--signal); }
|
|
.timer--work .timer__bar::after { background: var(--signal); }
|
|
.timer--low .timer__time { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 4px; }
|
|
.timer--zero { background: var(--signal); color: var(--on-signal); }
|
|
.timer--zero .btn { border-color: var(--on-signal); background: var(--signal); color: var(--on-signal); }
|
|
.swap { display: grid; justify-items: start; margin-top: var(--space-3); border-top: var(--b) dashed var(--muted); }
|
|
.swap__note { margin: var(--space-2) 0 0; font-size: var(--fs-sm); font-weight: 700; }
|
|
|
|
/* ---- WOD (lot 4b) ------------------------------------------------------------------ */
|
|
.wod-format { border: var(--b-heavy) solid var(--ink); padding: var(--space-3); margin-bottom: var(--space-4); }
|
|
.wod-format .kicker { margin: 0; }
|
|
.wod-format__label { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xl); text-transform: uppercase; line-height: 1; margin: var(--space-1) 0 var(--space-2); }
|
|
.wod-moves { list-style: none; padding: 0; margin: 0 0 var(--space-4); border-top: var(--b) solid var(--ink); }
|
|
.wod-move { border-bottom: var(--b) solid var(--ink); padding: var(--space-2) 0; }
|
|
.wod-move--now { box-shadow: inset 8px 0 0 var(--signal); padding-left: var(--space-3); }
|
|
.wod-move__main { display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; }
|
|
.wod-move__reps { font-size: var(--fs-lg); min-width: 3ch; }
|
|
.wod-move__name { font-weight: 700; flex: 1; min-width: 10ch; }
|
|
.wod-move__load { display: inline-flex; align-items: center; gap: 4px; }
|
|
.wod-move__load .field__input { width: 6ch; min-height: 40px; padding: 0 var(--space-2); text-align: right; }
|
|
.wod-move__note { margin: var(--space-1) 0 0; color: var(--muted); font-size: var(--fs-sm); }
|
|
.wod-move__guide summary { cursor: pointer; font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 3px; min-height: var(--tap); display: flex; align-items: center; }
|
|
.wod-clock { border: var(--b-heavy) solid var(--ink); padding: var(--space-3); text-align: center; margin-bottom: var(--space-4); }
|
|
.wod-clock__phase { font-family: var(--font-mark); font-size: var(--fs-mark); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; min-height: 1.5em; }
|
|
.wod-clock__time { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-num-xl); line-height: 1; margin: var(--space-2) 0 var(--space-3); }
|
|
.wod-clock--rest { background: var(--ink); color: var(--bg); }
|
|
.wod-clock--done { background: var(--signal); color: var(--on-signal); border-color: var(--signal-edge); }
|
|
.wod-clock__btns { justify-content: center; flex-wrap: wrap; }
|
|
.check { display: flex; align-items: center; gap: var(--space-2); min-height: var(--tap); margin-bottom: var(--space-3); }
|
|
.check input { width: 24px; height: 24px; accent-color: var(--signal); }
|
|
.wod-score .segmented { margin-top: var(--space-2); }
|
|
.wod-format__record { margin: var(--space-2) 0 0; font-family: var(--font-mark); font-size: var(--fs-mark); font-weight: 700; text-transform: uppercase; }
|