summaryrefslogtreecommitdiff
path: root/web/share/css/keypad.css
blob: e8c2d4043021a1abda5936d0f5fa17a3f4cae9fd (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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
/*****************************************************************************
#                                                                            #
#    KVMD - The main PiKVM daemon.                                           #
#                                                                            #
#    Copyright (C) 2018-2022  Maxim Devaev <[email protected]>               #
#                                                                            #
#    This program is free software: you can redistribute it and/or modify    #
#    it under the terms of the GNU General Public License as published by    #
#    the Free Software Foundation, either version 3 of the License, or       #
#    (at your option) any later version.                                     #
#                                                                            #
#    This program is distributed in the hope that it will be useful,         #
#    but WITHOUT ANY WARRANTY; without even the implied warranty of          #
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           #
#    GNU General Public License for more details.                            #
#                                                                            #
#    You should have received a copy of the GNU General Public License       #
#    along with this program.  If not, see <https://www.gnu.org/licenses/>.  #
#                                                                            #
*****************************************************************************/


div.keypad {
	zoom: 0.8;
}

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

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

div.keypad div.keypad-row div.spacer {
	margin: 2px;
	flex-grow: 1;
}
div.keypad div.keypad-row div.spacer-fixed {
	margin: 3px;
}

div.keypad div.key,
div.keypad div.modifier,
div.keypad div.empty {
	box-sizing: border-box;
	padding: 0;
	width: 40px;
}
div.keypad div.key,
div.keypad div.modifier {
	font-size: 0.9em;
	text-align: center;
	vertical-align: top;
	box-shadow: var(--shadow-micro);
	border: var(--border-key-thin);
	border-radius: 6px;
	color: var(--cs-key-default-fg);
	background-color: var(--cs-key-default-bg);
	cursor: pointer;
	height: 40px;
}
div.keypad div.key:hover,
div.keypad div.modifier:hover {
	color: var(--cs-key-hovered-fg);
	background-color: var(--cs-key-hovered-bg);
}
div.keypad div.rounded-left {
	border-radius: 6px 0px 0px 6px !important;
}
div.keypad div.rounded-right {
	border-radius: 0px 6px 6px 0px !important;
}
div.keypad div.rounded-none {
	border-radius: 0px !important;
}
div.keypad div.pressed {
	box-shadow: none;
	color: var(--cs-key-pressed-fg) !important;
	background-color: var(--cs-key-pressed-bg) !important;
}
div.keypad div.holded {
	box-shadow: none;
	color: var(--cs-key-default-fg) !important;
	background-color: var(--cs-key-holded-bg) !important;
}
div.keypad div.key:last-child,
div.keypad div.empty:last-child,
div.keypad div.modifier:last-child {
	margin-right: 0;
}
div.keypad div.wide-0 {
	width: 28px;
}
div.keypad div.wide-1 {
	width: 61px;
}
div.keypad div.wide-2 {
	width: 77px;
}
div.keypad div.wide-3 {
	width: 102px;
}
div.keypad div.wide-4 {
	flex-grow: 1;
	width: 288px;
}
div.keypad div.left {
	text-align: left !important;
	padding-left: 6px !important;
}
div.keypad div.right {
	text-align: right !important;
	padding-right: 6px !important;
}
div.keypad div.small {
	font-size: 0.7em;
}

div.keypad div.label {
	margin: 0;
	position: relative;
	top: 50%;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
}

div.keypad b {
	color: var(--cs-key-holded-bg);
}

@media only screen and (pointer: coarse) {
	div.keypad {
		zoom: 1.28 !important;
	}

	div.keypad div.key:hover,
	div.keypad div.modifier:hover {
		color: var(--cs-key-default-fg);
		background-color: var(--cs-key-default-bg);
	}
}