Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
151 lines (109 loc) · 2.5 KB
/
Copy pathstyle.css
File metadata and controls
151 lines (109 loc) · 2.5 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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
background-color: black;
height: 100vh;
}
/*Hides this HTML element, added the letters to the <button> elements directly*/
kbd{
visibility: hidden;
position: relative;
bottom: 50%;
}
/*container for the white-keys*/
.keys{
width: 100%;
height: 60vh;
position: relative;
top: 40%;
border-top: solid 10px rgb(85, 0, 0);
display: flex;
flex-direction: row;
justify-content: space-evenly;
}
/*Targets all key, regardless of black or white*/
.key{
height: 100%;
width: 100%;
margin: 0px 0px;
display: flex;
justify-content: center;
}
/*Stylings for the White-keys*/
.white{
height: 100%;
width: 100%;
background: linear-gradient(to bottom, rgba(246,248,249,1) 0%,rgba(229,235,238,1) 79%,rgba(215,222,227,1) 84%,rgba(245,247,249,1) 100%);
border-radius: 5px;
font-size: 20px;
font-weight: 1000;
}
.white:hover{
background: linear-gradient(to bottom, #ffffff 0%,#f1f1f1 3%,#f1f1f1 3%,#f1f1f1 5%,#f1f1f1 5%,#f1f1f1 5%,#e1e1e1 10%,#e1e1e1 10%,#e1e1e1 14%,#e1e1e1 24%,#e1e1e1 34%,#e1e1e1 34%,#f6f6f6 94%);}
.white-pressed{
background: linear-gradient(180deg, rgba(88,88,88,1) 3%, rgb(255, 255, 255) 9%);
}
/*Container for the black-keys*/
.black-keys{
z-index: 1;
display: flex;
position: relative;
bottom: 19%;
left: 0%;
height: 40vh;
width: 100%;
}
/*Styling for the Black keys*/
.black{
background: linear-gradient(to bottom, #4c4c4c 0%,#595959 12%,#666666 25%,#474747 39%,#2c2c2c 50%,#000000 51%,#111111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313 100%);
color: white;
width: 15%;
border-radius: 0.5em 0.5em 12px 12px;
}
.black:hover{
background: linear-gradient(to bottom, rgba(69,72,77,1) 0%,rgba(0,0,0,1) 100%);
}
.black-pressed{
background: linear-gradient(0deg, rgba(0,0,0,1) 95%, rgba(255,255,255,1) 100%);
}
/*Macro-Positionings for individual black keys inside their respecting flex containers*/
#c4-sharp{
position: relative;
left: 22%;
}
#d4-sharp{
position: relative;
right: 7%;
}
#f4-sharp{
position: relative;
left: 35%;
}
#g4-sharp{
position: relative;
left: 7%;
}
#a4-sharp{
position: relative;
right: 21%;
}
/*INSTRUCTIONS*/
#instructions-container{
z-index: 2;
background: black;
position: relative;
bottom: 100%;
width: 40%;
}
h2, h4{
color: rgb(255, 255, 255);
}
h2{
margin: 3%;
}
h4{
margin: 3% 3%;
}