658 lines
15 KiB
CSS
658 lines
15 KiB
CSS
html,
|
|
body,
|
|
#root {
|
|
background: transparent;
|
|
}
|
|
|
|
.song-overlay {
|
|
box-sizing: border-box;
|
|
display: grid;
|
|
/* Percentages work both as an OBS root and inside the control preview. Using
|
|
vw/vh here made the nested preview measure the dashboard viewport instead. */
|
|
width: 100%;
|
|
height: 100%;
|
|
min-width: 0;
|
|
grid-template-rows: auto minmax(0, 1fr);
|
|
gap: clamp(4px, 0.8vmin, 8px);
|
|
padding: clamp(4px, 0.8vmin, 9px);
|
|
color: var(--theme-text);
|
|
font-family: var(--component-font-family, 'Noto Serif SC', 'Songti SC', 'STSong', serif);
|
|
font-size: var(--song-font-size, clamp(12px, 2.4vmin, 24px));
|
|
overflow: hidden;
|
|
}
|
|
|
|
.song-current,
|
|
.song-queue {
|
|
position: relative;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
border: var(--component-decoration-line, 1px) solid var(--theme-card-border);
|
|
border-radius: clamp(8px, 1.5vmin, 15px);
|
|
background: var(--theme-card-background);
|
|
box-shadow:
|
|
inset 0 1px rgba(231, 255, 249, 0.12),
|
|
0 10px 32px rgba(0, 12, 24, 0.24);
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
.song-current::after,
|
|
.song-queue::after {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
pointer-events: none;
|
|
opacity: 0.1;
|
|
background: var(--theme-pattern-vine) left bottom / min(70%, 480px) auto no-repeat;
|
|
}
|
|
|
|
.song-current {
|
|
display: grid;
|
|
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
align-items: center;
|
|
gap: clamp(6px, 1.2vmin, 12px);
|
|
min-height: var(--song-current-min, 56px);
|
|
padding: clamp(6px, 1.2vmin, 12px);
|
|
animation: song-current-arrive 0.58s cubic-bezier(0.18, 0.86, 0.22, 1);
|
|
}
|
|
|
|
.song-current-mark {
|
|
display: grid;
|
|
place-items: center;
|
|
width: clamp(30px, 3em, 46px);
|
|
aspect-ratio: 1;
|
|
border: var(--component-decoration-line, 1px) solid rgba(133, 255, 232, 0.5);
|
|
border-radius: 50%;
|
|
color: var(--theme-accent);
|
|
background: rgba(6, 48, 57, 0.72);
|
|
box-shadow: 0 0 24px rgba(95, 255, 226, 0.22);
|
|
font-size: 1.25em;
|
|
}
|
|
|
|
.song-current-mark-note,
|
|
.song-waveform {
|
|
display: none;
|
|
}
|
|
|
|
.song-current-copy {
|
|
position: relative;
|
|
z-index: 1;
|
|
display: grid;
|
|
min-width: 0;
|
|
gap: 0.12em;
|
|
}
|
|
|
|
.song-current-copy,
|
|
.song-queue > header,
|
|
.song-row,
|
|
.song-queue-empty {
|
|
filter: brightness(var(--component-font-brightness, 1.3));
|
|
}
|
|
|
|
.song-current-copy small {
|
|
color: var(--component-song-requester-color, var(--theme-compact-user));
|
|
font-size: 0.68em;
|
|
}
|
|
|
|
.song-current-copy strong {
|
|
color: var(--component-song-title-color, var(--theme-text));
|
|
overflow-wrap: anywhere;
|
|
font-size: 1.35em;
|
|
line-height: 1.08;
|
|
text-shadow: 0 0 20px rgba(133, 255, 232, 0.2);
|
|
}
|
|
|
|
.song-queue {
|
|
display: grid;
|
|
min-height: 0;
|
|
grid-template-rows: auto minmax(0, 1fr);
|
|
}
|
|
|
|
.song-queue > header {
|
|
position: relative;
|
|
z-index: 2;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0.38em 0.72em;
|
|
border-bottom: var(--component-decoration-line, 1px) solid rgba(133, 255, 232, 0.16);
|
|
color: var(--theme-compact-user);
|
|
letter-spacing: 0.12em;
|
|
}
|
|
|
|
.song-queue > header b {
|
|
min-width: 2em;
|
|
padding: 0.06em 0.45em;
|
|
border-radius: 999px;
|
|
text-align: center;
|
|
color: var(--theme-text);
|
|
background: rgba(109, 235, 211, 0.15);
|
|
}
|
|
|
|
.song-queue-viewport {
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.song-queue-track {
|
|
position: relative;
|
|
z-index: 1;
|
|
display: grid;
|
|
gap: 0.28em;
|
|
padding: 0.35em;
|
|
}
|
|
|
|
.song-row {
|
|
display: grid;
|
|
min-width: 0;
|
|
grid-template-columns: 2.5em minmax(0, 1fr);
|
|
align-items: center;
|
|
gap: 0.55em;
|
|
padding: 0.4em 0.62em;
|
|
border: var(--component-decoration-line, 1px) solid rgba(128, 238, 218, 0.13);
|
|
border-radius: 0.62em;
|
|
background: linear-gradient(90deg, rgba(8, 47, 59, 0.74), rgba(8, 71, 72, 0.46));
|
|
overflow: hidden;
|
|
isolation: isolate;
|
|
animation: song-row-insert 0.62s cubic-bezier(0.16, 0.86, 0.24, 1.08) both;
|
|
animation-delay: var(--song-row-delay, 0ms);
|
|
}
|
|
|
|
.song-row > * {
|
|
position: relative;
|
|
z-index: 2;
|
|
}
|
|
|
|
/* Every queue bar gets a small theme-matched star and floret. Keeping these as
|
|
pseudo-elements avoids multiplying DOM nodes for a very long queue. */
|
|
.song-row::before,
|
|
.song-row::after {
|
|
content: '';
|
|
position: absolute;
|
|
z-index: 1;
|
|
width: 0.72em;
|
|
height: 0.72em;
|
|
pointer-events: none;
|
|
animation: var(--theme-motion-sparkle, song-sparkle) 3.8s ease-in-out infinite;
|
|
}
|
|
|
|
.song-row::before {
|
|
top: 12%;
|
|
right: 1.5%;
|
|
background: linear-gradient(135deg, #fff5bc, #aaffed 60%, #efd4ff);
|
|
clip-path: polygon(50% 0, 60% 39%, 100% 50%, 60% 61%, 50% 100%, 40% 61%, 0 50%, 40% 39%);
|
|
filter: drop-shadow(0 0 4px rgba(179, 255, 237, 0.72));
|
|
}
|
|
|
|
.song-row::after {
|
|
right: 8%;
|
|
bottom: 3%;
|
|
border-radius: 50%;
|
|
background:
|
|
radial-gradient(circle at 50% 17%, #ffd6e5 0 19%, transparent 22%),
|
|
radial-gradient(circle at 82% 50%, #ffd6e5 0 19%, transparent 22%),
|
|
radial-gradient(circle at 50% 83%, #ffd6e5 0 19%, transparent 22%),
|
|
radial-gradient(circle at 18% 50%, #ffd6e5 0 19%, transparent 22%),
|
|
radial-gradient(circle at 50% 50%, #fff0a9 0 18%, transparent 21%);
|
|
animation-delay: -1.7s;
|
|
}
|
|
|
|
.song-row-copy {
|
|
display: grid;
|
|
min-width: 0;
|
|
gap: 0.12em;
|
|
}
|
|
|
|
.song-row strong {
|
|
min-width: 0;
|
|
color: var(--component-song-title-color, var(--theme-text));
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.song-index {
|
|
color: var(--theme-accent);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.song-requester {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
color: var(--component-song-requester-color, var(--theme-compact-user));
|
|
text-align: left;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.song-queue-empty {
|
|
padding: 1.2em 0.8em;
|
|
color: var(--theme-compact-user);
|
|
text-align: center;
|
|
}
|
|
|
|
.song-particle-layer {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 1;
|
|
overflow: hidden;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.song-particle {
|
|
--particle-size: clamp(5px, 0.7em, 10px);
|
|
position: absolute;
|
|
width: var(--particle-size);
|
|
height: var(--particle-size);
|
|
opacity: 0;
|
|
animation: var(--theme-motion-sparkle, song-sparkle) 3.6s ease-in-out infinite;
|
|
}
|
|
|
|
.song-particle.star {
|
|
background: linear-gradient(135deg, #fff5bc, #aaffed 58%, #efd4ff);
|
|
clip-path: polygon(50% 0, 60% 39%, 100% 50%, 60% 61%, 50% 100%, 40% 61%, 0 50%, 40% 39%);
|
|
filter: drop-shadow(0 0 4px rgba(179, 255, 237, 0.8));
|
|
}
|
|
|
|
.song-particle.floret {
|
|
border-radius: 50%;
|
|
background:
|
|
radial-gradient(circle at 50% 17%, #ffd6e5 0 19%, transparent 22%),
|
|
radial-gradient(circle at 82% 50%, #ffd6e5 0 19%, transparent 22%),
|
|
radial-gradient(circle at 50% 83%, #ffd6e5 0 19%, transparent 22%),
|
|
radial-gradient(circle at 18% 50%, #ffd6e5 0 19%, transparent 22%),
|
|
radial-gradient(circle at 50% 50%, #fff0a9 0 18%, transparent 21%);
|
|
}
|
|
|
|
.song-particle:nth-child(1) {
|
|
left: 2%;
|
|
top: 14%;
|
|
animation-delay: -0.4s;
|
|
}
|
|
.song-particle:nth-child(2) {
|
|
right: 2%;
|
|
top: 12%;
|
|
animation-delay: -1.4s;
|
|
}
|
|
.song-particle:nth-child(3) {
|
|
left: 18%;
|
|
bottom: 7%;
|
|
animation-delay: -2.4s;
|
|
}
|
|
.song-particle:nth-child(4) {
|
|
right: 18%;
|
|
bottom: 8%;
|
|
animation-delay: -0.9s;
|
|
}
|
|
.song-particle:nth-child(5) {
|
|
left: 43%;
|
|
top: 4%;
|
|
animation-delay: -3.1s;
|
|
}
|
|
.song-particle:nth-child(6) {
|
|
right: 38%;
|
|
bottom: 3%;
|
|
animation-delay: -1.9s;
|
|
}
|
|
.song-particle:nth-child(7) {
|
|
left: 66%;
|
|
top: 8%;
|
|
animation-delay: -2.8s;
|
|
}
|
|
.song-particle:nth-child(8) {
|
|
right: 8%;
|
|
bottom: 13%;
|
|
animation-delay: -0.2s;
|
|
}
|
|
|
|
@keyframes song-current-arrive {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-7px) scaleX(0.96);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: none;
|
|
}
|
|
}
|
|
|
|
@keyframes song-row-insert {
|
|
from {
|
|
opacity: 0;
|
|
clip-path: inset(0 100% 0 0 round 0.62em);
|
|
transform: translateX(24px) scaleX(0.92);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
clip-path: inset(0 0 0 0 round 0.62em);
|
|
transform: none;
|
|
}
|
|
}
|
|
|
|
@keyframes song-sparkle {
|
|
0%,
|
|
100% {
|
|
opacity: 0.06;
|
|
transform: translateY(3px) rotate(0) scale(0.5);
|
|
}
|
|
42% {
|
|
opacity: 0.82;
|
|
transform: translateY(-2px) rotate(40deg) scale(1.05);
|
|
}
|
|
72% {
|
|
opacity: 0.2;
|
|
transform: translateY(-6px) rotate(75deg) scale(0.72);
|
|
}
|
|
}
|
|
|
|
.song-overlay.song-narrow .song-current {
|
|
grid-template-columns: auto minmax(0, 1fr);
|
|
}
|
|
|
|
.song-overlay.song-short .song-current {
|
|
min-height: 42px;
|
|
padding-block: 4px;
|
|
}
|
|
|
|
.song-overlay.song-short .song-current-mark {
|
|
width: clamp(28px, 2.5em, 42px);
|
|
}
|
|
|
|
.song-overlay.song-short .song-queue > header {
|
|
padding-block: 0.24em;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.song-current,
|
|
.song-row,
|
|
.song-particle,
|
|
.song-row::before,
|
|
.song-row::after {
|
|
animation: none;
|
|
}
|
|
}
|
|
|
|
/* Moonlit Water follows the reference's restrained broadcast typography: a
|
|
compact current-song lockup above a borderless three-column programme. */
|
|
.song-overlay.theme-moonlit-water {
|
|
gap: clamp(12px, 2vmin, 24px);
|
|
padding: clamp(10px, 1.8vmin, 22px);
|
|
color: #c6ae7a;
|
|
font-family: var(--component-font-family, FangSong, STFangsong, 'Noto Serif SC', serif);
|
|
font-size: var(--song-moonlit-font-size, var(--song-font-size));
|
|
letter-spacing: 0.055em;
|
|
}
|
|
|
|
.theme-moonlit-water .song-current,
|
|
.theme-moonlit-water .song-queue {
|
|
border: 0;
|
|
border-radius: 0;
|
|
background: transparent;
|
|
box-shadow: none;
|
|
backdrop-filter: none;
|
|
}
|
|
|
|
.theme-moonlit-water .song-current::after,
|
|
.theme-moonlit-water .song-queue::after {
|
|
display: none;
|
|
}
|
|
|
|
.theme-moonlit-water .song-current {
|
|
min-height: var(--song-moonlit-current-min, 88px);
|
|
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
gap: clamp(10px, 1.5vmin, 18px);
|
|
padding: clamp(6px, 0.8vmin, 10px) 0 clamp(12px, 1.6vmin, 20px);
|
|
border-bottom: var(--component-decoration-line, 1px) solid rgba(198, 174, 122, 0.26);
|
|
animation: moonlit-song-current 0.68s ease-out both;
|
|
}
|
|
|
|
.theme-moonlit-water .song-current-mark {
|
|
position: relative;
|
|
width: clamp(46px, 3.7em, 68px);
|
|
border: var(--component-decoration-line, 1px) solid rgba(198, 174, 122, 0.62);
|
|
border-radius: 50%;
|
|
color: #d2b468;
|
|
background: radial-gradient(circle, rgba(198, 174, 122, 0.08), transparent 68%);
|
|
box-shadow:
|
|
inset 0 0 0 3px rgba(15, 57, 64, 0.2),
|
|
0 0 16px rgba(198, 174, 122, 0.08);
|
|
font-size: 1.3em;
|
|
}
|
|
|
|
.theme-moonlit-water .song-current-mark::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: -0.58em;
|
|
right: -0.18em;
|
|
width: 0.72em;
|
|
height: 0.42em;
|
|
border: var(--component-decoration-line, 1px) solid rgba(116, 166, 157, 0.52);
|
|
border-width: var(--component-decoration-line, 1px) 0 0 var(--component-decoration-line, 1px);
|
|
border-radius: 100% 0;
|
|
transform: rotate(-24deg);
|
|
}
|
|
|
|
.theme-moonlit-water .song-current-mark-label {
|
|
display: none;
|
|
}
|
|
|
|
.theme-moonlit-water .song-current-mark-note {
|
|
display: block;
|
|
line-height: 1;
|
|
}
|
|
|
|
.theme-moonlit-water .song-current-copy {
|
|
gap: 0.18em;
|
|
text-shadow: 0 1px 6px rgba(10, 34, 38, 0.82);
|
|
}
|
|
|
|
.theme-moonlit-water .song-current-copy small,
|
|
.theme-moonlit-water .song-requester,
|
|
.theme-moonlit-water .song-queue > header {
|
|
color: var(--component-song-requester-color, #a9b79b);
|
|
}
|
|
|
|
.theme-moonlit-water .song-current-copy strong {
|
|
color: var(--component-song-title-color, #c6ae7a);
|
|
font-size: 1.52em;
|
|
font-weight: 600;
|
|
letter-spacing: 0.09em;
|
|
line-height: 1.16;
|
|
text-shadow: 0 1px 7px rgba(10, 34, 38, 0.8);
|
|
}
|
|
|
|
.theme-moonlit-water .song-index {
|
|
color: #c9b06f;
|
|
}
|
|
|
|
.theme-moonlit-water .song-waveform {
|
|
display: flex;
|
|
height: 0.8em;
|
|
align-items: end;
|
|
gap: 0.16em;
|
|
opacity: 0.34;
|
|
}
|
|
|
|
.theme-moonlit-water .song-waveform i {
|
|
width: var(--component-decoration-line, 2px);
|
|
height: 25%;
|
|
background: #6a9f99;
|
|
animation: moonlit-song-wave 1.8s ease-in-out infinite alternate;
|
|
}
|
|
|
|
.theme-moonlit-water .song-waveform i:nth-child(2),
|
|
.theme-moonlit-water .song-waveform i:nth-child(7) {
|
|
height: 48%;
|
|
animation-delay: -0.4s;
|
|
}
|
|
|
|
.theme-moonlit-water .song-waveform i:nth-child(3),
|
|
.theme-moonlit-water .song-waveform i:nth-child(6) {
|
|
height: 76%;
|
|
animation-delay: -0.9s;
|
|
}
|
|
|
|
.theme-moonlit-water .song-waveform i:nth-child(4),
|
|
.theme-moonlit-water .song-waveform i:nth-child(5) {
|
|
height: 100%;
|
|
animation-delay: -1.25s;
|
|
}
|
|
|
|
.theme-moonlit-water .song-queue > header {
|
|
justify-content: flex-start;
|
|
gap: 0.6em;
|
|
padding: 0.28em 0 0.72em;
|
|
border-bottom: 0;
|
|
color: #a9b79b;
|
|
letter-spacing: 0.2em;
|
|
}
|
|
|
|
.theme-moonlit-water .song-queue > header::before {
|
|
content: '✦';
|
|
color: #6daaa3;
|
|
font-size: 0.66em;
|
|
}
|
|
|
|
.theme-moonlit-water .song-queue > header b {
|
|
display: none;
|
|
}
|
|
|
|
.theme-moonlit-water .song-queue-track {
|
|
gap: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.theme-moonlit-water .song-row {
|
|
grid-template-columns: 2.4em minmax(0, 1fr);
|
|
gap: 0.82em;
|
|
padding: 0.66em 1.3em 0.66em 0;
|
|
border: 0;
|
|
border-radius: 0;
|
|
background: transparent;
|
|
box-shadow: none;
|
|
animation: moonlit-song-row-insert 0.54s ease-out both;
|
|
animation-delay: var(--song-row-delay, 0ms);
|
|
}
|
|
|
|
.theme-moonlit-water .song-row::before {
|
|
display: none;
|
|
}
|
|
|
|
.theme-moonlit-water .song-row::after {
|
|
content: '✦';
|
|
top: 50%;
|
|
right: 0.15em;
|
|
bottom: auto;
|
|
width: auto;
|
|
height: auto;
|
|
border-radius: 0;
|
|
color: #8eb5a4;
|
|
background: none;
|
|
filter: drop-shadow(0 0 3px rgba(142, 181, 164, 0.38));
|
|
font-size: 0.68em;
|
|
transform: translateY(-50%);
|
|
}
|
|
|
|
.theme-moonlit-water .song-row strong {
|
|
color: var(--component-song-title-color, #c6ae7a);
|
|
font-weight: 500;
|
|
letter-spacing: 0.09em;
|
|
text-shadow: 0 1px 6px rgba(10, 34, 38, 0.74);
|
|
}
|
|
|
|
.theme-moonlit-water .song-index {
|
|
font-size: 0.9em;
|
|
font-weight: 400;
|
|
letter-spacing: 0.08em;
|
|
}
|
|
|
|
.theme-moonlit-water .song-requester {
|
|
color: var(--component-song-requester-color, #a9b79b);
|
|
font-size: 0.78em;
|
|
letter-spacing: 0.06em;
|
|
}
|
|
|
|
.theme-moonlit-water .song-particle-layer {
|
|
opacity: 0.22;
|
|
}
|
|
|
|
.theme-moonlit-water .song-particle-layer > :nth-child(n + 5) {
|
|
display: none;
|
|
}
|
|
|
|
.theme-moonlit-water .song-particle.star {
|
|
background: #e7c982;
|
|
filter: none;
|
|
}
|
|
|
|
.theme-moonlit-water .song-particle.floret {
|
|
background:
|
|
radial-gradient(circle at 50% 17%, #d9e0c1 0 19%, transparent 22%),
|
|
radial-gradient(circle at 82% 50%, #d9e0c1 0 19%, transparent 22%),
|
|
radial-gradient(circle at 50% 83%, #d9e0c1 0 19%, transparent 22%),
|
|
radial-gradient(circle at 18% 50%, #d9e0c1 0 19%, transparent 22%),
|
|
radial-gradient(circle at 50% 50%, #e7c982 0 18%, transparent 21%);
|
|
}
|
|
|
|
.song-overlay.theme-moonlit-water.song-narrow .song-current {
|
|
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
}
|
|
|
|
.song-overlay.theme-moonlit-water.song-short {
|
|
gap: 6px;
|
|
padding-block: 6px;
|
|
}
|
|
|
|
.song-overlay.theme-moonlit-water.song-short .song-current {
|
|
min-height: 58px;
|
|
padding-block: 3px 7px;
|
|
}
|
|
|
|
.song-overlay.theme-moonlit-water.song-short .song-current-mark {
|
|
width: 2.6em;
|
|
}
|
|
|
|
.song-overlay.theme-moonlit-water.song-short .song-current-copy strong {
|
|
font-size: 1.18em;
|
|
}
|
|
|
|
.song-overlay.theme-moonlit-water.song-short .song-row {
|
|
padding-block: 0.42em;
|
|
}
|
|
|
|
@keyframes moonlit-song-current {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-8px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: none;
|
|
}
|
|
}
|
|
|
|
@keyframes moonlit-song-row-insert {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateX(-12px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: none;
|
|
}
|
|
}
|
|
|
|
@keyframes moonlit-song-wave {
|
|
from {
|
|
opacity: 0.32;
|
|
transform: scaleY(0.5);
|
|
}
|
|
to {
|
|
opacity: 0.88;
|
|
transform: scaleY(1);
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.theme-moonlit-water .song-waveform i {
|
|
animation: none;
|
|
}
|
|
}
|