diff options
Diffstat (limited to 'static/deck.css')
| -rw-r--r-- | static/deck.css | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/static/deck.css b/static/deck.css index e218f33..d5aef6b 100644 --- a/static/deck.css +++ b/static/deck.css @@ -872,3 +872,62 @@ dialog.vm-sheet::backdrop { background: color-mix(in srgb, var(--udt-crust) 55%, .vm-snap.current { border-color: var(--udt-accent); } .vm-snap.on { background: var(--udt-surface2); } .vm-snapname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; } + +/* Xbox tab */ +.xbox { display: flex; flex-direction: column; gap: 14px; padding: 4px 2px; } +.xbox .xb-on, .xbox .xb-on > * { min-width: 0; } +.xbox .xb-on { display: flex; flex-direction: column; gap: 14px; } +.xbox .xb-on[hidden], .xbox .xb-off[hidden] { display: none; } +.xbox .xb-card { background: var(--udt-mantle); border: 1px solid var(--udt-surface0); border-radius: 18px; padding: 14px; } +.xbox .xb-head { display: flex; align-items: center; gap: 14px; } +.xbox .xb-pic { width: 64px; height: 64px; border-radius: 50%; background: var(--udt-surface0); } +.xbox .xb-who { flex: 1; min-width: 0; } +.xbox .xb-tag { font-size: 1.4rem; font-weight: 700; } +.xbox .xb-pres { color: var(--udt-subtext0); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } +.xbox .xb-score { font-size: 1.3rem; font-weight: 600; color: var(--udt-accent); } +.xbox .xb-stale, .xbox .xb-err { color: var(--udt-red); font-size: 0.857rem; } +.xbox .xb-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; } +.xbox .xb-now { display: flex; gap: 16px; align-items: center; border-color: var(--udt-accent); } +.xbox .xb-cover { width: 140px; aspect-ratio: 1; object-fit: cover; border-radius: 12px; } +.xbox .xb-ninfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; } +.xbox .xb-nlabel, .xbox .xb-section { color: var(--udt-subtext0); font-size: 0.857rem; text-transform: uppercase; letter-spacing: 0.06em; } +.xbox .xb-ntitle { font-size: 1.4rem; font-weight: 700; } +.xbox .xb-nrich { color: var(--udt-subtext1); } +.xbox .xb-clock { font-size: 1.6rem; font-weight: 600; } +.xbox .xb-console { display: flex; flex-direction: column; gap: 10px; } +.xbox .xb-chead { display: flex; align-items: center; gap: 10px; } +.xbox .xb-glyph { font-size: 1.8rem; color: var(--udt-green); } +.xbox .xb-cname { flex: 1; font-size: 1.15rem; font-weight: 600; } +.xbox .xb-pill { padding: 4px 12px; border-radius: 999px; background: var(--udt-surface1); font-weight: 600; } +.xbox .xb-pill.good { background: var(--udt-green); color: var(--udt-crust); } +.xbox .xb-pill.warn { background: var(--udt-yellow); color: var(--udt-crust); } +.xbox .ib { min-width: 56px; min-height: 56px; border-radius: 14px; font-size: 1.5rem; + background: var(--udt-surface0); border: 1px solid var(--udt-surface1); color: var(--udt-text); cursor: pointer; } +.xbox .xb-power { width: 64px; height: 64px; border-radius: 50%; font-size: 1.8rem; padding: 0; } +.xbox .xb-power.on { border-color: var(--udt-green); color: var(--udt-green); } +.xbox .hold { position: relative; overflow: hidden; isolation: isolate; touch-action: none; } +.xbox .hold::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--udt-red); + transform: scaleX(0); transform-origin: left; } +.xbox .hold.holding::before { transform: scaleX(1); transition: transform var(--hold, 800ms) linear; } +.xbox .xb-disk { display: flex; flex-direction: column; gap: 4px; color: var(--udt-subtext1); font-size: 0.857rem; } +.xbox .xb-media { display: flex; flex-wrap: wrap; gap: 10px; } +.xbox .xb-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; } +.xbox .xb-game { display: flex; flex-direction: column; gap: 4px; min-width: 0; } +.xbox .xb-gcover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--udt-surface0); } +.xbox .xb-gname { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } +.xbox .xb-gmeta { color: var(--udt-subtext0); font-size: 0.857rem; } +.xbox .xb-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; } +.xbox .xb-list { display: flex; flex-direction: column; gap: 8px; } +.xbox .xb-row { display: flex; align-items: center; gap: 10px; } +.xbox .xb-rpic { width: 44px; height: 44px; border-radius: 10px; background: var(--udt-surface0); flex: none; } +.xbox .xb-row.on .xb-rpic { outline: 2px solid var(--udt-green); } +.xbox .xb-rtext { flex: 1; min-width: 0; } +.xbox .xb-rtitle { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } +.xbox .xb-rsub { color: var(--udt-subtext0); font-size: 0.857rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } +.xbox .xb-rside { color: var(--udt-accent); font-weight: 600; } +.xbox .xb-login { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 48px 12px; text-align: center; } +.xbox .xb-logo { font-size: 4rem; color: var(--udt-green); } +.xbox .xb-ltitle { font-size: 1.4rem; font-weight: 700; } +.xbox .xb-lhint, .xbox .xb-loading { color: var(--udt-subtext0); } +.xbox .xb-code { font-size: 3rem; font-weight: 700; letter-spacing: 0.15em; color: var(--udt-accent); } +.xbox .xb-lbtn { padding: 0 32px; font-size: 1.2rem; } |
