style: 优化剧集阅读吸顶标题

This commit is contained in:
GouJ committed 2026-09-22 19:29:27 +08:00
1 parent a442087ea9
commit 65e8f9c3ba
4 files changed
+15 -24

No files matched your search

+5 -1
View File
@@ -229,6 +229,7 @@ onBeforeUnmount(() => observer?.disconnect())
@apply outline-[2px_solid_var(--app-accent)] outline-offset-[-3px];
}
.reader-content {
--reader-gutter: 32px;
@apply mx-0 p-8 text-left;
/* 正文紧邻目录左对齐,保留阅读行宽,不在宽屏内容区居中。 */
max-width: 900px;
@@ -241,7 +242,9 @@ onBeforeUnmount(() => observer?.disconnect())
min-height: max(160px, calc(var(--reader-height) - 64px));
}
.reader-chapter-heading {
@apply mb-6;
@apply sticky top-0 z-[2] mb-6 bg-(--app-surface);
margin-inline: calc(var(--reader-gutter) * -1);
padding: 14px var(--reader-gutter) 18px;
}
.reader-chapter-heading p {
@apply text-muted text-[13px] font-medium mb-2.5;
@@ -277,6 +280,7 @@ onBeforeUnmount(() => observer?.disconnect())
@apply text-[11px];
}
.reader-content {
--reader-gutter: 18px;
@apply px-[18px];
}
}