/
keymap.css
executable file
·62 lines (53 loc) · 1.14 KB
/
keymap.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
/**
* @author Andr3as <andranode@gmail.com>
* @license https://github.com/Andr3as/jQuery-Keymap/blob/master/LICENSE.md MIT
* @version 2.0.0
* @date 15/08/2015
*/
/*
* Copyright (c) Andr3as
* as-is and without warranty under the MIT License.
* See http://opensource.org/licenses/MIT for more information.
* This information must remain intact.
*/
.keymap span {
display: block;
margin: 1px 1px 1px 0;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.keymap .keymap-line {
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
.keymap p {
text-align: center;
}
.keymap span[data-height] {
position: absolute;
z-index: 2;
}
.keymap span[data-index] {
position: absolute;
z-index: 3;
}
.keymap .first, .keymap .second {
margin: 0.5em;
}
.keymap .hasFirst .second, .keymap .hasSecond .first {
margin: 0.2em;
}
.keymap .hasSecond .third {
bottom: 1.5em;
position: relative;
z-index: 3;
right: -1em;
}
.keymap span:not(.hasSecond) .third {
bottom: 1em;
position: relative;
right: -1em;
}