修复主题一些细节优化问题

This commit is contained in:
zqlit committed 2026-05-24 12:17:43 +08:00
1 parent 578bac0e12
commit a8f49d8651
24 files changed
+645 -67

No files matched your search

+180 -1
View File
@@ -2994,6 +2994,87 @@ input[type=submit] {
contain-intrinsic-size: 700px auto;
}
.post-content .sen-image-frame,
.entry-content .sen-image-frame {
position: relative;
display: block;
width: fit-content;
max-width: 100%;
margin: 1.2rem auto;
line-height: 0;
opacity: 0;
transform: translateY(14px);
transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.post-content .sen-image-frame.is-visible,
.entry-content .sen-image-frame.is-visible {
opacity: 1;
transform: translateY(0);
}
.post-content .sen-image-frame>img,
.entry-content .sen-image-frame>img {
display: block;
width: auto;
max-width: 100%;
margin: 0;
box-shadow: none;
}
.post-content .sen-image-frame[data-title]::after,
.entry-content .sen-image-frame[data-title]::after {
content: attr(data-title);
position: absolute;
left: 10px;
bottom: 10px;
max-width: calc(100% - 20px);
padding: 5px 10px;
border-radius: 4px;
border: 1px solid rgba(0, 0, 0, 0.08);
background: rgba(255, 255, 255, 0.72);
color: rgba(0, 0, 0, 0.82);
-webkit-backdrop-filter: blur(16px) saturate(180%);
backdrop-filter: blur(16px) saturate(180%);
font-size: 13px;
font-weight: 500;
letter-spacing: 0.03em;
line-height: 1.2;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
pointer-events: none;
opacity: 0;
transform: translateY(4px);
transition: opacity 0.4s 0.2s cubic-bezier(0.22, 0.61, 0.36, 1),
transform 0.4s 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.post-content .sen-image-frame.is-visible[data-title]::after,
.entry-content .sen-image-frame.is-visible[data-title]::after {
opacity: 1;
transform: translateY(0);
}
[data-theme="dark"] .post-content .sen-image-frame[data-title]::after,
[data-theme="dark"] .entry-content .sen-image-frame[data-title]::after {
border-color: rgba(255, 255, 255, 0.12);
background: rgba(0, 0, 0, 0.62);
color: rgba(255, 255, 255, 0.92);
}
@media screen and (max-width: 768px) {
.post-content .sen-image-frame[data-title]::after,
.entry-content .sen-image-frame[data-title]::after {
left: 8px;
bottom: 8px;
max-width: calc(100% - 16px);
padding: 4px 8px;
font-size: 12px;
}
}
/* 设置进度条的背景色 */
.bar {
background: #2aae67 !important;
@@ -3504,9 +3585,107 @@ input[type=submit] {
pointer-events: none !important;
}
/* Override ViewImage z-index to ensure it is above floating tools */
/* ── ViewImage: Apple frosted glass lightbox ── */
.view-image {
z-index: 2000 !important;
background: rgba(0, 0, 0, 0.45) !important;
}
@supports (backdrop-filter: blur(20px)) {
.view-image {
background: rgba(0, 0, 0, 0.32) !important;
}
}
/* Bottom toolbar — frosted glass bar */
.view-image-tools {
background: rgba(28, 28, 30, 0.78) !important;
backdrop-filter: blur(44px) saturate(200%) !important;
-webkit-backdrop-filter: blur(44px) saturate(200%) !important;
border: 1px solid rgba(255, 255, 255, 0.16) !important;
border-radius: 8px !important;
padding: 6px 12px !important;
max-width: 360px !important;
box-shadow: 0 2px 20px rgba(0, 0, 0, 0.38),
0 0 0 0.5px rgba(255, 255, 255, 0.1) inset !important;
}
/* Counter text */
.view-image-tools__count {
font-size: 13px;
font-weight: 500;
letter-spacing: 0.03em;
opacity: 0.9;
}
/* Glass buttons */
.view-image-btn {
width: 34px !important;
height: 34px !important;
border-radius: 6px !important;
background: rgba(255, 255, 255, 0.14) !important;
border: 1px solid rgba(255, 255, 255, 0.12);
transition: background 0.2s ease, transform 0.15s ease;
}
.view-image-btn:hover {
background: rgba(255, 255, 255, 0.28) !important;
transform: scale(1.06);
}
.view-image-btn:active {
transform: scale(0.96);
}
/* Close button in toolbar */
.view-image-tools .view-image-close {
margin: 0 0 0 10px !important;
}
/* Close area 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;
}
/* Dark mode tweaks */
[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;
}
}
[data-theme="dark"] .view-image-tools {
background: rgba(18, 18, 22, 0.82) !important;
border-color: rgba(255, 255, 255, 0.1) !important;
}
/* Mobile */
@media screen and (max-width: 768px) {
.view-image {
padding: 4% !important;
}
.view-image-tools {
max-width: 100% !important;
border-radius: 6px !important;
padding: 5px 10px !important;
}
.view-image-btn {
width: 30px !important;
height: 30px !important;
}
}
.floating-tools a {