-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
style.css
98 lines (81 loc) · 1.33 KB
/
style.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
@import url("https://fonts.googleapis.com/css?family=Montserrat:400&display=swap");
*{
color: #F5F5F5;
box-sizing: border-box;
-webkit-tap-highlight-color: transparent;
}
:root{
font-size: 18px;
user-select: none;
}
body{
height: 100vh;
margin: 0;
background-color: #3E4750;
font-family: Montserrat, sans-serif;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
footer{
padding: .2rem 0;
font-size: .8rem;
position: absolute;
bottom: 0;
}
h1{
margin: 0 0 6rem 0;
font-size: 4rem;
font-weight: 400;
}
p{
max-width: 90vw;
margin-top: 4rem;
font-size: .9rem;
text-align: center;
}
.piano{
display: flex;
}
.key{
width: var(--width);
height: calc(var(--width) * 4);
}
.white{
--width: 100px;
background-color: #FFF;
border-right: 4px solid #555;
}
.white:last-child{
border: none;
}
.white.active{
background-color: #DDD;
}
.black{
--width: 60px;
margin: 0 calc(var(--width) / -2);
background-color: #000;
z-index: 1;
}
.black.active{
background-color: #222;
}
@media only screen and (max-width: 768px){
h1{
margin: 0 0 3rem 0;
font-size: 3rem;
}
p{
display: none;
}
.key.white{
--width: 50px;
}
.key.black{
--width: 30px;
}
}