-
-
Notifications
You must be signed in to change notification settings - Fork 111
Expand file tree
/
Copy pathstyles.css
More file actions
43 lines (36 loc) · 612 Bytes
/
styles.css
File metadata and controls
43 lines (36 loc) · 612 Bytes
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
*, *::before, *::after {
box-sizing: border-box;
}
body {
background-color: #143F6B;
margin: 0;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.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;
}