summaryrefslogtreecommitdiff
path: root/web/share/css/x-mobile.css
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-10-16 23:51:27 +0300
committerMaxim Devaev <[email protected]>2022-10-16 23:51:27 +0300
commite5ed253d680b7831ce3a3b2603971620cf5eb644 (patch)
treea794e16a95c48d8b1a9a6028e067ebb1e128df1f /web/share/css/x-mobile.css
parent5d54b32ab603ba010125564bf550585a7348c390 (diff)
fixed browser detection, loading css from js
Diffstat (limited to 'web/share/css/x-mobile.css')
-rw-r--r--web/share/css/x-mobile.css121
1 files changed, 121 insertions, 0 deletions
diff --git a/web/share/css/x-mobile.css b/web/share/css/x-mobile.css
new file mode 100644
index 00000000..8a72fba2
--- /dev/null
+++ b/web/share/css/x-mobile.css
@@ -0,0 +1,121 @@
+/*****************************************************************************
+# #
+# 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/>. #
+# #
+*****************************************************************************/
+
+
+/* ===== main.css ===== */
+
+button:active,
+select:active,
+input[type=file]:active::-webkit-file-selector-button,
+input[type=file]:active::file-selector-button {
+ color: var(--cs-control-hovered-fg);
+ background-color: var(--cs-control-hovered-bg);
+}
+
+@media only screen and (orientation: portrait) {
+ button,
+ select,
+ input[type=text],
+ input[type=password],
+ input[type=file]::-webkit-file-selector-button,
+ input[type=file]::file-selector-button {
+ height: 45px !important;
+ }
+}
+
+
+/* ===== window.css ===== */
+
+div.window {
+ padding-top: 45px !important;
+}
+div.window div.window-header {
+ height: 35px !important;
+}
+div.window div.window-header div.window-grab {
+ height: 35px !important;
+}
+div.window div.window-header button.window-button-full-screen,
+div.window div.window-header button.window-button-enter-full-tab,
+div.window div.window-header button.window-button-original,
+div.window div.window-header button.window-button-maximize,
+div.window div.window-header button.window-button-close {
+ height: 40px !important;
+}
+
+
+/* ===== modal.css ===== */
+
+@media only screen and (orientation: portrait) {
+ div.modal-buttons button {
+ height: 50px !important;
+ }
+}
+
+
+/* ===== navbar.css ===== */
+
+ul#navbar li a#logo:hover:not(.active),
+ul#navbar li a.menu-button:hover:not(.active) {
+ background-color: var(--cs-navbar-default-bg);
+}
+
+
+/* ===== radio.css ===== */
+
+@media only screen and (orientation: portrait) {
+ div.radio-box input[type=radio] + label {
+ height: 30px !important;
+ }
+}
+
+
+/* ===== slider.css ===== */
+
+@media only screen and (orientation: portrait) {
+ @supports (-webkit-appearance: none) {
+ input[type=range].slider {
+ margin: 20px 0 20px 0 !important;
+ }
+ }
+}
+
+
+/* ===== tabs.css ===== */
+
+@media only screen and (orientation: portrait) {
+ div.tabs-box label {
+ height: 30px !important;
+ }
+}
+
+
+/* ===== keypad.css ===== */
+
+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);
+}