client: switch picker padding to em units, not fixed px
Per feedback on #74 — fixed-px padding would silently need re-tuning again if .picker-count's font-size ever changes. em is relative to this rule's own font-size, so the fix scales with it automatically.
This commit is contained in:
parent
91d14b33bb
commit
e0bcfad784
1 changed files with 5 additions and 3 deletions
|
|
@ -215,9 +215,11 @@ button.danger { background: #5a2a2a; border-color: #7a3a3a; color: #fff; }
|
||||||
width per cell in this 5-column grid — workable for a single digit
|
width per cell in this 5-column grid — workable for a single digit
|
||||||
("1".."5") but not the two-character "−1".."−5" remove-row labels,
|
("1".."5") but not the two-character "−1".."−5" remove-row labels,
|
||||||
which overflowed into the next cell and got visually clipped by its
|
which overflowed into the next cell and got visually clipped by its
|
||||||
opaque background. Horizontal-only override keeps the existing
|
opaque background. `em` (relative to this rule's own font-size,
|
||||||
vertical spacing/centering, just frees up room sideways. */
|
not a fixed px) so the fix keeps working if font-size ever changes
|
||||||
padding: 12px 4px;
|
instead of quietly re-breaking — mara's ask on the PR. Horizontal-
|
||||||
|
only, vertical spacing/centering untouched. */
|
||||||
|
padding: 0.46em 0.15em;
|
||||||
font-size: 26px;
|
font-size: 26px;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue