-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.css
87 lines (75 loc) · 1.68 KB
/
main.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
html,body{
margin: 0;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
font-size: 18px;
}
body{
background: #AAFFA9; /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #11FFBD, #AAFFA9); /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #11FFBD, #AAFFA9); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}
a {
text-decoration: none;
}
main{
height: 100vh;
}
main > .wrapper{
padding: 20px;
background-color: rgba(255,255,255,.5);
border-radius: 10px;
}
kbd {
display: inline-block;
vertical-align: top;
text-transform: uppercase;
position: relative;
}
kbd > .button{
position: absolute;
right: -2px;
bottom: 0;
border: none;
border-radius: 3px;
transform: scale(0.8);
background-color: rgb(17, 100, 65);
padding: 0;
color: #c5c5c5;
display: none;
}
kbd:hover > button{
display: inline-block;
}
main {
text-align: center;
display: flex;
justify-content: center;
align-items: center;
}
main div:nth-child(3) {
margin-left: -70px;
}
.key{
width: 50px;
height: 40px;
background-image: linear-gradient(to bottom,#292929 0%,#111111 100%);
border: 1px solid #373737;
color: #c5c5c5;
border-radius: 6px;
box-shadow: 0 0 0 1px #1a1b1c,0 0 0 1px #1f2020,0 3px 0 1px #080808;
margin: 10px 10px;
position: relative;
}
.key img{
width: 16px;
height: 16px;
position: absolute;
left: 4px;
bottom: 2px;
}
.key .text{
position: absolute;
left: 0;
left: 4px;
}