Retouches après captures : minuteur sous la barre d'action, onboarding, correction des séries au temps ; docs/design.md

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Pierre MARTIN
2026-11-18 01:11:02 +01:00
co-authored by Claude Opus 5.5
parent af92c021e2
commit dadd4088fc
9 changed files with 127 additions and 14 deletions
+9 -2
View File
@@ -1,6 +1,13 @@
/* Base : remise à zéro, typographie, mise en page de l'écran. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
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));
}
html:has(body.has-timer) { scroll-padding-bottom: calc(var(--action-bar-h) + var(--timer-h) + var(--space-4)); }
html, body { margin: 0; padding: 0; }
body {
background: var(--bg);
@@ -13,7 +20,7 @@ body {
/* 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) + 96px + 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); }
+15 -1
View File
@@ -46,6 +46,9 @@
display: flex; align-items: center; gap: var(--space-3);
}
.action-bar__in > .btn { flex: 1; }
/* Le minuteur s'empile sous la barre d'action : « Terminer la séance » reste
accessible pendant un repos. */
body.has-timer .action-bar { bottom: calc(var(--timer-h) + env(safe-area-inset-bottom)); padding-bottom: 0; border-top-color: transparent; }
.action-bar__meta { color: var(--text-muted); font-family: var(--font-display); font-weight: 600; font-size: var(--fs-md); white-space: nowrap; }
/* ---- Cartes ------------------------------------------------------------- */
@@ -146,6 +149,16 @@ a.card--today:hover { border-color: var(--line-strong); border-left-color: var(-
display: grid; place-items: center; background: var(--primary); color: var(--on-primary);
font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg);
}
.card--onboarding { border-left: 6px solid var(--primary); padding: var(--space-5) var(--space-4); }
.how__step strong { font-weight: 700; }
.how__step span { color: var(--text-muted); }
.status--info { color: var(--text); }
.copy-line { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-2); }
.copy-line__text {
flex: 1; min-width: 0; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm);
background: var(--surface-sunk); color: var(--text); border: 1px solid var(--line);
font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--fs-xs); overflow-wrap: anywhere;
}
.alt { display: grid; gap: var(--space-2); margin-top: var(--space-5); }
.manual-copy { margin-top: var(--space-3); display: grid; gap: var(--space-2); }
@@ -194,6 +207,7 @@ a.card--today:hover { border-color: var(--line-strong); border-left-color: var(-
transition: opacity .2s, transform .2s;
}
.toast--on { opacity: 1; transform: translate(-50%, 0); }
body.has-timer .toast { bottom: calc(var(--action-bar-h) + var(--timer-h) + var(--space-4) + env(safe-area-inset-bottom)); }
/* ---- Minuteur ----------------------------------------------------------- */
.timer {
@@ -207,7 +221,7 @@ a.card--today:hover { border-color: var(--line-strong); border-left-color: var(-
content: ""; position: absolute; inset: 0; background: var(--text);
transform-origin: left; transform: scaleX(var(--progress, 1)); transition: transform .25s linear;
}
.timer__in { max-width: var(--max); margin: 0 auto; padding: var(--space-3) var(--gutter); display: flex; align-items: center; gap: var(--space-3); }
.timer__in { max-width: var(--max); height: calc(var(--timer-h) - 4px); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: var(--space-3); }
.timer__read { flex: 1; min-width: 0; }
.timer__label { font-size: var(--fs-xs); color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timer__time { font-size: 2.75rem; line-height: 1; }
+1 -1
View File
@@ -74,7 +74,7 @@
.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[aria-pressed="true"] { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); }
.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); }
+1
View File
@@ -60,6 +60,7 @@
--gutter: 16px;
--max: 560px;
--action-bar-h: 80px;
--timer-h: 80px; /* minuteur, barre de progression comprise */
}
@media (prefers-color-scheme: light) {