From ddabd32807cf6a693127a31532bb9651060a778f Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Mon, 16 Jul 2018 23:29:29 +0300 Subject: [PATCH] pretty ui --- kvmd/web/css/main.css | 119 ++++++++++++++++++++++++++++++++++++------ kvmd/web/index.html | 62 ++++++++++++---------- kvmd/web/svg/logo.svg | 103 ++++++++++++++++++++++++++++++++++++ 3 files changed, 242 insertions(+), 42 deletions(-) create mode 100644 kvmd/web/svg/logo.svg diff --git a/kvmd/web/css/main.css b/kvmd/web/css/main.css index 7090ce5a..0b50df02 100644 --- a/kvmd/web/css/main.css +++ b/kvmd/web/css/main.css @@ -1,3 +1,99 @@ +body { + margin: 0px; +} +img#logo { + height: 24px; + -webkit-filter: invert(0.7); + filter: invert(0.7); +} +div.centered { + position: absolute; + top: 8%; + left: 50%; + -webkit-transform: translate(-50%); + -moz-transform: translate(-50%); + transform: translate(-50%); +} + +ul#ctl { + list-style-type: none; + margin: 0; + padding: 0; + background-color: #333; + position: fixed; + top: 0; + width: 100%; + z-index: 1; +} +ul#ctl li a:hover:not(.active) { + background-color: #111; +} +ul#ctl li.ctl-left { + float: left; +} +ul#ctl li.ctl-left-sep:last-child { + float: left; + border-right: 1px solid black; +} +ul#ctl li.ctl-right { + float: right; +} +ul#ctl li.ctl-right-sep:not(last-child) { + float: right; + border-left: 1px solid black; +} +ul#ctl p { + color: #aeaeae; + margin: 0px; + padding: 15px 16px; +} +ul#ctl img { + margin: 0px; + padding: 11px 11px; +} +ul#ctl a.ctl-item { + display: block; + color: #e1e1e1; + text-align: center; + padding: 15px 16px; + text-decoration: none; +} +div.ctl-dropdown { + position: relative; + display: inline-block; +} +div.ctl-dropdown-content { + display: none; + position: absolute; + background-color: #e1e1e1; + min-width: 160px; + box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); + z-index: 2; +} +div.ctl-dropdown:hover .ctl-dropdown-content { + display: block; +} +div.ctl-dropdown:hover .ctl-item { + background-color: #111; +} +div.ctl-dropdown-content button { + /*color: #111;*/ + display: block; + width: 100%; + white-space:nowrap; + height: 30px!important; + font-size: 16px!important; + text-align: left; +} +div.ctl-dropdown-content button:enabled:hover { + color: white; + background-color: #5f5f5f!important; +} + +div.ctl-dropdown-content hr { + margin: 0px; +} + div#stream-box { box-sizing: border-box; display: inline-block; @@ -30,20 +126,20 @@ img#hid-keyboard-led { height: 24px; } img.led-on { - -webkit-filter: invert(.5) sepia(1) saturate(5) hue-rotate(100deg); - filter: invert(.5) sepia(1) saturate(5) hue-rotate(100deg); + -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(.5); - filter: invert(.5); + -webkit-filter: invert(0.5); + filter: invert(0.5); } img.led-hdd-busy { - -webkit-filter: invert(.5) sepia(1) saturate(15) hue-rotate(320deg); - filter: invert(.5) sepia(1) saturate(15) hue-rotate(320deg); + -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(.5) sepia(1) saturate(5) hue-rotate(0deg); - filter: invert(.5) sepia(1) saturate(5) hue-rotate(0deg); + -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; @@ -51,10 +147,3 @@ img.led-msd-writing { @-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } } @-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } } @keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } } - -button#stream-reset-button, -button#atx-power-button, -button#atx-power-button-long, -button#atx-reset-button { - height: 24px; -} diff --git a/kvmd/web/index.html b/kvmd/web/index.html index 77e3a489..abd232c9 100644 --- a/kvmd/web/index.html +++ b/kvmd/web/index.html @@ -18,33 +18,41 @@ -
- Loading... -
- - - - - - - - - - -
    
-
+ + +
+
+ Loading... +
+
diff --git a/kvmd/web/svg/logo.svg b/kvmd/web/svg/logo.svg new file mode 100644 index 00000000..548ede08 --- /dev/null +++ b/kvmd/web/svg/logo.svg @@ -0,0 +1,103 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + +