feat(target-lists): 切换至B方案行内编辑布局 - 名单管理页改为左侧分类导航、右侧宽表格,编辑在对应记录行下展开 - 新增条目按钮触发行内表单,筛选或分页时草稿保留在表格顶部 - 登记模块增加beforeunload保护,区分保存中与未保存状态 - 外观模块增加beforeunload保护并修复偏好拉取的竞态问题 - 地图定位面板调整底部内边距和标题间距 - 更新相关测试脚本适配新交互流程 ```
212 lines
16 KiB
CSS
212 lines
16 KiB
CSS
/* Approved A workbench: only home, registration and appearance use this layout. */
|
|
body[data-screen=home] .home-launcher.homescreen {
|
|
inset: 48px 0 0 0 !important;
|
|
margin: 0 !important;
|
|
padding: 34px 28px;
|
|
container: home-workbench / inline-size;
|
|
}
|
|
body[data-screen=home] :is(.reference-rail, #toggle-menu) { display: none; }
|
|
.home-space { width: 100%; max-width: 1170px; }
|
|
.home-kicker { color: var(--work-muted); font-size: 11px; letter-spacing: .14em; margin-bottom: 10px; }
|
|
.home-heading h1 { font-size: 27px; }
|
|
.home-cards { gap: 20px; }
|
|
.home-card { min-height: 370px; padding: 25px; }
|
|
.home-card-title { margin-top: 23px; font-size: 20px; }
|
|
.home-card-desc { min-height: 52px; }
|
|
.home-card-preview { margin-bottom: 8px; }
|
|
.home-card-open { margin-top: auto; }
|
|
body:is([data-screen=register], [data-screen=archives]) #workspace-content,
|
|
#appearance-view { container: workbench / inline-size; overflow: auto; }
|
|
body:is([data-screen=register], [data-screen=archives]) #workspace-content > div { height: 100%; min-height: 0; }
|
|
body:is([data-screen=register], [data-screen=archives]) .registry-workspace {
|
|
height: 100%; min-height: 0; max-height: 100%; padding: 24px;
|
|
grid-template-columns: 240px minmax(0, 1fr) 280px;
|
|
grid-template-rows: minmax(0, 1fr); gap: 18px;
|
|
}
|
|
.workbench-panel,
|
|
body:is([data-screen=register], [data-screen=archives]) .registry-workspace :is(.history-panel, .registration-editor, #registration-result) {
|
|
min-width: 0; min-height: 0; border: 1px solid var(--work-line); border-radius: 12px;
|
|
background: var(--work-panel); color: var(--work-text);
|
|
backdrop-filter: var(--glass-filter); -webkit-backdrop-filter: var(--glass-filter);
|
|
box-shadow: 0 12px 28px #0003, inset 0 1px 0 #ffffff0b;
|
|
}
|
|
body:is([data-screen=register], [data-screen=archives]) .registry-workspace .history-panel {
|
|
display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden;
|
|
}
|
|
.registry-workspace .history-heading {
|
|
padding: 0 16px; min-height: 54px; flex-shrink: 0; border-bottom: 1px solid var(--work-line);
|
|
}
|
|
.registry-workspace .history-heading h2 { font-size: 16px; }
|
|
.registry-workspace .history-content { padding: 16px; min-height: 0; overflow: auto; flex: 1; scrollbar-width: thin; }
|
|
.registry-workspace .history-search { margin-bottom: 14px; }
|
|
.registry-workspace .history-toolbar { margin: 13px 0; }
|
|
.registry-workspace #selection-controls { margin: 12px 0; }
|
|
.registry-workspace .history-message { margin: 10px 0; }
|
|
.registry-workspace .pagination { margin: 0; padding: 14px 16px; flex-shrink: 0; }
|
|
.registry-workspace #archive-warning:not([hidden]) { padding: 10px 16px; flex-shrink: 0; }
|
|
.registry-workspace .export-controls .registry-popup { left: 10px; right: 10px; }
|
|
body:is([data-screen=register], [data-screen=archives]) .registry-workspace .registration-editor { display: flex; flex-direction: column; overflow: hidden; }
|
|
.registry-workspace .registration-editor .registration-heading {
|
|
padding: 17px 20px; margin: 0; min-height: 70px; flex-shrink: 0; border-bottom: 1px solid var(--work-line);
|
|
}
|
|
.registry-workspace .registration-editor .registration-heading h1 { font-size: 16px; line-height: 1.5; margin: 0 0 4px; }
|
|
.registry-workspace .registration-editor .registration-heading p { font-size: 12px; }
|
|
.registry-workspace #register-form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
|
|
.registry-workspace .registration-fields-scroll { flex: 1; min-height: 0; overflow: auto; padding: 22px 20px; scroll-padding-block: 18px; scrollbar-width: thin; }
|
|
body:is([data-screen=register], [data-screen=archives]) .registry-workspace #register-form .registry-group {
|
|
border: 0; border-radius: 0; border-bottom: 1px solid var(--work-line);
|
|
background: none; backdrop-filter: none; -webkit-backdrop-filter: none;
|
|
padding: 0 0 23px; margin: 0 0 23px; box-shadow: none;
|
|
}
|
|
body:is([data-screen=register], [data-screen=archives]) .registry-workspace #register-form .registry-group:last-of-type { border-bottom: 0; padding-bottom: 10px; margin-bottom: 0; }
|
|
.registry-workspace .registration-number { grid-template-columns: 1fr; gap: 8px; }
|
|
.registry-workspace .registration-number #fpv-hint { margin-top: 0; }
|
|
body:is([data-screen=register], [data-screen=archives]) .registry-workspace .registration-savebar {
|
|
position: static; flex-shrink: 0; margin: 0; padding: 15px 20px;
|
|
background: var(--glass-solid); box-shadow: none; backdrop-filter: none;
|
|
-webkit-backdrop-filter: none; gap: 12px;
|
|
}
|
|
.registry-workspace .registration-savebar #draft-state { font-size: 11px; }
|
|
.registry-workspace #register-button { font-size: 12px; }
|
|
body:is([data-screen=register], [data-screen=archives]) .registry-workspace #registration-result {
|
|
padding: 0; margin: 0; overflow: auto; scroll-padding-top: 60px; scrollbar-width: thin;
|
|
}
|
|
#registration-result > h2 {
|
|
position: sticky; top: 0; z-index: 2; padding: 17px 20px; min-height: 54px;
|
|
background: var(--glass-solid); border-bottom: 1px solid var(--work-line);
|
|
}
|
|
.registry-workspace #registration-result .empty-state {
|
|
display: flex; flex-direction: column; align-items: flex-start; padding: 24px 20px; gap: 16px;
|
|
}
|
|
.registry-workspace #registration-result .empty-state ol { margin: 0; padding-left: 20px; border: 0; font-size: 12px; }
|
|
.registry-workspace #registration-result .record-result { display: flex; flex-direction: column; padding: 22px 18px; gap: 17px; }
|
|
.registry-workspace #registration-result .qr-stage { width: 170px; align-self: center; flex-shrink: 0; }
|
|
.registry-workspace #registration-result .uas-display { font-size: 21px; overflow-wrap: anywhere; }
|
|
.registry-workspace #registration-result .result-fields { display: flex; flex-direction: column; gap: 14px; }
|
|
.registry-workspace #registration-result .result-fields > div { display: block; padding: 0; }
|
|
.registry-workspace #registration-result .result-fields dt { margin-bottom: 6px; font-size: 11px; }
|
|
.registry-workspace #registration-result .result-fields dd { overflow-wrap: anywhere; font-size: 13px; }
|
|
.registry-workspace #registration-result :is(.result-actions, .url-box) { display: flex; flex-direction: column; align-items: stretch; }
|
|
.registry-workspace #registration-result .result-actions :is(button, a) { text-align: center; }
|
|
.registry-workspace #registration-result .result-tip { font-size: 12px; }
|
|
#appearance-view .settings-layout {
|
|
height: 100%; min-height: 0; max-width: none; width: 100%; padding: 24px;
|
|
display: grid; grid-template-columns: minmax(0, 1fr) 285px;
|
|
grid-template-rows: minmax(0, 1fr); align-items: start; gap: 18px; overflow: hidden;
|
|
}
|
|
#appearance-view .settings-sidebar { padding: 20px 12px; height: auto; }
|
|
.settings-sidebar h2 { padding: 0 8px 16px; font-size: 16px; }
|
|
.settings-sidebar .setting-link { width: 100%; text-align: left; justify-content: flex-start; margin: 0 0 7px; border: 1px solid transparent; background: none; padding: 11px 10px; font-size: 13px; color: var(--work-text); }
|
|
.settings-sidebar .setting-link.active { border-color: var(--work-line); background: #8bbdff14; }
|
|
.settings-sidebar .micro { padding: 9px 9px 0; font-size: 11px; line-height: 1.9; }
|
|
#appearance-view .setting-content { padding: 0; height: 100%; max-height: 100%; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
|
|
.setting-panel-head { min-height: 54px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--work-line); flex-shrink: 0; }
|
|
.setting-panel-head h2 { margin: 0; font-size: 16px; }
|
|
.setting-panel-head > span { font-size: 11px; color: var(--work-muted); }
|
|
.settings-scroll { padding: 20px; overflow: auto; min-height: 0; flex: 1; scroll-padding-block: 20px; scrollbar-width: thin; }
|
|
#appearance-view .glass-material-note { padding: 14px 0 20px; border: 0; border-radius: 0; background: none; border-bottom: 1px solid var(--work-line); margin: 0; }
|
|
#appearance-view .glass-material-note p { font-size: 12px; }
|
|
#appearance-view .section-caption { margin: 23px 0 13px; }
|
|
#appearance-view #appearance-wallpapers { margin-top: 0 !important; }
|
|
#appearance-view .wall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
|
|
#appearance-view .wall-choice { padding: 0; border-radius: 8px; border: 1px solid var(--work-line); background: #07152544; }
|
|
#appearance-view .wall-choice img { height: 80px !important; }
|
|
#appearance-view .wall-choice span { padding: 9px 11px; font-size: 12px; }
|
|
#appearance-view .native-group { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; border: 0; margin: 10px 0; }
|
|
#appearance-view .setting-row { padding: 18px 0; gap: 16px; }
|
|
#appearance-view .setting-row label { font-size: 13px; }
|
|
#appearance-view .setting-row small { font-size: 11px; }
|
|
#appearance-view .setting-row .row { gap: 8px; }
|
|
#appearance-view .setting-row input[type=range] { width: 110px; }
|
|
#appearance-view .setting-row output { min-width: 32px; font-size: 11px; }
|
|
#appearance-view .setting-row select { min-width: 0; width: 125px; }
|
|
#appearance-view .setting-actions { flex-wrap: wrap; gap: 12px; }
|
|
.settings-preview { max-height: 100%; display: flex; flex-direction: column; overflow: hidden; }
|
|
.preview-content { padding: 20px; min-height: 0; overflow: auto; scrollbar-width: thin; }
|
|
#desktop-sample { width: 100% !important; height: 180px !important; margin: 0 0 22px !important; border: 1px solid var(--work-line); border-radius: 9px; background: var(--glass-base); box-shadow: none; position: relative; isolation: isolate; overflow: hidden; }
|
|
#desktop-sample::before, #desktop-sample::after { display: none; }
|
|
#appearance-wallpaper { position: absolute; inset: 0; width: 100%; height: 100%; filter: blur(var(--preview-blur, 0px)); }
|
|
.preview-shade { position: absolute; inset: 0; background: linear-gradient(var(--glass-workspace), var(--glass-workspace)), rgba(0, 0, 0, var(--preview-shade, .14)); }
|
|
.preview-material { position: absolute; inset: auto 12px 12px 36%; border: 1px solid var(--work-line); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 7px; background: var(--work-panel); backdrop-filter: var(--glass-filter); -webkit-backdrop-filter: var(--glass-filter); }
|
|
.preview-material span, .preview-material small { font-size: 10px; color: var(--work-muted); }
|
|
.preview-material strong { font-size: 14px; font-weight: 600; }
|
|
.preview-values { display: grid; grid-template-columns: 1fr 1fr; gap: 21px 12px; margin: 0 0 23px; }
|
|
.preview-values div { min-width: 0; }
|
|
.preview-values dt { color: var(--work-muted); font-size: 11px; margin-bottom: 7px; }
|
|
.preview-values dd { margin: 0; font-size: 12px; overflow-wrap: anywhere; }
|
|
.preview-content .micro { font-size: 11px; line-height: 1.9; }
|
|
#edit-dialog #edit-cancel { min-width: 76px; flex-shrink: 0; white-space: nowrap; }
|
|
@container home-workbench (max-width: 899px) {
|
|
.home-space { margin: auto; }
|
|
.home-cards { grid-template-columns: 1fr; gap: 16px; }
|
|
.home-card { display: grid; grid-template-columns: 65px minmax(0, 1fr) 20px; gap: 5px 17px; padding: 20px; min-height: 132px; }
|
|
.home-app-icon { width: 65px; height: 65px; grid-row: 1/3; }
|
|
.home-card-title { grid-column: 2; grid-row: 1; margin: 0; align-self: end; font-size: 18px; }
|
|
.home-card-desc { grid-column: 2; grid-row: 2; min-height: 0; margin: 0; font-size: 13px; align-self: start; }
|
|
.home-card-preview { display: none; }
|
|
.home-card-open { grid-column: 3; grid-row: 1/3; display: block; width: 20px; height: 22px; font-size: 0; padding: 0; margin: 0; border: 0; }
|
|
.home-card-open svg { position: static; }
|
|
}
|
|
@container workbench (max-width: 1199px) {
|
|
body:is([data-screen=register], [data-screen=archives]) .registry-workspace { height: auto; min-height: 100%; max-height: none; overflow: visible; grid-template-columns: 224px minmax(0, 1fr); grid-template-rows: auto auto; }
|
|
body:is([data-screen=register], [data-screen=archives]) .registry-workspace .history-panel { grid-row: 1/3; max-height: calc(100dvh - 96px); position: sticky; top: 24px; }
|
|
body:is([data-screen=register], [data-screen=archives]) .registry-workspace .registration-editor { height: max(480px, calc(100dvh - 96px)); }
|
|
body:is([data-screen=register], [data-screen=archives]) .registry-workspace #registration-result { grid-column: 2; max-height: none; }
|
|
#appearance-view .settings-layout { height: auto; min-height: 100%; overflow: visible; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; }
|
|
#appearance-view .settings-sidebar { grid-row: 1/3; }
|
|
#appearance-view .setting-content { height: auto; max-height: none; }
|
|
#appearance-view .settings-scroll { overflow: visible; }
|
|
#appearance-view .settings-preview { grid-column: auto; max-height: none; }
|
|
}
|
|
/* The container itself scrolls at narrower sizes; descendants control the columns. */
|
|
@media(max-width: 1267px) {
|
|
body:is([data-screen=register], [data-screen=archives]) #workspace-content, #appearance-view { overflow: auto; }
|
|
}
|
|
@container workbench (max-width: 767px) {
|
|
body:is([data-screen=register], [data-screen=archives]) .registry-workspace { display: flex; flex-direction: column; gap: 16px; padding: 16px; }
|
|
body:is([data-screen=register], [data-screen=archives]) .registry-workspace .history-panel { order: 0; height: 280px; max-height: 280px; flex-shrink: 0; position: relative; top: auto; }
|
|
.registry-workspace .history-content { padding: 13px 15px; }
|
|
.registry-workspace .pagination { padding: 10px 15px; gap: 6px; }
|
|
body:is([data-screen=register], [data-screen=archives]) .registry-workspace .registration-editor { order: 1; height: auto; min-height: 0; overflow: visible; flex-shrink: 0; }
|
|
.registry-workspace #register-form { display: block; }
|
|
.registry-workspace .registration-fields-scroll { overflow: visible; padding: 20px 16px 30px; }
|
|
.registry-workspace .registration-fields { grid-template-columns: 1fr; }
|
|
body:is([data-screen=register], [data-screen=archives]) .registry-workspace .registration-savebar { position: sticky; bottom: 0; padding: 14px 16px; z-index: 3; }
|
|
.registry-workspace #register-button { width: 100%; }
|
|
body:is([data-screen=register], [data-screen=archives]) .registry-workspace #registration-result { order: 2; flex-shrink: 0; overflow: visible; }
|
|
#registration-result > h2 { position: static; }
|
|
.registry-workspace #registration-result .empty-state { flex-direction: column; }
|
|
#appearance-view .settings-layout { display: flex; flex-direction: column; padding: 16px; gap: 16px; }
|
|
#appearance-view .settings-sidebar { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; padding: 10px; flex-shrink: 0; }
|
|
.settings-sidebar h2, .settings-sidebar .micro { display: none; }
|
|
.settings-sidebar .setting-link { width: auto; margin: 0; }
|
|
#appearance-view .setting-content, #appearance-view .settings-preview { width: 100%; height: auto; max-height: none; flex-shrink: 0; }
|
|
.settings-scroll, .preview-content { padding: 18px 16px; overflow: visible; }
|
|
#appearance-view .setting-row { flex-wrap: wrap; }
|
|
#appearance-view .setting-row > .row { width: 100%; justify-content: space-between; }
|
|
#appearance-view .setting-row input[type=range] { width: 75%; }
|
|
.setting-panel-head { padding: 0 16px; }
|
|
}
|
|
@media(max-width: 760px) {
|
|
body[data-screen=home] .home-launcher.homescreen { padding: 28px 20px; }
|
|
body[data-screen=home] .workspace-home-link > #workspace-brand { display: inline; font-size: 12px; }
|
|
body[data-screen=home] #reference-title { display: none; }
|
|
.home-heading h1 { font-size: 24px; }
|
|
}
|
|
|
|
/* Module pages share one navigation rail; archives occupy their own view. */
|
|
body[data-screen=register] .registry-workspace { grid-template-columns: minmax(0, 1fr) 280px; }
|
|
body[data-screen=archives] .registry-workspace { grid-template-columns: minmax(0, 1fr); }
|
|
body[data-screen=archives] .history-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; align-content: start; }
|
|
body[data-screen=archives] .archive-card { margin: 0; }
|
|
@container workbench (max-width: 760px) {
|
|
body[data-screen=register] .registry-workspace { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; height: auto; max-height: none; }
|
|
#appearance-view .settings-layout { grid-template-columns: minmax(0, 1fr); height: auto; overflow: visible; }
|
|
}
|
|
|
|
body[data-screen=archives] .registry-workspace .history-panel { grid-row: auto; height: calc(100dvh - 96px); max-height: none; position: static; }
|
|
@container workbench (max-width: 767px) {
|
|
body[data-screen=register] .registry-workspace #registration-result { grid-column: auto; }
|
|
body[data-screen=archives] .registry-workspace .history-panel { min-height: 420px; }
|
|
}
|