-
Notifications
You must be signed in to change notification settings - Fork 1
/
styles.css
144 lines (123 loc) · 2.51 KB
/
styles.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
transition: all 0.2s ease;
}
body {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
background: #fefefe;
padding: 0 10px;
flex-direction: column;
}
.wrapper {
background: #121212;
width: 1100px;
border-radius: 24px;
padding: 36px 42px;
}
.wrapper header {
color: #dadada;
display: flex;
align-items: center;
justify-content: space-between;
}
header h2 {
font-size: 1.6rem;
user-select: none;
}
header .column {
display: flex;
align-items: center;
}
header .column span {
font-weight: 500;
font-size: 1.2rem;
margin-right: 16px;
}
.volume-slider input {
accent-color: #fff;
outline: none;
}
.keys-checkbox input {
appearance: none;
background: #2e2e2e;
width: 64px;
height: 32px;
border-radius: 32px;
position: relative;
cursor: pointer;
}
.keys-checkbox input::before {
content: "";
height: 24px;
width: 24px;
left: 5px;
border-radius: inherit;
background: #ababab;
position: absolute;
top: 50%;
transform: translateY(-50%);
transition: all 0.2s ease;
}
.keys-checkbox input:checked::before {
left: 35px;
background: #fff;
}
.piano-keys {
display: flex;
margin-top: 36px;
}
.piano-keys .key {
list-style: none;
color: #b0b0b0;
position: relative;
text-transform: uppercase;
cursor: pointer;
user-select: none;
}
.piano-keys .white {
width: 60px;
height: 240px;
border-radius: 8px;
background: linear-gradient(#fff 96%, #ddd 4%);
border: 1px solid #000;
}
.piano-keys .white.active {
background: linear-gradient(to bottom, #fff 0%, #ddd 100%);
box-shadow: inset -4px 4px 24px rgba(0, 0, 0, 0.14);
}
.piano-keys .black {
width: 44px;
height: 140px;
border-radius: 0 0 6px 6px;
margin: 0 -22px 0 -22px;
z-index: 2;
background: linear-gradient(#2b2b2b, #000);
}
.piano-keys .black.active {
background: linear-gradient(to bottom, #000, #2b2b2b);
box-shadow: inset -4px 4px 14px rgba(255, 255, 255, 0.06);
}
.piano-keys span {
position: absolute;
bottom: 24px;
width: 100%;
text-align: center;
font-size: 1.14rem;
}
.piano-keys .key.hide span {
display: none;
}
#hint {
margin-top: 2%;
color: #ffffff;
}
#hint:hover {
color: #000000;
}