-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
230 lines (213 loc) · 5.95 KB
/
styles.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
/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@700&display=swap');
/* Variables */
body {
--app-background: #25262a;
--synth-hue:188;
--synth-background-bottom: hsl(var(--synth-hue), 41%, 21%);
--synth-background-mid: hsl(var(--synth-hue), 43%, 39%);
--synth-background-top: hsl(var(--synth-hue), 44%, 44%);
--synth-options-border-bottom: hsl(var(--synth-hue), 43%, 50%);
--synth-light-green: hsl(88, 100%, 59%);
}
/* Styles */
* {
box-sizing: border-box;
}
html,
body {
height:100%;
font-family: 'Roboto', sans-serif;
font-size:10px;
font-weight:900;
}
body {
display:flex;
justify-content:center;
align-items:center;
margin:0;
padding:0;
background:var(--app-background);
}
#synth {
position:relative;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
width:800px;
padding:28px;
padding-bottom:0;
border-bottom:solid 4px rgba(0,0,0,0.7);
border-radius:12px;
box-shadow:0 42px 36px -24px rgba(0,0,0,0.9);
background:linear-gradient(to bottom, var(--synth-background-top) 1.5%, var(--synth-background-mid) 5%, 90%, var(--synth-background-bottom));
}
#options-container {
display:flex;
justify-content:flex-start;
width:100%;
padding:12px;
margin-bottom:24px;
border:solid 2px rgba(255,255,255,0.05);
border-radius:16px;
box-shadow:0 -2px 0px rgba(0,0,0,0.1),
inset 0 -2px 0px rgba(0,0,0,0.1);
}
.options {
display:flex;
flex-direction:column;
margin-right:12px;
padding:6px 0 7px;
color:#fff;
font-size:9px;
letter-spacing:1px;
border-bottom:solid 1px var(--synth-options-border-bottom);
border-top:solid 1px rgba(0,0,0,0.3);
border-radius:6px;
background:rgb(40, 47, 51);
}
.options-title {
display:block;
margin-bottom:3px;
padding:0 12px;
padding-bottom:6px;
color:rgba(255,255,255,0.3);
font-weight:700;
letter-spacing:1px;
text-transform:uppercase;
border-bottom:solid 1px rgba(255,255,255,0.05);
}
label {
padding:3px 14px;
padding-right:20px;
text-transform:uppercase;
white-space: nowrap;
}
label img { transform:translateY(2px); }
input[type="radio"] {
margin-right:10px;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
outline:none;
}
input[type="radio"]:after {
content: '';
position: relative;
display: block;
left:-4px;
width: 9px;
height: 9px;
border-radius: 25px;
box-shadow: inset 0 0 0 1px hsla(0,0%,0%,.3),
0 1px 1px hsla(0,0%,100%,.2);
background-color: #444;
}
input[type="radio"]:checked:after {
background-color: var(--synth-light-green);
box-shadow: inset 0 0 0 1px hsla(0,0%,0%,.4),
inset 0 2px 2px hsla(0,0%,100%,.4),
0 1px 1px rgba(255, 255, 255, 0.5),
0 0 3px 3px rgba(164, 250, 100, 0.4);
}
input[type="number"] {
width:64px;
margin-right:10px;
padding:4px 0 6px;
color:var(--synth-light-green);
font-family:'Roboto Mono', sans-serif;
font-size:16px;
font-weight:700;
letter-spacing:-2px;
text-shadow:0 0 6px var(--synth-light-green);
text-align:center;
border:none;
border-top:solid 1px rgba(0,0,0,0.4);
border-bottom:solid 1px rgba(255,255,255,0.1);
border-radius:4px;
background:rgba(0,0,0,0.2);
outline:none;
}
.options.envelope {
flex-direction:row;
flex-wrap:wrap;
flex:0.6;
}
.options.envelope .options-title {
width:100%;
height:18px;
}
.options.envelope label {
flex:1;
padding-right:12px;
}
.options.envelope label:nth-child(2n+1) { padding-left:0; }
#synth-keys-container {
position:relative;
display:flex;
height:200px;
width:100%;
margin-bottom:5px;
}
#synth-keys-container:before {
content: '';
position:absolute;
top:0;
left:0;
width:100%;
height:5px;
padding-bottom:3px;
box-shadow:inset 0 3px 4px rgba(0,0,0,0.5);
z-index:10;
}
.key-group {
flex:1;
position:relative;
display:flex;
margin:0 2px;
}
.key {
display:flex;
justify-content:center;
align-items:flex-end;
padding-bottom:3px;
box-shadow:2px 2px 6px rgba(5,5,5,0.3);
user-select: none;
}
.key:active {
padding-top:1px;
padding-bottom:2px;
}
.key.white {
position:relative;
width:100%;
height:100%;
color:rgba(0,0,0,0.8);
border-radius:0 0 5px 5px;
box-shadow:1px 3px 4px rgba(5,5,5,0.4);
background:#eee;
}
.key.white:hover { background:#fff; }
.key.white:active {
box-shadow: inset 0 -4px 14px rgba(0,0,0,0.2);
background:linear-gradient(to bottom, #fff, 80%, #ddd);
}
.key.black {
position:absolute;
top:0;
right:-1px;
width:55%;
height:60%;
transform:translateX(50%);
color:rgba(255,255,255,0.8);
border-radius:0 0 3px 3px;
background:#111;
z-index:99;
}
.key.black:hover { background:#222; }
.key.black:active {
box-shadow:none;
background:linear-gradient(to bottom, #222, 60%, #000);
}