diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-12 09:39:08 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-12 09:39:08 +0100 |
| commit | 28a5a51c0a5e059a0389ddd1e75c6ecc91f6e38d (patch) | |
| tree | 40625e19b1a021e1694c52f23bd04609073704a0 /static/deck.css | |
| parent | 512a2b4a2821a1edadf5530d060e3ae5468d75e8 (diff) | |
| download | deck-it-28a5a51c0a5e059a0389ddd1e75c6ecc91f6e38d.tar.gz deck-it-28a5a51c0a5e059a0389ddd1e75c6ecc91f6e38d.zip | |
feat(dashboard): show a clock and date on the dim cover
The cover that hides the dashboard while the tablet is dimmed was only a
dark area; it now shows the time and date in the tablet's locale, so the
dim tablet stays useful at a glance. The cover is darker (85%) so the
clock stands out from the dashboard behind it, and it ticks only while
shown.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'static/deck.css')
| -rw-r--r-- | static/deck.css | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/static/deck.css b/static/deck.css index 6311c75..471aa07 100644 --- a/static/deck.css +++ b/static/deck.css @@ -604,8 +604,13 @@ select { /* The tablet dimmed after [tablet] dim_after idle seconds (app.js): catches the waking touch so it presses nothing underneath. */ -#dimmer { position: fixed; inset: 0; z-index: 90; background: rgb(0 0 0 / .6); } +#dimmer { + position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; + align-items: center; justify-content: center; background: rgb(0 0 0 / .85); +} #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); } /* The PC asleep: over everything, and the wake lock is dropped (app.js). */ #asleep { |
