feat: complete TASK-WP4-06 accessibility

This commit is contained in:
suyx
2026-08-03 15:23:17 +08:00
parent d09fda13c5
commit a1b82ecdc4
9 changed files with 428 additions and 30 deletions
+31 -6
View File
@@ -6,6 +6,25 @@
color: #111111;
}
.editor-page-shell :focus-visible {
outline: 2px solid #005fcc;
outline-offset: 2px;
}
.editor-skip-link {
position: fixed;
z-index: 20;
top: 8px;
left: 8px;
padding: 8px 12px;
border: 2px solid #111111;
background: #ffffff;
color: #111111;
font-weight: 700;
transform: translateY(-160%);
}
.editor-skip-link:focus { transform: translateY(0); }
.editor-toolbar {
display: grid;
grid-template-columns: 40px minmax(160px, 1fr) auto minmax(128px, 160px) auto auto;
@@ -17,6 +36,8 @@
background: #ffffff;
}
.editor-toolbar-controls { display: contents; }
.editor-toolbar button,
.editor-back,
.editor-inspector button {
@@ -54,8 +75,10 @@
gap: 12px;
}
.editor-title strong {
.editor-title h1 {
margin: 0;
overflow: hidden;
font-size: inherit;
text-overflow: ellipsis;
white-space: nowrap;
}
@@ -228,7 +251,7 @@
}
.editor-canvas { display: block; width: 100%; height: 100%; outline: none; }
.editor-canvas:focus { outline: 3px solid #005fcc; outline-offset: 3px; }
.editor-canvas:focus-visible { outline: 2px solid #005fcc; outline-offset: 2px; }
.editor-candidates {
position: absolute;
@@ -471,10 +494,9 @@
background: #ffffff;
box-shadow: 8px 8px 0 #111111;
}
.editor-export-dialog > header { display: flex; min-height: 82px; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid #b9b9b3; }
.editor-export-dialog > header { display: flex; min-height: 82px; align-items: center; padding: 18px 22px; border-bottom: 1px solid #b9b9b3; }
.editor-export-dialog > header p { margin: 0 0 3px; color: #62625d; font-size: 10px; font-weight: 800; }
.editor-export-dialog > header h2 { margin: 0; font-size: 22px; }
.editor-export-dialog > header button { width: 36px; height: 36px; border: 1px solid #111111; border-radius: 0; background: #ffffff; font: 24px/1 Arial, sans-serif; }
.editor-export-section { padding: 18px 22px; border-bottom: 1px solid #b9b9b3; }
.editor-export-section h3 { margin: 0 0 10px; font-size: 13px; }
.editor-export-segments { display: grid; grid-template-columns: 1fr 1fr; }
@@ -511,8 +533,11 @@
@media (max-width: 760px) {
.editor-page-shell { grid-template-rows: auto minmax(0, 1fr) auto; }
.editor-toolbar { grid-template-columns: 40px minmax(0, 1fr) auto; min-height: 56px; }
.editor-toolbar > button, .editor-save-status { display: none; }
.editor-toolbar { display: flex; min-height: 56px; flex-wrap: wrap; gap: 8px; padding: 8px 10px; }
.editor-title { min-width: 0; flex: 1 1 calc(100% - 56px); }
.editor-history-actions { order: 3; }
.editor-save-status { order: 4; flex: 1 1 128px; }
.editor-toolbar-controls > button { display: block; order: 5; }
.editor-layout { grid-template-columns: 1fr; }
.editor-assets-panel, .editor-inspector { border: 0; }
.editor-assets-panel { order: 2; }