-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
489 lines (437 loc) · 11.9 KB
/
style.css
File metadata and controls
489 lines (437 loc) · 11.9 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
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
/* CSS Variables adapted for a LIGHT THEME, but keeping structure for header */
:root {
/* Background shades (LIGHT THEME) */
--bg-body: #f0f2f5; /* Original light body background */
--bg-container: #ffffff; /* Main container background (e.g., white or light gray) */
--bg-panel: #ffffff; /* Panels, like the header block itself */
--bg-box-inner: #fdfdfd; /* Inner boxes like slider columns */
--bg-input: #ffffff; /* Input field backgrounds */
--bg-button-header:#e9e9ed; /* Light gray for header buttons/icons if needed, or transparent */
--bg-button: #007bff; /* Example: Blue for general buttons */
/* Border color (LIGHT THEME) */
--border: #d1d5da; /* Light gray border */
/* Primary text (LIGHT THEME) */
--text-primary: #2c3e50; /* Dark text for main content */
--text-secondary: #586069; /* Slightly lighter dark text */
--text-header-title: #1f2328; /* Darker text for main H1 title */
/* Accent (foreground) colors (Can be kept or adapted) */
--accent-red: #d73a49;
--accent-yellow: #f2c94c; /* Adjusted for better visibility on light */
--accent-green: #28a745;
--accent-blue: #0074d9; /* Re-using a standard blue */
--link-color: var(--accent-blue);
--link-hover-color: #0056b3;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; /* Original font */
margin: 0;
padding: 15px; /* Adjusted to match polarization.html's body margin for header consistency */
background-color: var(--bg-body);
color: var(--text-primary);
line-height: 1.6;
}
/* --- START: H1 block styling adapted for LIGHT THEME from polarization.css --- */
/* The H1 block itself will have a light panel background */
h1 {
border-bottom: 1px solid var(--border);
padding-bottom: 3px;
margin: 0 15px 10px 15px; /* Consistent with polarization.html for positioning */
font-size: 1.7em;
display: flex;
justify-content: space-between;
align-items: flex-start;
flex-wrap: wrap;
gap: 10px;
background-color: var(--bg-panel); /* Light panel background for the H1 block */
padding: 8px 15px;
border-radius: 4px;
color: var(--text-header-title); /* Dark text for the main title span */
}
/* Wrapper for title and copyright */
.h1-title-group {
flex-shrink: 0;
}
/* Define span for the title part */
.h1-title {
flex-grow: 1;
margin-right: 10px;
display: block;
color: var(--text-header-title); /* Ensure main title span is dark */
}
/* Style for copyright below title */
.h1-copyright {
font-size: 0.8rem;
color: var(--text-secondary); /* Slightly lighter dark text for copyright */
margin-top: 2px;
line-height: 1.2;
font-weight: normal;
}
.h1-copyright a {
color: inherit;
text-decoration: none;
}
.h1-copyright a:hover {
text-decoration: underline;
color: var(--link-hover-color); /* Use link hover color */
}
/* Style the container for the info */
.h1-info {
display: flex;
gap: 20px;
font-size: 0.6em; /* Relative to h1 font size */
line-height: 1.3;
text-align: center;
color: var(--text-secondary); /* Slightly lighter dark text for info block */
margin-left: auto;
flex-shrink: 0;
align-items: flex-start;
}
/* Style for each info block */
.info-item {
display: flex;
flex-direction: column;
align-items: center;
min-width: 80px;
}
/* Style for the labels */
.info-label {
font-size: 0.8em;
font-weight: bold;
color: var(--text-secondary);
margin-bottom: 3px;
white-space: nowrap;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Style for the content below label */
.info-content {
font-size: 0.95em;
}
/* Style the links within the info block */
.h1-info a {
color: var(--link-color); /* Use defined link color */
text-decoration: none;
display: inline-block;
vertical-align: middle;
}
.h1-info a:hover {
text-decoration: underline;
color: var(--link-hover-color); /* Use defined link hover color */
}
/* General style for icons within info links */
.h1-info a i {
font-size: 1.8em;
line-height: 1;
color: var(--text-primary); /* Dark icons on light background */
vertical-align: middle;
transition: color 0.2s ease; /* Simpler transition for light theme */
}
.h1-info a:hover i {
color: var(--link-hover-color); /* Icon color on hover matches link hover */
}
/* GitHub icon styling (already suitable for light if --text-primary is dark) */
.h1-info a .fab.fa-github {
color: var(--text-primary); /* Dark GitHub icon */
}
.h1-info a:hover .fab.fa-github {
color: var(--link-hover-color);
}
.h1-info a:hover .fa-solid.fa-file-invoice {
color: var(--link-hover-color);
}
/* --- END: H1 block styling --- */
/* Original visualphase.css h2, h3 styling - now using --text-primary */
h2, h3 {
text-align: center;
color: var(--text-primary);
margin-bottom: 0.5em;
}
h2 { font-size: 1.4em; margin-top: 1em; } /* Add space below new H1 block */
h3 { margin-top: 1em; }
.container {
display: flex;
flex-wrap: wrap;
gap: 25px;
background-color: var(--bg-container); /* Keep original or use var if defined for light theme */
padding: 20px; /* To match polarization.css if needed, or keep original visualphase style */
border: 1px solid var(--border);
border-radius: 8px;
max-width: 1800px;
margin: 0 auto 20px auto;
}
.controls {
flex: 1 1 340px;
min-width: 300px;
background-color: #ffffff; /* Original light background */
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.08); /* Original shadow for light theme */
/* border: 1px solid var(--border); */ /* Can use border or shadow */
}
.plots {
flex: 2 1 450px;
display: grid;
grid-template-columns: 1fr;
gap: 20px;
}
.slider-columns-container {
display: flex;
gap: 20px;
margin-top: 15px;
margin-bottom: 15px;
}
.slider-column {
flex: 1;
border: 1px solid #ddd; /* Original light border */
padding: 15px;
border-radius: 6px;
background-color: #fdfdfd; /* Original light inner box background */
}
.slider-column h3 {
text-align: left;
font-size: 1.05em;
margin-top: 0;
margin-bottom: 0.3em;
color: var(--text-primary); /* Uses body's primary text color */
}
.slider-column p {
font-size: 0.9em;
color: #555; /* Original slightly lighter text */
text-align: left;
margin-top: 0;
margin-bottom: 1em;
}
.slider-group {
margin-bottom: 18px;
}
.slider-group label {
display: block;
margin-bottom: 6px;
font-weight: 500;
color: #555; /* Original */
font-size: 0.95em;
}
.slider-input-wrapper {
display: flex;
align-items: center;
gap: 10px;
}
.slider-input-wrapper input[type="range"] {
flex-grow: 1;
width: auto;
margin-right: 0;
}
.slider-input-wrapper input[type="number"] {
width: 70px;
padding: 4px 6px;
border: 1px solid #ccc; /* Original */
border-radius: 4px;
font-size: 0.9em;
text-align: right;
box-sizing: border-box;
background-color: var(--bg-input); /* White or very light gray */
color: var(--text-primary); /* Dark text */
}
.checkbox-group {
margin-top: 10px;
margin-bottom: 5px;
display: flex;
align-items: center;
justify-content: center;
}
.checkbox-group input[type="checkbox"],
.spectrum-mode-selector input[type="radio"] {
margin-right: 8px;
width: 16px;
height: 16px;
vertical-align: middle;
}
.checkbox-group label,
.spectrum-mode-selector label {
font-size: 0.95em;
color: #555; /* Original */
vertical-align: middle;
cursor: pointer;
margin-right: 15px;
}
.spectrum-mode-selector label:last-child {
margin-right: 0;
}
.plot-container {
background-color: #ffffff; /* Original */
padding: 15px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.08); /* Original */
min-height: 320px;
display: flex;
flex-direction: column;
}
.plot-container h3 {
text-align: center;
font-size: 1.15em;
margin-top: 0.2em;
margin-bottom: 0.5em;
color: var(--text-primary); /* Uses body's primary text color */
}
.plot-container canvas {
width: 100% !important;
height: 280px !important;
flex-shrink: 0;
}
.spectrum-mode-selector {
text-align: center;
margin-top: 10px;
margin-bottom: 5px;
}
#resetCustomSpectrumButton {
padding: 8px 12px;
font-size: 0.9em;
background-color: #e74c3c; /* Original red */
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.2s;
/* display: block; MOVED TO INLINE or determined by inline */
/* margin-left: auto; MOVED TO INLINE or determined by inline */
/* margin-right: auto; MOVED TO INLINE or determined by inline */
}
#resetCustomSpectrumButton:hover {
background-color: #c0392b; /* Original darker red */
}
.checkbox-group-inline {
display: flex;
align-items: center;
font-size: 0.9em;
margin-top: 5px;
}
.checkbox-group-inline input[type="checkbox"] {
margin-right: 5px;
}
.checkbox-group-inline label {
font-weight: normal;
color: #555; /* Original */
}
#omega0_custom_note {
font-size:0.8em;
color: #555; /* Original */
display:none;
}
/* Style for disabled slider group (omega0 specifically) */
#omega0SliderGroup.disabled-group label,
#omega0SliderGroup.disabled-group small {
color: #999; /* Lighter text for disabled state */
}
#omega0SliderGroup.disabled-group input[type="range"],
#omega0SliderGroup.disabled-group input[type="number"] {
opacity: 0.5;
cursor: not-allowed;
}
.slider-group input[type="range"]:disabled,
.slider-group input[type="number"]:disabled {
opacity: 0.6;
/* background-color: #e9ecef; Light gray for disabled inputs */
/* color: #6c757d; */
/* border-color: #ced4da; */
}
/* --- Media Queries --- */
/* Base media queries from visualphase.css */
@media (max-width: 768px) {
body {
padding: 10px;
}
.container {
flex-direction: column;
/* padding: 15px; */ /* Keep original container padding or adjust */
}
.controls, .plots {
flex-basis: auto;
width: 100%;
flex-grow: 0;
flex-shrink: 1;
min-width: unset;
}
.slider-columns-container {
flex-direction: column;
gap: 15px;
}
/* Copied H1 related media queries from polarization.css for 768px */
h1 {
font-size: 1.5em;
margin: 0 10px 8px 10px;
padding: 6px 10px;
}
.h1-info {
font-size: 0.65em;
margin-left: 0;
flex-basis: 100%;
margin-top: 8px;
justify-content: space-around;
gap: 10px;
}
.info-item { min-width: 60px; }
}
@media (max-width: 420px) {
body {
padding: 10px;
}
.controls h2 { font-size: 1.15em; }
.plot-container h3, .slider-column h3 { font-size: 1em; }
.controls {
padding: 12px;
}
.slider-column {
padding: 10px;
}
.slider-input-wrapper {
flex-direction: column;
align-items: stretch;
gap: 5px;
}
.slider-group label {
font-size: 0.9em;
}
.plot-container {
padding: 10px;
min-height: 260px;
}
.plot-container canvas {
height: 220px !important;
}
/* Copied H1 related media queries from polarization.css for 480px (applies here too) */
h1 {
font-size: 1.4em;
margin: 0 8px 6px 8px;
padding: 5px 8px;
gap: 5px;
}
.h1-title-group {
flex-basis: 100%;
}
.h1-info {
font-size: 0.7em;
flex-direction: column;
align-items: flex-start;
gap: 5px;
text-align: left;
width: 100%;
margin-top: 0;
}
.info-item {
flex-direction: row;
align-items: baseline;
gap: 6px;
min-width: 0;
width: 100%;
}
.info-label {
margin-bottom: 0;
text-align: left;
flex-shrink: 0;
min-width: 80px;
text-transform: none;
letter-spacing: 0;
}
.info-content { text-align: left; }
.h1-info a i { font-size: 1.5em; }
}