old backend core lib
This commit is contained in:
@@ -0,0 +1,369 @@
|
||||
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: 'Noto Serif SC', 'Microsoft YaHei', sans-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: 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: 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-copy,
|
||||
.song-score {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
gap: 0.12em;
|
||||
}
|
||||
|
||||
.song-current-copy small,
|
||||
.song-score small {
|
||||
color: var(--theme-compact-user);
|
||||
font-size: 0.68em;
|
||||
}
|
||||
|
||||
.song-current-copy strong {
|
||||
overflow-wrap: anywhere;
|
||||
font-size: 1.35em;
|
||||
line-height: 1.08;
|
||||
text-shadow: 0 0 20px rgba(133, 255, 232, 0.2);
|
||||
}
|
||||
|
||||
.song-score {
|
||||
justify-items: end;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.song-score b {
|
||||
font-size: 0.92em;
|
||||
color: var(--theme-price);
|
||||
}
|
||||
|
||||
.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: 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) minmax(4em, auto);
|
||||
align-items: center;
|
||||
gap: 0.55em;
|
||||
padding: 0.4em 0.62em;
|
||||
border: 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 strong {
|
||||
min-width: 0;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.song-index {
|
||||
color: var(--theme-accent);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.song-requester {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
color: var(--theme-compact-user);
|
||||
text-align: right;
|
||||
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-narrow .song-score {
|
||||
grid-column: 2;
|
||||
grid-template-columns: auto auto;
|
||||
justify-items: start;
|
||||
gap: 0.5em;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user