summaryrefslogtreecommitdiff
path: root/kvmd/web/css
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/web/css')
-rw-r--r--kvmd/web/css/keyboard.css10
-rw-r--r--kvmd/web/css/main.css1
-rw-r--r--kvmd/web/css/mobile.css65
3 files changed, 71 insertions, 5 deletions
diff --git a/kvmd/web/css/keyboard.css b/kvmd/web/css/keyboard.css
index f19a5689..7686a3f3 100644
--- a/kvmd/web/css/keyboard.css
+++ b/kvmd/web/css/keyboard.css
@@ -42,15 +42,15 @@ div#keyboard div.key:hover, div.modifier:hover {
color: var(--fg-color-intensive);
background-color: var(--bg-color-ctl);
}
-div#keyboard div.pressed, div.pressed {
+div#keyboard div.pressed {
box-shadow: none;
- color: var(--fg-color-selected);
- background-color: var(--bg-color-dark);
+ 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);
- background-color: var(--bg-color-intensive);
+ 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;
diff --git a/kvmd/web/css/main.css b/kvmd/web/css/main.css
index 630536da..dec3cb45 100644
--- a/kvmd/web/css/main.css
+++ b/kvmd/web/css/main.css
@@ -7,6 +7,7 @@ body {
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
+ touch-action: manipulation;
}
img#logo {
-webkit-filter: invert(0.7);
diff --git a/kvmd/web/css/mobile.css b/kvmd/web/css/mobile.css
new file mode 100644
index 00000000..9d686da2
--- /dev/null
+++ b/kvmd/web/css/mobile.css
@@ -0,0 +1,65 @@
+/*
+ http://stephen.io/mediaqueries/
+ https://gist.github.com/gokulkrishh/242e68d1ee94ad05f488
+*/
+
+@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {
+ div.window {
+ padding-top: 45px !important;
+ }
+ div.window-header {
+ height: 35px !important;
+ }
+ div.window-grab {
+ height: 35px !important;
+ }
+ button.window-button-close {
+ height: 40px !important;
+ }
+
+ div#keyboard div.key:hover, div.modifier:hover {
+ color: var(--fg-color-normal);
+ background-color: var(--bg-color-gray);
+ }
+}
+
+@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
+ div.ctl-dropdown-content button {
+ height: 45px !important;
+ }
+
+ div#stream-window {
+ padding-top: 9px !important;
+ border-top: 0 !important;
+ border-radius: 0 0 8px 8px !important;
+ top: 50px !important;
+ left: 50% !important;
+ -webkit-transform: translateX(-50%) !important;
+ transform: translateX(-50%) !important;
+ }
+ div#stream-window-header {
+ display: none !important;
+ }
+
+ div#keyboard {
+ zoom: 1.1 !important;
+ }
+ div#keyboard-window {
+ visibility: visible !important;
+ padding-top: 9px !important;
+ padding-bottom: 30px !important;
+ border-bottom: 0 !important;
+ border-left: 0 !important;
+ border-right: 0 !important;
+ border-radius: 0 !important;
+ top: unset !important;
+ bottom: 0 !important;
+ width: 100% !important;
+ left: 50% !important;
+ -webkit-transform: translateX(-50%) !important;
+ transform: translateX(-50%) !important;
+ }
+ div#keyboard-window-header {
+ display: none !important
+ }
+}