[OCaml] Mobile-friendly clone of cgit.
docs document rem vs em unit choice for commit pills
Explain that pills intentionally use rem for context-independent sizing, while other small-text uses em for relative scaling.
lib/static/styles.css
@@ -448,6 +448,10 @@
448
448
font-family: monospace;
449
449
}
450
450
451
Added:
/* Commit pills use rem (not em) intentionally: pills appear in multiple
452
Added:
* contexts with varying parent font-sizes (commit list, toolbar filters,
453
Added:
* commit detail h3) and must render at a consistent, absolute size
454
Added:
* regardless of context. All other small-text sizing uses em. */
451
455
.commit-pill {
452
456
display: inline-flex;
453
457
align-items: center;