1d880a0f49
build / build (push) Successful in 1m7s
始终保留正文编辑与排版预览,删除三模式切换状态和不再使用的样式。 自动保存状态保持原位置,窄屏沿用上下对照,复制及下载不变。 验证:三个按钮不渲染且两侧始终存在先红后绿,复制/持久化保存状态机回归、完整门禁和原生备份恢复通过。
161 lines
3.0 KiB
CSS
161 lines
3.0 KiB
CSS
.qa-weekly.qa-weekly-editor {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
}
|
|
.qa-weekly-editor-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 18px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.qa-weekly-editor-header h3 {
|
|
margin: 0;
|
|
font-size: 18px;
|
|
color: #17324d;
|
|
}
|
|
.qa-weekly-editor-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.qa-weekly-reload {
|
|
min-width: 168px;
|
|
}
|
|
.qa-weekly-prefill {
|
|
min-width: 144px;
|
|
}
|
|
.qa-weekly-editor-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
justify-content: flex-end;
|
|
flex-wrap: wrap;
|
|
}
|
|
.qa-weekly-editor-status {
|
|
font-size: 13px;
|
|
color: #64748b;
|
|
}
|
|
.qa-weekly-editor-status[data-weekly-save-state='saved'] {
|
|
color: #2d704d;
|
|
}
|
|
.qa-weekly-editor-status[data-weekly-save-state='error'] {
|
|
color: #b42318;
|
|
}
|
|
.qa-weekly-editor-layout {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
|
flex: 1;
|
|
min-height: 320px;
|
|
overflow: hidden;
|
|
border: 1px solid #dce4ed;
|
|
border-radius: 10px;
|
|
background: #fff;
|
|
}
|
|
.qa-weekly-writing {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
}
|
|
.qa-weekly-writing > label {
|
|
padding: 10px 16px;
|
|
background: #f5f8fc;
|
|
border-bottom: 1px solid #e3e9f0;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: #344b66;
|
|
}
|
|
.qa-weekly-writing > label small {
|
|
font-weight: 400;
|
|
color: #728298;
|
|
margin-left: 8px;
|
|
}
|
|
.qa-weekly-writing textarea {
|
|
flex: 1;
|
|
min-height: 260px;
|
|
width: 100%;
|
|
min-width: 0;
|
|
border: 0;
|
|
outline-offset: -3px;
|
|
border-radius: 0;
|
|
resize: none;
|
|
box-sizing: border-box;
|
|
padding: 16px;
|
|
font:
|
|
13px/1.8 ui-monospace,
|
|
SFMono-Regular,
|
|
Consolas,
|
|
monospace;
|
|
color: #263c52;
|
|
background: #fff;
|
|
tab-size: 2;
|
|
}
|
|
.qa-weekly-writing textarea:disabled {
|
|
background: #f6f8fb;
|
|
color: #6c7a8a;
|
|
}
|
|
.qa-weekly-editor-layout .qa-weekly-preview {
|
|
margin: 0;
|
|
border: 0;
|
|
border-left: 1px solid #e3e9f0;
|
|
border-radius: 0;
|
|
padding: 16px;
|
|
overflow: auto;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
max-height: none;
|
|
}
|
|
.qa-weekly-source {
|
|
font-size: 12px;
|
|
color: #66778c;
|
|
}
|
|
.qa-weekly-source p {
|
|
margin: 7px 0;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.qa-weekly-source summary {
|
|
cursor: pointer;
|
|
}
|
|
.qa-weekly-editor > .error-banner {
|
|
margin: 0;
|
|
}
|
|
.qa-weekly-editor > .error-banner button {
|
|
margin-left: 8px;
|
|
}
|
|
.qa-weekly-editor .qa-period-input {
|
|
min-width: 210px;
|
|
}
|
|
@media (max-width: 900px) {
|
|
.qa-weekly-editor-header {
|
|
gap: 10px;
|
|
}
|
|
.qa-weekly-editor-actions {
|
|
gap: 6px;
|
|
}
|
|
.qa-weekly-editor-layout[data-mode='both'] {
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: auto;
|
|
}
|
|
.qa-weekly-editor-layout[data-mode='both'] .qa-weekly-writing {
|
|
min-height: 360px;
|
|
flex: none;
|
|
}
|
|
.qa-weekly-editor-layout[data-mode='both'] .qa-weekly-preview {
|
|
min-height: 260px;
|
|
overflow: visible;
|
|
border-left: 0;
|
|
border-top: 1px solid #e3e9f0;
|
|
}
|
|
.qa-weekly-editor-header .qa-period-input {
|
|
width: 100%;
|
|
}
|
|
.qa-weekly-editor-actions {
|
|
width: 100%;
|
|
}
|
|
}
|