321 lines
5.9 KiB
CSS
321 lines
5.9 KiB
CSS
/* 呈现壳预览页 — 主工作面 = 壳画布;侧栏只负责换壳 */
|
|
|
|
html,
|
|
body.shells-page {
|
|
height: 100%;
|
|
overflow: hidden;
|
|
background: var(--st-bg, #f4f4f5);
|
|
}
|
|
|
|
.shells-page .st-shell.shells-shell {
|
|
max-width: none;
|
|
width: 100%;
|
|
align-items: stretch;
|
|
grid-template-columns: 220px minmax(0, 1fr);
|
|
}
|
|
|
|
.shells-page .st-rail {
|
|
width: auto;
|
|
position: static;
|
|
max-height: none;
|
|
overflow: auto;
|
|
min-height: 0;
|
|
align-self: stretch;
|
|
gap: 2px;
|
|
}
|
|
|
|
.st-rail-hint {
|
|
margin: 0 8px 10px;
|
|
font-size: 11px;
|
|
line-height: 1.45;
|
|
color: var(--st-faint, #a1a1aa);
|
|
}
|
|
|
|
.shells-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.shells-list .st-rail-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 2px;
|
|
padding: 8px 10px;
|
|
line-height: 1.25;
|
|
}
|
|
|
|
.shells-list .shell-item-name {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: inherit;
|
|
}
|
|
|
|
.shells-list .shell-item-task {
|
|
font-size: 11px;
|
|
font-weight: 400;
|
|
color: var(--st-faint, #a1a1aa);
|
|
}
|
|
|
|
.shells-list .st-rail-item.active .shell-item-task {
|
|
color: color-mix(in srgb, var(--st-accent, #2563eb) 65%, #71717a);
|
|
}
|
|
|
|
.shells-main {
|
|
min-height: 0;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.shells-toolbar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: flex-end;
|
|
gap: 12px 20px;
|
|
padding: 14px 24px 12px;
|
|
border-bottom: 1px solid var(--st-border, #e4e4e7);
|
|
background: var(--st-surface, #fff);
|
|
position: static;
|
|
flex-shrink: 0;
|
|
z-index: 3;
|
|
}
|
|
|
|
.shells-toolbar-block {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.shells-toolbar-label {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
color: var(--st-faint, #a1a1aa);
|
|
}
|
|
|
|
.shells-toolbar-meta {
|
|
margin-left: auto;
|
|
align-items: flex-end;
|
|
text-align: right;
|
|
max-width: 280px;
|
|
}
|
|
|
|
.shells-toolbar-meta .shells-meta-title {
|
|
margin: 0;
|
|
font-size: 14px;
|
|
font-weight: 650;
|
|
color: var(--st-text, #18181b);
|
|
}
|
|
|
|
.shells-toolbar-meta .shells-meta-sub {
|
|
margin: 2px 0 0;
|
|
font-size: 12px;
|
|
color: var(--st-muted, #71717a);
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.shells-tones {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
}
|
|
|
|
.shells-tone-chip {
|
|
font: inherit;
|
|
font-size: 12px;
|
|
padding: 5px 10px;
|
|
border-radius: 6px;
|
|
border: 1px solid var(--st-border, #e4e4e7);
|
|
background: var(--st-surface, #fff);
|
|
cursor: pointer;
|
|
color: var(--st-muted, #71717a);
|
|
}
|
|
|
|
.shells-tone-chip:hover {
|
|
background: color-mix(in srgb, var(--st-surface, #fff) 62%, var(--st-bg, #f8f8f8));
|
|
color: var(--st-text, #18181b);
|
|
}
|
|
|
|
.shells-tone-chip:focus-visible {
|
|
outline: 2px solid var(--st-accent, #2563eb);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.shells-tone-chip.active {
|
|
border-color: transparent;
|
|
background: var(--st-accent-soft, #dbeafe);
|
|
color: var(--st-accent, #2563eb);
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* 主工作面:尽量大的阅读画布 */
|
|
.shells-preview-wrap {
|
|
flex: 1 1 auto;
|
|
min-height: 0;
|
|
overflow: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 20px 24px 28px;
|
|
background: color-mix(in srgb, var(--st-bg) 82%, var(--st-border));
|
|
}
|
|
|
|
.shells-preview {
|
|
flex: 1 1 auto;
|
|
min-height: min-content;
|
|
padding: 12px 16px;
|
|
border-radius: 10px;
|
|
border: 1px solid var(--st-border, #e4e4e7);
|
|
background: color-mix(in srgb, var(--st-surface) 62%, var(--st-bg));
|
|
overflow: visible;
|
|
}
|
|
|
|
.shells-preview .present-shell,
|
|
.shells-preview[data-shell="turn_panel"] .present-shell,
|
|
.shells-preview[data-shell="split_board"] .present-shell,
|
|
.shells-preview[data-shell="chapter_reader"] .present-shell {
|
|
max-width: none;
|
|
width: 100%;
|
|
margin: 0;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.shells-preview .present-shell-badge {
|
|
display: none;
|
|
}
|
|
|
|
.shells-details {
|
|
flex-shrink: 0;
|
|
margin: 0 24px 16px;
|
|
max-height: min(36%, 280px);
|
|
overflow: auto;
|
|
border: 1px solid var(--st-border, #e4e4e7);
|
|
border-radius: 8px;
|
|
background: var(--st-surface, #fff);
|
|
}
|
|
|
|
.shells-details > summary {
|
|
cursor: pointer;
|
|
padding: 12px 14px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--st-muted, #71717a);
|
|
list-style: none;
|
|
}
|
|
|
|
.shells-details > summary::-webkit-details-marker {
|
|
display: none;
|
|
}
|
|
|
|
.shells-details > summary::before {
|
|
content: "▸ ";
|
|
color: var(--st-faint, #a1a1aa);
|
|
}
|
|
|
|
.shells-details[open] > summary::before {
|
|
content: "▾ ";
|
|
}
|
|
|
|
.shells-details[open] > summary {
|
|
border-bottom: 1px solid var(--st-border, #e4e4e7);
|
|
color: var(--st-text, #18181b);
|
|
}
|
|
|
|
.shells-details-body {
|
|
padding: 14px 16px 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
}
|
|
|
|
.shells-tweak-grid {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.shells-tweak-grid .field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.shells-tweak-grid input[type="text"] {
|
|
font: inherit;
|
|
padding: 6px 8px;
|
|
border-radius: 6px;
|
|
border: 1px solid var(--st-border, #e4e4e7);
|
|
max-width: 320px;
|
|
}
|
|
|
|
.shells-help-list {
|
|
margin: 0;
|
|
padding-left: 1.15rem;
|
|
line-height: 1.55;
|
|
font-size: 13px;
|
|
color: var(--st-muted, #71717a);
|
|
}
|
|
|
|
@media (max-width: 800px) {
|
|
.shells-page .st-shell.shells-shell {
|
|
grid-template-columns: 1fr;
|
|
grid-template-rows: minmax(7.5rem, 34%) minmax(0, 1fr);
|
|
}
|
|
|
|
.shells-page .st-rail {
|
|
position: static;
|
|
max-height: none;
|
|
width: auto;
|
|
overflow: auto;
|
|
align-items: flex-start;
|
|
align-content: flex-start;
|
|
border-right: none;
|
|
border-bottom: 1px solid var(--st-border, #e4e4e7);
|
|
}
|
|
|
|
.shells-list {
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.shells-list .st-rail-item {
|
|
width: auto;
|
|
max-width: 46%;
|
|
}
|
|
|
|
.st-rail-hint,
|
|
.st-rail-note {
|
|
display: none;
|
|
}
|
|
|
|
.shells-toolbar {
|
|
position: static;
|
|
}
|
|
|
|
.shells-toolbar-meta {
|
|
margin-left: 0;
|
|
text-align: left;
|
|
align-items: flex-start;
|
|
max-width: none;
|
|
width: 100%;
|
|
}
|
|
|
|
.shells-preview-wrap {
|
|
padding: 12px;
|
|
}
|
|
|
|
.shells-preview .present-shell {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.shells-details {
|
|
margin: 0 12px 20px;
|
|
}
|
|
}
|