aboutsummaryrefslogtreecommitdiffstats
path: root/static/deck.css
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-11 20:29:52 +0100
committerDanilo M. <danix@danix.xyz>2026-11-11 20:29:52 +0100
commitfea2e9b221a2d18f9c73e5763adf662128cea5ec (patch)
tree018ac7111d3dce1e4768c7a702d4394baf5589e1 /static/deck.css
parentc6f23856f080feee37c4972fb6689332b9873574 (diff)
downloaddeck-it-fea2e9b221a2d18f9c73e5763adf662128cea5ec.tar.gz
deck-it-fea2e9b221a2d18f9c73e5763adf662128cea5ec.zip
feat(tablet): dim the backlight after an idle timeout
After [tablet] dim_after seconds with no touch the page covers itself and the tablet module's dim action lowers the backlight to dim_brightness over adb, with auto brightness off meanwhile; an LCD's backlight is the drain, so a dark page alone saves little. The touch on the cover only calls undim, which restores both settings, as does the module's stop. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'static/deck.css')
-rw-r--r--static/deck.css5
1 files changed, 5 insertions, 0 deletions
diff --git a/static/deck.css b/static/deck.css
index a25ee46..6311c75 100644
--- a/static/deck.css
+++ b/static/deck.css
@@ -602,6 +602,11 @@ select {
.assistant .as-op.bad { color: var(--udt-red); }
.assistant .md, .assistant .as-q { user-select: text; }
+/* 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[hidden] { display: none; }
+
/* The PC asleep: over everything, and the wake lock is dropped (app.js). */
#asleep {
position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column;