diff --git a/css/main.css b/css/main.css index 8f1cca2..38d1b83 100644 --- a/css/main.css +++ b/css/main.css @@ -6,7 +6,7 @@ 1. Base & reset (all pages) 2. Shared layout & header (all pages) 3. Link hub (index page) - 4. Now-playing widget (shared, top-left) + 4. Discord widget (shared, top-left) 5. Page nav (shared, bottom-left) 6. System badges (shared, bottom-right) 7. Theme switcher (shared, top-right) @@ -970,7 +970,7 @@ body:has(.friend-grid) { width: 100%; } - /* FIX: the presence card injected by now-playing.js replaces #now-playing + /* FIX: the presence card injected by discord.js replaces #discord with .presence-card (position:fixed by default in api.css). Inside .topbar on mobile it must flow normally. */ .topbar .presence-card, @@ -2215,7 +2215,7 @@ a.fc-name:hover { color: rgb(var(--accent-rgb)); } /* ===================================================================== * MUSIC PAGE (/music) — merged in from music.css. - * Hero classes are .mnp-* to avoid colliding with the .np-* now-playing + * Hero classes are .mdc-* to avoid colliding with the .dc-* discord * widget already defined above. Other classes (.lyrics, .rc-*, .sec-*, * .top-*, .ly-*, .music-*) are unique to this page. * ===================================================================== */ @@ -2260,7 +2260,7 @@ body:has(.music-wrap) { } /* ---- now playing hero -------------------------------------------------- */ -.mnp { +.mdc { display: grid; grid-template-columns: 132px 1fr; gap: 1.1rem; @@ -2275,7 +2275,7 @@ body:has(.music-wrap) { } /* a soft wash of the album accent behind the hero */ -.mnp::before { +.mdc::before { content: ""; position: absolute; inset: 0; @@ -2286,11 +2286,11 @@ body:has(.music-wrap) { pointer-events: none; } -#music.is-live .mnp::before { +#music.is-live .mdc::before { opacity: 1; } -.mnp-art { +.mdc-art { width: 132px; height: 132px; border-radius: 12px; @@ -2299,11 +2299,11 @@ body:has(.music-wrap) { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); } -.mnp-art:not(.has-art) { +.mdc-art:not(.has-art) { display: grid; } -.mnp-art:not(.has-art)::after { +.mdc-art:not(.has-art)::after { content: "♪"; color: var(--overlay-0); font-size: 2.4rem; @@ -2312,12 +2312,12 @@ body:has(.music-wrap) { height: 100%; } -.mnp-meta { +.mdc-meta { min-width: 0; position: relative; } -.mnp-state { +.mdc-state { display: inline-flex; align-items: center; gap: 0.4rem; @@ -2328,11 +2328,11 @@ body:has(.music-wrap) { margin-bottom: 0.35rem; } -#music.is-live .mnp-state { +#music.is-live .mdc-state { color: rgb(var(--accent-rgb)); } -.mnp-title { +.mdc-title { display: block; font-size: 1.3rem; font-weight: 700; @@ -2344,31 +2344,31 @@ body:has(.music-wrap) { text-overflow: ellipsis; } -.mnp-title:hover { +.mdc-title:hover { color: rgb(var(--accent-rgb)); } -.mnp-artist { +.mdc-artist { display: block; color: var(--subtext-1); font-size: 0.95rem; } -.mnp-album { +.mdc-album { display: block; color: var(--subtext-0); font-size: 0.82rem; margin-top: 0.1rem; } -.mnp-progress { +.mdc-progress { margin-top: 0.8rem; display: flex; align-items: center; gap: 0.6rem; } -.mnp-bar { +.mdc-bar { flex: 1; height: 6px; border-radius: 999px; @@ -2376,7 +2376,7 @@ body:has(.music-wrap) { overflow: hidden; } -.mnp-fill { +.mdc-fill { display: block; height: 100%; width: 0%; @@ -2385,7 +2385,7 @@ body:has(.music-wrap) { transition: width 0.4s linear; } -.mnp-time { +.mdc-time { font-size: 0.72rem; color: var(--subtext-0); font-variant-numeric: tabular-nums; @@ -2719,18 +2719,18 @@ body:has(.music-wrap) { /* ---- responsive -------------------------------------------------------- */ @media (max-width: 560px) { - .mnp { + .mdc { grid-template-columns: 96px 1fr; gap: 0.85rem; padding: 0.9rem; } - .mnp-art { + .mdc-art { width: 96px; height: 96px; } - .mnp-title { + .mdc-title { font-size: 1.1rem; } @@ -2744,7 +2744,7 @@ body:has(.music-wrap) { } @media (prefers-reduced-motion: reduce) { - .mnp-fill { + .mdc-fill { transition: none; } @@ -2906,7 +2906,7 @@ html[data-theme] body.api-body { * Lifted verbatim from main.css §13 so the card is self-contained. * ===================================================================== */ .presence-card { - --np-accent: 245, 194, 231; + --dc-accent: 245, 194, 231; position: fixed; top: 1rem; left: 1rem; @@ -2924,8 +2924,8 @@ html[data-theme] body.api-body { .presence-card[hidden] { display: none; } .presence-card.has-accent { - border-color: rgba(var(--np-accent), 0.5); - box-shadow: 0 8px 26px -12px rgba(var(--np-accent), 0.6); + border-color: rgba(var(--dc-accent), 0.5); + box-shadow: 0 8px 26px -12px rgba(var(--dc-accent), 0.6); } /* ---- header (always visible) ---- */ @@ -3054,7 +3054,7 @@ html[data-theme] body.api-body { } a.pc-row:hover, .pc-row--stack:hover { - border-color: rgba(var(--np-accent), 0.55); + border-color: rgba(var(--dc-accent), 0.55); transform: translateX(2px); } @@ -3171,7 +3171,7 @@ a.pc-row:hover, height: 100%; width: 0; border-radius: 999px; - background: rgb(var(--np-accent)); + background: rgb(var(--dc-accent)); } .pc-times { display: flex; @@ -3298,7 +3298,7 @@ a.pc-row:hover, transition: border-color 0.15s ease, background 0.15s ease; } .pc-btn:hover { - border-color: rgb(var(--np-accent)); + border-color: rgb(var(--dc-accent)); background: var(--surface-2); } diff --git a/discord/index.html b/discord/index.html index d78d159..caa2db0 100644 --- a/discord/index.html +++ b/discord/index.html @@ -61,11 +61,11 @@
What fae is up to, live via Lanyard.
- + - +