figrecipe 0.7.4__py3-none-any.whl → 0.9.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- figrecipe/__init__.py +74 -76
- figrecipe/__main__.py +12 -0
- figrecipe/_api/_panel.py +67 -0
- figrecipe/_api/_save.py +100 -4
- figrecipe/_cli/__init__.py +7 -0
- figrecipe/_cli/_compose.py +87 -0
- figrecipe/_cli/_convert.py +117 -0
- figrecipe/_cli/_crop.py +82 -0
- figrecipe/_cli/_edit.py +70 -0
- figrecipe/_cli/_extract.py +128 -0
- figrecipe/_cli/_fonts.py +47 -0
- figrecipe/_cli/_info.py +67 -0
- figrecipe/_cli/_main.py +58 -0
- figrecipe/_cli/_reproduce.py +79 -0
- figrecipe/_cli/_style.py +77 -0
- figrecipe/_cli/_validate.py +66 -0
- figrecipe/_cli/_version.py +50 -0
- figrecipe/_composition/__init__.py +32 -0
- figrecipe/_composition/_alignment.py +452 -0
- figrecipe/_composition/_compose.py +179 -0
- figrecipe/_composition/_import_axes.py +127 -0
- figrecipe/_composition/_visibility.py +125 -0
- figrecipe/_dev/__init__.py +2 -0
- figrecipe/_dev/browser/__init__.py +69 -0
- figrecipe/_dev/browser/_audio.py +240 -0
- figrecipe/_dev/browser/_caption.py +356 -0
- figrecipe/_dev/browser/_click_effect.py +146 -0
- figrecipe/_dev/browser/_cursor.py +196 -0
- figrecipe/_dev/browser/_highlight.py +105 -0
- figrecipe/_dev/browser/_narration.py +237 -0
- figrecipe/_dev/browser/_recorder.py +446 -0
- figrecipe/_dev/browser/_utils.py +178 -0
- figrecipe/_dev/browser/_video_trim/__init__.py +152 -0
- figrecipe/_dev/browser/_video_trim/_detection.py +223 -0
- figrecipe/_dev/browser/_video_trim/_markers.py +140 -0
- figrecipe/_editor/__init__.py +36 -36
- figrecipe/_editor/_bbox/_extract.py +155 -9
- figrecipe/_editor/_bbox/_extract_text.py +124 -0
- figrecipe/_editor/_call_overrides.py +183 -0
- figrecipe/_editor/_datatable_plot_handlers.py +249 -0
- figrecipe/_editor/_figure_layout.py +211 -0
- figrecipe/_editor/_flask_app.py +157 -16
- figrecipe/_editor/_helpers.py +17 -8
- figrecipe/_editor/_hitmap/_detect.py +89 -32
- figrecipe/_editor/_hitmap_main.py +4 -4
- figrecipe/_editor/_overrides.py +4 -1
- figrecipe/_editor/_plot_types_registry.py +190 -0
- figrecipe/_editor/_render_overrides.py +38 -11
- figrecipe/_editor/_renderer.py +46 -1
- figrecipe/_editor/_routes_annotation.py +114 -0
- figrecipe/_editor/_routes_axis.py +35 -6
- figrecipe/_editor/_routes_captions.py +130 -0
- figrecipe/_editor/_routes_composition.py +270 -0
- figrecipe/_editor/_routes_core.py +15 -173
- figrecipe/_editor/_routes_datatable.py +364 -0
- figrecipe/_editor/_routes_element.py +37 -19
- figrecipe/_editor/_routes_files.py +443 -0
- figrecipe/_editor/_routes_image.py +200 -0
- figrecipe/_editor/_routes_snapshot.py +94 -0
- figrecipe/_editor/_routes_style.py +28 -8
- figrecipe/_editor/_templates/__init__.py +40 -2
- figrecipe/_editor/_templates/_html.py +97 -103
- figrecipe/_editor/_templates/_html_components/__init__.py +13 -0
- figrecipe/_editor/_templates/_html_components/_composition_toolbar.py +79 -0
- figrecipe/_editor/_templates/_html_components/_file_browser.py +41 -0
- figrecipe/_editor/_templates/_html_datatable.py +92 -0
- figrecipe/_editor/_templates/_scripts/__init__.py +58 -0
- figrecipe/_editor/_templates/_scripts/_accordion.py +328 -0
- figrecipe/_editor/_templates/_scripts/_annotation_drag.py +504 -0
- figrecipe/_editor/_templates/_scripts/_api.py +1 -1
- figrecipe/_editor/_templates/_scripts/_canvas_context_menu.py +182 -0
- figrecipe/_editor/_templates/_scripts/_captions.py +231 -0
- figrecipe/_editor/_templates/_scripts/_composition.py +283 -0
- figrecipe/_editor/_templates/_scripts/_core.py +94 -37
- figrecipe/_editor/_templates/_scripts/_datatable/__init__.py +59 -0
- figrecipe/_editor/_templates/_scripts/_datatable/_cell_edit.py +97 -0
- figrecipe/_editor/_templates/_scripts/_datatable/_clipboard.py +164 -0
- figrecipe/_editor/_templates/_scripts/_datatable/_context_menu.py +221 -0
- figrecipe/_editor/_templates/_scripts/_datatable/_core.py +150 -0
- figrecipe/_editor/_templates/_scripts/_datatable/_editable.py +511 -0
- figrecipe/_editor/_templates/_scripts/_datatable/_import.py +161 -0
- figrecipe/_editor/_templates/_scripts/_datatable/_plot.py +261 -0
- figrecipe/_editor/_templates/_scripts/_datatable/_selection.py +438 -0
- figrecipe/_editor/_templates/_scripts/_datatable/_table.py +256 -0
- figrecipe/_editor/_templates/_scripts/_datatable/_tabs.py +354 -0
- figrecipe/_editor/_templates/_scripts/_element_editor.py +17 -2
- figrecipe/_editor/_templates/_scripts/_files.py +274 -40
- figrecipe/_editor/_templates/_scripts/_files_context_menu.py +240 -0
- figrecipe/_editor/_templates/_scripts/_hitmap.py +87 -84
- figrecipe/_editor/_templates/_scripts/_image_drop.py +428 -0
- figrecipe/_editor/_templates/_scripts/_legend_drag.py +5 -0
- figrecipe/_editor/_templates/_scripts/_multi_select.py +198 -0
- figrecipe/_editor/_templates/_scripts/_panel_drag.py +219 -48
- figrecipe/_editor/_templates/_scripts/_panel_drag_snapshot.py +33 -0
- figrecipe/_editor/_templates/_scripts/_panel_position.py +238 -54
- figrecipe/_editor/_templates/_scripts/_panel_resize.py +230 -0
- figrecipe/_editor/_templates/_scripts/_panel_snap.py +307 -0
- figrecipe/_editor/_templates/_scripts/_region_select.py +255 -0
- figrecipe/_editor/_templates/_scripts/_selection.py +8 -1
- figrecipe/_editor/_templates/_scripts/_sync.py +242 -0
- figrecipe/_editor/_templates/_scripts/_undo_redo.py +348 -0
- figrecipe/_editor/_templates/_scripts/_zoom.py +52 -19
- figrecipe/_editor/_templates/_styles/__init__.py +9 -0
- figrecipe/_editor/_templates/_styles/_base.py +47 -0
- figrecipe/_editor/_templates/_styles/_buttons.py +127 -6
- figrecipe/_editor/_templates/_styles/_composition.py +87 -0
- figrecipe/_editor/_templates/_styles/_controls.py +168 -3
- figrecipe/_editor/_templates/_styles/_datatable/__init__.py +40 -0
- figrecipe/_editor/_templates/_styles/_datatable/_editable.py +203 -0
- figrecipe/_editor/_templates/_styles/_datatable/_panel.py +268 -0
- figrecipe/_editor/_templates/_styles/_datatable/_table.py +479 -0
- figrecipe/_editor/_templates/_styles/_datatable/_toolbar.py +384 -0
- figrecipe/_editor/_templates/_styles/_datatable/_vars.py +123 -0
- figrecipe/_editor/_templates/_styles/_dynamic_props.py +5 -5
- figrecipe/_editor/_templates/_styles/_file_browser.py +466 -0
- figrecipe/_editor/_templates/_styles/_forms.py +98 -0
- figrecipe/_editor/_templates/_styles/_hitmap.py +7 -0
- figrecipe/_editor/_templates/_styles/_modals.py +29 -0
- figrecipe/_editor/_templates/_styles/_overlays.py +5 -5
- figrecipe/_editor/_templates/_styles/_preview.py +213 -8
- figrecipe/_editor/_templates/_styles/_spinner.py +117 -0
- figrecipe/_editor/static/audio/click.mp3 +0 -0
- figrecipe/_editor/static/click.mp3 +0 -0
- figrecipe/_editor/static/icons/favicon.ico +0 -0
- figrecipe/_integrations/__init__.py +17 -0
- figrecipe/_integrations/_scitex_stats.py +298 -0
- figrecipe/_params/_DECORATION_METHODS.py +2 -0
- figrecipe/_recorder.py +28 -3
- figrecipe/_reproducer/_core.py +60 -49
- figrecipe/_utils/__init__.py +3 -0
- figrecipe/_utils/_bundle.py +205 -0
- figrecipe/_wrappers/_axes.py +150 -2
- figrecipe/_wrappers/_caption_generator.py +218 -0
- figrecipe/_wrappers/_figure.py +26 -1
- figrecipe/_wrappers/_stat_annotation.py +274 -0
- figrecipe/styles/_style_applier.py +10 -2
- figrecipe/styles/presets/SCITEX.yaml +11 -4
- {figrecipe-0.7.4.dist-info → figrecipe-0.9.0.dist-info}/METADATA +144 -146
- figrecipe-0.9.0.dist-info/RECORD +277 -0
- figrecipe-0.9.0.dist-info/entry_points.txt +2 -0
- figrecipe-0.7.4.dist-info/RECORD +0 -188
- {figrecipe-0.7.4.dist-info → figrecipe-0.9.0.dist-info}/WHEEL +0 -0
- {figrecipe-0.7.4.dist-info → figrecipe-0.9.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,466 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
"""File browser panel CSS styles for the figure editor.
|
|
4
|
+
|
|
5
|
+
This module contains CSS for:
|
|
6
|
+
- File browser panel and header
|
|
7
|
+
- File tree structure
|
|
8
|
+
- File items and icons
|
|
9
|
+
- Collapse/expand functionality
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
STYLES_FILE_BROWSER = """
|
|
13
|
+
/* File Browser Panel */
|
|
14
|
+
.file-browser-panel {
|
|
15
|
+
width: 200px;
|
|
16
|
+
min-width: 160px;
|
|
17
|
+
max-width: 280px;
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
background: var(--bg-secondary);
|
|
21
|
+
border-right: 1px solid var(--border-color);
|
|
22
|
+
transition: width 0.2s ease-out;
|
|
23
|
+
position: relative;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.file-browser-panel.collapsed {
|
|
27
|
+
width: 36px;
|
|
28
|
+
min-width: 36px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.file-browser-header {
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
justify-content: space-between;
|
|
35
|
+
padding: 0 10px;
|
|
36
|
+
height: var(--panel-header-height);
|
|
37
|
+
min-height: var(--panel-header-height);
|
|
38
|
+
background: var(--panel-header-bg);
|
|
39
|
+
border-bottom: 1px solid var(--border-color);
|
|
40
|
+
font-size: 11px;
|
|
41
|
+
font-weight: 600;
|
|
42
|
+
text-transform: uppercase;
|
|
43
|
+
letter-spacing: 0.5px;
|
|
44
|
+
color: var(--text-secondary);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.file-browser-header .header-title {
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
gap: 6px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.file-browser-header .btn-collapse {
|
|
54
|
+
width: 24px;
|
|
55
|
+
height: 24px;
|
|
56
|
+
padding: 0;
|
|
57
|
+
border: none;
|
|
58
|
+
background: transparent;
|
|
59
|
+
color: var(--text-secondary);
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
font-size: 14px;
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
justify-content: center;
|
|
65
|
+
border-radius: 4px;
|
|
66
|
+
transition: all 0.2s;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.file-browser-header .btn-collapse:hover {
|
|
70
|
+
background: var(--bg-primary);
|
|
71
|
+
color: var(--text-primary);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.file-browser-panel.collapsed .file-browser-header {
|
|
75
|
+
padding: 10px 6px;
|
|
76
|
+
justify-content: center;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.file-browser-panel.collapsed .header-title {
|
|
80
|
+
justify-content: center;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.file-browser-panel.collapsed .header-title span {
|
|
84
|
+
display: none;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.file-browser-actions {
|
|
88
|
+
display: flex;
|
|
89
|
+
gap: 4px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.file-browser-panel.collapsed .file-browser-actions {
|
|
93
|
+
display: flex;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.file-browser-panel.collapsed .file-browser-actions button:not(.btn-collapse) {
|
|
97
|
+
display: none;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* Flip collapse button when collapsed (now points right to expand) */
|
|
101
|
+
.file-browser-panel.collapsed .btn-collapse {
|
|
102
|
+
display: flex;
|
|
103
|
+
transform: rotate(180deg);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.file-browser-actions button {
|
|
107
|
+
width: 24px;
|
|
108
|
+
height: 24px;
|
|
109
|
+
padding: 0;
|
|
110
|
+
font-size: 14px;
|
|
111
|
+
border: none;
|
|
112
|
+
border-radius: 4px;
|
|
113
|
+
background: transparent;
|
|
114
|
+
color: var(--text-secondary);
|
|
115
|
+
cursor: pointer;
|
|
116
|
+
display: flex;
|
|
117
|
+
align-items: center;
|
|
118
|
+
justify-content: center;
|
|
119
|
+
transition: all 0.2s;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.file-browser-actions button:hover {
|
|
123
|
+
background: var(--bg-primary);
|
|
124
|
+
color: var(--accent-color);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.file-browser-actions button.btn-new-file:hover {
|
|
128
|
+
color: var(--success-color);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/* File Tree Container */
|
|
132
|
+
.file-tree-container {
|
|
133
|
+
flex: 1;
|
|
134
|
+
overflow-y: auto;
|
|
135
|
+
overflow-x: hidden;
|
|
136
|
+
padding: 8px 0;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.file-browser-panel.collapsed .file-tree-container {
|
|
140
|
+
display: none;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* File Tree */
|
|
144
|
+
.file-tree {
|
|
145
|
+
list-style: none;
|
|
146
|
+
margin: 0;
|
|
147
|
+
padding: 0;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.file-tree-item {
|
|
151
|
+
margin: 0;
|
|
152
|
+
padding: 0;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.file-tree-entry {
|
|
156
|
+
display: flex;
|
|
157
|
+
align-items: center;
|
|
158
|
+
gap: 8px;
|
|
159
|
+
padding: 7px 12px;
|
|
160
|
+
cursor: pointer;
|
|
161
|
+
color: var(--text-primary);
|
|
162
|
+
font-size: 12px;
|
|
163
|
+
border-left: 3px solid transparent;
|
|
164
|
+
transition: all 0.12s ease-out;
|
|
165
|
+
user-select: none;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.file-tree-entry:hover {
|
|
169
|
+
background: var(--bg-tertiary);
|
|
170
|
+
border-left-color: var(--border-color);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.file-tree-entry.selected {
|
|
174
|
+
background: var(--selection-color);
|
|
175
|
+
border-left-color: var(--accent-color);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.file-tree-entry.current {
|
|
179
|
+
background: var(--selection-color);
|
|
180
|
+
border-left-color: var(--accent-color);
|
|
181
|
+
font-weight: 600;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.file-tree-entry.current .file-tree-name {
|
|
185
|
+
color: var(--accent-color);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.file-tree-icon {
|
|
189
|
+
width: 16px;
|
|
190
|
+
height: 16px;
|
|
191
|
+
font-size: 14px;
|
|
192
|
+
flex-shrink: 0;
|
|
193
|
+
display: flex;
|
|
194
|
+
align-items: center;
|
|
195
|
+
justify-content: center;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.file-tree-name {
|
|
199
|
+
flex: 1;
|
|
200
|
+
overflow: hidden;
|
|
201
|
+
text-overflow: ellipsis;
|
|
202
|
+
white-space: nowrap;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.file-tree-badge {
|
|
206
|
+
font-size: 9px;
|
|
207
|
+
padding: 2px 5px;
|
|
208
|
+
border-radius: 3px;
|
|
209
|
+
background: var(--bg-tertiary);
|
|
210
|
+
color: var(--text-secondary);
|
|
211
|
+
flex-shrink: 0;
|
|
212
|
+
font-weight: 500;
|
|
213
|
+
letter-spacing: 0.3px;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.file-tree-entry.has-image .file-tree-badge {
|
|
217
|
+
background: var(--success-color);
|
|
218
|
+
color: white;
|
|
219
|
+
opacity: 0.9;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/* File action buttons (rename, delete) */
|
|
223
|
+
.file-tree-actions {
|
|
224
|
+
display: none;
|
|
225
|
+
gap: 2px;
|
|
226
|
+
margin-left: auto;
|
|
227
|
+
flex-shrink: 0;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.file-tree-entry:hover .file-tree-actions {
|
|
231
|
+
display: flex;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.file-action-btn {
|
|
235
|
+
width: 20px;
|
|
236
|
+
height: 20px;
|
|
237
|
+
padding: 0;
|
|
238
|
+
border: none;
|
|
239
|
+
background: transparent;
|
|
240
|
+
cursor: pointer;
|
|
241
|
+
font-size: 11px;
|
|
242
|
+
border-radius: 3px;
|
|
243
|
+
opacity: 0.6;
|
|
244
|
+
transition: all 0.15s;
|
|
245
|
+
display: flex;
|
|
246
|
+
align-items: center;
|
|
247
|
+
justify-content: center;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.file-action-btn:hover {
|
|
251
|
+
opacity: 1;
|
|
252
|
+
background: var(--bg-primary);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.file-action-btn.btn-delete:hover {
|
|
256
|
+
background: rgba(239, 68, 68, 0.2);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.file-action-btn.btn-rename:hover {
|
|
260
|
+
background: rgba(59, 130, 246, 0.2);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/* Folder items */
|
|
264
|
+
.file-tree-folder > .file-tree-entry {
|
|
265
|
+
font-weight: 500;
|
|
266
|
+
cursor: pointer;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.file-tree-folder > .file-tree-entry:hover {
|
|
270
|
+
background: var(--bg-tertiary);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/* Folder chevron indicator */
|
|
274
|
+
.file-tree-folder > .file-tree-entry .file-tree-icon {
|
|
275
|
+
position: relative;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.file-tree-folder > .file-tree-entry .file-tree-icon::before {
|
|
279
|
+
content: "";
|
|
280
|
+
display: inline-block;
|
|
281
|
+
width: 0;
|
|
282
|
+
height: 0;
|
|
283
|
+
border-left: 5px solid var(--text-secondary);
|
|
284
|
+
border-top: 4px solid transparent;
|
|
285
|
+
border-bottom: 4px solid transparent;
|
|
286
|
+
position: absolute;
|
|
287
|
+
left: -10px;
|
|
288
|
+
top: 50%;
|
|
289
|
+
transform: translateY(-50%);
|
|
290
|
+
transition: transform 0.15s ease;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.file-tree-folder.expanded > .file-tree-entry .file-tree-icon::before {
|
|
294
|
+
transform: translateY(-50%) rotate(90deg);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/* Folder badge (item count) */
|
|
298
|
+
.file-tree-badge.folder-badge {
|
|
299
|
+
background: var(--bg-primary);
|
|
300
|
+
color: var(--text-secondary);
|
|
301
|
+
font-size: 9px;
|
|
302
|
+
min-width: 16px;
|
|
303
|
+
text-align: center;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/* File tree children container */
|
|
307
|
+
.file-tree-children {
|
|
308
|
+
list-style: none;
|
|
309
|
+
margin: 0;
|
|
310
|
+
padding: 0;
|
|
311
|
+
display: none;
|
|
312
|
+
overflow: hidden;
|
|
313
|
+
transition: max-height 0.2s ease-out;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.file-tree-folder.expanded > .file-tree-children {
|
|
317
|
+
display: block;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/* Tree indentation guide lines */
|
|
321
|
+
.file-tree-folder > .file-tree-children {
|
|
322
|
+
position: relative;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.file-tree-folder > .file-tree-children::before {
|
|
326
|
+
content: "";
|
|
327
|
+
position: absolute;
|
|
328
|
+
left: 18px;
|
|
329
|
+
top: 0;
|
|
330
|
+
bottom: 8px;
|
|
331
|
+
width: 1px;
|
|
332
|
+
background: var(--border-color);
|
|
333
|
+
opacity: 0.5;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/* Empty state */
|
|
337
|
+
.file-tree-empty {
|
|
338
|
+
padding: 24px 16px;
|
|
339
|
+
text-align: center;
|
|
340
|
+
color: var(--text-secondary);
|
|
341
|
+
font-size: 11px;
|
|
342
|
+
line-height: 1.5;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.file-tree-empty p {
|
|
346
|
+
margin: 6px 0;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.file-tree-empty p:first-child {
|
|
350
|
+
font-size: 12px;
|
|
351
|
+
color: var(--text-primary);
|
|
352
|
+
opacity: 0.7;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/* Scrollbar styling */
|
|
356
|
+
.file-tree-container::-webkit-scrollbar {
|
|
357
|
+
width: 6px;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.file-tree-container::-webkit-scrollbar-track {
|
|
361
|
+
background: transparent;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.file-tree-container::-webkit-scrollbar-thumb {
|
|
365
|
+
background: var(--border-color);
|
|
366
|
+
border-radius: 3px;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.file-tree-container::-webkit-scrollbar-thumb:hover {
|
|
370
|
+
background: var(--text-secondary);
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
/* Resize handle */
|
|
374
|
+
.file-browser-resize {
|
|
375
|
+
width: 4px;
|
|
376
|
+
cursor: col-resize;
|
|
377
|
+
background: transparent;
|
|
378
|
+
position: absolute;
|
|
379
|
+
right: 0;
|
|
380
|
+
top: 0;
|
|
381
|
+
bottom: 0;
|
|
382
|
+
z-index: 10;
|
|
383
|
+
transition: background 0.2s;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.file-browser-resize:hover,
|
|
387
|
+
.file-browser-resize.resizing {
|
|
388
|
+
background: var(--accent-color);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
/* File Browser Footer - Brand Info */
|
|
392
|
+
.file-browser-footer {
|
|
393
|
+
padding: 10px 12px;
|
|
394
|
+
border-top: 1px solid var(--border-color);
|
|
395
|
+
background: var(--bg-secondary);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.brand-link {
|
|
399
|
+
display: flex;
|
|
400
|
+
align-items: center;
|
|
401
|
+
gap: 8px;
|
|
402
|
+
text-decoration: none;
|
|
403
|
+
color: var(--text-secondary);
|
|
404
|
+
transition: all 0.15s;
|
|
405
|
+
padding: 4px;
|
|
406
|
+
border-radius: 4px;
|
|
407
|
+
margin: -4px;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
.brand-link:hover {
|
|
411
|
+
background: var(--bg-tertiary);
|
|
412
|
+
color: var(--text-primary);
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
.brand-icon {
|
|
416
|
+
width: 28px;
|
|
417
|
+
height: 28px;
|
|
418
|
+
flex-shrink: 0;
|
|
419
|
+
opacity: 0.8;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.brand-link:hover .brand-icon {
|
|
423
|
+
opacity: 1;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.brand-info {
|
|
427
|
+
display: flex;
|
|
428
|
+
flex-direction: column;
|
|
429
|
+
gap: 1px;
|
|
430
|
+
overflow: hidden;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.brand-name {
|
|
434
|
+
font-size: 11px;
|
|
435
|
+
font-weight: 600;
|
|
436
|
+
color: var(--text-primary);
|
|
437
|
+
white-space: nowrap;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.brand-version {
|
|
441
|
+
font-size: 9px;
|
|
442
|
+
color: var(--text-secondary);
|
|
443
|
+
white-space: nowrap;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.brand-meta {
|
|
447
|
+
margin-top: 6px;
|
|
448
|
+
padding-top: 6px;
|
|
449
|
+
border-top: 1px solid var(--border-color);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
.server-time {
|
|
453
|
+
font-size: 9px;
|
|
454
|
+
color: var(--text-tertiary);
|
|
455
|
+
font-family: monospace;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
/* Hide footer when collapsed */
|
|
459
|
+
.file-browser-panel.collapsed .file-browser-footer {
|
|
460
|
+
display: none;
|
|
461
|
+
}
|
|
462
|
+
"""
|
|
463
|
+
|
|
464
|
+
__all__ = ["STYLES_FILE_BROWSER"]
|
|
465
|
+
|
|
466
|
+
# EOF
|
|
@@ -53,6 +53,8 @@ STYLES_FORMS = """
|
|
|
53
53
|
background: var(--bg-primary);
|
|
54
54
|
color: var(--text-primary);
|
|
55
55
|
font-size: 13px;
|
|
56
|
+
min-width: 0; /* Allow shrinking below content size */
|
|
57
|
+
max-width: calc(100% - 130px); /* Leave space for label + margin */
|
|
56
58
|
}
|
|
57
59
|
|
|
58
60
|
.form-row input[type="number"]:focus,
|
|
@@ -119,6 +121,102 @@ STYLES_FORMS = """
|
|
|
119
121
|
.form-grid .form-row label {
|
|
120
122
|
flex: 0 0 60px;
|
|
121
123
|
}
|
|
124
|
+
|
|
125
|
+
/* Spine visibility grid - 2x2 layout */
|
|
126
|
+
.spine-visibility-grid {
|
|
127
|
+
display: grid;
|
|
128
|
+
grid-template-columns: 1fr 1fr;
|
|
129
|
+
gap: 4px 12px;
|
|
130
|
+
margin: 8px 0;
|
|
131
|
+
padding: 8px;
|
|
132
|
+
background: var(--bg-secondary);
|
|
133
|
+
border-radius: 6px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.spine-visibility-grid .form-row {
|
|
137
|
+
margin-bottom: 0;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.spine-visibility-grid .form-row label {
|
|
141
|
+
flex: 0 0 80px;
|
|
142
|
+
font-size: 12px;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/* Caption textarea styling */
|
|
146
|
+
.caption-textarea {
|
|
147
|
+
flex: 1;
|
|
148
|
+
padding: 8px;
|
|
149
|
+
border: 1px solid var(--border-color);
|
|
150
|
+
border-radius: 4px;
|
|
151
|
+
background: var(--bg-primary);
|
|
152
|
+
color: var(--text-primary);
|
|
153
|
+
font-size: 12px;
|
|
154
|
+
font-family: inherit;
|
|
155
|
+
resize: vertical;
|
|
156
|
+
min-height: 40px;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.caption-textarea:focus {
|
|
160
|
+
outline: none;
|
|
161
|
+
border-color: var(--accent-color);
|
|
162
|
+
box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.caption-row {
|
|
166
|
+
align-items: flex-start !important;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.caption-row label {
|
|
170
|
+
padding-top: 8px;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.caption-preview {
|
|
174
|
+
font-size: 11px;
|
|
175
|
+
font-style: italic;
|
|
176
|
+
color: var(--text-secondary);
|
|
177
|
+
margin-top: 4px;
|
|
178
|
+
padding: 4px 8px;
|
|
179
|
+
background: var(--bg-secondary);
|
|
180
|
+
border-radius: 4px;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.caption-preview span {
|
|
184
|
+
color: var(--text-primary);
|
|
185
|
+
font-weight: 500;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/* Composed caption preview */
|
|
189
|
+
.composed-caption-preview {
|
|
190
|
+
margin-top: 12px;
|
|
191
|
+
padding: 10px;
|
|
192
|
+
background: var(--bg-secondary);
|
|
193
|
+
border: 1px solid var(--border-color);
|
|
194
|
+
border-radius: 6px;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.composed-caption-label {
|
|
198
|
+
font-size: 11px;
|
|
199
|
+
font-weight: 600;
|
|
200
|
+
color: var(--text-secondary);
|
|
201
|
+
margin-bottom: 6px;
|
|
202
|
+
text-transform: uppercase;
|
|
203
|
+
letter-spacing: 0.5px;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.composed-caption-text {
|
|
207
|
+
font-size: 12px;
|
|
208
|
+
line-height: 1.5;
|
|
209
|
+
color: var(--text-primary);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.composed-caption-text b {
|
|
213
|
+
font-weight: 600;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.composed-caption-text .panel-caption {
|
|
217
|
+
color: var(--text-secondary);
|
|
218
|
+
margin-left: 4px;
|
|
219
|
+
}
|
|
122
220
|
"""
|
|
123
221
|
|
|
124
222
|
__all__ = ["STYLES_FORMS"]
|
|
@@ -65,6 +65,13 @@ STYLES_HITMAP = """
|
|
|
65
65
|
filter: none;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
+
/* Axes regions: disable pointer events to let clicks pass through to
|
|
69
|
+
elements inside (pie, scatter, bar, etc.). Axes selection happens via
|
|
70
|
+
the panel drag system which uses mousedown on the preview area. */
|
|
71
|
+
.hitregion-rect.axes-region {
|
|
72
|
+
pointer-events: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
68
75
|
.hitregion-polyline {
|
|
69
76
|
--element-color: #888888; /* Default fallback */
|
|
70
77
|
fill: none !important;
|
|
@@ -91,6 +91,35 @@ kbd {
|
|
|
91
91
|
background: var(--bg-tertiary);
|
|
92
92
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
|
|
93
93
|
}
|
|
94
|
+
|
|
95
|
+
/* Debug shortcuts section */
|
|
96
|
+
.debug-shortcuts {
|
|
97
|
+
border: 1px dashed #f59e0b;
|
|
98
|
+
border-radius: 6px;
|
|
99
|
+
padding: 12px;
|
|
100
|
+
background: rgba(245, 158, 11, 0.05);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.debug-shortcuts h4 {
|
|
104
|
+
color: #f59e0b;
|
|
105
|
+
border-bottom-color: #f59e0b;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.debug-badge {
|
|
109
|
+
font-size: 9px;
|
|
110
|
+
font-weight: 600;
|
|
111
|
+
background: #f59e0b;
|
|
112
|
+
color: #000;
|
|
113
|
+
padding: 2px 6px;
|
|
114
|
+
border-radius: 3px;
|
|
115
|
+
margin-left: 8px;
|
|
116
|
+
vertical-align: middle;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/* Shortcuts button in toolbar */
|
|
120
|
+
.btn-shortcuts {
|
|
121
|
+
font-size: 16px;
|
|
122
|
+
}
|
|
94
123
|
"""
|
|
95
124
|
|
|
96
125
|
__all__ = ["STYLES_MODALS"]
|
|
@@ -31,7 +31,7 @@ STYLES_OVERLAYS = """
|
|
|
31
31
|
width: 100%;
|
|
32
32
|
height: 100%;
|
|
33
33
|
pointer-events: none;
|
|
34
|
-
z-index:
|
|
34
|
+
z-index: 15; /* Above hitregion-overlay (z-index: 10) */
|
|
35
35
|
display: none;
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -96,13 +96,13 @@ STYLES_OVERLAYS = """
|
|
|
96
96
|
|
|
97
97
|
/* Column guide styles */
|
|
98
98
|
.column-line {
|
|
99
|
-
stroke: #
|
|
99
|
+
stroke: #2e8b57;
|
|
100
100
|
stroke-width: 2;
|
|
101
101
|
stroke-dasharray: 8, 4;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
.column-text {
|
|
105
|
-
fill: #
|
|
105
|
+
fill: #2e8b57;
|
|
106
106
|
font-size: 12px;
|
|
107
107
|
font-family: monospace;
|
|
108
108
|
font-weight: bold;
|
|
@@ -113,11 +113,11 @@ STYLES_OVERLAYS = """
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
[data-theme="dark"] .column-line {
|
|
116
|
-
stroke: #
|
|
116
|
+
stroke: #66c68a;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
[data-theme="dark"] .column-text {
|
|
120
|
-
fill: #
|
|
120
|
+
fill: #66c68a;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
[data-theme="dark"] .column-bg {
|