From 47246061b2ea35d940259da62e4c08594e0cf88b Mon Sep 17 00:00:00 2001 From: CN-JS-HuiBai Date: Thu, 2 Apr 2026 23:01:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/css/style.css | 55 +++++++++++++++++++++++++++++++++----------- public/index.html | 4 +++- public/js/main.js | 30 +++++++++++++++++++++++- 3 files changed, 74 insertions(+), 15 deletions(-) diff --git a/public/css/style.css b/public/css/style.css index cadddd2..378fc44 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -616,7 +616,8 @@ header p { position: relative; z-index: 12; margin: -5.75rem 1rem 0; - padding: 0.9rem 1rem; + width: calc(100% - 2rem); + padding: 0.7rem 0.8rem; border-radius: 14px; border: 1px solid var(--panel-border); background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.86)); @@ -642,7 +643,7 @@ header p { .controls-right { display: flex; align-items: center; - gap: 0.75rem; + gap: 0.5rem; flex-wrap: nowrap; flex: 0 0 auto; } @@ -708,12 +709,25 @@ header p { background: rgba(30, 41, 59, 0.9); color: #f8fafc; border-radius: 999px; - padding: 0.65rem 1rem; + padding: 0.45rem 0.7rem; + font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease; } +.icon-btn { + min-width: 2rem; + width: 2rem; + height: 2rem; + padding: 0; + display: inline-flex; + align-items: center; + justify-content: center; + font-size: 0.95rem; + line-height: 1; +} + .control-btn:hover { transform: translateY(-1px); background: rgba(51, 65, 85, 0.95); @@ -729,29 +743,42 @@ header p { .volume-control { display: flex; align-items: center; - gap: 0.65rem; - min-width: 180px; + gap: 0.45rem; + min-width: 132px; } .volume-slider { - width: 96px; + width: 72px; accent-color: #60a5fa; cursor: pointer; } .volume-value { - min-width: 3.5rem; + min-width: 2.7rem; color: rgba(226, 232, 240, 0.88); - font-size: 0.9rem; + font-size: 0.8rem; font-variant-numeric: tabular-nums; } +.progress-chip { + display: inline-flex; + align-items: center; + padding: 0.34rem 0.55rem; + border-radius: 999px; + background: rgba(15, 23, 42, 0.7); + border: 1px solid rgba(148, 163, 184, 0.16); + color: rgba(226, 232, 240, 0.92); + font-size: 0.76rem; + font-weight: 600; + white-space: nowrap; +} + .speed-control { display: inline-flex; align-items: center; - gap: 0.55rem; + gap: 0.4rem; color: rgba(226, 232, 240, 0.88); - font-size: 0.9rem; + font-size: 0.8rem; font-weight: 600; } @@ -760,7 +787,8 @@ header p { border: 1px solid rgba(148, 163, 184, 0.24); background: rgba(30, 41, 59, 0.9); color: #f8fafc; - padding: 0.55rem 0.85rem; + padding: 0.42rem 0.65rem; + font-size: 0.8rem; outline: none; cursor: pointer; } @@ -997,6 +1025,7 @@ header p { .custom-controls { align-items: center; margin: -6.25rem 0.75rem 0; + width: calc(100% - 1.5rem); } .controls-left, @@ -1015,12 +1044,12 @@ header p { .volume-control { width: auto; - min-width: 150px; + min-width: 112px; } .volume-slider { flex: 0 0 auto; - width: 84px; + width: 64px; } .control-seek { diff --git a/public/index.html b/public/index.html index 94ac94b..21292f9 100644 --- a/public/index.html +++ b/public/index.html @@ -127,11 +127,13 @@