Put the report editor chrome on design tokens

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-23 20:18:29 +03:00
parent 68cf541bbe
commit 82f3a674a3
13 changed files with 297 additions and 288 deletions
@@ -4,9 +4,9 @@
top: 0; top: 0;
width: 300px; width: 300px;
height: 100vh; height: 100vh;
background: white; background: var(--surface);
border-left: 1px solid #ccc; border-left: 1px solid var(--border-strong);
box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1); box-shadow: var(--shadow-raised);
overflow-y: auto; overflow-y: auto;
z-index: 1000; z-index: 1000;
display: flex; display: flex;
@@ -17,9 +17,9 @@
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
padding: 15px; padding: var(--space-4);
border-bottom: 1px solid #e0e0e0; border-bottom: 1px solid var(--border);
background: #f9f9f9; background: var(--surface-sunken);
position: sticky; position: sticky;
top: 0; top: 0;
z-index: 10; z-index: 10;
@@ -27,41 +27,41 @@
.palette-header h3 { .palette-header h3 {
margin: 0; margin: 0;
font-size: 16px; font-size: var(--fs-lg);
color: #333; color: var(--text);
} }
.close-button { .close-button {
background: transparent; background: transparent;
border: none; border: none;
font-size: 20px; font-size: var(--fs-2xl);
cursor: pointer; cursor: pointer;
color: #666; color: var(--text-muted);
padding: 5px 10px; padding: var(--space-1-5) var(--space-2-5);
line-height: 1; line-height: 1;
} }
.close-button:hover { .close-button:hover {
color: #333; color: var(--text);
background: rgba(0, 0, 0, 0.05); background: var(--surface-hover);
border-radius: 3px; border-radius: 3px;
} }
.palette-content { .palette-content {
flex: 1; flex: 1;
overflow-y: auto; overflow-y: auto;
padding: 10px; padding: var(--space-2-5);
} }
.palette-category { .palette-category {
margin-bottom: 10px; margin-bottom: var(--space-2-5);
} }
.category-header { .category-header {
display: flex; display: flex;
align-items: center; align-items: center;
padding: 10px; padding: var(--space-2-5);
background: #f5f5f5; background: var(--surface-sunken);
cursor: pointer; cursor: pointer;
border-radius: 4px; border-radius: 4px;
user-select: none; user-select: none;
@@ -69,32 +69,32 @@
} }
.category-header:hover { .category-header:hover {
background: #e8e8e8; background: var(--surface-hover);
} }
.category-header.expanded { .category-header.expanded {
background: #667eea; background: var(--accent);
color: white; color: var(--accent-contrast);
} }
.category-icon { .category-icon {
margin-right: 8px; margin-right: var(--space-2);
font-size: 12px; font-size: var(--fs-sm);
width: 12px; width: 12px;
display: inline-block; display: inline-block;
} }
.category-name { .category-name {
font-weight: 500; font-weight: var(--fw-medium);
font-size: 14px; font-size: var(--fs-md);
} }
.character-grid { .character-grid {
display: grid; display: grid;
grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
gap: 5px; gap: var(--space-1-5);
padding: 10px; padding: var(--space-2-5);
background: #fafafa; background: var(--surface-sunken);
border-radius: 0 0 4px 4px; border-radius: 0 0 4px 4px;
} }
@@ -104,27 +104,27 @@
justify-content: center; justify-content: center;
width: 40px; width: 40px;
height: 40px; height: 40px;
border: 1px solid #ddd; border: 1px solid var(--border);
background: white; background: var(--surface);
cursor: pointer; cursor: pointer;
font-size: 24px; font-size: var(--fs-2xl);
font-family: 'Courier New', 'Consolas', monospace; font-family: var(--font-mono);
transition: all 0.2s; transition: all 0.2s;
border-radius: 3px; border-radius: 3px;
user-select: none; user-select: none;
} }
.char-button:hover { .char-button:hover {
border-color: #667eea; border-color: var(--accent);
background: #f0f0ff; background: var(--accent-soft);
transform: scale(1.1); transform: scale(1.1);
} }
.char-button.active { .char-button.active {
background: #667eea; background: var(--accent);
color: white; color: var(--accent-contrast);
border-color: #667eea; border-color: var(--accent);
box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3); box-shadow: 0 2px 4px var(--accent-soft);
} }
/* Scrollbar styling */ /* Scrollbar styling */
@@ -135,16 +135,16 @@
.character-palette::-webkit-scrollbar-track, .character-palette::-webkit-scrollbar-track,
.palette-content::-webkit-scrollbar-track { .palette-content::-webkit-scrollbar-track {
background: #f1f1f1; background: var(--surface-sunken);
} }
.character-palette::-webkit-scrollbar-thumb, .character-palette::-webkit-scrollbar-thumb,
.palette-content::-webkit-scrollbar-thumb { .palette-content::-webkit-scrollbar-thumb {
background: #c0c0c0; background: var(--border-strong);
border-radius: 4px; border-radius: 4px;
} }
.character-palette::-webkit-scrollbar-thumb:hover, .character-palette::-webkit-scrollbar-thumb:hover,
.palette-content::-webkit-scrollbar-thumb:hover { .palette-content::-webkit-scrollbar-thumb:hover {
background: #a0a0a0; background: var(--text-muted);
} }
@@ -4,7 +4,7 @@
left: 0; left: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
background: rgba(0, 0, 0, 0.5); background: var(--backdrop);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@@ -12,38 +12,38 @@
} }
.config-panel { .config-panel {
background: white; background: var(--surface);
border-radius: 8px; border-radius: 8px;
width: 90%; width: 90%;
max-width: 600px; max-width: 600px;
max-height: 80vh; max-height: 80vh;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); box-shadow: var(--shadow-overlay);
} }
.config-panel-header { .config-panel-header {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
padding: 20px; padding: var(--space-5);
border-bottom: 1px solid #e0e0e0; border-bottom: 1px solid var(--border);
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); background: var(--header-bg);
color: white; color: var(--header-text);
border-radius: 8px 8px 0 0; border-radius: 8px 8px 0 0;
} }
.config-panel-header h2 { .config-panel-header h2 {
margin: 0; margin: 0;
font-size: 20px; font-size: var(--fs-2xl);
font-weight: 600; font-weight: var(--fw-semibold);
} }
.close-button { .close-button {
background: none; background: none;
border: none; border: none;
color: white; color: var(--header-text);
font-size: 32px; font-size: var(--fs-display);
cursor: pointer; cursor: pointer;
padding: 0; padding: 0;
width: 32px; width: 32px;
@@ -56,70 +56,70 @@
} }
.close-button:hover { .close-button:hover {
background: rgba(255, 255, 255, 0.2); background: var(--header-chrome);
} }
.config-panel-content { .config-panel-content {
padding: 20px; padding: var(--space-5);
overflow-y: auto; overflow-y: auto;
flex: 1; flex: 1;
} }
.config-section { .config-section {
margin-bottom: 24px; margin-bottom: var(--space-6);
} }
.config-section h3 { .config-section h3 {
margin: 0 0 12px 0; margin: 0 0 var(--space-3) 0;
font-size: 16px; font-size: var(--fs-lg);
font-weight: 600; font-weight: var(--fw-semibold);
color: #333; color: var(--text);
} }
.section-header { .section-header {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
margin-bottom: 12px; margin-bottom: var(--space-3);
} }
.input-group { .input-group {
display: flex; display: flex;
gap: 8px; gap: var(--space-2);
} }
.config-input { .config-input {
flex: 1; flex: 1;
padding: 10px 12px; padding: var(--space-2-5) var(--space-3);
border: 1px solid #ddd; border: 1px solid var(--border);
border-radius: 6px; border-radius: 6px;
font-size: 14px; font-size: var(--fs-md);
font-family: 'Courier New', monospace; font-family: var(--font-mono);
} }
.config-input:focus { .config-input:focus {
outline: none; outline: none;
border-color: #667eea; border-color: var(--accent);
} }
.config-input:disabled { .config-input:disabled {
background: #f5f5f5; background: var(--surface-sunken);
cursor: not-allowed; cursor: not-allowed;
} }
.config-button { .config-button {
padding: 10px 16px; padding: var(--space-2-5) var(--space-4);
background: #f0f0f0; background: var(--surface-sunken);
border: 1px solid #ddd; border: 1px solid var(--border);
border-radius: 6px; border-radius: 6px;
font-size: 14px; font-size: var(--fs-md);
font-weight: 500; font-weight: var(--fw-medium);
cursor: pointer; cursor: pointer;
transition: all 0.2s; transition: all 0.2s;
} }
.config-button:hover:not(:disabled) { .config-button:hover:not(:disabled) {
background: #e0e0e0; background: var(--surface-hover);
transform: translateY(-1px); transform: translateY(-1px);
} }
@@ -129,8 +129,8 @@
} }
.config-button.primary { .config-button.primary {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); background: var(--accent-gradient);
color: white; color: var(--accent-contrast);
border-color: transparent; border-color: transparent;
} }
@@ -139,65 +139,65 @@
} }
.config-button.small { .config-button.small {
padding: 6px 12px; padding: var(--space-1-5) var(--space-3);
font-size: 12px; font-size: var(--fs-sm);
} }
.config-error { .config-error {
margin-top: 8px; margin-top: var(--space-2);
padding: 12px; padding: var(--space-3);
background: #fee; background: var(--danger-soft);
border: 1px solid #fcc; border: 1px solid var(--danger);
border-radius: 6px; border-radius: 6px;
color: #c33; color: var(--danger);
font-size: 14px; font-size: var(--fs-md);
} }
.config-info { .config-info {
padding: 16px; padding: var(--space-4);
background: #f0f8ff; background: var(--accent-soft);
border: 1px solid #d0e8ff; border: 1px solid var(--accent);
border-radius: 6px; border-radius: 6px;
color: #0066cc; color: var(--accent);
font-size: 14px; font-size: var(--fs-md);
text-align: center; text-align: center;
} }
.manual-input-section { .manual-input-section {
margin-top: 12px; margin-top: var(--space-3);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 8px; gap: var(--space-2);
} }
.manual-data-input { .manual-data-input {
padding: 10px 12px; padding: var(--space-2-5) var(--space-3);
border: 1px solid #ddd; border: 1px solid var(--border);
border-radius: 6px; border-radius: 6px;
font-size: 14px; font-size: var(--fs-md);
font-family: 'Courier New', monospace; font-family: var(--font-mono);
resize: vertical; resize: vertical;
min-height: 120px; min-height: 120px;
} }
.manual-data-input:focus { .manual-data-input:focus {
outline: none; outline: none;
border-color: #667eea; border-color: var(--accent);
} }
.data-preview { .data-preview {
max-height: 300px; max-height: 300px;
overflow-y: auto; overflow-y: auto;
padding: 12px; padding: var(--space-3);
background: #f5f5f5; background: var(--surface-sunken);
border: 1px solid #ddd; border: 1px solid var(--border);
border-radius: 6px; border-radius: 6px;
} }
.data-preview pre { .data-preview pre {
margin: 0; margin: 0;
font-size: 12px; font-size: var(--fs-sm);
font-family: 'Courier New', monospace; font-family: var(--font-mono);
white-space: pre-wrap; white-space: pre-wrap;
word-wrap: break-word; word-wrap: break-word;
} }
@@ -3,8 +3,8 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: flex-start; align-items: flex-start;
padding: 20px; padding: var(--space-5);
background: #f5f5f5; background: var(--surface-sunken);
overflow: auto; overflow: auto;
} }
@@ -58,8 +58,8 @@
.frame-preview { .frame-preview {
position: absolute; position: absolute;
border: 2px dashed #667eea; border: 2px dashed var(--accent);
background: rgba(102, 126, 234, 0.1); background: var(--accent-soft);
pointer-events: none; pointer-events: none;
box-sizing: border-box; box-sizing: border-box;
} }
@@ -74,8 +74,8 @@
.selection-rectangle { .selection-rectangle {
position: absolute; position: absolute;
border: 2px dashed #667eea; border: 2px dashed var(--accent);
background: rgba(102, 126, 234, 0.1); background: var(--accent-soft);
pointer-events: none; pointer-events: none;
box-sizing: border-box; box-sizing: border-box;
z-index: 100; z-index: 100;
@@ -4,93 +4,93 @@
top: 0; top: 0;
width: 250px; width: 250px;
height: 100vh; height: 100vh;
background: #f5f5f5; background: var(--surface-sunken);
border-right: 1px solid #ddd; border-right: 1px solid var(--border);
box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1); box-shadow: var(--shadow-raised);
overflow-y: auto; overflow-y: auto;
font-family: Arial, sans-serif; font-family: var(--font-sans);
font-size: 13px; font-size: var(--fs-base);
z-index: 1000; z-index: 1000;
} }
.inspector-header { .inspector-header {
background: #e0e0e0; background: var(--surface-hover);
padding: 10px; padding: var(--space-2-5);
font-weight: bold; font-weight: var(--fw-bold);
border-bottom: 1px solid #ccc; border-bottom: 1px solid var(--border-strong);
} }
.inspector-empty { .inspector-empty {
padding: 20px; padding: var(--space-5);
color: #999; color: var(--text-muted);
text-align: center; text-align: center;
} }
.inspector-section { .inspector-section {
border-bottom: 1px solid #ddd; border-bottom: 1px solid var(--border);
padding: 10px; padding: var(--space-2-5);
} }
.section-title { .section-title {
font-weight: bold; font-weight: var(--fw-bold);
margin-bottom: 10px; margin-bottom: var(--space-2-5);
color: #555; color: var(--text-muted);
} }
.property-row { .property-row {
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: 8px; margin-bottom: var(--space-2);
} }
.property-row label { .property-row label {
flex: 0 0 70px; flex: 0 0 70px;
color: #666; color: var(--text-muted);
font-size: 12px; font-size: var(--fs-sm);
} }
.property-row input, .property-row input,
.property-row select { .property-row select {
flex: 1; flex: 1;
padding: 4px 6px; padding: var(--space-1) var(--space-1-5);
border: 1px solid #ccc; border: 1px solid var(--border-strong);
border-radius: 3px; border-radius: 3px;
font-size: 12px; font-size: var(--fs-sm);
} }
.property-row input:disabled { .property-row input:disabled {
background: #e0e0e0; background: var(--surface-hover);
color: #999; color: var(--text-muted);
} }
.property-row select:disabled { .property-row select:disabled {
background: #e0e0e0; background: var(--surface-hover);
color: #999; color: var(--text-muted);
} }
.property-row input:focus, .property-row input:focus,
.property-row select:focus { .property-row select:focus {
outline: none; outline: none;
border-color: #667eea; border-color: var(--accent);
} }
.expr-btn-row { .expr-btn-row {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
gap: 3px; gap: var(--space-1);
margin-bottom: 6px; margin-bottom: var(--space-1-5);
} }
.expr-btn-row button { .expr-btn-row button {
padding: 2px 6px; padding: var(--space-0-5) var(--space-1-5);
font-size: 11px; font-size: var(--fs-xs);
border: 1px solid #ccc; border: 1px solid var(--border-strong);
border-radius: 3px; border-radius: 3px;
cursor: pointer; cursor: pointer;
background: #fff; background: var(--surface);
} }
.expr-btn-row button:hover { .expr-btn-row button:hover {
background: #e8eeff; background: var(--accent-soft);
border-color: #667eea; border-color: var(--accent);
} }
@@ -176,11 +176,11 @@ function ObjectInspector({ element, onUpdate, allElements = [] }) {
{parentBand ? ( {parentBand ? (
<> <>
<div className="property-info" style={{ <div className="property-info" style={{
fontSize: '11px', fontSize: 'var(--fs-xs)',
color: '#667eea', color: 'var(--accent)',
marginBottom: '8px', marginBottom: 'var(--space-2)',
padding: '6px', padding: 'var(--space-1-5)',
background: 'rgba(102, 126, 234, 0.1)', background: 'var(--accent-soft)',
borderRadius: '3px' borderRadius: '3px'
}}> }}>
{parentBand.parentBandId ? ( {parentBand.parentBandId ? (
@@ -18,7 +18,7 @@
left: 0; left: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
background: rgba(0, 0, 0, 0.5); background: var(--backdrop);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@@ -26,74 +26,74 @@
} }
.load-dialog { .load-dialog {
background: white; background: var(--surface);
border-radius: 8px; border-radius: 8px;
width: 500px; width: 500px;
max-width: 90vw; max-width: 90vw;
max-height: 80vh; max-height: 80vh;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); box-shadow: var(--shadow-overlay);
} }
.load-dialog-header { .load-dialog-header {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
padding: 16px 20px; padding: var(--space-4) var(--space-5);
border-bottom: 1px solid #eee; border-bottom: 1px solid var(--border);
} }
.load-dialog-header h2 { .load-dialog-header h2 {
margin: 0; margin: 0;
font-size: 18px; font-size: var(--fs-xl);
color: #333; color: var(--text);
} }
.load-dialog-close { .load-dialog-close {
background: none; background: none;
border: none; border: none;
font-size: 24px; font-size: var(--fs-2xl);
cursor: pointer; cursor: pointer;
color: #999; color: var(--text-muted);
padding: 0; padding: 0;
line-height: 1; line-height: 1;
} }
.load-dialog-close:hover { .load-dialog-close:hover {
color: #333; color: var(--text);
} }
.load-dialog-actions { .load-dialog-actions {
padding: 12px 20px; padding: var(--space-3) var(--space-5);
border-bottom: 1px solid #eee; border-bottom: 1px solid var(--border);
} }
.load-dialog-new-btn { .load-dialog-new-btn {
padding: 8px 16px; padding: var(--space-2) var(--space-4);
background: #667eea; background: var(--accent);
color: white; color: var(--accent-contrast);
border: none; border: none;
border-radius: 6px; border-radius: 6px;
cursor: pointer; cursor: pointer;
font-size: 14px; font-size: var(--fs-md);
} }
.load-dialog-new-btn:hover { .load-dialog-new-btn:hover {
background: #5a6fd6; background: var(--accent-hover);
} }
.load-dialog-content { .load-dialog-content {
flex: 1; flex: 1;
overflow-y: auto; overflow-y: auto;
padding: 12px 0; padding: var(--space-3) 0;
} }
.load-dialog-loading, .load-dialog-loading,
.load-dialog-empty { .load-dialog-empty {
padding: 40px 20px; padding: var(--space-10) var(--space-5);
text-align: center; text-align: center;
color: #999; color: var(--text-muted);
} }
.load-dialog-list { .load-dialog-list {
@@ -105,47 +105,47 @@
.load-dialog-item { .load-dialog-item {
display: flex; display: flex;
align-items: center; align-items: center;
padding: 12px 20px; padding: var(--space-3) var(--space-5);
border-bottom: 1px solid #f0f0f0; border-bottom: 1px solid var(--border);
cursor: pointer; cursor: pointer;
transition: background 0.2s; transition: background 0.2s;
} }
.load-dialog-item:hover { .load-dialog-item:hover {
background: #f8f8f8; background: var(--surface-hover);
} }
.load-dialog-item--current { .load-dialog-item--current {
background: #e8f0ff; background: var(--accent-soft);
} }
.load-dialog-item--current:hover { .load-dialog-item--current:hover {
background: #dde8ff; background: color-mix(in srgb, var(--accent) 20%, transparent);
} }
.load-dialog-item-info { .load-dialog-item-info {
flex: 1; flex: 1;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 4px; gap: var(--space-1);
} }
.load-dialog-item-name { .load-dialog-item-name {
font-weight: 500; font-weight: var(--fw-medium);
color: #333; color: var(--text);
} }
.load-dialog-item-date { .load-dialog-item-date {
font-size: 12px; font-size: var(--fs-sm);
color: #999; color: var(--text-muted);
} }
.load-dialog-item-delete { .load-dialog-item-delete {
background: none; background: none;
border: none; border: none;
font-size: 16px; font-size: var(--fs-lg);
cursor: pointer; cursor: pointer;
padding: 4px 8px; padding: var(--space-1) var(--space-2);
opacity: 0.5; opacity: 0.5;
transition: opacity 0.2s; transition: opacity 0.2s;
} }
@@ -1,54 +1,54 @@
.toolbar { .toolbar {
display: flex; display: flex;
align-items: center; align-items: center;
padding: 12px 16px; padding: var(--space-3) var(--space-4);
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); background: var(--header-bg);
border-bottom: 2px solid rgba(0, 0, 0, 0.1); border-bottom: 2px solid color-mix(in srgb, var(--text) 10%, transparent);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); box-shadow: var(--shadow-raised);
gap: 16px; gap: var(--space-4);
} }
.toolbar-group { .toolbar-group {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 8px; gap: var(--space-2);
} }
.toolbar-separator { .toolbar-separator {
width: 1px; width: 1px;
height: 32px; height: 32px;
background: rgba(255, 255, 255, 0.3); background: var(--header-chrome-border);
} }
.toolbar-label { .toolbar-label {
color: white; color: var(--header-text);
font-size: 14px; font-size: var(--fs-md);
font-weight: 500; font-weight: var(--fw-medium);
margin-right: 4px; margin-right: var(--space-1);
} }
.toolbar-button { .toolbar-button {
padding: 8px 16px; padding: var(--space-2) var(--space-4);
background: rgba(255, 255, 255, 0.2); background: var(--header-chrome);
border: 1px solid rgba(255, 255, 255, 0.3); border: 1px solid var(--header-chrome-border);
color: white; color: var(--header-text);
border-radius: 6px; border-radius: 6px;
font-size: 14px; font-size: var(--fs-md);
font-weight: 500; font-weight: var(--fw-medium);
cursor: pointer; cursor: pointer;
transition: all 0.2s; transition: all 0.2s;
white-space: nowrap; white-space: nowrap;
} }
.toolbar-button:hover { .toolbar-button:hover {
background: rgba(255, 255, 255, 0.3); background: var(--header-chrome-hover);
transform: translateY(-1px); transform: translateY(-1px);
} }
.toolbar-button.active { .toolbar-button.active {
background: rgba(255, 255, 255, 0.4); background: color-mix(in srgb, var(--header-text) 40%, transparent);
border-color: rgba(255, 255, 255, 0.5); border-color: color-mix(in srgb, var(--header-text) 50%, transparent);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); box-shadow: var(--shadow-raised);
} }
.toolbar-button:disabled { .toolbar-button:disabled {
@@ -62,21 +62,21 @@
} }
.toolbar-report-name { .toolbar-report-name {
padding: 8px 12px; padding: var(--space-2) var(--space-3);
background: rgba(255, 255, 255, 0.9); background: var(--surface);
border: 1px solid rgba(255, 255, 255, 0.3); border: 1px solid var(--header-chrome-border);
border-radius: 6px; border-radius: 6px;
font-size: 14px; font-size: var(--fs-md);
width: 200px; width: 200px;
color: #333; color: var(--text);
} }
.toolbar-report-name::placeholder { .toolbar-report-name::placeholder {
color: #999; color: var(--text-muted);
} }
.toolbar-report-name:focus { .toolbar-report-name:focus {
outline: none; outline: none;
border-color: rgba(255, 255, 255, 0.6); border-color: color-mix(in srgb, var(--header-text) 60%, transparent);
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2); box-shadow: 0 0 0 2px var(--header-chrome);
} }
@@ -3,8 +3,8 @@
.a4-canvas-container { .a4-canvas-container {
flex: 1; flex: 1;
overflow: auto; overflow: auto;
background: #8a8a8a; background: var(--desk);
padding: 24px; padding: var(--space-6);
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: flex-start; align-items: flex-start;
@@ -102,8 +102,8 @@
/* Rubber-band selection rectangle */ /* Rubber-band selection rectangle */
.a4-selection-rectangle { .a4-selection-rectangle {
position: absolute; position: absolute;
border: 1px dashed #667eea; border: 1px dashed var(--accent);
background: rgba(102, 126, 234, 0.12); background: var(--accent-soft);
pointer-events: none; pointer-events: none;
z-index: 15; z-index: 15;
} }
@@ -126,13 +126,13 @@
.a4-preview-page-break { .a4-preview-page-break {
width: 100%; width: 100%;
padding: 6px 0 14px; padding: var(--space-1-5) 0 var(--space-4);
text-align: center; text-align: center;
font-family: system-ui, sans-serif; font-family: var(--font-sans);
font-size: 11px; font-size: var(--fs-xs);
color: #e8e8e8; color: var(--desk-text);
border-top: 1px dashed rgba(255, 255, 255, 0.4); border-top: 1px dashed color-mix(in srgb, var(--desk-text) 40%, transparent);
margin-top: 14px; margin-top: var(--space-4);
} }
.a4-preview-el { .a4-preview-el {
@@ -2,36 +2,36 @@
.a4-inspector .mm-suffix { .a4-inspector .mm-suffix {
flex: 0 0 auto; flex: 0 0 auto;
margin-left: 6px; margin-left: var(--space-1-5);
color: #999; color: var(--text-muted);
font-size: 11px; font-size: var(--fs-xs);
} }
.a4-inspector .a4-style-buttons { .a4-inspector .a4-style-buttons {
flex: 1; flex: 1;
display: flex; display: flex;
gap: 4px; gap: var(--space-1);
} }
.a4-inspector .a4-style-btn { .a4-inspector .a4-style-btn {
flex: 1; flex: 1;
padding: 4px 0; padding: var(--space-1) 0;
border: 1px solid #ccc; border: 1px solid var(--border-strong);
border-radius: 3px; border-radius: 3px;
background: #fff; background: var(--surface);
cursor: pointer; cursor: pointer;
font-size: 12px; font-size: var(--fs-sm);
} }
.a4-inspector .a4-style-btn:hover { .a4-inspector .a4-style-btn:hover {
background: #e8eeff; background: var(--accent-soft);
border-color: #667eea; border-color: var(--accent);
} }
.a4-inspector .a4-style-btn.active { .a4-inspector .a4-style-btn.active {
background: #667eea; background: var(--accent);
border-color: #667eea; border-color: var(--accent);
color: #fff; color: var(--accent-contrast);
} }
.a4-inspector input[type="color"] { .a4-inspector input[type="color"] {
@@ -42,16 +42,16 @@
.a4-inspector .a4-expression-input { .a4-inspector .a4-expression-input {
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
margin-bottom: 4px; margin-bottom: var(--space-1);
font-family: monospace; font-family: var(--font-mono);
font-size: 11px; font-size: var(--fs-xs);
resize: vertical; resize: vertical;
} }
.a4-inspector .inspector-hint { .a4-inspector .inspector-hint {
padding: 2px 0 6px; padding: var(--space-0-5) 0 var(--space-1-5);
color: #999; color: var(--text-muted);
font-size: 10px; font-size: var(--fs-xs);
line-height: 1.3; line-height: 1.3;
} }
@@ -3,7 +3,7 @@
.a4-kind-overlay { .a4-kind-overlay {
position: fixed; position: fixed;
inset: 0; inset: 0;
background: rgba(0, 0, 0, 0.5); background: var(--backdrop);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@@ -11,44 +11,44 @@
} }
.a4-kind-dialog { .a4-kind-dialog {
background: #fff; background: var(--surface);
border-radius: 8px; border-radius: 8px;
width: 460px; width: 460px;
max-width: 92vw; max-width: 92vw;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); box-shadow: var(--shadow-overlay);
} }
.a4-kind-header { .a4-kind-header {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 14px 18px; padding: var(--space-4) var(--space-5);
border-bottom: 1px solid #e0e0e0; border-bottom: 1px solid var(--border);
} }
.a4-kind-header h2 { .a4-kind-header h2 {
margin: 0; margin: 0;
font-size: 16px; font-size: var(--fs-lg);
color: #333; color: var(--text);
} }
.a4-kind-close { .a4-kind-close {
border: none; border: none;
background: none; background: none;
font-size: 22px; font-size: var(--fs-2xl);
line-height: 1; line-height: 1;
color: #888; color: var(--text-muted);
cursor: pointer; cursor: pointer;
} }
.a4-kind-close:hover { .a4-kind-close:hover {
color: #333; color: var(--text);
} }
.a4-kind-options { .a4-kind-options {
display: flex; display: flex;
gap: 12px; gap: var(--space-3);
padding: 18px; padding: var(--space-5);
} }
.a4-kind-option { .a4-kind-option {
@@ -56,45 +56,45 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: flex-start; align-items: flex-start;
gap: 6px; gap: var(--space-1-5);
padding: 16px; padding: var(--space-4);
border: 1px solid #ddd; border: 1px solid var(--border);
border-radius: 6px; border-radius: 6px;
background: #fafafa; background: var(--surface-sunken);
cursor: pointer; cursor: pointer;
text-align: left; text-align: left;
font: inherit; font: inherit;
} }
.a4-kind-option:hover { .a4-kind-option:hover {
border-color: #667eea; border-color: var(--accent);
background: #f0f3ff; background: var(--accent-soft);
} }
.a4-kind-option-icon { .a4-kind-option-icon {
font-size: 22px; font-size: var(--fs-2xl);
} }
.a4-kind-option-title { .a4-kind-option-title {
font-size: 14px; font-size: var(--fs-md);
font-weight: 600; font-weight: var(--fw-semibold);
color: #333; color: var(--text);
} }
.a4-kind-option-desc { .a4-kind-option-desc {
font-size: 11px; font-size: var(--fs-xs);
line-height: 1.45; line-height: 1.45;
color: #777; color: var(--text-muted);
} }
/* Cross-kind group in the load dialog — dimmed, because these are reports the /* Cross-kind group in the load dialog — dimmed, because these are reports the
current editor cannot open; clicking one navigates to the other editor. */ current editor cannot open; clicking one navigates to the other editor. */
.load-dialog-group-title { .load-dialog-group-title {
padding: 10px 4px 4px; padding: var(--space-2-5) var(--space-1) var(--space-1);
font-size: 11px; font-size: var(--fs-xs);
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 0.04em; letter-spacing: 0.04em;
color: #999; color: var(--text-muted);
} }
.load-dialog-item--other { .load-dialog-item--other {
@@ -106,12 +106,12 @@
} }
.load-dialog-kind-badge { .load-dialog-kind-badge {
margin-left: 8px; margin-left: var(--space-2);
padding: 1px 6px; padding: 1px var(--space-1-5);
border-radius: 9px; border-radius: 9px;
background: #e8e8e8; background: var(--surface-hover);
color: #666; color: var(--text-muted);
font-size: 10px; font-size: var(--fs-xs);
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 0.04em; letter-spacing: 0.04em;
vertical-align: middle; vertical-align: middle;
@@ -4,7 +4,7 @@
.a4-page-setup-overlay { .a4-page-setup-overlay {
position: fixed; position: fixed;
inset: 0; inset: 0;
background: rgba(0, 0, 0, 0.5); background: var(--backdrop);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@@ -12,55 +12,55 @@
} }
.a4-page-setup { .a4-page-setup {
background: #fff; background: var(--surface);
border-radius: 8px; border-radius: 8px;
width: 340px; width: 340px;
max-height: 85vh; max-height: 85vh;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); box-shadow: var(--shadow-overlay);
} }
.a4-page-setup-header { .a4-page-setup-header {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 14px 18px; padding: var(--space-4) var(--space-5);
border-bottom: 1px solid #e0e0e0; border-bottom: 1px solid var(--border);
} }
.a4-page-setup-header h2 { .a4-page-setup-header h2 {
margin: 0; margin: 0;
font-size: 16px; font-size: var(--fs-lg);
color: #333; color: var(--text);
} }
.a4-page-setup-close { .a4-page-setup-close {
border: none; border: none;
background: none; background: none;
font-size: 22px; font-size: var(--fs-2xl);
line-height: 1; line-height: 1;
color: #888; color: var(--text-muted);
cursor: pointer; cursor: pointer;
} }
.a4-page-setup-close:hover { .a4-page-setup-close:hover {
color: #333; color: var(--text);
} }
.a4-page-setup-body { .a4-page-setup-body {
padding: 8px 18px 18px; padding: var(--space-2) var(--space-5) var(--space-5);
overflow-y: auto; overflow-y: auto;
} }
.a4-page-setup-dims, .a4-page-setup-dims,
.a4-page-setup-hint { .a4-page-setup-hint {
font-size: 11px; font-size: var(--fs-xs);
color: #888; color: var(--text-muted);
margin-top: 6px; margin-top: var(--space-1-5);
line-height: 1.4; line-height: 1.4;
} }
.a4-page-setup-dims { .a4-page-setup-dims {
color: #667eea; color: var(--accent);
} }
@@ -6,16 +6,16 @@
} }
.toolbar-zoom { .toolbar-zoom {
padding: 8px 10px; padding: var(--space-2) var(--space-2-5);
background: rgba(255, 255, 255, 0.9); background: var(--surface);
border: 1px solid rgba(255, 255, 255, 0.3); border: 1px solid var(--header-chrome-border);
border-radius: 6px; border-radius: 6px;
font-size: 14px; font-size: var(--fs-md);
color: #333; color: var(--text);
cursor: pointer; cursor: pointer;
} }
.toolbar-zoom:focus { .toolbar-zoom:focus {
outline: none; outline: none;
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2); box-shadow: 0 0 0 2px var(--header-chrome);
} }
+9
View File
@@ -68,6 +68,11 @@
/* The dim behind a modal */ /* The dim behind a modal */
--backdrop: rgba(0, 0, 0, 0.5); --backdrop: rgba(0, 0, 0, 0.5);
/* The desk the A4 designer's white page sits on, and the page-break label
drawn on it. Mid-grey, as in a word processor, so the page edge reads. */
--desk: #8a8a8a;
--desk-text: #e8e8e8;
/* The header is its own surface: a saturated bar with white chrome on it, /* The header is its own surface: a saturated bar with white chrome on it,
so it cannot borrow --surface/--text without losing that contrast. */ so it cannot borrow --surface/--text without losing that contrast. */
--header-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%); --header-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
@@ -134,6 +139,10 @@
sinks into the theme instead of turning grey. */ sinks into the theme instead of turning grey. */
--backdrop: rgba(2, 10, 18, 0.75); --backdrop: rgba(2, 10, 18, 0.75);
/* Darker than --bg so the white page is the brightest thing on screen */
--desk: #01070d;
--desk-text: #6e9caf;
--header-bg: linear-gradient(180deg, #0a2336 0%, #04121e 100%); --header-bg: linear-gradient(180deg, #0a2336 0%, #04121e 100%);
--header-text: #d9f6ff; --header-text: #d9f6ff;
--header-chrome: rgba(0, 217, 255, 0.10); --header-chrome: rgba(0, 217, 255, 0.10);