增加兼容低版本内核的页面

This commit is contained in:
eafonyang
2026-06-02 19:55:09 +08:00
parent ccbafdd720
commit 28aa90296f
17 changed files with 1038 additions and 37 deletions
+230
View File
@@ -0,0 +1,230 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
/* Legacy baseline: Chrome 91 (no dvh/svh, no color-mix, no oklch). */
html,
body,
#root {
height: 100%;
}
body {
background: #000;
color: #f2f2f2;
-webkit-font-smoothing: antialiased;
font-family: -apple-system, "SF Pro Display", "SF Pro Text", "Helvetica Neue",
sans-serif;
}
@layer utilities {
/* Provide stable fallbacks for modern dvh-based layouts used across the app. */
.min-h-dvh {
min-height: 100vh;
min-height: -webkit-fill-available;
}
.h-dvh {
height: 100vh;
height: -webkit-fill-available;
}
.max-h-dvh {
max-height: 100vh;
max-height: -webkit-fill-available;
}
/* Some screens used h-[100dvh] in modern — give an escape hatch if needed. */
.h-dvh-full {
height: 100vh;
height: -webkit-fill-available;
}
.min-h-dvh-full {
min-height: 100vh;
min-height: -webkit-fill-available;
}
}
@layer components {
/* Match modern .cyan-slider styling (input[type=range]) for legacy build. */
.cyan-slider {
-webkit-appearance: none;
appearance: none;
width: 100%;
height: 4px;
border-radius: 2px;
/* Home renders its own fill overlay; keep a subtle base track. */
background: rgba(255, 255, 255, 0.12);
outline: none;
cursor: pointer;
touch-action: pan-y;
}
.cyan-slider::-webkit-slider-thumb {
-webkit-appearance: none;
width: 18px;
height: 18px;
border-radius: 9999px;
background: #ffffff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
cursor: pointer;
transition: transform 0.1s ease;
border: none;
}
.cyan-slider::-webkit-slider-thumb:active {
transform: scale(1.15);
}
/* Firefox */
.cyan-slider::-moz-range-track {
height: 4px;
border-radius: 2px;
background: rgba(255, 255, 255, 0.12);
}
.cyan-slider::-moz-range-thumb {
width: 18px;
height: 18px;
border-radius: 9999px;
background: #ffffff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
border: none;
cursor: pointer;
}
/* Home: iOS-style list group/rows (input/output/audio/system/vu/back) */
.ios-list-group {
background: rgba(28, 28, 30, 0.92);
border-radius: 16px;
overflow: hidden;
border: 1px solid rgba(255, 255, 255, 0.06);
}
.ios-list-row {
display: flex;
align-items: center;
padding: 13px 16px;
position: relative;
transition: background 0.15s ease;
min-height: 52px;
}
.ios-list-row:active {
background: rgba(255, 255, 255, 0.05);
}
.ios-list-row + .ios-list-row::before {
content: "";
position: absolute;
top: 0;
left: 16px;
right: 0;
height: 1px;
transform: scaleY(0.5);
transform-origin: top left;
background: rgba(255, 255, 255, 0.08);
}
.ios-chevron {
color: rgba(255, 255, 255, 0.25);
flex-shrink: 0;
margin-left: 6px;
}
.ios-row-value {
color: rgba(255, 255, 255, 0.4);
font-size: 15px;
margin-right: 4px;
}
/* Home: 4 quick-action circle buttons (Power / HP-EQ / Effect / Bypass) */
.icon-circle-btn {
width: 64px;
height: 64px;
border-radius: 9999px;
background: rgba(44, 44, 46, 0.9);
border: 1px solid rgba(255, 255, 255, 0.12);
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease,
border-color 0.15s ease;
cursor: pointer;
}
.icon-circle-btn:active {
transform: scale(0.93);
background: rgba(60, 60, 62, 0.95);
}
/* ── iOS-style Toggle Switch ── */
.ios-toggle {
position: relative;
display: inline-block;
width: 46px;
height: 28px;
flex-shrink: 0;
}
.ios-toggle input {
opacity: 0;
width: 0;
height: 0;
position: absolute;
}
.ios-toggle-track {
position: absolute;
inset: 0;
border-radius: 999px;
background: rgba(120, 120, 128, 0.32);
transition: background 0.25s ease;
cursor: pointer;
}
.ios-toggle input:checked ~ .ios-toggle-track {
background: #00FFF6;
box-shadow: 0 0 12px rgba(0, 255, 246, 0.5);
}
.ios-toggle-thumb {
position: absolute;
top: 2px;
left: 2px;
width: 24px;
height: 24px;
border-radius: 50%;
background: #ffffff;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
pointer-events: none;
}
.ios-toggle input:checked ~ .ios-toggle-track .ios-toggle-thumb {
transform: translateX(18px);
}
/* ── Section header label (cyan) ── */
.ios-section-label {
font-size: 13px;
font-weight: 600;
letter-spacing: 0.04em;
color: #00FFF6;
padding: 20px 4px 8px;
text-transform: uppercase;
}
/* ── Page header bar ── */
.page-header {
display: flex;
align-items: center;
padding: 16px 16px 8px;
position: sticky;
top: 0;
z-index: 10;
background: rgba(0, 0, 0, 0.85);
-webkit-backdrop-filter: blur(20px);
backdrop-filter: blur(20px);
}
/* Active: cyan glow ring */
.icon-circle-btn.active {
background: rgba(0, 255, 246, 0.12);
border-color: rgba(0, 255, 246, 0.55);
box-shadow: 0 0 0 2px rgba(0, 255, 246, 0.18), 0 0 18px rgba(0, 255, 246, 0.28);
}
}