-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
107 lines (87 loc) · 1.82 KB
/
index.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
:root {
--white-note-width: 80px;
--white-note-height: 300px;
--black-note-width: 30px;
}
#keys {
position: absolute;
display: block;
position: relative;
min-width: 100vw;
}
.white-keys {
position: absolute;
}
.black-keys {
position: absolute;
}
.white-note {
position: absolute;
top: 0;
left: 0;
background: white;
height: var(--white-note-height);
width: var(--white-note-width);
border: 1px solid black;
}
#A {
left: calc(var(--white-note-width) * 0);
}
#B {
left: calc(var(--white-note-width) * 1);
}
#C {
left: calc(var(--white-note-width) * 2);
}
#D {
left: calc(var(--white-note-width) * 3);
}
#E {
left: calc(var(--white-note-width) * 4);
}
#F {
left: calc(var(--white-note-width) * 5);
}
#G {
left: calc(var(--white-note-width) * 6);
}
.black-note {
position: absolute;
top: 0;
left: 0;
background: black;
height: calc(var(--white-note-height) * 0.60);
width: var(--black-note-width);
border: 1px solid black;
}
#A-flat {
left: 0px;
width: calc(var(--black-note-width) / 2);
}
#A-sharp {
left: calc(calc(var(--white-note-width) * 1) - calc(var(--black-note-width) / 2));
}
#C-sharp {
left: calc(calc(var(--white-note-width) * 3) - calc(var(--black-note-width) / 2));
}
#D-sharp {
left: calc(calc(var(--white-note-width) * 4) - calc(var(--black-note-width) / 2));
}
#F-sharp {
left: calc(calc(var(--white-note-width) * 6) - calc(var(--black-note-width) / 2));
}
#G-sharp {
left: calc(calc(var(--white-note-width) * 7) - calc(var(--black-note-width) / 2));
width: calc(var(--black-note-width) / 2);
}
.timer-bar {
width: 100vw;
margin-top: 350px;
background-color: red;
height: 15px;
display: block;
}
.running-out {
transition: all 5s linear;
width: 0;
}