aboutsummaryrefslogtreecommitdiffstats
path: root/static/deck.css
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-10 19:53:32 +0100
committerDanilo M. <danix@danix.xyz>2026-11-10 19:53:32 +0100
commitc75b6f1ff69d944bb07b9395880a63620a0a8a00 (patch)
tree85275188ebfbaf7863f0089b4644e089cd977604 /static/deck.css
parentd0c5ae2bf4a8a0ab1ddec409e007e7aef0dfc3e3 (diff)
downloaddeck-it-c75b6f1ff69d944bb07b9395880a63620a0a8a00.tar.gz
deck-it-c75b6f1ff69d944bb07b9395880a63620a0a8a00.zip
feat(dashboard): one fixed screen for the tablet
The Dashboard tab drops the draggable card grid for a fixed layout: a top band of system, Claude and tablet chips with trend and fill backgrounds, music and spending always on, a row of one to three busy modules (printer, build VM, OBS) that scroll long lines, and the action icons in Hyprland's rotating border. The stats, tablet and llm panels and the vendored Gridstack go. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'static/deck.css')
-rw-r--r--static/deck.css247
1 files changed, 116 insertions, 131 deletions
diff --git a/static/deck.css b/static/deck.css
index 1aedc6f..ef10de6 100644
--- a/static/deck.css
+++ b/static/deck.css
@@ -86,101 +86,16 @@ body {
.tab-panel[hidden] { display: none; }
.tab-content { min-height: 100%; }
-.panel { min-height: 0; min-width: 0; }
-
@property --border-angle {
syntax: "<angle>";
initial-value: 0deg;
inherits: false;
}
-.grid-stack-item-content.panel {
- position: absolute;
- display: flex;
- flex-direction: column;
- padding: 0;
- overflow: hidden;
- border-radius: 16px;
- background: var(--udt-surface0);
- border: 0;
- box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
-}
-
-/* The same rotating three-hue gradient Hyprland draws on window borders,
- read from ~/.cache/udt/udt-border.lua via /theme.css. */
-.grid-stack-item-content.panel::before {
- content: "";
- position: absolute;
- inset: 0;
- border-radius: inherit;
- padding: 2px;
- background: linear-gradient(var(--border-angle),
- var(--udt-border-1), var(--udt-border-2), var(--udt-border-3), var(--udt-border-1));
- -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
- -webkit-mask-composite: xor;
- mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
- mask-composite: exclude;
- pointer-events: none;
- /* Hyprland: speed 30 * 100 ms, flatlinetwo = linear, style = loop */
- animation: border-rotate 3s linear infinite;
-}
-
@keyframes border-rotate {
to { --border-angle: 360deg; }
}
-.panel-head {
- flex: none;
- display: flex;
- align-items: center;
- gap: 10px;
- padding: 10px 14px;
- background: var(--udt-mantle);
- border-bottom: 1px solid var(--udt-surface1);
-}
-.panel-dot {
- width: 8px;
- height: 8px;
- border-radius: 50%;
- background: var(--udt-accent);
- flex: none;
-}
-.panel .panel-head h2 {
- flex: 1;
- margin: 0;
- font-size: 0.929rem;
- font-weight: 600;
- letter-spacing: .02em;
- color: var(--udt-text);
-}
-.panel-drag {
- font: inherit;
- color: var(--udt-overlay0);
- background: transparent;
- border: 0;
- padding: 2px 6px;
- border-radius: 6px;
- cursor: grab;
- touch-action: none;
-}
-.panel-drag:hover { color: var(--udt-subtext0); background: var(--udt-surface1); }
-.panel-fold {
- font: inherit;
- min-width: 36px;
- min-height: 32px;
- color: var(--udt-overlay0);
- background: transparent;
- border: 0;
- border-radius: 6px;
- cursor: pointer;
-}
-.panel-fold:hover { color: var(--udt-subtext0); background: var(--udt-surface1); }
-/* Folded: the card ends at its title bar instead of filling its grid row. */
-.grid-stack > .grid-stack-item > .grid-stack-item-content.panel.folded { bottom: auto; }
-.panel.folded .panel-body { display: none; }
-.panel.folded .panel-head { border-bottom: 0; }
-.panel-body { flex: 1; min-height: 0; overflow: auto; padding: 14px; }
-
.section-label {
font-size: 0.786rem;
text-transform: uppercase;
@@ -226,11 +141,6 @@ body {
.music .time { font-size: 0.857rem; color: var(--udt-subtext0); white-space: nowrap; }
.music .controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
-.sbb .sbb-now { margin-bottom: 8px; font-size: 0.857rem; font-weight: 600; }
-
-.grid-stack-item .ui-resizable-se { width: 22px; height: 22px; right: 2px; bottom: 2px; opacity: .45; }
-.grid-stack-item:hover .ui-resizable-se { opacity: 1; }
-
.num {
font-family: "Inconsolata Nerd Font Mono", ui-monospace, monospace;
font-variant-numeric: tabular-nums;
@@ -266,8 +176,6 @@ select {
padding: 8px;
}
-.sbb .id { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
-
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mtile {
display: flex;
@@ -288,13 +196,6 @@ select {
text-overflow: ellipsis;
}
.msub { font-size: 0.857rem; color: var(--udt-subtext0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
-.tablet .bars { height: 0.8em; margin-left: 6px; vertical-align: baseline; fill: var(--udt-surface2); }
-.tablet .bars .lit { fill: var(--udt-accent); }
-.msys { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 14px; }
-.msys > i { flex: none; width: 3rem; font-size: 2.6rem; line-height: 1; color: var(--udt-accent); }
-.msys > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
-.msys .mup { margin-left: auto; align-items: flex-end; flex: none; }
-.mfoot { margin-top: 10px; font-size: 0.857rem; color: var(--udt-overlay0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.windows { display: flex; flex-direction: column; gap: 14px; }
.windows .ws { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
@@ -361,14 +262,6 @@ select {
.wpop-ws { display: flex; flex-wrap: wrap; gap: 6px; }
.wpop-ws button { min-width: 44px; min-height: 44px; padding: 0; font-size: 1.143rem; font-weight: 600; }
-.llm { display: flex; flex-direction: column; gap: 10px; }
-.llm-sec {
- padding: 10px 12px;
- border-radius: 12px;
- background: var(--udt-mantle);
- border: 1px solid var(--udt-surface1);
-}
-.llm-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.brand {
width: 18px;
height: 18px;
@@ -383,32 +276,8 @@ select {
}
.brand.claude { -webkit-mask-image: url(/logos/claude.svg); mask-image: url(/logos/claude.svg); }
.brand.opencode { -webkit-mask-image: url(/logos/opencode.svg); mask-image: url(/logos/opencode.svg); }
-.brand-nf { width: 18px; flex: none; font-size: 18px; line-height: 1; text-align: center; color: var(--udt-accent); }
-.llm-head h3 {
- font-size: 0.857rem;
- text-transform: uppercase;
- letter-spacing: .08em;
- color: var(--udt-subtext0);
- flex: none;
-}
-.llm-head .model {
- margin-left: auto;
- max-width: 60%;
- font-size: 0.857rem;
- color: var(--udt-overlay0);
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
-}
-
-.gauges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
-.gauge { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--udt-surface1); }
-.glabel { font-size: 0.714rem; text-transform: uppercase; letter-spacing: .08em; color: var(--udt-overlay0); }
-.gvalue { font-size: 1.714rem; font-weight: 600; line-height: 1.1; }
.gbar { height: 6px; background: var(--udt-surface2); border-radius: 3px; overflow: hidden; }
.gbar > i { display: block; height: 100%; background: var(--udt-accent); }
-.lbig { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--udt-surface1); }
-.lpair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.good { color: var(--udt-green); }
.bad { color: var(--udt-red); }
@@ -760,3 +629,119 @@ select {
.windows .ws .wtile img { width: 32px; height: 32px; object-fit: contain; }
.wws img { width: 22px; height: 22px; object-fit: contain; }
.wpop-ws button img { width: 24px; height: 24px; object-fit: contain; }
+
+/* The Dashboard: one fixed screen (static/dashboard.js). */
+.tab-panel[data-tab="Dashboard"] { height: 100%; box-sizing: border-box; padding-top: 18px; }
+.dash { height: 100%; display: grid; grid-template-rows: 25% 1fr 10%; gap: 10px; }
+.dash [hidden] { display: none !important; }
+.dash-defs { position: absolute; }
+
+.dash-top { display: grid; grid-template-rows: auto 1fr 1fr; gap: 8px; min-height: 0; }
+.dash-id { display: flex; align-items: center; gap: 14px; font-size: 0.857rem; color: var(--udt-subtext0); white-space: nowrap; overflow: hidden; }
+.dash-id .logo { font-size: 1.15rem; color: var(--udt-accent); }
+.dash-id b { color: var(--udt-text); font-weight: 600; }
+.dash-id .sep { color: var(--udt-surface2); }
+.dash .chips { display: grid; gap: 8px; min-height: 0; }
+.dash .chips.sys { grid-template-columns: 1fr 1fr 1fr 1.3fr; }
+.dash .chips.aux { grid-template-columns: 1fr 1fr 1fr 1fr 1.3fr; }
+.dash .chip { position: relative; overflow: hidden; border-radius: 10px; background: var(--udt-surface0);
+ border: 1px solid var(--udt-surface1); display: flex; align-items: center; gap: 10px; padding: 0 14px; min-width: 0; }
+.dash .chip.warn { border-color: var(--udt-accent); }
+.dash .chip svg, .dash .chip .fill { position: absolute; inset: 0; pointer-events: none; }
+.dash .chip svg { width: 100%; height: 100%; }
+.dash .chip svg path { stroke-width: 1.5; vector-effect: non-scaling-stroke; }
+.dash .chip svg path.hy { fill: url(#hyfill); stroke: url(#hyline); }
+.dash .chip svg path.up { fill: color-mix(in srgb, var(--udt-text) 8%, transparent); stroke: color-mix(in srgb, var(--udt-text) 30%, transparent); }
+.dash .chip .fill { right: auto; width: 0; background: color-mix(in srgb, var(--udt-accent) 20%, transparent); transition: width .4s; }
+.dash .chip .ic { position: relative; flex: none; width: 1.4rem; font-size: 1.25rem; line-height: 1; color: var(--udt-overlay1); }
+.dash .chip .brand.ic { width: 20px; height: 20px; }
+.dash .chip .col { position: relative; display: flex; flex-direction: column; min-width: 0; }
+.dash .chip .n { font-size: 0.714rem; color: var(--udt-overlay1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
+.dash .chip .v { position: relative; font-size: 1.35rem; font-weight: 600; white-space: nowrap; line-height: 1.1; }
+.dash .chip .k { position: relative; font-size: 0.714rem; text-transform: uppercase; letter-spacing: .08em; color: var(--udt-overlay1); }
+.dash .chip .s { position: relative; font-size: 0.786rem; color: var(--udt-subtext0); white-space: nowrap; margin-left: auto; }
+
+.dash-mid { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
+.dash-always { display: flex; gap: 12px; flex: 1; min-height: 0; }
+.dash .card { min-height: 0; min-width: 0; overflow: hidden; padding: 14px 16px; border-radius: 14px;
+ background: var(--udt-mantle); border: 1px solid var(--udt-surface1); }
+.dash-music { flex: 1; }
+.dash-spend { flex: 1.4; display: flex; flex-direction: column; gap: 10px; }
+.dash-music .music .top { margin-bottom: 6px; }
+.dash-music .music .art { width: 52px; height: 52px; border-radius: 10px; }
+.dash-music .music .title { font-size: 1rem; }
+.dash-music .music .album { display: none; }
+.dash-music .music .seek { margin: 4px 0 8px; }
+.dash-music .music .controls { flex-wrap: nowrap; }
+.dash-music .music .controls button { min-height: 38px; min-width: 40px; font-size: 1rem; padding: 0; }
+.dash-music .music .vol { min-width: 0; }
+
+.dash .prog { display: flex; flex-direction: column; gap: 6px; }
+.dash .prog header { display: flex; align-items: baseline; gap: 10px; }
+.dash .prog h3 { margin: 0; font-size: 0.857rem; text-transform: uppercase; letter-spacing: .08em; color: var(--udt-subtext0); }
+.dash .prog .model { margin-left: auto; font-size: 0.786rem; color: var(--udt-overlay0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
+.dash .prog .nums { display: flex; gap: 22px; align-items: baseline; }
+.dash .prog .big { font-size: 1.25rem; font-weight: 600; }
+.dash .prog .lbl { font-size: 0.714rem; text-transform: uppercase; letter-spacing: .08em; color: var(--udt-overlay0); }
+.dash .prog .sub { font-size: 0.786rem; color: var(--udt-subtext0); }
+.dash .prog.row { flex-direction: row; align-items: baseline; gap: 12px; padding-top: 10px; border-top: 1px solid var(--udt-surface1); }
+.dash .prog.row .model { margin-left: 0; flex: 1; }
+.dash .prog.row .tok b { font-size: 1.1rem; font-weight: 600; margin-left: 4px; }
+.dash .stack { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--udt-surface0); }
+.dash .stack i { display: block; height: 100%; }
+.dash .legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.75rem; color: var(--udt-subtext0); }
+.dash .legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; background: var(--c); }
+
+/* The running row: one to three slots in equal columns. A line too long for
+ its slot slides to its end and back (dashboard.js sets --d and --t). */
+.dash-running { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; flex: none; height: 118px; }
+.dash .slot { container: slot / inline-size; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto 1fr;
+ column-gap: 14px; row-gap: 4px; align-items: center; padding: 10px 16px 12px; cursor: pointer; }
+.dash .slot .sic { grid-column: 1; grid-row: 1 / 3; font-size: 1.9rem; width: 2.4rem; color: var(--udt-accent); }
+.dash .slot .rec { color: var(--udt-red); }
+.dash .slot .what { grid-column: 2; font-weight: 600; white-space: nowrap; overflow: hidden; }
+.dash .slot .pct { grid-column: 3; justify-self: end; font-size: 1.25rem; font-weight: 600; white-space: nowrap; }
+.dash .slot .meta { grid-column: 2; font-size: 0.786rem; color: var(--udt-subtext0); white-space: nowrap; overflow: hidden; }
+.dash .slot .what > span, .dash .slot .meta > span { display: inline-block; }
+.dash .slot .marq { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
+ mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent); }
+.dash .slot .marq > span { animation: marq var(--t) ease-in-out infinite alternate; }
+@keyframes marq { 0%, 15% { transform: translateX(0); } 85%, 100% { transform: translateX(var(--d)); } }
+.dash .slot .act { grid-column: 3; grid-row: 2; justify-self: end; min-height: 0; height: 26px; padding: 0 10px; border-radius: 10px;
+ font-size: 0.786rem; background: transparent; border: 1px solid var(--udt-red); color: var(--udt-red); }
+.dash .slot .estop.act { width: auto; flex-direction: row; gap: 6px; }
+.dash .slot .estop.act .estop-label { font-size: 0.714rem; }
+.dash .slot .bar { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--udt-surface0); overflow: hidden; align-self: end; }
+.dash .slot .bar i { display: block; height: 100%; width: 0;
+ background: linear-gradient(90deg, var(--udt-border-1), var(--udt-border-2), var(--udt-border-3)); }
+.dash .slot .bar.busy i { width: 30%; animation: slot-busy 1.6s ease-in-out infinite alternate; }
+@keyframes slot-busy { from { margin-left: 0; } to { margin-left: 70%; } }
+.dash .slot .sthumb { display: none; }
+@container slot (min-width: 700px) {
+ .dash .slot .sthumb:not([hidden]) { display: block; grid-column: 1; grid-row: 1 / 3; width: 56px; height: 56px; object-fit: contain; }
+ .dash .slot:has(.sthumb:not([hidden])) .sic { display: none; }
+}
+
+/* Action icons, each in Hyprland's rotating border. */
+.dash-acts { display: flex; justify-content: center; align-items: center; gap: 28px; min-height: 0; }
+.dash-acts button { position: relative; height: 100%; max-height: 64px; aspect-ratio: 1; border-radius: 16px; font-size: 1.7rem; line-height: 1;
+ background: var(--udt-surface0); border: 0; color: var(--udt-text); }
+.dash-acts button.fail { color: var(--udt-red); }
+/* The same rotating three-hue gradient Hyprland draws on window borders,
+ read from ~/.cache/udt/udt-border.lua via /theme.css. */
+.dash-acts button::before {
+ content: "";
+ position: absolute;
+ inset: 0;
+ border-radius: inherit;
+ padding: 2px;
+ background: linear-gradient(var(--border-angle),
+ var(--udt-border-1), var(--udt-border-2), var(--udt-border-3), var(--udt-border-1));
+ -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
+ -webkit-mask-composite: xor;
+ mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
+ mask-composite: exclude;
+ pointer-events: none;
+ /* Hyprland: speed 30 * 100 ms, flatlinetwo = linear, style = loop */
+ animation: border-rotate 3s linear infinite;
+}