forked from hakimel/reveal.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
keyb.css
68 lines (58 loc) · 975 Bytes
/
keyb.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
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #f4f4f4;
}
.keyboard {
display: flex;
flex-direction: column;
align-items: center;
}
.row {
display: flex;
justify-content: center;
margin: 5px 0;
}
.key {
background-color: #fff;
border: 2px solid #ddd;
border-radius: 5px;
padding: 10px 15px;
margin: 3px;
opacity: 100%;
font-size: 14px;
cursor: pointer;
transition: all 0.3s;
}
.key:hover {
background-color: #e0e0e0;
}
.key:active {
background-color: #ccc;
}
.key:focus {
outline: none;
}
.key.space {
width: 300px;
}
.key.backspace,
.key.tab,
.key.capslock,
.key.enter,
.key.shift,
.key.ctrl {
width: auto;
padding: 10px 20px;
}
.key.backslash {
padding: 10px 12px;
}
@keyframes opacityTransition {
0% {opacity: 100%;}
100% {opacity: 0;}
}