summaryrefslogtreecommitdiff
path: root/kvmd/web/css/keyboard.css
blob: ebe1d95e1b630df5eb1601d6a71085f066c8f4d1 (plain)
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
div.keyboard {
	zoom: 0.8;
}

div.keyboard div.keyboard-block {
	display: table-cell;
	padding-right: 0;
}
div.keyboard div.keyboard-block:not(:first-child) {
	padding-left: 15px;
}

div.keyboard div.keyboard-row {
	white-space: nowrap;
	height: 40px;
	margin-bottom: 5px;
}
div.keyboard div.keyboard-row:last-child {
	margin-bottom: 0;
}

div.keyboard div.key, div.modifier, div.empty-key {
	box-sizing: border-box;
	display: inline-block;
	margin-right: 5px;
	padding: 0;
	width: 40px;
}
div.keyboard div.key, div.modifier {
	font-size: 0.9em;
	text-align: center;
	vertical-align: top;
	box-shadow: var(--micro-shadow);
	border: var(--grey-border);
	border-radius: 6px;
	color: var(--fg-color-normal);
	background-color: var(--bg-color-gray);
	cursor: pointer;
	height: 40px;
}
div.keyboard div.key:hover, div.modifier:hover {
	color: var(--fg-color-intensive);
	background-color: var(--bg-color-ctl);
}
div.keyboard div.pressed {
	box-shadow: none;
	color: var(--fg-color-selected) !important;
	background-color: var(--bg-color-dark) !important;
}
div.keyboard div.holded {
	box-shadow: none;
	color: var(--fg-color-normal) !important;
	background-color: var(--bg-color-intensive) !important;
}
div.keyboard div.key:last-child, div.empty-key:last-child, div.modifier:last-child {
	margin-right: 0;
}
div.keyboard div.margin-0 {
	margin-right: 0px;
}
div.keyboard div.wide-0 {
	width: 26px;
}
div.keyboard div.wide-1 {
	width: 61px;
}
div.keyboard div.wide-2 {
	width: 64px;
}
div.keyboard div.wide-3 {
	width: 77px;
}
div.keyboard div.wide-4 {
	width: 102px;
}
div.keyboard div.wide-5 {
	width: 288px;
}
div.keyboard div.left {
	text-align: left !important;
	padding-left: 6px !important;
}
div.keyboard div.right {
	text-align: right !important;
	padding-right: 6px !important;
}
div.keyboard div.small {
	font-size: 0.7em;
}

div.keyboard p {
	margin: 0;
	position: relative;
	top: 50%;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
}
div.keyboard b {
	color: var(--bg-color-intensive);
}

div#keyboard-desktop {
	display: block;
}
div#keyboard-mobile {
	display: none;
}