-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlayout-fixes.css
More file actions
executable file
·388 lines (338 loc) · 7.48 KB
/
Copy pathlayout-fixes.css
File metadata and controls
executable file
·388 lines (338 loc) · 7.48 KB
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
/* HAL Module Builder - Frost Glass Integration */
/* CSS Reset for key elements */
* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 0;
font-family: var(--frost-font-family);
}
/* Core layout structure */
/* Ensure theme containers render the correct background gradient from frost_glass */
.frost_light {
background: var(--frost-light-bg);
min-height: 100vh;
}
.frost_dark {
background: var(--frost-dark-bg);
min-height: 100vh;
}
.hal-demo {
display: flex;
min-height: 100vh;
width: 100%;
font-family: var(--frost-font-family);
}
/* Transparent HAL viewport */
.hal-demo.frost_dark,
.hal-demo.frost_light {
background: none;
overflow: visible;
}
.hal-demo.frost_dark::before,
.hal-demo.frost_light::before {
display: none;
}
.hal-demo .main-canvas,
.hal-demo .hal-composite-container {
background: transparent;
}
/* Main visualization area */
.main-canvas {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
position: relative;
padding: var(--frost-spacing-xl);
}
/* HAL centered container */
.hal-center-container {
text-align: center;
position: relative;
z-index: 1;
}
.hal-title {
font-size: 1.5rem;
font-weight: var(--frost-font-weight-light);
margin-bottom: var(--frost-spacing-2xl);
letter-spacing: var(--frost-letter-spacing-wide);
}
.hal-subtitle {
font-size: 0.9rem;
margin-top: var(--frost-spacing-2xl);
opacity: 0.8;
}
/* Ensure general text colors use Frost Glass typography classes */
.hal-demo label {
/* Apply frost-text-primary class directly to elements */
}
.hal-demo h2,
.hal-demo h3 {
/* Apply frost-text-primary class directly to elements */
}
.hal-demo p {
/* Apply frost-text-secondary class directly to elements */
}
/* Controls toggle button */
.controls-toggle {
position: absolute;
top: var(--frost-spacing-xl);
right: var(--frost-spacing-xl);
z-index: 10;
}
/* Controls sidebar - extends theme-specific sidebar */
.sidebar {
width: 400px;
min-width: 350px;
max-width: 60vw;
height: 100vh;
overflow-y: auto;
box-sizing: border-box;
position: relative;
resize: horizontal;
overflow-x: hidden;
padding-top: 60px; /* Space for theme button */
}
/* Resize handle */
.resize-handle {
position: absolute;
top: 0;
left: 0;
width: 8px;
height: 100%;
background: var(--current-border);
cursor: ew-resize;
z-index: var(--frost-z-modal);
transition: var(--frost-transition);
opacity: 0.6;
border-radius: 0 2px 2px 0;
}
.resize-handle:hover {
opacity: 1;
width: 10px;
}
.frost_light .resize-handle:hover {
background: rgba(20, 184, 166, 0.3);
}
.frost_dark .resize-handle:hover {
background: rgba(4, 75, 80, 0.3);
}
.resize-handle::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 3px;
height: 40px;
background: rgba(156, 163, 175, 0.8);
border-radius: var(--frost-radius-sm);
box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
transition: all 0.2s ease;
}
.resize-handle:hover::before {
background: rgba(156, 163, 175, 1);
box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
height: 60px;
}
/* Sidebar typography */
.sidebar h2 {
font-size: 1.25rem;
font-weight: var(--frost-font-weight-semibold);
margin-bottom: var(--frost-spacing-lg);
}
.sidebar h3 {
font-size: 1rem;
font-weight: var(--frost-font-weight-medium);
margin-bottom: var(--frost-spacing-md);
}
/* Control sections */
.control-section {
margin-bottom: 1.5rem;
padding: 1rem;
border-radius: 12px;
min-width: 300px;
width: 100%;
box-sizing: border-box;
}
.control-group {
margin-bottom: 1rem;
width: 100%;
box-sizing: border-box;
}
/* Ensure form elements don't overflow */
.control-row {
display: flex;
gap: 8px;
align-items: center;
flex-wrap: wrap;
min-width: 0;
}
.control-row > * {
min-width: 0;
flex-shrink: 1;
}
.control-row .flex-1 {
flex: 1;
min-width: 80px;
}
/* Better spacing for layer items */
.layer-item {
padding: 12px;
border-radius: 8px;
margin-bottom: 8px;
border: 1px solid rgba(255, 255, 255, 0.1);
min-width: 300px;
width: 100%;
box-sizing: border-box;
overflow: hidden;
}
.layer-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 8px;
flex-wrap: wrap;
gap: 8px;
}
.layer-controls {
display: flex;
gap: 4px;
flex-shrink: 0;
flex-wrap: wrap;
}
.control-label {
display: block;
font-size: 0.875rem;
margin-bottom: 0.5rem;
font-weight: 500;
}
/* Form elements - Theme-aware input styles */
.form-input,
input[type='text'],
input[type='number'],
input[type='range'],
select,
textarea {
width: 100%;
padding: var(--frost-spacing-sm) var(--frost-spacing-md);
border: 1px solid var(--current-border);
border-radius: var(--frost-radius-md);
background: var(--current-bg-secondary);
/* Use frost-text-primary class directly on elements */
font-size: 0.875rem;
font-family: var(--frost-font-family);
box-sizing: border-box;
transition: var(--frost-transition);
}
.frost_light .form-input:focus,
.frost_light input:focus,
.frost_light select:focus,
.frost_light textarea:focus {
outline: 2px solid rgba(20, 184, 166, 0.5);
outline-offset: 2px;
border-color: rgba(20, 184, 166, 0.5);
box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.1);
}
.frost_dark .form-input:focus,
.frost_dark input:focus,
.frost_dark select:focus,
.frost_dark textarea:focus {
outline: 2px solid rgba(4, 75, 80, 0.5);
outline-offset: 2px;
border-color: rgba(4, 75, 80, 0.5);
box-shadow: 0 0 0 2px rgba(4, 75, 80, 0.1);
}
/* Color inputs */
input[type='color'] {
width: 40px;
height: 32px;
padding: 0;
border: 1px solid var(--current-border);
border-radius: var(--frost-radius-sm);
cursor: pointer;
}
/* Checkboxes */
input[type='checkbox'] {
width: 16px;
height: 16px;
cursor: pointer;
}
/* Layout utilities - Use frost_glass.css classes instead when possible */
.control-row,
.layer-header,
.layer-controls {
display: flex;
align-items: center;
gap: var(--frost-spacing-sm);
flex-wrap: wrap;
}
/* Input field styling - works with frost_glass.css theme system */
input[type='text'],
input[type='number'],
select,
textarea {
padding: var(--frost-spacing-sm) var(--frost-spacing-md);
border-radius: var(--frost-radius-md);
font-family: var(--frost-font-family);
font-size: 0.875rem;
transition: var(--frost-transition);
}
/* Responsive design */
@media (max-width: 768px) {
.hal-demo {
flex-direction: column;
}
.sidebar {
width: 100%;
max-width: none;
height: auto;
max-height: 50vh;
}
.main-canvas {
min-height: 50vh;
}
.hal-title {
font-size: 1.25rem;
}
}
/* Accessibility */
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
/* Layer item styling - Use frost-card classes instead when possible */
.layer-item {
padding: var(--frost-spacing-md);
border-radius: var(--frost-radius-md);
margin-bottom: var(--frost-spacing-sm);
border: 1px solid var(--current-border);
background: var(--current-bg-secondary);
}
.frost_light .layer-item.selected {
border-color: rgba(20, 184, 166, 0.5);
background: rgba(20, 184, 166, 0.05);
}
.frost_dark .layer-item.selected {
border-color: rgba(4, 75, 80, 0.5);
background: rgba(4, 75, 80, 0.05);
}
.layer-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: var(--frost-spacing-sm);
}
.layer-controls {
display: flex;
gap: var(--frost-spacing-xs);
}