[OCaml] High Intensity Training Online
feat style exercise names as headings
Render the movement name inside the exercise fieldset as a black Work Sans heading so the exercise being logged stands out from the numeric fields below it.
Changed files
ENHANCEMENTS.org
@@ -28,7 +28,7 @@
28
28
When a current workout is open, selecting the logbook tab marks both Current Workout and Logbook as active in the bottom navigation. Ensure only the selected page is highlighted.
29
29
** DONE Increase the masthead brand size
30
30
Make the masthead brand name appear much larger.
31
Removed:
** TODO Style exercise names as headings
31
Added:
** DONE Style exercise names as headings
32
32
In the exercise fieldset, style the exercise name as a black Work Sans heading.
33
33
** TODO Limit Courier Prime Mono usage
34
34
Use Courier Prime Mono only for numerical inputs and outputs, and eventually for tabular data.
lib/web/assets/hito.css
@@ -204,6 +204,15 @@
204
204
letter-spacing: 0.025em;
205
205
}
206
206
207
Added:
/* The exercise name inside a fieldset reads as a heading: black Work Sans, so
208
Added:
the movement being logged stands out from the numeric fields below it. */
209
Added:
.exercise-name {
210
Added:
margin: 1rem 0 0;
211
Added:
color: var(--ink);
212
Added:
font: 700 var(--font-size-lead)/1.2 var(--sans);
213
Added:
letter-spacing: -0.01em;
214
Added:
}
215
Added:
207
216
.field { margin-top: 1rem; }
208
217
label {
209
218
display: block;
lib/web/pages.ml
@@ -532,12 +532,16 @@
532
532
]
533
533
| Prescription.Stimulus.Pre_exhaust { isolation; compound } ->
534
534
[
535
Removed:
tag "p" [ class_ "done" ] [ txt "%s" (Exercise.name isolation) ];
535
Added:
tag "p"
536
Added:
[ class_ "exercise-name" ]
537
Added:
[ txt "%s" (Exercise.name isolation) ];
536
538
load_reps_row ~errors ~load_id:(field_id "iso_load")
537
539
~load_field:"iso_load" ~reps_id:(field_id "iso_reps")
538
540
~reps_field:"iso_reps" ?load_value:(load_of 0)
539
541
?reps_value:(reps_of 0) ~reps_label:"Reps" ();
540
Removed:
tag "p" [ class_ "done" ] [ txt "%s" (Exercise.name compound) ];
542
Added:
tag "p"
543
Added:
[ class_ "exercise-name" ]
544
Added:
[ txt "%s" (Exercise.name compound) ];
541
545
load_reps_row ~errors ~load_id:(field_id "comp_load")
542
546
~load_field:"comp_load" ~reps_id:(field_id "comp_reps")
543
547
~reps_field:"comp_reps" ?load_value:(load_of 1)