summaryrefslogtreecommitdiff
path: root/kvmd/web/css/main.css
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-07-25 10:34:44 +0300
committerDevaev Maxim <[email protected]>2018-07-25 10:34:44 +0300
commit922e303c7045e2b1da8116611e53efb8e8d77e08 (patch)
tree68d98aa1504a69d548a431073a9763f2a67fbb56 /kvmd/web/css/main.css
parent22c060956e37a9cb1733a3e7f808048779a5a72a (diff)
virtual keyboard prototype
Diffstat (limited to 'kvmd/web/css/main.css')
-rw-r--r--kvmd/web/css/main.css169
1 files changed, 17 insertions, 152 deletions
diff --git a/kvmd/web/css/main.css b/kvmd/web/css/main.css
index 0416732a..3089a6d1 100644
--- a/kvmd/web/css/main.css
+++ b/kvmd/web/css/main.css
@@ -1,28 +1,3 @@
-:root {
- --dark-border: 1px solid #17191d;
- --black-border: 1px solid black;
-
- --small-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
- --big-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.4);
-
- --bg-color-normal: #36393f;
- --bg-color-light: #484b51;
- --bg-color-dark: #17191d;
- --bg-color-ctl: #202225;
- --bg-color-hovered: #1a1c1f;
- --bg-color-selected: #171717;
- --bg-color-progress: #171717;
-
- --fg-color-normal: #c3c3c3;
- --fg-color-dark: #aaaaaa;
- --fg-color-intensive: white;
- --fg-color-inactive: #6c7481;
- --fg-color-selected: #6c7481;
- --fg-color-progress: #436a8a;
-
- --bg-color-stream-screen: black;
-}
-
body {
margin: 0;
overflow: hidden;
@@ -32,34 +7,15 @@ body {
}
img#logo {
-webkit-filter: invert(0.7);
+ -moz-filter: invert(0.7);
filter: invert(0.7);
vertical-align: middle;
padding: 13px 15px;
}
-div.window {
- user-select: none;
- position: absolute;
- border: var(--dark-border);
- border-radius: 8px;
- box-sizing: border-box;
- box-shadow: var(--big-shadow);
- display: inline-block;
- background-color: var(--bg-color-light);
- padding: 3px 10px 10px 10px;
- top: 70px;
- left: 50%;
- -webkit-transform: translate(-50%);
- -moz-transform: translate(-50%);
- transform: translate(-50%);
-}
-div.window-header {
- color: var(--fg-color-dark);
- cursor: move;
- padding-bottom: 3px;
-}
-
ul#ctl {
+ -webkit-user-select: none;
+ -moz-user-select: none;
user-select: none;
box-shadow: var(--small-shadow);
list-style-type: none;
@@ -95,10 +51,14 @@ ul#ctl li a.ctl-item:hover:not(.active) {
background-color: var(--bg-color-hovered);
}
div.ctl-dropdown-content {
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ user-select: none;
overflow: hidden;
- user-select: text;
white-space: nowrap;
border: var(--dark-border);
+ -webkit-border-radius: 0 0 8px 8px;
+ -moz-border-radius: 0 0 8px 8px;
border-radius: 0 0 8px 8px;
position: absolute;
background-color: var(--bg-color-ctl);
@@ -160,106 +120,7 @@ div.ctl-dropdown-content-text {
font-size: 14px;
}
-img#stream-image {
- width: 640px;
- height: 480px;
- display: inline-block;
- border: var(--dark-border);
- background-color: var(--bg-color-stream-screen);
-}
-img.stream-image-active {
- cursor: crosshair;
- -webkit-filter: none;
- filter: none;
-}
-img.stream-image-inactive {
- cursor: wait;
- -webkit-filter: grayscale(100%) brightness(75%);
- filter: grayscale(100%) brightness(75%);
-}
-
-img.led-on {
- -webkit-filter: invert(0.5) sepia(1) saturate(5) hue-rotate(100deg);
- filter: invert(0.5) sepia(1) saturate(5) hue-rotate(100deg);
-}
-img.led-off {
- -webkit-filter: invert(0.5);
- filter: invert(0.5);
-}
-img.led-hdd-busy {
- -webkit-filter: invert(0.5) sepia(1) saturate(15) hue-rotate(320deg);
- filter: invert(0.5) sepia(1) saturate(15) hue-rotate(320deg);
-}
-img.led-msd-writing {
- -webkit-filter: invert(0.5) sepia(1) saturate(5) hue-rotate(0deg);
- filter: invert(0.5) sepia(1) saturate(5) hue-rotate(0deg);
- -webkit-animation:spin 2s linear infinite;
- -moz-animation:spin 2s linear infinite;
- animation:spin 2s linear infinite;
-}
-@-webkit-keyframes spin {
- 100% {
- -webkit-transform: rotate(360deg);
- }
-}
-@-moz-keyframes spin {
- 100% {
- -moz-transform: rotate(360deg);
- }
-}
-@keyframes spin {
- 100% {
- -webkit-transform: rotate(360deg);
- -moz-transform: rotate(360deg);
- transform:rotate(360deg);
- }
-}
-
-div#msd-menu {
- width: 450px;
-}
-
-table#msd-info {
- user-select: text;
- border-spacing: 5px;
- margin: 0 10px 0 10px;
- font-size: 12px;
-}
-table#msd-info
-td#msd-status,
-td#msd-current-image-name,
-td#msd-current-image-size,
-td#msd-storage-size,
-td#msd-new-image-name,
-td#msd-new-image-size {
- font-weight: bold;
- max-width: 310px;
- overflow: hidden;
-}
-
-div#msd-progress {
- background-color: var(--bg-color-progress);
- height: 1.5em;
- width: 100%;
- position: relative;
-}
-div#msd-progress:before {
- color: var(--fg-color-intensive);
- content: attr(data-label);
- font-size: 0.8em;
- position: absolute;
- text-align: center;
- top: 4px;
- left: 0;
- right: 0;
-}
-div#msd-progress span#msd-progress-value {
- background-color: var(--fg-color-progress);
- display: inline-block;
- height: 100%;
-}
-
-ul#bottom {
+ul#footer {
list-style-type: none;
bottom: 0;
position: fixed;
@@ -269,16 +130,20 @@ ul#bottom {
color: var(--fg-color-inactive);
z-index: -10;
}
-ul#bottom li {
+ul#footer li {
padding: 0 10px;
}
-ul#bottom li.bottom-left {
+ul#footer li.footer-left {
float: left;
}
-ul#bottom li.bottom-right {
+ul#footer li.footer-right {
float: right;
}
-ul#bottom li a {
+ul#footer li a {
text-decoration: underline dotted;
color: var(--fg-color-inactive);
}
+ul#footer li a:hover {
+ text-decoration: underline;
+ color: var(--fg-color-inactive);
+}