-
Notifications
You must be signed in to change notification settings - Fork 0
/
kbd.css
53 lines (45 loc) · 1.2 KB
/
kbd.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
kbd, .kbd{
display: inline-block;
padding: .17em .6em .17em .4em;
margin: 0 .2em;
position: relative;
top: -.2em;
color: #333;
font: normal .8em/1 sans-serif;
text-decoration: none;
box-shadow: inset 0 -.2em .12em -.15em rgba(255, 255, 255, .7);
cursor:default;
border-radius: .3em;
background: -ms-radial-gradient(top, ellipse cover, #ddd 0%,white 100%);
background: radial-gradient(ellipse at top right, #ddd 0%,white 100%);
}
kbd::before, .kbd::before, kbd::after, .kbd::after{
content:'';
position:absolute;
left:-.17em;
right:-.17em;
top:.1em;
bottom:-.4em;
border-radius: .4em;
}
/*white highlight*/
kbd::before, .kbd::before{
z-index:-1;
border:1px solid gray;
background: #a8a8a8;
background: radial-gradient(circle 3em at -1.7em 0, white 0%, white 70% ,rgba(255,255,255,0) 80%);
}
kbd::after, .kbd::after{
z-index:-2;
background: #a8a8a8;
background: radial-gradient(ellipse 1em 1.7em at top right, #aaa 0%, #aaa 70%, #ccc 100%);
}
.kbd-down{
top: 0em;
box-shadow: inset 0 -.2em .3em -.1em rgba(200, 200, 200, .5);
}
.kbd-down::before, .kbd-down::after{
top:-.1em;
bottom: -.2em;
}
.kbd-down::before{ box-shadow: inset 0px 1px 6px 0px rgba(0,0,0,1); }