-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
94 lines (82 loc) · 1.8 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
/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&display=swap');
/* Set Fonts and Resets */
body,
html {
background: black;
margin: 0;
overflow-x: hidden;
padding: 0;
font-family: 'Nunito', sans-serif;
font-weight: 400;
}
/* With Flexbox, Horizontally and vertically cneter */
body {
display: -webkit-box;
display: flex;
flex-flow: column;
-webkit-box-pack: center;
justify-content: center;
-webkit-box-align: center;
align-items: center;
min-height: 100vh;
}
/* Title */
h1 {
font-family: 'Nunito', sans-serif;
font-weight: 700;
color: #E6E6E6;
display: block;
font-size: 3.5rem;
}
/* Actual Keyboard Keys */
kbd {
font-family: 'Nunito', sans-serif;
font-weight: 700;
display: block;
font-size: 4rem;
color: #E6E6E6;
}
/* Name of Sound */
.sound {
font-size: 1.2rem;
letter-spacing: 0.1rem;
color: #e2e2e2;
}
/* Use CSS Grid to display keys */
.keys {
display: grid;
grid-template-columns: repeat(3, 1fr);
-webkit-box-align: center;
align-items: center;
-webkit-box-pack: center;
justify-content: center;
position: relative;
}
/* Visual Keys / Squares */
.key {
/* Typography */
margin: 1rem;
font-size: 1.5rem;
padding: 1rem 0.5rem;
/* Styling of keys */
width: 10rem;
text-align: center;
outline: 1px solid #E6E6E6;
border-radius: 15px;
/* Change mouse pointer */
cursor:pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
/* Call Transition */
transition: all 0.07s ease;
}
/* Transition Animation. Last frame of animation. */
.playing {
-webkit-transform: scale(1.1);
transform: scale(1.1);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
background: white;
}