One-KVM/kvmd/web/css/main.css
Devaev Maxim ddabd32807 pretty ui
2018-07-16 23:29:29 +03:00

150 lines
3.0 KiB
CSS

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;
background-color: #e5e5f5;
padding: 10px;
}
img#stream-image {
width: 640px;
height: 480px;
display: inline-block;
border: 1px solid grey;
}
img.stream-image-active {
cursor: crosshair;
-webkit-filter: none;
filter: none;
}
img.stream-image-inactive {
cursor: wait;
-webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
filter: grayscale(100%);
}
img#atx-power-led,
img#hid-mouse-led,
img#msd-led,
img#atx-hdd-led,
img#stream-led,
img#hid-keyboard-led {
height: 24px;
}
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;
}
@-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); } }