-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmidi.css
More file actions
185 lines (163 loc) · 3.22 KB
/
midi.css
File metadata and controls
185 lines (163 loc) · 3.22 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
/* Name: midi.css
* Author: Devon McGrath
* Description: This CSS file is used for all the main styles in the MIDI project.
*/
body {font-family: Arial; margin: 0; padding: 0;}
button {cursor: pointer;}
h1 {text-align: center;}
h1, h3 {color: white; text-shadow: 0 0 3px black;}
a {color: inherit;}
.center {text-align: center;}
noscript, .err {
background: #FFDFDF;
border-left: 7px solid red;
border-radius: 3px;
padding: 8px;
margin: 15px 0;
font-weight: bold;
color: red;
}
noscript {width: 100%; display: block; box-sizing: border-box;}
.err {display: none;}
#canvas-notes {
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: black;
display: none;
}
#about {text-align: center;}
.track-info {
background: #CFCFCF;
color: black;
box-shadow: inset 0 0 5px 3px #BFBFCF;
padding: 8px;
box-sizing: border-box;
width: 100%;
margin: 10px auto;
transition: box-shadow 1s;
}
.track-info:hover {
box-shadow: inset 0 0 5px 3px #4F4F5F;
transition: box-shadow 1s;
}
.screen {
top: 0;
left: 0;
width: 100%;
height: 100%;
position: fixed;
background: black;
color: white;
z-index: 1;
padding: 8px;
}
/* div for the control elements (file, tracks, etc.) */
div#control {
position: fixed;
padding: 15px;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: black;
background: linear-gradient(black, #000030);
color: white;
z-index: 10;
box-shadow: inset 0 0 7px 3px grey;
box-sizing: border-box;
overflow: auto;
}
#close {
position: absolute;
right: 0;
top: 0;
width: 20px;
height: 20px;
padding: 5px;
text-align: center;
background: red;
cursor: pointer;
border-radius: 0 0 0 7px;
}
div.slider {
background: #00008F;
width: 200px;
height: 8px;
border-radius: 3px;
cursor: pointer;
display: inline-block;
box-shadow: inset 0 0 1px 2px rgba(255,255,255,0.3);
}
div.slider-knob {
background: white;
border-radius: 100%;
width: 8px;
height: 8px;
position: relative;
transform: translateX(-4px);
left: 50%;
}
/* div for a small control panel */
div#panel {
position: absolute;
left: 0;
top: 0;
width: 100%;
background: #CFCFFF;
background: linear-gradient(#CFCFFF, #9F9FFF);
color: black;
padding: 5px;
box-sizing: border-box;
z-index: 9;
}
.keys {
position: absolute;
bottom: 0;
left: 0;
margin: 0;
background: blue;
width: 100%;
height: 150px;
padding: 0;
}
.notes {
position: absolute;
left: 0;
bottom: 150px;
padding: 0;
width: 100%;
height: 1000px;
overflow: hidden;
background: rgba(0,0,255,0.4);
}
.note {
position: absolute;
background: white;
border-radius: 3px;
box-shadow: 0 0 5px 2px rgba(0,0,0,0.3);
}
.w1, .w-key {width: 1.9%;}
.w2, .b-key {width: 0.95%; transform: translateX(-50%);}
.w-key {
display: inline-block;
height: 90%;
margin: 0;
background: white;
background: radial-gradient(white 80%, grey);
box-shadow: 0 0 5px black;
}
.b-key {
display: inline-block;
position: absolute;
height: 67%;
margin: 0;
background: black;
background: radial-gradient(black 80%, grey);
box-shadow: 0 0 5px rgba(0,0,0,0.4);
}
.c3 {background: radial-gradient(#DFFFDF 80%, grey);}
.w-key:hover {background: #CFCFFF; background: radial-gradient(#CFCFFF 80%, grey);}
.b-key:hover {background: #000080; background: radial-gradient(#000080 80%, grey);}