Redesign player navigation, add personal listening stats and improve lyrics
Build and Publish / Build and Publish Docker Image (push) Successful in 2m36s
Build and Publish / Build and Publish Docker Image (push) Successful in 2m36s
This commit is contained in:
1 parent
bc0a1f38c8
commit
bdbee5beb3
38 files changed
+2041
-810
No files matched your search
+27
-206
@@ -1,18 +1,30 @@
|
||||
<style>
|
||||
.lyrics-overlay {position:fixed;inset:0;z-index:1600;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.7);padding:24px;backdrop-filter:blur(14px)}
|
||||
.lyrics-dialog {position:relative;display:flex;flex-direction:column;width:min(800px,100%);height:min(820px,90dvh);border-radius:20px;background:linear-gradient(155deg,#294943,#132a28 65%,#0d1d1b);color:#f5faf7;box-shadow:0 20px 100px #0006;overflow:hidden;outline:none}
|
||||
.lyrics-dialog {position:relative;display:flex;flex-direction:column;width:min(700px,100%);max-height:90dvh;border-radius:16px;background:linear-gradient(155deg,#294943,#132a28 65%,#0d1d1b);color:#f5faf7;box-shadow:0 20px 100px #0006;overflow:hidden;outline:none}
|
||||
.lyrics-fullscreen {padding:0}
|
||||
.lyrics-fullscreen .lyrics-dialog {width:100%;height:100dvh;border-radius:0}
|
||||
.lyrics-fullscreen .lyrics-dialog {width:100%;height:100dvh;max-height:none;border-radius:0}
|
||||
.lyrics-header {display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:28px 36px 12px;flex-shrink:0}
|
||||
.lyrics-heading {min-width:0}
|
||||
.lyrics-heading small {font-size:12px;letter-spacing:.08em;text-transform:uppercase;opacity:.65}
|
||||
.lyrics-heading h2 {margin:8px 0 4px;font-size:24px;overflow-wrap:anywhere}
|
||||
.lyrics-heading p {margin:0;color:#b7cbc5;font-size:14px}
|
||||
.lyrics-dialog button {color:inherit;cursor:pointer;font-family:inherit}
|
||||
.lyrics-close {background:#ffffff12;border:0;border-radius:50%;width:42px;height:42px;flex-shrink:0;font-size:22px}
|
||||
.lyrics-close:hover {background:#ffffff25}
|
||||
.lyrics-version {padding:8px 36px;display:flex;align-items:center;gap:12px;font-size:13px;flex-shrink:0}
|
||||
.lyrics-version select {max-width:80%;background:#19332e;border:1px solid #ffffff30;border-radius:6px;color:inherit;padding:6px}
|
||||
.lyrics-header-actions {display:flex;flex:0 0 auto;align-items:center;gap:6px}
|
||||
.lyrics-close,.lyrics-copy {display:grid;place-items:center;border:0;border-radius:50%;width:38px;height:38px;background:#ffffff12;font-size:22px}
|
||||
.lyrics-copy svg {width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
|
||||
.lyrics-close:hover,.lyrics-copy:hover {background:#ffffff25}
|
||||
.lyrics-copy[data-result="copied"] {color:#aee8c4}
|
||||
.lyrics-copy[data-result="copyFailed"] {color:#ffa8a3}
|
||||
.lyrics-copy-result {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
|
||||
.lyrics-status {display:flex;align-items:center;gap:10px;margin:8px 0;color:#c1d2cb;font-size:14px}
|
||||
.lyrics-status button {border:0;background:none;text-decoration:underline}
|
||||
.lyrics-versions {display:flex;align-items:center;min-width:0;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#ffffff30 transparent}
|
||||
.lyrics-version-option {display:inline-flex;align-items:center;flex:none;color:#98aaa3;gap:5px}
|
||||
.lyrics-version-option + .lyrics-version-option {margin-left:5px}
|
||||
.lyrics-version-choice {flex-shrink:0;max-width:65vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:0;background:none;padding:6px 2px;font-size:13px}
|
||||
.lyrics-version-choice[aria-pressed="true"] {color:#a8ecc5;font-weight:700}
|
||||
.lyrics-version-choice:hover {text-decoration:underline}
|
||||
.lyrics-version-choice:focus-visible {outline-offset:-2px!important}
|
||||
.lyrics-scroll {position:relative;overflow:auto;overscroll-behavior:contain;flex:1;padding:18px max(36px,calc((100% - 1000px)/2));scrollbar-width:thin;scrollbar-color:#ffffff30 transparent}
|
||||
.lyrics-lines {padding:12vh 0 35vh}
|
||||
.lyrics-line {display:block;width:100%;text-align:left;background:none;border:0;padding:12px 0;font-size:clamp(26px,3.5vw,52px);font-weight:750;line-height:1.3;color:#94b1a8!important;transition:color .3s,transform .3s;overflow-wrap:anywhere}
|
||||
@@ -21,10 +33,13 @@
|
||||
.lyrics-line:hover:not(:disabled) {color:#fff!important}
|
||||
.lyrics-line:disabled {cursor:default;opacity:1}
|
||||
.lyrics-plain {font-family:inherit;font-size:clamp(23px,3vw,40px);font-weight:650;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;padding:3vh 0 12vh;margin:0}
|
||||
.lyrics-message {padding:10vh 0;color:#c1d2cb;font-size:20px;line-height:1.6}
|
||||
.lyrics-footer {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 36px max(18px,env(safe-area-inset-bottom));font-size:12px;background:#0d1d1b80;flex-shrink:0}
|
||||
.lyrics-footer small {opacity:.6}
|
||||
.lyrics-footer button,.lyrics-message button {background:#ffffff12;border:1px solid #ffffff20;border-radius:20px;padding:8px 14px}
|
||||
.lyrics-transport button,.lyrics-footer > button {background:#ffffff12;border:1px solid #ffffff20;border-radius:20px;padding:8px 14px}
|
||||
.lyrics-overlay:not(.lyrics-fullscreen) .lyrics-scroll {flex:0 1 auto;min-height:0;padding:4px clamp(20px,4vw,36px) 18px}
|
||||
.lyrics-overlay:not(.lyrics-fullscreen) .lyrics-lines,.lyrics-overlay:not(.lyrics-fullscreen) .lyrics-plain {padding:0}
|
||||
.lyrics-overlay:not(.lyrics-fullscreen) .lyrics-line {padding:4px 0;font-size:clamp(18px,2.3vw,27px);line-height:1.4}
|
||||
.lyrics-overlay:not(.lyrics-fullscreen) .lyrics-plain {font-size:clamp(18px,2vw,23px);font-weight:500;line-height:1.5}
|
||||
.lyrics-overlay:not(.lyrics-fullscreen) .lyrics-footer {padding-top:9px;padding-bottom:9px}
|
||||
.lyrics-transport {display:flex;gap:10px}
|
||||
.lyrics-dialog :focus-visible {outline:2px solid #e5fff4;outline-offset:4px}
|
||||
.lyrics-toggle-mobile {display:none!important}
|
||||
@@ -37,10 +52,10 @@
|
||||
@media(max-width:768px) {
|
||||
.lyrics-overlay {padding:12px}
|
||||
.lyrics-fullscreen {padding:0}
|
||||
.lyrics-dialog {height:85dvh;border-radius:16px}
|
||||
.lyrics-dialog {max-height:calc(100dvh - 24px)}
|
||||
.lyrics-header {padding:calc(18px + env(safe-area-inset-top)) 20px 12px;gap:12px}
|
||||
.lyrics-heading h2 {font-size:21px}
|
||||
.lyrics-version {padding:8px 20px}
|
||||
.lyrics-version-choice {min-height:36px}
|
||||
.lyrics-scroll {padding:12px 24px}
|
||||
.lyrics-line {font-size:30px;padding:10px 0}
|
||||
.lyrics-footer {padding-left:20px;padding-right:20px;gap:8px;flex-wrap:wrap}
|
||||
@@ -4401,11 +4416,6 @@ button.user-stat:hover {
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.history-modal {
|
||||
width: min(980px, calc(100vw - 32px));
|
||||
max-width: 980px;
|
||||
}
|
||||
|
||||
.user-settings-modal {
|
||||
width: min(760px, calc(100vw - 32px));
|
||||
max-width: 760px;
|
||||
@@ -4505,120 +4515,6 @@ button.user-stat:hover {
|
||||
justify-self: start;
|
||||
}
|
||||
|
||||
.history-head {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.history-list {
|
||||
margin-top: 12px;
|
||||
overflow-y: auto;
|
||||
max-height: min(54vh, 460px);
|
||||
border-top: 1px solid var(--border-color);
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.history-table-head,
|
||||
.history-row.track-row {
|
||||
display: grid;
|
||||
grid-template-columns: 48px minmax(0, 1fr) 144px 154px 72px;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.history-table-head {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 3;
|
||||
padding: 8px 12px;
|
||||
background: var(--bg-elevated);
|
||||
color: var(--text-subdued);
|
||||
font-size: 11px;
|
||||
font-weight: 800;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.history-row.track-row {
|
||||
padding: 8px 12px;
|
||||
border-radius: 0;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.history-row:last-child { border-bottom: 0; }
|
||||
.history-device-badge {
|
||||
display: inline-block;
|
||||
margin-left: .45rem;
|
||||
padding: .08rem .38rem;
|
||||
border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
|
||||
border-radius: 999px;
|
||||
color: var(--text-muted);
|
||||
font-size: .68rem;
|
||||
font-weight: 500;
|
||||
line-height: 1.2;
|
||||
vertical-align: .12rem;
|
||||
}
|
||||
|
||||
.history-cover {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 5px;
|
||||
background: var(--bg-active);
|
||||
color: var(--text-subdued);
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.history-cover img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.history-cover svg {
|
||||
width: 21px;
|
||||
height: 21px;
|
||||
}
|
||||
|
||||
.history-release-line {
|
||||
margin-top: 2px;
|
||||
color: var(--text-subdued);
|
||||
font-size: 12px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.history-release,
|
||||
.history-date,
|
||||
.history-duration {
|
||||
color: var(--text-subdued);
|
||||
font-size: 12px;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.history-date,
|
||||
.history-duration {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.history-duration { text-align: right; }
|
||||
|
||||
.history-pager {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.torrent-modal-grid {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 360px);
|
||||
@@ -5639,44 +5535,6 @@ button.user-stat:hover {
|
||||
.playlist-track-row:not(.editing) .track-actions {grid-column:3;grid-row:1}
|
||||
.playlist-track-row:not(.editing) .track-duration {grid-column:4;grid-row:1}
|
||||
|
||||
.history-table-head,
|
||||
.history-row.track-row {
|
||||
grid-template-columns: 44px minmax(0, 1fr) auto;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.history-table-head {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.history-row.track-row {
|
||||
padding: 9px 10px;
|
||||
}
|
||||
|
||||
.history-row .history-cover {
|
||||
grid-row: 1 / span 2;
|
||||
}
|
||||
|
||||
.history-row .track-info {
|
||||
grid-column: 2;
|
||||
grid-row: 1;
|
||||
}
|
||||
|
||||
.history-row .history-date {
|
||||
grid-column: 2;
|
||||
grid-row: 2;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.history-row .track-actions {
|
||||
grid-column: 3;
|
||||
grid-row: 1 / span 2;
|
||||
}
|
||||
|
||||
.history-duration {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.queue-panel {
|
||||
position: fixed;
|
||||
left: 12px;
|
||||
@@ -6651,48 +6509,11 @@ button.user-stat:hover {
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.info-modal,
|
||||
.history-modal {
|
||||
.info-modal {
|
||||
width: min(400px, calc(100vw - 24px));
|
||||
max-width: 400px;
|
||||
}
|
||||
|
||||
.history-list {
|
||||
max-height: min(60dvh, 520px);
|
||||
}
|
||||
|
||||
.history-row.track-row {
|
||||
grid-template-columns: 42px minmax(0, 1fr) auto;
|
||||
gap: 8px;
|
||||
padding: 9px 8px;
|
||||
}
|
||||
|
||||
.history-cover {
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
}
|
||||
|
||||
.history-row .track-actions {
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
.history-row .track-actions .track-action-btn,
|
||||
.history-row .track-actions .like-btn {
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
flex-basis: 26px;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.history-row .track-actions .popularity-info-btn {
|
||||
min-width: 24px;
|
||||
padding: 0 2px;
|
||||
}
|
||||
|
||||
.history-release-line {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.info-table th,
|
||||
.info-table td {
|
||||
display: block;
|
||||
|
||||
Reference in new issue
Block a user