-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.css
76 lines (72 loc) · 1.14 KB
/
main.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
body {
display: flex;
align-items: center;
justify-content: space-around;
margin: 10px;
background-color: #000000;
color: #dddddd;
font-family: sans-serif;
}
canvas {
align-self: flex-start;
}
#container {
max-height: 80vh;
overflow-y: auto;
display: flex;
flex-direction: column;
}
input[type="number"] {
width: 6ch;
}
#piano {
position: absolute;
bottom: 0;
width: 100%;
height: 20vh;
display: flex;
overflow-x: hidden;
}
#ivory, #ebony {
height: 100%;
display: flex;
justify-content: center;
width: 100%;
position: absolute;
}
#ebony {
height: 60%;
margin-left: 2ch;
}
.key {
position: relative;
margin: 0;
padding: 0;
background-color: #fefee8;
max-width: 10%;
min-width: 4ch;
top: 3%;
height: 97%;
border: outset;
border-top: none;
border-bottom-width: .7em;
box-sizing: border-box;
border-radius: 8%;
}
#ebony .key {
background-color: #333;
z-index: 1;
position: relative;
border-color: #555;
top: 0%;
}
#piano .invisible {
visibility: hidden;
}
#piano .key.pressed {
background-color: #a33;
border-color: #611;
}
#ebony .key:last-child {
visibility: hidden;
}