-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
46 lines (46 loc) · 822 Bytes
/
style.css
File metadata and controls
46 lines (46 loc) · 822 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
44
45
46
*{
box-sizing: border-box;
margin: 0;
padding: 0;
}
body{
height: 100vh;
display: flex;
}
.container{
max-width: fit-content;
margin: auto;
display: flex;
border: 1px solid black;
box-shadow: 8px 20px 20px 6px rgba(0, 0, 0, 0.5);
}
.black-key,
.white-key{
width: 2rem;
height: 8rem;
font-family: sans-serif;
font-weight: bolder;
font-size: 1rem;
cursor: pointer;
}
.black-key p,
.white-key p{
margin-top:50px ;
margin-left:5px;
user-select: none;
}
.black-key{
background-color: black;
color: white;
}
.white-key{
background-color: white;
color: black;
text-align: center;
}
.pressed{
box-shadow:inset 2px -12px 19px 3px rgba(0, 0, 0, 0.3)
}
.pressed-w{
box-shadow: inset 2px -12px 19px 3px rgba(255, 255, 255, 0.3);
}