From 6b03740a8c9fb98b788549412f0ebf3cbae1d2de Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 13 Nov 2026 16:39:50 +0100 Subject: feat(tablet): clock fonts and sizes from keystone's Fonts page The dim cover's time and date fonts move out of [tablet] clock_font and clock_font_date into keystone's fonts.json: "family" deckit-clock and deckit-date, each served at /fonts/, and the "override" sizes deckit:clock and deckit:date (else deck.css's 8rem and 1.6rem). The date can now have a font of its own. theme.css carries the rules, so a save on the Fonts page reaches an open tablet page within 5s, with no restart and no flags in the tablet state. Co-Authored-By: Claude Opus 5.5 --- static/deck.css | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'static/deck.css') diff --git a/static/deck.css b/static/deck.css index fd0b813..b6da4c6 100644 --- a/static/deck.css +++ b/static/deck.css @@ -611,10 +611,7 @@ 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 clock's fonts come from keystone's fonts.json, as rules in theme.css. */ /* The PC asleep: over everything, and the wake lock is dropped (app.js). */ #asleep { -- cgit v1.2.3