diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-13 14:06:41 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-13 14:06:41 +0100 |
| commit | 863f7453f9e136cadc93db9f3f0b8f257f798ce8 (patch) | |
| tree | a24c2453dd0d9b8e7317378ee8da56e205a0f3bb /static/deck.css | |
| parent | fe55526cbc6015c4268ee155f21bcb11de5609b5 (diff) | |
| download | deck-it-863f7453f9e136cadc93db9f3f0b8f257f798ce8.tar.gz deck-it-863f7453f9e136cadc93db9f3f0b8f257f798ce8.zip | |
feat(tablet): a font of the PC's for the dim cover's clock
[tablet] clock_font names a font family installed on the PC; the
server finds its file with fc-match and serves it at /fonts/clock, and
the cover's clock uses it, the date too while clock_font_date is on
(default). fc-match falls back to any font, so the route answers only
when the returned family is the one named; otherwise the page font
stays. The font file never enters the repo, so a personal-use font
can be used on one's own tablet without redistributing it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'static/deck.css')
| -rw-r--r-- | static/deck.css | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/static/deck.css b/static/deck.css index b6d2202..fd0b813 100644 --- a/static/deck.css +++ b/static/deck.css @@ -611,6 +611,10 @@ select { #dimmer[hidden] { display: none; } .dim-time { font-size: 8rem; font-weight: 300; line-height: 1; color: var(--udt-text); font-variant-numeric: tabular-nums; } .dim-date { font-size: 1.6rem; color: var(--udt-subtext0); } +/* [tablet] clock_font; a missing font falls back to the page font. */ +@font-face { font-family: "deckit-clock"; src: url("/fonts/clock"); } +#dimmer.font-time .dim-time { font-family: "deckit-clock", "Inconsolata Nerd Font Mono", ui-monospace, monospace; font-weight: normal; } +#dimmer.font-date .dim-date { font-family: "deckit-clock", "Inconsolata Nerd Font Mono", ui-monospace, monospace; letter-spacing: .08em; } /* The PC asleep: over everything, and the wake lock is dropped (app.js). */ #asleep { |
