-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
136 lines (115 loc) · 1.68 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
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
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
html {
background: #9568e4;
height: 100vh;
}
.piano-container {
display: flex;
width: 90vw;
height: 57vh;
border: 10px solid #000634;
border-radius: 1rem;
margin: 0 auto;
position: relative;
padding: 1rem;
margin-top: 3rem;
}
.key {
width: 2.5rem;
height: 10rem;
border-radius: 0 0 4px 4px;
box-shadow: 2px 2px 10px 0px #ccc;
display: flex;
align-items: flex-end;
justify-content: center;
cursor: pointer;
}
.white-key {
border: 3px solid #010425;
background-color: #fff;
transition: 0.2s all;
}
.white-active,
.white-key:hover {
background-color: rgba(81, 182, 178);
border-bottom: none;
transform: rotate3d(1, 0, 0, 20deg);
}
.black-key {
background: rgb(36, 32, 30);
z-index: 1;
background: linear-gradient(
180deg,
rgba(36, 32, 30, 1) 26%,
rgba(79, 82, 71, 1) 86%
);
height: 7rem;
width: 1.5rem;
position: absolute;
top: 20px;
transition: 0.2s all;
}
.black-1 {
left: 46px;
}
.black-2 {
left: 87px;
}
.black-4 {
left: 169px;
}
.black-5 {
left: 210px;
}
.black-6 {
left: 251px;
}
.black-8 {
left: 333px;
}
.black-9 {
left: 374px;
}
.black-11 {
left: 456px;
}
.black-12 {
left: 497px;
}
.black-13 {
left: 538px;
}
.black-15 {
left: 620px;
}
.black-16 {
left: 661px;
}
.black-18 {
left: 743px;
}
.black-19 {
left: 784px;
}
.black-20 {
left: 825px;
}
.black-key:hover {
background: linear-gradient(
180deg,
rgba(36, 32, 30, 1) 26%,
rgba(136, 173, 33) 86%
);
transform: translateY(20px);
}
.black-key:active {
background: linear-gradient(
180deg,
rgba(36, 32, 30, 1) 26%,
rgb(164, 164, 164) 86%
);
}