-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
57 lines (49 loc) · 908 Bytes
/
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
*,
*::before,
*::after {
box-sizing: border-box;
}
body {
background: linear-gradient(45deg, #8c8d8d 0%, #a0a0a0 50%, #b4b4b4 100%);
margin: 0;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.piano {
display: flex;
}
.key {
height: calc(var(--width) * 4);
width: var(--width);
}
.white {
--width: 100px;
background-color: white;
border: 1px solid #333;
}
.white.active {
background-color: #ccc;
}
.black {
--width: 60px;
background-color: black;
margin-left: calc(var(--width) / -2);
margin-right: calc(var(--width) / -2);
z-index: 2;
}
.black.active {
background-color: #333;
}
.note-playing {
display: flex;
justify-content: center;
align-items: center;
font-family: "Courier New", Courier, monospace;
font-size: 1rem;
font-weight: bold;
padding-top: 1%;
color: rgb(44, 44, 44);
}