修复bug

This commit is contained in:
zqlit committed 2026-05-24 19:58:07 +08:00
1 parent e382dc36a5
commit 331af9074a
121 files changed
+323 -210

No files matched your search

+45 -55
View File
@@ -41,6 +41,10 @@
--card-shadow-dark: 0 18px 45px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(148, 163, 184, 0.45);
}
html {
scroll-behavior: smooth;
}
/* ── Theme switch transition ── */
::view-transition-old(root),
::view-transition-new(root) {
@@ -467,6 +471,7 @@ a {
color: var(--link-color-light);
text-decoration: none;
transition: color 0.35s ease;
touch-action: manipulation;
}
a:hover {
@@ -3632,107 +3637,92 @@ input[type=submit] {
box-shadow: 0 4px 18px rgba(0, 0, 0, 0.32);
}
/* ── ViewImage: Apple frosted glass lightbox ── */
/* ── ViewImage — Apple-style lightbox ── */
.view-image {
z-index: 2000 !important;
background: rgba(0, 0, 0, 0.45) !important;
background: rgba(0, 0, 0, 0.92) !important;
}
@supports (backdrop-filter: blur(20px)) {
.view-image {
background: rgba(0, 0, 0, 0.32) !important;
}
}
/* Bottom toolbar — white frosted glass */
/* Bottom toolbar */
.view-image-tools {
background: rgba(255, 255, 255, 0.72) !important;
backdrop-filter: blur(40px) saturate(180%) !important;
-webkit-backdrop-filter: blur(40px) saturate(180%) !important;
border: 1px solid rgba(255, 255, 255, 0.5) !important;
border-radius: 8px !important;
padding: 6px 12px !important;
max-width: 360px !important;
color: rgba(0, 0, 0, 0.7) !important;
box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1),
0 0 0 0.5px rgba(255, 255, 255, 0.3) inset !important;
background: rgba(28, 28, 30, 0.72) !important;
-webkit-backdrop-filter: blur(20px) !important;
backdrop-filter: blur(20px) !important;
border: 1px solid rgba(255, 255, 255, 0.08) !important;
border-radius: 24px !important;
padding: 4px 8px 4px 14px !important;
max-width: 300px !important;
color: rgba(255, 255, 255, 0.9) !important;
box-shadow: none !important;
}
/* Counter text */
/* Counter */
.view-image-tools__count {
font-size: 13px;
font-weight: 500;
letter-spacing: 0.03em;
opacity: 0.85;
letter-spacing: 0.02em;
opacity: 0.7;
}
/* Glass buttons */
/* Buttons */
.view-image-btn {
width: 34px !important;
height: 34px !important;
border-radius: 6px !important;
background: rgba(0, 0, 0, 0.06) !important;
border: 1px solid rgba(0, 0, 0, 0.06);
transition: background 0.2s ease, transform 0.15s ease;
width: 36px !important;
height: 36px !important;
border-radius: 50% !important;
background: transparent !important;
border: none !important;
color: rgba(255, 255, 255, 0.9);
transition: background 0.15s ease;
}
.view-image-btn:hover {
background: rgba(0, 0, 0, 0.12) !important;
transform: scale(1.06);
background: rgba(255, 255, 255, 0.12) !important;
}
.view-image-btn:active {
transform: scale(0.96);
background: rgba(255, 255, 255, 0.2) !important;
transform: none;
}
/* Close button in toolbar */
/* Close button */
.view-image-tools .view-image-close {
margin: 0 0 0 10px !important;
margin: 0 0 0 6px !important;
}
/* Close area overlay */
/* Close overlay */
.view-image-close__full {
cursor: zoom-out;
}
/* Image */
.view-image-lead img {
border-radius: 2px !important;
box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5),
0 0 0 1px rgba(255, 255, 255, 0.06) !important;
border-radius: 4px !important;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}
/* Dark mode tweaks */
/* Dark mode */
[data-theme="dark"] .view-image {
background: rgba(0, 0, 0, 0.55) !important;
}
@supports (backdrop-filter: blur(20px)) {
[data-theme="dark"] .view-image {
background: rgba(0, 0, 0, 0.4) !important;
}
background: rgba(0, 0, 0, 0.95) !important;
}
[data-theme="dark"] .view-image-tools {
background: rgba(18, 18, 22, 0.82) !important;
border-color: rgba(255, 255, 255, 0.1) !important;
background: rgba(28, 28, 30, 0.78) !important;
}
/* Mobile */
@media screen and (max-width: 768px) {
.view-image {
padding: 4% !important;
padding: 2% !important;
}
.view-image-tools {
max-width: 100% !important;
border-radius: 6px !important;
padding: 5px 10px !important;
max-width: calc(100% - 24px) !important;
border-radius: 24px !important;
padding: 4px 8px 4px 12px !important;
}
.view-image-btn {
width: 30px !important;
height: 30px !important;
width: 40px !important;
height: 40px !important;
}
}