兼容低内核版本的浏览器
This commit is contained in:
@@ -0,0 +1,346 @@
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
|
||||
/* Legacy baseline: Chrome 91 (no dvh/svh, no color-mix, no oklch). */
|
||||
html,
|
||||
body,
|
||||
#root {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
@media (max-width: 1023px) {
|
||||
html,
|
||||
body,
|
||||
#root {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
overscroll-behavior-x: none;
|
||||
}
|
||||
|
||||
#root {
|
||||
overflow-x: hidden;
|
||||
overflow-y: visible;
|
||||
}
|
||||
|
||||
/*
|
||||
* Nested max-h-dvh + overflow-y-auto (DesktopAIShell on mobile) does not scroll
|
||||
* reliably on Chrome 91 WebView — use document scrolling instead.
|
||||
*/
|
||||
.max-h-dvh {
|
||||
max-height: none !important;
|
||||
}
|
||||
|
||||
.h-dvh {
|
||||
height: auto !important;
|
||||
}
|
||||
|
||||
.min-h-dvh {
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.x9-app-shell-outer {
|
||||
min-height: 100vh;
|
||||
min-height: -webkit-fill-available;
|
||||
}
|
||||
|
||||
.x9-app-shell-column {
|
||||
min-height: 0;
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
|
||||
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 {
|
||||
.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;
|
||||
}
|
||||
.h-dvh-full {
|
||||
height: 100vh;
|
||||
height: -webkit-fill-available;
|
||||
}
|
||||
.min-h-dvh-full {
|
||||
min-height: 100vh;
|
||||
min-height: -webkit-fill-available;
|
||||
}
|
||||
}
|
||||
|
||||
@layer components {
|
||||
.x9-app-shell-outer {
|
||||
min-height: 100vh;
|
||||
min-height: -webkit-fill-available;
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
background-color: #0d1117;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.x9-app-shell-column {
|
||||
min-height: 100vh;
|
||||
min-height: -webkit-fill-available;
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
.x9-bottom-nav-outer {
|
||||
pointer-events: none;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
z-index: 50;
|
||||
display: flex;
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
justify-content: center;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.x9-bottom-nav-inner {
|
||||
pointer-events: auto;
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
.x9-app-shell-outer,
|
||||
.x9-bottom-nav-outer {
|
||||
padding-left: 1.5rem;
|
||||
padding-right: 1.5rem;
|
||||
}
|
||||
|
||||
.x9-app-shell-column,
|
||||
.x9-bottom-nav-inner {
|
||||
max-width: 1180px;
|
||||
}
|
||||
}
|
||||
|
||||
.glass-card {
|
||||
background: rgba(28, 28, 30, 0.92);
|
||||
-webkit-backdrop-filter: blur(20px) saturate(180%);
|
||||
backdrop-filter: blur(20px) saturate(180%);
|
||||
border-radius: 16px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.07);
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
.cyan-slider {
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
width: 100%;
|
||||
height: 4px;
|
||||
border-radius: 2px;
|
||||
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);
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
.cyan-slider-thumb-only {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.cyan-slider-thumb-only::-webkit-slider-thumb {
|
||||
cursor: grab;
|
||||
}
|
||||
|
||||
.cyan-slider-thumb-only::-webkit-slider-thumb:active {
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
.cyan-slider-thumb-only::-moz-range-thumb {
|
||||
cursor: grab;
|
||||
}
|
||||
|
||||
.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);
|
||||
}
|
||||
|
||||
.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);
|
||||
}
|
||||
|
||||
.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);
|
||||
}
|
||||
|
||||
.ios-section-label {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.04em;
|
||||
color: #00fff6;
|
||||
padding: 20px 4px 8px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 16px 16px 8px;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 50;
|
||||
background: rgba(0, 0, 0, 0.85);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
backdrop-filter: blur(20px);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user