-
Notifications
You must be signed in to change notification settings - Fork 0
/
updated-piano.css
73 lines (63 loc) · 1.16 KB
/
updated-piano.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
html {
box-sizing: border-box;
}
*,
::after,
::before {
box-sizing: inherit;
}
#piano {
width: 1100px;
height: 400px;
background: linear-gradient(#740404, #033d03, #5a055a, #520303);
background: -webkit-linear-gradient(#740404, #033d03, #5a055a, #520303);
margin: 80px auto;
position: relative;
border-radius: 30px;
}
.keys {
background-color: #220a0a;
width: 980px;
height: 290px;
padding-left: 5px;
margin: 60px auto;
overflow: hidden;
border-radius: 0 0 20px 20px;
}
.key {
background-color: rgb(115, 185, 247);
width: 40px;
height: 280px;
float: left;
margin: 3px;
position: relative;
border-radius: 0 0 8px 8px;
}
.key.black-key::after {
content: "";
position: absolute;
left: -20px;
width: 36px;
height: 180px;
background-color: #060606;
border-radius: 0 0 6px 6px;
}
@media (max-width: 768px) {
#piano {
width: 358px;
}
.keys {
width: 318px;
}
.logo {
width: 150px;
}
}
@media (max-width: 1199px) and (min-width: 769px) {
#piano {
width: 675px;
}
.keys {
width: 633px;
}
}