aboutsummaryrefslogtreecommitdiffstats
path: root/static/deck.css
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-18 16:56:00 +0100
committerDanilo M. <danix@danix.xyz>2026-11-18 16:56:00 +0100
commit656486e22e8ee22af88a79d56778025825946cf8 (patch)
tree47f0fb20f82703f5b801ae80bebbb73c72c9b978 /static/deck.css
parent21c07e04daedac6ae8dbed3813e09c8737cf10a8 (diff)
downloaddeck-it-656486e22e8ee22af88a79d56778025825946cf8.tar.gz
deck-it-656486e22e8ee22af88a79d56778025825946cf8.zip
feat(dashboard): game card with a full-height cover and icons
The cover now fills the card's height (2:3 box art, square for Xbox Live's art), the platform is a Nerd Font glyph (Steam, PlayStation with a 1/2 tag, Xbox) and the session and total times sit behind clock and history glyphs instead of a line of text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'static/deck.css')
-rw-r--r--static/deck.css16
1 files changed, 14 insertions, 2 deletions
diff --git a/static/deck.css b/static/deck.css
index 2f81b94..0757cdb 100644
--- a/static/deck.css
+++ b/static/deck.css
@@ -715,8 +715,20 @@ select {
.dash-music .music .controls button { min-height: 38px; min-width: 40px; font-size: 1rem; padding: 0; }
.dash-music .music .vol { min-width: 0; }
.music[hidden], .music [hidden] { display: none; } /* .art.empty sets display: flex */
-.music.game .times { display: block; color: var(--udt-subtext0); }
-.dash-music .music.game .art { width: 72px; height: 96px; }
+/* The game: its cover as tall as the card, platform glyph, name, times. */
+.music.game:not([hidden]) { display: flex; gap: 16px; align-items: center; height: 100%; }
+.music.game .cover { height: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px;
+ flex: none; background: var(--udt-surface1); }
+.music.game .cover.sq { aspect-ratio: 1; }
+.music.game .cover.empty:not([hidden]) { display: flex; align-items: center; justify-content: center;
+ font-size: 3rem; color: var(--udt-overlay0); }
+.music.game .meta { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
+.music.game .plat { font-size: 2.4rem; line-height: 1; color: var(--udt-accent); }
+.music.game .plat small { font-family: inherit; font-size: 1rem; font-weight: 700; margin-left: 2px; }
+.music.game .title { font-size: 1.3rem; font-weight: 600; white-space: normal; display: -webkit-box;
+ -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
+.music.game .stat:not([hidden]) { display: flex; gap: 8px; align-items: center; color: var(--udt-subtext0); }
+.music.game .stat .nf { color: var(--udt-accent); width: 1.2em; text-align: center; }
.dash .prog { display: flex; flex-direction: column; gap: 6px; }
.dash .prog header { display: flex; align-items: baseline; gap: 10px; }