One-KVM/web/css/main.css
2018-11-14 02:57:47 +03:00

136 lines
2.8 KiB
CSS

body {
margin: 0;
overflow: hidden;
color: var(--fg-color-normal);
background-color: var(--bg-color-normal);
font-family: sans-serif !important;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
touch-action: manipulation;
}
a {
text-decoration: underline dotted;
color: var(--fg-color-normal);
}
@media (hover: hover), (min--moz-device-pixel-ratio: 0) {
/* If we have a mouse cursor */
a:hover {
text-decoration: underline;
}
}
hr {
border: none;
border-top: var(--border-normal-thin);
}
button, select {
box-shadow: none;
border: none;
color: var(--fg-color-normal);
background-color: var(--bg-color-normal);
display: block;
width: 100%;
height: 30px;
font-size: 16px;
outline: none;
cursor: pointer;
}
@media (hover: hover), (min--moz-device-pixel-ratio: 0) {
/* If we have a mouse cursor */
button:enabled:hover, select:enabled:hover {
color: var(--fg-color-intensive);
background-color: var(--bg-color-dark) !important;
}
button:active, select:active {
color: var(--fg-color-selected) !important;
}
select:enabled:hover {
background-image: url("../svg/select-arrow-intensive.svg") !important;
}
}
@media (hover: none) {
/* If we DON'T have a mouse cursor */
button:active, select:active {
color: var(--fg-color-intensive);
background-color: var(--bg-color-dark);
}
}
button:disabled, select:disabled {
color: var(--fg-color-inactive);
cursor: default;
}
select {
-webkit-appearance: button;
-moz-appearance: button;
appearance: button;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
background-image: url("../svg/select-arrow-normal.svg");
background-position: center right;
background-repeat: no-repeat;
}
select:disabled {
background-image: url("../svg/select-arrow-inactive.svg") !important;
}
select:active {
color: var(--fg-color-intensive) !important;
background-color: var(--bg-color-dark) !important;
background-image: url("../svg/select-arrow-intensive.svg") !important;
}
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
button, select {
height: 45px !important;
}
}
.row50 {
display: inline-block;
width: 50%;
}
.row25 {
display: inline-block;
width: 25%;
}
.row16 {
display: inline-block;
width: 16.66%
}
.row50:not(:first-child), .row25:not(:first-child), .row16:not(:first-child) {
border-left: var(--border-dark-thin);
}
img.svg-gray {
-webkit-filter: invert(0.7);
filter: invert(0.7);
vertical-align: middle;
}
ul.footer {
list-style-type: none;
bottom: 0;
position: fixed;
width: 100%;
padding: 0;
font-size: 0.7em;
color: var(--fg-color-inactive);
z-index: -10;
}
ul.footer li {
padding: 0 10px;
}
ul.footer li.footer-left {
float: left;
}
ul.footer li.footer-right {
float: right;
}
ul.footer li a {
color: var(--fg-color-inactive);
}