-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
65 lines (55 loc) · 1.19 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: linear-gradient(to right, #00c6fb 0%, #005bea 100%);
background-attachment: fixed;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.piano {}
.piano-panel {
height: 90px;
background-color: rgb(25, 3, 219);
border: outset #0046b6;
}
.piano-keys {
height: 190px;
display: flex;
}
.key {}
.key-white {
height: 100%;
width: 65px;
background: linear-gradient(#fff, rgb(201, 201, 201));
border-right: 2px solid #000000;
border-left: 2px solid #000000;
border-bottom: 6px solid #646464;
border-radius: 0 0 8px 8px;
}
.key-black {
height: 60%;
width: 40px;
background: linear-gradient(#474747 10%, #0d0d0d);
margin-left: -22px;
margin-right: -22px;
z-index: 2;
border-right: 2px solid #000000;
border-left: 2px solid #000000;
border-bottom: 2px solid #000000;
border-radius: 0 0 8px 8px;
}
.key-white:active {
background: linear-gradient(rgb(201, 201, 201), #fff);
}
.key-black:active {
background: linear-gradient(#0d0d0d 60%, #474747);
}
.key:hover,
.key:active {
cursor: pointer;
}