-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.css
72 lines (62 loc) · 1.64 KB
/
demo.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
/* CSS Piano Thanks to http://codepen.io/zastrow/pen/oDBki */
* {
box-sizing: border-box;
}
body {
margin: 0;
background: #222;
}
ul {
height: 18em;
width: 34em;
border-radius: 1em;
background: #111;
box-shadow: 0 0 50px rgba(0, 0, 0, 0.5) inset, 0 1px rgba(212, 152, 125, 0.2) inset, 0 5px 15px rgba(0, 0, 0, 0.5);
}
li {
margin: 0;
padding: 0;
list-style: none;
position: relative;
float: left;
}
ul .white {
height: 16em;
width: 4em;
z-index: 1;
border-left: 1px solid #bbb;
border-bottom: 1px solid #bbb;
border-radius: 0 0 5px 5px;
box-shadow: -1px 0 0 rgba(255, 255, 255, 0.8) inset, 0 0 5px #ccc inset, 0 0 3px rgba(0, 0, 0, 0.2);
background: -webkit-linear-gradient(top, #eee 0%, #fff 100%)
}
ul .white:active {
border-top: 1px solid #777;
border-left: 1px solid #999;
border-bottom: 1px solid #999;
box-shadow: 2px 0 3px rgba(0, 0, 0, 0.1) inset, -5px 5px 20px rgba(0, 0, 0, 0.2) inset, 0 0 3px rgba(0, 0, 0, 0.2);
background: linear-gradient(top, #fff 0%, #e9e9e9 100%);
}
.black {
height: 8em;
width: 2em;
margin: 0 0 0 -1em;
z-index: 2;
border: 1px solid #000;
border-radius: 0 0 3px 3px;
box-shadow: -1px -1px 2px rgba(255, 255, 255, 0.2) inset, 0 -5px 2px 3px rgba(0, 0, 0, 0.6) inset, 0 2px 4px rgba(0, 0, 0, 0.5);
background: linear-gradient(45deg, #222 0%, #555 100%);
}
.black:active {
box-shadow: -1px -1px 2px rgba(255, 255, 255, 0.2) inset, 0 -2px 2px 3px rgba(0, 0, 0, 0.6) inset, 0 1px 2px rgba(0, 0, 0, 0.5);
background: linear-gradient(left, #444 0%, #222 100%);
}
.d, .e, .g, .a, .b {
margin: 0 0 0 -1em;
}
ul li:first-child {
border-radius: 5px 0 5px 5px;
}
ul li:last-child {
border-radius: 0 5px 5px 5px;
}