-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom.css
65 lines (62 loc) · 1.33 KB
/
custom.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
@import url("https://fonts.googleapis.com/css?family=Raleway:400,400i,700");
html, body {
background: linear-gradient(to left, #fd746c , #ff9068);
height: 100%;
width: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
overflow: hidden;
font-family: Raleway, sans-serif;
}
h1 {
color: black;
font-size: 5vw;
letter-spacing: 6px;
}
.pad {
width: 400px;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
padding: 20px 30px;
background-color: white;
border: 4px solid black;
box-shadow: 4px 4px 0 0 black;
}
.key {
width: 100px;
height: 100px;
margin: 10px 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
font-size: 20px;
font-weight: 500;
color: black;
background-color: white;
border: 4px solid black;
box-shadow: 4px 4px 0 0 black;
user-select: none;
transform: translate(0, 0);
}
.sound {
font-size: 14px;
text-transform: uppercase;
color: #ff9068;
margin-top: 7px
}
.key.playing {
background-color: #ddd;
box-shadow: 0 0 0 0 black;
transform: translate(4px, 4px);
border-color: #fd746c;
transition: all 300ms cubic-bezier(0.075, 0.82, 0.165, 1);
}
.key.playing .sound {
color: #fd746c;
transform: scale(1.5);
transition: all 300ms cubic-bezier(0.075, 0.82, 0.165, 1);
}