-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
480 lines (427 loc) · 8.05 KB
/
style.css
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
body{
display: grid;
justify-content: center;
width: 95vw;
max-width: 800px;
}
.header {
border: 0px;
margin: 1px;
padding: 0;
text-align: left;
align-items: center;
display: flex;
justify-content: center;
background-color: #fbfbfb;
}
/* Project title at top */
.header-element {
display: inline-block;
border: 0px;
margin-left: 10px;
padding: 0;
vertical-align: middle;
}
/* generic button type for controlling drop-down content
* eventListener defined in pageLayout.js
*/
.menu {
border: 4px solid;
background-color: #a0144f;
border-radius: 8px;
width: 100%;
height: 40px;
padding: 5px 5px;
color: #febc17;
}
/* generic container for drop-down content*/
.contents {
background-color: #eeeeee;
text-align: center;
position: relative;
width: 98%;
margin: auto;
}
/* contains the sync menu*/
.metronome {
width: 95%;
position: relative;
display: grid;
margin: auto;
}
/* contains the P5 instance for metronome sync*/
.sync {
width: 320px;
margin: auto;
position: relative;
display:flex;
justify-content: space-evenly;
align-items: center;
}
/* click and ostinato buttons */
.syncButton {
height: 40px;
width: 50%;
background-color: #a0144f;
border-color: #febc17;
color: #febc17;
border-radius: 10px;
border-width: 5px;
margin: 10px;
}
.tempo-slider {
width: 100%;
max-width: 320px;
margin: auto;
padding-bottom: 10px;
display: flex;
flex-direction: column;
align-items: center;
}
/* contains volume slider and synth select menu */
.synthControl{
background: #c4c3c3;
position: relative;
display:flex;
justify-content: space-evenly;
margin: auto;
height: 35px;
width: 96%;
max-width: 380px;
}
/* drop-down menu for synth selection */
.synthSequenceMenu {
height: 30px;
width: 150px;
background-color: #fde4a9;
text-align: center;
color: #5d0024;
}
/* contains back/forward buttons plus sequence player */
.player {
display: grid;
justify-content: center;
background: #eaeaea;
width: 96%;
margin: auto;
}
/* Back and Forward buttons */
.navigator {
border: none;
width: 99%;
background-color: #7e0131;
border-radius: 5px;
height: 35px;
color: #febc17;
margin: 2px auto;
}
/* Container for individual sequence players */
.sequences{
max-height: 296px;
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
position: relative;
scroll-snap-type: y mandatory;
}
/* individual P5 instance sequence players. Defined in sequenceGUI.js*/
.seqPlayer{
position: relative;
margin: 0 auto;
display: block;
width: 100%;
max-width: 380px;
scroll-snap-align: start;
}
/* is this used? */
/*
.playButton{
box-sizing: border-box;
width: 40px;
height: 40px;
border-style: solid;
border-color: transparent transparent transparent #5d0024;
border-width: 20px 0px 20px 50px;
}
.synthMenu {
height: 30px;
width: auto;
background-color: #c9fbbc;
text-align: center;
}
.octButton {
height: 40px;
width: 50px;
}
.upArrow {
width: 0;
height: 0;
border-left: 190px solid #a0144f;
border-right: 190px solid #a0144f;
color: #febc17;
border-bottom: 35px solid #5d0024;
margin: 5px;
position: sticky;
top: 0px;
border-radius: 4px;
justify-self: center;
}
.upArrow:active{
border-bottom: 30px solid #a0144f;
}
.downArrow {
width: 0;
height: 0;
border-left: 190px solid #a0144f;
border-right: 190px solid #a0144f;
border-top: 35px solid #5d0024;
color: #febc17;
margin-bottom: 5px;
position: sticky;
top: 0px;
border-radius: 4px;
justify-self: center;
}
.downArrow:active{
border-top: 30px solid #a0144f;
}
.tlabel{
position: relative;
width: 100px;
height: 35px;
left: -50px;
right: 50px;
top: 5px;
text-align: center;
align-items: center;
}
.blabel{
position: relative;
width: 100px;
height: 35px;
left: -50px;
right: 50px;
top: -25px;
text-align: center;
align-items: center;
}
*/
.pbutton {
/* power button effect courtesy of https://csswolf.com/power-button-effect-in-css/*/
width: 30px;
height: 30px;
border-radius: 50%;
border: 2px solid #959494;
position: relative;
display: grid;
place-items: center;
}
.pbutton::before {
/* pseudo-elements don't appear unless content property is declared */
content: "";
/* design the element */
width: 50%;
height: 50%;
border-radius: 50%;
border: 3px solid rgb(190, 191, 190);
position: absolute;
}
.pbar {
height: 30%;
width: 2px;
background: rgb(190, 191, 190);
border-radius: 1px; /* for rounded ends */
box-shadow: 0 0 0 3px white;
position: absolute;
top: 4px;
}
.pbutton.active{
border: 2px solid lightgreen;
}
.pbutton.active .pbar {
background: lightgreen;
}
.pbutton.active::before {
border-color: lightgreen;
}
.box {
height: 40px;
width: 40px;
}
/********** Range Input Styles **********/
/*Range Reset*/
input[type="range"] {
-webkit-appearance: none;
appearance: none;
background: transparent;
cursor: pointer;
width: 15rem;
height: 0px;
padding: 2px;
}
/* Removes default focus */
input[type="range"]:focus {
outline: none;
}
/***** Chrome, Safari, Opera and Edge Chromium styles *****/
/* slider track */
input[type="range"]::-webkit-slider-runnable-track {
background-color: #ffffff;
border-radius: 0.25rem;
height: 0.25rem;
}
/* slider thumb */
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
/* Override default look */
appearance: none;
margin-top: -0.5rem;
/* Centers thumb on the track */
/*custom styles*/
background-color: #a0144f;
height: 1.1rem;
width: 1rem;
border-radius: 10px;
}
input[type="range"]:focus::-webkit-slider-thumb {
border: 1px solid #a8a8a8;
outline: 1px solid #292d35;
outline-offset: 0.02rem;
}
/******** Firefox styles ********/
/* slider track */
input[type="range"]::-moz-range-track {
background-color: #ffffff;
border-radius: 0.25rem;
height: 0.25rem;
margin-top: -0.5rem;
padding: 0px;
}
/* slider thumb */
input[type="range"]::-moz-range-thumb {
border: none;
/*Removes extra border that FF applies*/
border-radius: 10;
margin-top: -.5rem;
/*Removes default border-radius that FF applies*/
/*custom styles*/
background-color: #a0144f;
height: 1.1rem;
width: 1rem;
padding: 0px;
}
input[type="range"]:focus::-moz-range-thumb {
border: 1px solid #a8a8a8;
outline: 1px solid #292d35;
outline-offset: 0.02rem;
}
/* Also deprecated */
/*
.loopDiv {
padding-top: 10px;
padding-bottom: 10px;
}
.loopLabel {
position: relative;
padding-left: 4rem;
font-size: 8;
height: 2rem;
}
.loopInput,
.loopSpan,
.loopsvg {
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
}
.loopInput {
opacity: 0;
}
.loopInput:checked+.loopSpan {
border: 3px solid #337135;
}
.loopInput:checked+.loopSpan .loopsvg {
animation-name: looping;
animation-duration: 2s;
animation-iteration-count: infinite;
stroke-dasharray: 53;
stroke-dashoffset: 0;
}
.loopSpan {
border: 3px solid #4caf50;
width: 2rem;
height: 1rem;
padding: 5px;
z-index: -1;
}
.loopsvg {
stroke: #4caf50;
height: 2.5rem;
width: 3rem;
stroke-dasharray: 53;
stroke-dashoffset: 0;
padding-top: 15px;
padding-left: 0px;
}
@keyframes looping {
0% {
stroke-dashoffset: 53;
}
100% {
stroke-dashoffset: 110;
}
}
*/
/*
.dropdown {
height: 40px;
width: 100%;
background: #e0f5e1;
z-index: 6;
}
.play-button{
border: 4px solid;
height: 40px;
background-color: #a0144f;
border-radius: 8px;
width: 180px;
padding: 5px 5px;
color: #febc17;
}
.metro-button {
border: 4px solid;
height: 40px;
background-color: #a0144f;
border-radius: 8px;
width: 80px;
padding: 5px 5px;
color: #febc17;
}
.tempo-box {
width: 48px;
}
.metro {
background-color: #eeeeee;
text-align: center;
position: relative;
}
.form-control {
font-family: system-ui, sans-serif;
font-size: 1rem;
font-weight: bold;
line-height: 1.1;
display: flex;
grid-template-columns: 1em auto;
gap: 0.5em;
text-align: center;
}
.utilities {
position: sticky;
top: 0px;
padding: 0px 0px;
}
#tempoSync {
width: 40%;
height: 50px;
}
*/