-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
582 lines (529 loc) · 15.1 KB
/
style.css
File metadata and controls
582 lines (529 loc) · 15.1 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
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
/* Import Roboto weights */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
:root {
--bg-main: #2C3333; /* Deep, desaturated teal-ish grey */
--bg-panel: #393E46; /* Slightly lighter, warmer grey */
--text-primary: #E0E0E0; /* Off-white */
--text-secondary: #B0B0B0; /* Lighter grey for labels, muted text */
--accent-primary: #76ABAE; /* Soft, muted teal */
--accent-primary-hover: #8bc1c4; /* Lighter teal for hover */
--accent-active: #A2D2D2; /* Even lighter for active states or highlights */
--border-color: #4A505A; /* Subtle border color */
--input-bg: #2a2a3e; /* Kept similar for now, could be --bg-main slightly lighter */
--button-remove-bg: #E07A5F; /* Muted red for remove/delete */
--button-remove-hover: #d96a4f;
--button-action-bg: #76ABAE; /* Accent for primary actions (add layer) */
--button-action-hover: #8bc1c4;
--button-secondary-bg: #4F5660; /* For general buttons (save, load) */
--button-secondary-hover: #606770;
--button-tertiary-bg: #40464E; /* For less prominent actions like Fill/Clear */
--button-tertiary-hover: #505760;
--button-mute-solo-active: #F4D06F; /* Muted yellow for active mute/solo */
--button-mute-solo-active-hover: #e9c46a;
--font-family-main: 'Roboto', sans-serif;
}
body, html {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
background-color: var(--bg-main);
color: var(--text-primary);
font-family: var(--font-family-main);
font-weight: 400; /* Regular weight as base */
}
#app-container {
width: 100%;
height: 100%;
position: relative;
display: flex;
justify-content: center;
align-items: center;
}
#rhythmCanvas {
display: block;
background-color: transparent;
}
/* --- Menu Icon (Hamburger) --- */
.menu-icon {
position: absolute;
top: 20px;
left: 20px;
width: 30px;
height: 22px;
cursor: pointer;
z-index: 1001;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.menu-icon span {
display: block;
width: 100%;
height: 3px; /* Slightly thicker for better visibility */
background-color: var(--accent-primary);
border-radius: 3px;
transition: all 0.3s ease-in-out;
}
.menu-icon.open span:nth-child(1) {
transform: translateY(9.5px) rotate(45deg);
}
.menu-icon.open span:nth-child(2) {
opacity: 0;
}
.menu-icon.open span:nth-child(3) {
transform: translateY(-9.5px) rotate(-45deg);
}
/* --- Controls Panel --- */
.controls-panel {
position: absolute;
top: 0;
left: -360px; /* Slightly wider panel */
width: 350px; /* Slightly wider panel */
height: 100%;
background-color: var(--bg-panel);
backdrop-filter: blur(3px); /* Softer blur */
padding: 5px; /* More padding */
box-shadow: 4px 0 12px rgba(0, 0, 0, 0.3); /* Softer shadow */
transition: left 0.35s ease-in-out;
z-index: 1000;
overflow-y: auto;
color: var(--text-primary);
box-sizing: border-box;
display: flex;
flex-direction: column;
}
.controls-panel.open {
left: 0;
}
.controls-panel h2 {
color: var(--text-primary);
font-family: var(--font-family-main);
font-weight: 500; /* Medium weight for main title */
font-size: 1.8em; /* Larger main title */
margin-top: 0;
text-align: center;
border-bottom: 1px solid var(--border-color);
padding-bottom: 15px;
margin-bottom: 20px;
}
.controls-panel h3 {
color: var(--accent-primary);
font-family: var(--font-family-main);
font-weight: 400; /* Regular weight */
font-size: 1.3em;
margin-top: 25px;
margin-bottom: 15px;
text-align: left; /* Align section headers left */
padding-bottom: 8px;
border-bottom: 1px solid var(--border-color);
}
.control-group {
margin-bottom: 18px; /* Increased spacing */
}
.control-group label {
display: block;
margin-bottom: 8px; /* Increased spacing */
font-size: 0.9em;
color: var(--text-secondary);
font-weight: 300; /* Lighter weight for labels */
}
.control-group input[type="number"],
.control-group input[type="text"],
.control-group select {
width: 100%; /* Simpler width calculation */
padding: 10px; /* More padding */
background-color: var(--input-bg);
border: 1px solid var(--border-color);
color: var(--text-primary);
border-radius: 5px; /* Slightly more rounded */
box-sizing: border-box;
font-size: 0.95em;
}
.control-group input[type="color"] {
width: 100%;
height: 35px; /* Taller color input */
padding: 0;
border: 1px solid var(--border-color);
border-radius: 5px;
cursor: pointer;
-webkit-appearance: none; /* Try to remove default styling */
-moz-appearance: none;
appearance: none;
background-color: transparent; /* Make custom styling more visible */
}
/* For Webkit browsers to style the color swatch */
.control-group input[type="color"]::-webkit-color-swatch-wrapper {
padding: 0;
}
.control-group input[type="color"]::-webkit-color-swatch {
border: none;
border-radius: 4px;
}
.control-group.pattern-management {
display: grid;
grid-template-columns: 1fr 1.5fr 1fr 1fr; /* Adjust column widths */
gap: 8px;
align-items: center;
}
.control-group.pattern-management select {
width: 100%;
}
.control-group.pattern-io {
display: flex;
flex-direction: column;
gap: 10px;
}
.control-group.pattern-io button {
width: 100%;
}
.control-group.pattern-io input[type="file"] {
font-size: 0.85em;
padding: 8px;
}
.file-upload-label {
font-size: 0.9em;
color: var(--text-secondary);
font-weight: 300;
margin-bottom: 6px !important; /* Override general label margin */
display: block;
}
button {
padding: 10px 15px;
color: var(--text-primary);
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.2s ease, transform 0.1s ease;
font-family: var(--font-family-main);
font-weight: 400;
background-color: var(--button-secondary-bg);
}
button:hover {
background-color: var(--button-secondary-hover);
}
button:active {
transform: translateY(1px); /* Subtle press effect */
}
button#addLayerBtn {
background-color: var(--button-action-bg);
width: 100%;
}
button#addLayerBtn:hover {
background-color: var(--button-action-hover);
}
button.remove-layer-btn {
background-color: var(--button-remove-bg);
padding: 6px 10px;
font-size: 0.85em;
}
button.remove-layer-btn:hover {
background-color: var(--button-remove-hover);
}
hr {
border: none;
border-top: 1px solid var(--border-color);
margin: 25px 0; /* More spacing */
}
.layer-item {
background-color: rgba(0,0,0,0.1); /* Darker, more subtle item background */
padding: 15px;
margin-bottom: 15px;
border-radius: 6px;
border-left: 4px solid var(--accent-primary);
}
.layer-item .control-group {
margin-bottom: 12px;
}
.layer-elements-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
}
.layer-elements-header label {
margin-bottom: 0; /* Remove margin as it's handled by parent */
font-weight: 400; /* Make it a bit bolder than other labels */
color: var(--text-primary);
}
.layer-element-quick-actions {
display: flex;
gap: 6px;
}
.layer-element-quick-actions button {
padding: 4px 8px;
font-size: 0.75em;
background-color: var(--button-tertiary-bg);
}
.layer-element-quick-actions button:hover {
background-color: var(--button-tertiary-hover);
}
.layer-elements {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 8px;
}
.layer-elements button {
min-width: 32px; /* Slightly larger */
padding: 6px;
background-color: var(--button-secondary-bg);
border: 1px solid var(--border-color);
font-size: 0.9em;
}
.layer-elements button.active {
/* background-color: var(--accent-primary); */ /* Will be set by inline style */
/* color: var(--bg-main); */ /* Will be set by inline style for contrast */
/* border-color: var(--accent-primary-hover); */ /* Will be set by inline style to match background */
font-weight: 500;
}
.layer-elements button.popping {
transform: scale(1.15);
background-color: var(--accent-active); /* Brighter color for pop */
transition: transform 0.05s ease-out, background-color 0.05s ease-out;
}
#fullscreenBtn, button#muteAllBtn {
width: 100%;
background-color: var(--button-secondary-bg);
margin-top: 10px; /* Spacing between them */
}
#fullscreenBtn:hover, button#muteAllBtn:hover {
background-color: var(--button-secondary-hover);
}
button#muteAllBtn.active {
background-color: var(--button-remove-bg);
color: var(--text-primary);
}
button#muteAllBtn.active:hover {
background-color: var(--button-remove-hover);
}
/* Style for the new Play/Stop button */
button#playStopBtn {
width: 100%;
background-color: var(--button-action-bg); /* Using action color for "Play" */
}
button#playStopBtn:hover {
background-color: var(--button-action-hover);
}
button#playStopBtn.active {
background-color: var(--accent-active); /* A distinct color for "Stop" (playing state) */
color: var(--bg-main); /* Ensure contrast for active state */
}
button#playStopBtn.active:hover {
background-color: var(--accent-primary); /* Slightly different hover for active state */
}
/* --- Mute/Solo Button Styles --- */
.layer-actions {
display: flex;
gap: 10px;
margin-top: 12px;
margin-bottom: 12px;
}
.layer-actions button {
flex-grow: 1;
padding: 8px 10px;
font-size: 0.9em;
background-color: var(--button-secondary-bg);
}
button.mute-layer-btn.active,
button.solo-layer-btn.active {
background-color: var(--button-mute-solo-active);
color: var(--bg-main); /* Dark text */
font-weight: 500;
}
button.mute-layer-btn.active:hover,
button.solo-layer-btn.active:hover {
background-color: var(--button-mute-solo-active-hover);
}
/* --- Tab Styles --- */
.tabs-nav {
display: flex;
margin-bottom: 20px;
border-bottom: 1px solid var(--border-color);
flex-shrink: 0;
}
.tab-button {
padding: 12px 18px; /* More padding */
cursor: pointer;
background-color: transparent;
border: none;
color: var(--text-secondary);
font-size: 1em;
font-family: var(--font-family-main);
font-weight: 400; /* Regular weight */
flex-grow: 1;
text-align: center;
border-bottom: 3px solid transparent;
transition: color 0.2s ease, border-color 0.2s ease;
outline: none;
}
.tab-button:hover {
color: var(--accent-primary-hover);
/* background-color: rgba(0,0,0,0.05); */ /* Subtle hover on tab */
}
.tab-button.active {
color: var(--accent-primary);
font-weight: 500; /* Medium weight for active tab */
border-bottom-color: var(--accent-primary);
}
.tabs-content-container {
flex-grow: 1;
overflow-y: auto;
padding: 10px;
}
.tab-content {
display: none;
padding-top: 5px; /* Less padding, headers have margin now */
}
.tab-content.active {
display: block;
}
/* Ensure last items in panel are visible */
.controls-panel > button:last-child {
margin-top: auto; /* Pushes fullscreen to bottom if panel is flex-column */
margin-bottom: 5px; /* ensure some space at the very bottom */
}
.controls-panel > hr:nth-last-of-type(2) { /* The HR before Mute All button */
margin-top: auto; /* Help push Mute All and Fullscreen down */
}
/* --- Hyperlink Styles --- */
a {
color: var(--accent-primary);
text-decoration: none;
transition: color 0.2s ease, text-decoration 0.2s ease;
}
a:hover {
color: var(--accent-primary-hover);
text-decoration: underline;
}
a:active {
color: var(--accent-active);
}
/* Scrollbar styling for a more modern look (Webkit) */
.controls-panel::-webkit-scrollbar,
.tabs-content-container::-webkit-scrollbar {
width: 4px;
}
.controls-panel::-webkit-scrollbar-track,
.tabs-content-container::-webkit-scrollbar-track {
background: rgba(0,0,0,0.1);
border-radius: 4px;
}
.controls-panel::-webkit-scrollbar-thumb,
.tabs-content-container::-webkit-scrollbar-thumb {
background: var(--border-color);
border-radius: 4px;
}
.controls-panel::-webkit-scrollbar-thumb:hover,
.tabs-content-container::-webkit-scrollbar-thumb:hover {
background: var(--accent-primary);
}
/* --- Shortcuts Help Icon --- */
#shortcuts-help-btn {
position: absolute;
top: 20px;
right: 20px;
width: 30px;
height: 30px;
background-color: rgba(var(--accent-primary-rgb, 76, 171, 174), 0.5); /* Use accent with alpha or a specific color */
color: var(--text-primary);
border: 1px solid var(--border-color);
border-radius: 50%;
font-size: 18px;
font-weight: bold;
line-height: 28px; /* Adjust for vertical centering */
text-align: center;
cursor: pointer;
z-index: 1001;
transition: background-color 0.2s ease, transform 0.1s ease;
padding: 0; /* Remove default button padding */
}
#shortcuts-help-btn:hover {
background-color: var(--accent-primary); /* Solid on hover */
transform: scale(1.1);
}
/* --- Shortcuts Modal --- */
.shortcuts-modal {
display: none; /* Hidden by default */
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.6); /* Darker overlay */
z-index: 2000;
justify-content: center;
align-items: center;
backdrop-filter: blur(3px);
padding: 20px; /* Added padding for space around the content */
box-sizing: border-box; /* Ensure padding is included in width/height */
}
.shortcuts-modal-content {
background-color: var(--bg-panel);
padding: 25px 30px;
border-radius: 8px;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
width: 90vw; /* Responsive width */
min-width: 300px; /* Adjusted min-width */
max-width: 500px;
color: var(--text-primary);
position: relative; /* For close button positioning */
max-height: 90vh; /* Maximum height */
overflow-y: auto; /* Enable vertical scrolling */
}
.shortcuts-modal-close {
position: absolute;
top: 10px;
right: 15px;
background: none;
border: none;
color: var(--text-secondary);
font-size: 28px;
font-weight: bold;
cursor: pointer;
padding: 5px;
line-height: 1;
}
.shortcuts-modal-close:hover {
color: var(--text-primary);
}
.shortcuts-modal-content h3 {
color: var(--accent-primary);
margin-top: 0;
margin-bottom: 10px;
text-align: center;
font-size: 1.5em;
border-bottom: 1px solid var(--border-color);
padding-bottom: 10px;
}
.shortcuts-modal-content p.shortcuts-modal-info {
font-size: 0.85em;
color: var(--text-secondary);
margin-bottom: 15px;
text-align: center;
}
.shortcuts-modal-content ul {
list-style-type: none;
padding: 0;
margin: 0;
}
.shortcuts-modal-content li {
font-size: 0.95em;
margin-bottom: 10px;
padding-left: 15px;
position: relative;
}
.shortcuts-modal-content li::before {
content: "•"; /* Bullet point */
color: var(--accent-primary);
font-weight: bold;
display: inline-block;
position: absolute;
left: 0;
top: 0;
}
.shortcuts-modal-content li strong {
color: var(--accent-active);
font-weight: 500;
}