-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
98 lines (84 loc) · 1.37 KB
/
style.css
File metadata and controls
98 lines (84 loc) · 1.37 KB
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins";
font-weight: 500;
color: white;
}
html,
body {
height: 100%;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.piano {
padding: 0px 20px;
height: 400px;
background-color: #111;
border-radius: 10px;
}
.piano header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 30px;
}
.piano header div input {
accent-color: white;
}
.piano header div span {
opacity: 65%;
}
.piano header h1 {
opacity: 65%;
}
.piano-keys ul {
display: flex;
list-style: none;
}
.piano-keys {
margin-top: 40px;
display: flex;
justify-content: center;
}
.key.white {
height: 160px;
width: 50px;
background: white;
border-radius: 5px;
z-index: 1;
border: 1px solid black;
display: flex;
justify-content: center;
align-items: flex-end;
position: relative;
}
.key.white span {
color: black;
position: absolute;
bottom: 5px;
}
.key.white:hover {
background: rgb(198, 198, 198);
}
.key.black {
height: 120px;
width: 35px;
background: linear-gradient(#333, #000);
border-radius: 5px;
z-index: 2;
margin-left: -15px;
margin-right: -15px;
display: flex;
justify-content: center;
align-items: flex-end;
}
.key {
transition: transform 0.08s ease;
}
.key:active {
transform: scale(1.05);
}