style: 优化剧集阅读吸顶标题
This commit is contained in:
1 parent
a442087ea9
commit
65e8f9c3ba
4 files changed
+15
-24
No files matched your search
@@ -135,12 +135,6 @@ function exportScript() {
|
||||
]"
|
||||
@select="$event === 'history' ? (showHistory = !showHistory) : exportScript()"
|
||||
/>
|
||||
<RouterLink
|
||||
v-if="complete"
|
||||
class="text-button text-accent script-next-link"
|
||||
:to="`/projects/${project?.id}/breakdown`"
|
||||
>进入拆解<ArrowRight :size="14"
|
||||
/></RouterLink>
|
||||
</div>
|
||||
</template>
|
||||
</NTabs>
|
||||
@@ -304,9 +298,6 @@ function exportScript() {
|
||||
.script-section .tabs-toolbar-actions {
|
||||
@apply min-h-0 flex-nowrap;
|
||||
}
|
||||
.script-section .tabs-toolbar-actions .script-next-link {
|
||||
@apply hidden;
|
||||
}
|
||||
.script-section .content-with-history:not(.history-hidden) {
|
||||
@apply relative;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user