aboutsummaryrefslogtreecommitdiffstats
path: root/static/deck.css
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-11 10:06:55 +0100
committerDanilo M. <danix@danix.xyz>2026-11-11 10:06:55 +0100
commit6a9a1ae47e758afb9a747a619b5665cb5908834a (patch)
treef521aa1dbbaee95a10a220597e44a182aaa0dd39 /static/deck.css
parent79d3be64f0a3e4552b08c80f1678649ccbff2a7c (diff)
downloaddeck-it-6a9a1ae47e758afb9a747a619b5665cb5908834a.tar.gz
deck-it-6a9a1ae47e758afb9a747a619b5665cb5908834a.zip
feat(tabs): slide transition, OBS logo and a 3D-printer nozzle for K1C
A tab change slides the new tab in from the side it sits on in the bar (40px and a fade over 220ms, off under prefers-reduced-motion); #tab-body no longer scrolls sideways, so the slide never flashes a scrollbar. A tab can show a brand logo from static/logos instead of a glyph: OBS uses the OBS Studio logo (simple-icons). K1C's printer glyph becomes nf-md-printer_3d_nozzle; the Creality logo exists only as a wordmark, unreadable at tab size. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'static/deck.css')
-rw-r--r--static/deck.css4
1 files changed, 3 insertions, 1 deletions
diff --git a/static/deck.css b/static/deck.css
index 35c6335..594bd80 100644
--- a/static/deck.css
+++ b/static/deck.css
@@ -77,8 +77,9 @@ body {
.tabs button { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; }
.tabs button .nf { font-size: 1.5rem; line-height: 1; margin-right: 6px; } /* the glyphs draw past their advance */
.tabs button:not(.active):not(.named) span { display: none; }
+.tabs button .brand { width: 1.5rem; height: 1.5rem; background: currentColor; }
-#tab-body { flex: 1; min-height: 0; overflow: auto; touch-action: pan-y; } /* sideways moves stay ours: the swipe */
+#tab-body { flex: 1; min-height: 0; overflow: hidden auto; touch-action: pan-y; } /* sideways moves stay ours: the swipe */
.tab-panel {
padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
@@ -275,6 +276,7 @@ select {
mask-size: contain;
}
.brand.claude { -webkit-mask-image: url(/logos/claude.svg); mask-image: url(/logos/claude.svg); }
+.brand.obs { -webkit-mask-image: url(/logos/obs.svg); mask-image: url(/logos/obs.svg); }
.brand.opencode { -webkit-mask-image: url(/logos/opencode.svg); mask-image: url(/logos/opencode.svg); }
.gbar { height: 6px; background: var(--udt-surface2); border-radius: 3px; overflow: hidden; }
.gbar > i { display: block; height: 100%; background: var(--udt-accent); }