summaryrefslogtreecommitdiff
path: root/tools/mq_editor/style.css
blob: ed518f505e1667d8ca942c5ce2025de5ef8f12e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/* MQ Spectral Editor */

/* === Base === */
body { font-family: monospace; font-size: 14px; margin: 20px; background: #1a1a1a; color: #ddd; }
label { margin-right: 4px; }
input[type="number"], select { width: 80px; background: #3a3a3a; color: #ddd; border: 1px solid #555; padding: 4px; border-radius: 3px; }
input[type="file"] { display: none; }

/* === Layout === */
.page-title { display: flex; align-items: baseline; gap: 16px; margin-bottom: 10px; }
.page-title h2 { margin: 0; }
.main-area { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; }
.canvas-col { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.canvas-wrap { position: relative; }

/* === Toolbar === */
.toolbar { margin-bottom: 10px; padding: 10px; background: #2a2a2a; border-radius: 4px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.toolbar-group { display: inline-flex; align-items: center; gap: 2px; }
.toolbar-group button { margin-right: 0; }
.toolbar-sep { align-self: stretch; width: 1px; background: #555; margin: 3px 6px; }
.toolbar-wrap { position: relative; display: inline-block; }

/* === Buttons === */
button { background: #3a3a3a; color: #ddd; border: 1px solid #555; padding: 8px 16px; margin-right: 8px; cursor: pointer; border-radius: 4px; }
button:hover { background: #4a4a4a; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
#extractBtn { background: #666; color: #fff; font-weight: bold; border-color: #888; }
button.explore-active { background: #554; border-color: #aa8; color: #ffd; }
button.contour-active { background: #145; border-color: #0cc; color: #aff; }

/* === Params dropdown === */
#paramsPanel { display: none; position: absolute; z-index: 200; top: 100%; left: 0; margin-top: 4px; background: #222; border: 1px solid #555; border-radius: 4px; padding: 6px 0; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,.5); }
#paramsPanel.open { display: block; }
#paramsBtn.params-open { background: #4a4a4a; border-color: #888; }
.param-group { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; padding: 8px 14px; border-bottom: 1px solid #333; align-items: center; }
.param-group:last-child { border-bottom: none; }
.group-label { grid-column: 1 / -1; font-size: 9px; color: #666; text-transform: uppercase; letter-spacing: 1px; }

/* === Canvas & overlays === */
#canvas { border: 1px solid #555; background: #000; cursor: crosshair; display: block; flex-shrink: 0; }
#cursorCanvas, #playheadCanvas { position: absolute; top: 0; left: 0; pointer-events: none; }
#spectrumViewer { position: absolute; bottom: 10px; right: 10px; width: 400px; height: 100px; background: rgba(30,30,30,.9); border: 1px solid #555; border-radius: 3px; pointer-events: none; }
#keepOverlay { position: absolute; bottom: 10px; left: 10px; background: rgba(30,30,30,.88); border: 1px solid #555; border-radius: 3px; padding: 4px 8px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: #aaa; user-select: none; }
#keepOverlay input[type="range"] { width: 90px; }

/* === Amp edit panel === */
#ampEditPanel { display: none; }
.amp-edit-header { font-size: 10px; color: #555; padding: 2px 0 3px 1px; display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .5px; }
#ampEditTitle { color: #777; text-transform: none; letter-spacing: 0; }
.amp-edit-hint { color: #333; text-transform: none; letter-spacing: 0; }
#ampEditCanvas { border: 1px solid #2a2a2a; background: #0e0e0e; cursor: crosshair; display: block; }

/* === Right panel === */
.right-panel { background: #2a2a2a; border: 1px solid #555; border-radius: 4px; padding: 12px; min-width: 260px; max-width: 260px; max-height: 700px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; box-sizing: border-box; }
.panel-title { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid #444; padding-bottom: 6px; margin-bottom: 2px; display: flex; align-items: center; gap: 6px; }
.right-panel label { display: flex; align-items: center; gap: 6px; margin: 0; cursor: pointer; font-size: 14px; }
.right-panel label input[type="range"] { flex: 1; min-width: 0; }
#noSelMsg { color: #555; font-size: 13px; padding: 2px 0; }

/* === Partial properties === */
.prop-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; padding: 2px 0; }
.prop-label { color: #777; font-size: 12px; }
#propSwatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.partial-actions { display: flex; gap: 4px; margin-top: 8px; }
.partial-actions button { flex: 1; padding: 4px 6px; font-size: 12px; margin: 0; }
kbd { font-size: 10px; opacity: 0.55; }

/* === Curve tabs & grid === */
.curve-tabs { display: flex; gap: 2px; margin-top: 8px; margin-bottom: 4px; }
.tab-btn { flex: 1; padding: 4px 0; font-size: 12px; margin: 0; background: #222; border-color: #444; color: #888; }
.tab-btn.active { background: #3a3a3a; border-color: #666; color: #ddd; }
.curve-grid { display: grid; grid-template-columns: 18px 1fr 1fr; gap: 3px 4px; align-items: center; }
.curve-grid span { color: #666; font-size: 11px; }
.curve-grid input[type="number"],
.synth-field-wrap input[type="number"] { width: 100%; background: #333; color: #ccc; border: 1px solid #444; padding: 2px 4px; border-radius: 2px; font-size: 11px; font-family: monospace; box-sizing: border-box; }
.curve-grid input[type="number"]:focus,
.synth-field-wrap input[type="number"]:focus,
.synth-grid input[type="number"]:focus { border-color: #666; outline: none; }

/* === Synth section === */
.synth-section { border-top: 1px solid #444; padding-top: 8px; margin-top: auto; }
.synth-grid { display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; align-items: center; }
.synth-grid span { color: #888; font-size: 12px; }
.synth-field-wrap { display: flex; align-items: center; gap: 4px; }
#globalResParams { margin-top: 4px; padding: 4px 0 2px 12px; border-left: 2px solid #555; }
.slider-val { width: 44px; text-align: right; }

/* === Jog slider === */
.jog-slider { width: 44px; height: 16px; background: #1e1e1e; border: 1px solid #444; border-radius: 3px; cursor: ew-resize; position: relative; flex-shrink: 0; user-select: none; overflow: hidden; }
.jog-slider::before { content: ''; position: absolute; left: 50%; top: 3px; bottom: 3px; width: 1px; background: #484848; transform: translateX(-50%); }
.jog-thumb { position: absolute; top: 3px; bottom: 3px; width: 6px; background: #888; border-radius: 2px; left: calc(50% - 3px); transition: left .12s ease; }
.jog-slider:hover .jog-thumb { background: #aaa; }

/* === Resonator badge === */
.res-badge { font-size: 9px; color: #8cf; border: 1px solid #8cf; border-radius: 2px; padding: 0 3px; vertical-align: middle; margin-left: 4px; opacity: .8; }

/* === Status & tooltip === */
#fileLabel { font-size: 13px; color: #8af; opacity: .8; }
#status { margin-top: 10px; padding: 8px; background: #2a2a2a; border-radius: 4px; min-height: 20px; }
.info { color: #4af; }
.warn { color: #fa4; }
.error { color: #f44; }
#tooltip { position: fixed; display: none; background: #2a2a2a; padding: 4px 8px; border: 1px solid #555; border-radius: 3px; pointer-events: none; font-size: 11px; z-index: 1000; }