feat: 收口组件样式并调整移动端侧栏
This commit is contained in:
1 parent
d252d5513f
commit
e6e0f08072
68 files changed
+2717
-2775
No files matched your search
@@ -166,3 +166,106 @@ onBeforeUnmount(() => observer?.disconnect())
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style>
|
||||
/* 本组件专属布局与 Naive 内部结构覆盖。 */
|
||||
@reference "../../styles/styles.css";
|
||||
.script-summary {
|
||||
@apply text-xs text-muted leading-[1.9] pt-[17px] px-0 pb-[22px] mb-[23px];
|
||||
}
|
||||
.script-body {
|
||||
@apply whitespace-pre-wrap wrap-anywhere text-sm leading-[2.15] text-ink;
|
||||
}
|
||||
.script-notes {
|
||||
@apply mt-9 pt-5 text-xs;
|
||||
}
|
||||
.script-notes dt {
|
||||
@apply text-ink font-medium mb-1.5;
|
||||
}
|
||||
.script-notes dd {
|
||||
@apply text-muted leading-[1.8] mb-[15px];
|
||||
}
|
||||
.episode-reader {
|
||||
@apply grid grid-cols-[clamp(190px,_22%,_240px)_minmax(0,_1fr)] h-full min-h-0 min-w-0 overflow-hidden;
|
||||
container-type: inline-size;
|
||||
}
|
||||
.reader-directory {
|
||||
@apply flex flex-col min-h-0 min-w-0 bg-(--app-subtle);
|
||||
}
|
||||
.reader-directory-heading {
|
||||
@apply flex justify-between items-center shrink-0 gap-2 pt-[22px] px-5 pb-3.5 text-[13px];
|
||||
}
|
||||
.reader-directory-heading h3 {
|
||||
@apply font-semibold;
|
||||
}
|
||||
.reader-directory-heading span {
|
||||
@apply text-[11px] text-muted whitespace-nowrap;
|
||||
}
|
||||
.reader-directory-scroll {
|
||||
@apply flex-1;
|
||||
}
|
||||
.reader-directory-content {
|
||||
@apply flex flex-col gap-1.5 pt-1 px-0 pb-[18px];
|
||||
}
|
||||
.n-button.reader-episode-link {
|
||||
@apply shrink-0 w-full h-auto min-h-[64px] py-3 px-3.5 rounded-none text-muted whitespace-normal text-left;
|
||||
}
|
||||
.n-button.reader-episode-link .n-button__content {
|
||||
@apply flex flex-col items-start gap-[5px] w-full min-w-0;
|
||||
}
|
||||
.reader-episode-label {
|
||||
@apply text-[13px] font-semibold leading-normal;
|
||||
}
|
||||
.reader-episode-title {
|
||||
@apply text-xs leading-[1.6] wrap-anywhere;
|
||||
}
|
||||
.n-button.reader-episode-link.active {
|
||||
@apply bg-(--app-selected) text-accent shadow-[inset_3px_0_var(--app-accent)];
|
||||
}
|
||||
.reader-page {
|
||||
@apply min-w-0 min-h-0 overflow-hidden bg-(--app-surface);
|
||||
}
|
||||
.reader-scroll .n-scrollbar-container:focus-visible {
|
||||
@apply outline-[2px_solid_var(--app-accent)] outline-offset-[-3px];
|
||||
}
|
||||
.reader-content {
|
||||
@apply mx-0 p-8 text-left;
|
||||
/* 正文紧邻目录左对齐,保留阅读行宽,不在宽屏内容区居中。 */
|
||||
max-width: 900px;
|
||||
}
|
||||
.reader-chapter + .reader-chapter {
|
||||
@apply mt-12 pt-9;
|
||||
}
|
||||
.reader-chapter:last-child {
|
||||
/* 末集较短时仍可定位到阅读线,不必把倒数第二集误认为当前集。 */
|
||||
min-height: max(160px, calc(var(--reader-height) - 64px));
|
||||
}
|
||||
.reader-chapter-heading {
|
||||
@apply mb-6;
|
||||
}
|
||||
.reader-chapter-heading p {
|
||||
@apply text-muted text-[13px] font-medium mb-2.5;
|
||||
}
|
||||
.reader-chapter-heading h2 {
|
||||
@apply text-[clamp(18px,2cqw,24px)] font-semibold leading-[1.6] wrap-anywhere;
|
||||
}
|
||||
@media (max-width: 1000px) {
|
||||
.episode-reader {
|
||||
@apply grid-cols-[180px_minmax(0,_1fr)];
|
||||
}
|
||||
}
|
||||
@media (max-width: 600px) {
|
||||
.episode-reader {
|
||||
@apply grid-cols-[112px_minmax(0,_1fr)];
|
||||
}
|
||||
.reader-directory-heading {
|
||||
@apply pt-4 px-3 pb-3 flex-wrap;
|
||||
}
|
||||
.n-button.reader-episode-link {
|
||||
@apply py-3 px-2.5;
|
||||
}
|
||||
.reader-content {
|
||||
@apply px-[18px];
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user