mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 17:20:30 +08:00
fixed css selectors
This commit is contained in:
parent
fa40676136
commit
67bc2b0e08
@ -41,14 +41,17 @@ div.keypad div.keypad-row:last-child {
|
|||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.keypad div.key, div.modifier, div.empty-key {
|
div.keypad div.key,
|
||||||
|
div.keypad div.modifier,
|
||||||
|
div.keypad div.empty-key {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
width: 40px;
|
width: 40px;
|
||||||
}
|
}
|
||||||
div.keypad div.key, div.modifier {
|
div.keypad div.key,
|
||||||
|
div.keypad div.modifier {
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
@ -60,7 +63,8 @@ div.keypad div.key, div.modifier {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
}
|
}
|
||||||
div.keypad div.key:hover, div.modifier:hover {
|
div.keypad div.key:hover,
|
||||||
|
div.keypad div.modifier:hover {
|
||||||
color: var(--cs-key-hovered-fg);
|
color: var(--cs-key-hovered-fg);
|
||||||
background-color: var(--cs-key-hovered-bg);
|
background-color: var(--cs-key-hovered-bg);
|
||||||
}
|
}
|
||||||
@ -74,7 +78,9 @@ div.keypad div.holded {
|
|||||||
color: var(--cs-key-default-fg) !important;
|
color: var(--cs-key-default-fg) !important;
|
||||||
background-color: var(--cs-key-holded-bg) !important;
|
background-color: var(--cs-key-holded-bg) !important;
|
||||||
}
|
}
|
||||||
div.keypad div.key:last-child, div.empty-key:last-child, div.modifier:last-child {
|
div.keypad div.key:last-child,
|
||||||
|
div.keypad div.empty-key:last-child,
|
||||||
|
div.keypad div.modifier:last-child {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
div.keypad div.margin-0 {
|
div.keypad div.margin-0 {
|
||||||
@ -127,7 +133,8 @@ div.keypad b {
|
|||||||
zoom: 1.28 !important;
|
zoom: 1.28 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.keypad div.key:hover, div.modifier:hover {
|
div.keypad div.key:hover,
|
||||||
|
div.keypad div.modifier:hover {
|
||||||
color: var(--cs-key-default-fg);
|
color: var(--cs-key-default-fg);
|
||||||
background-color: var(--cs-key-default-bg);
|
background-color: var(--cs-key-default-bg);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -24,7 +24,9 @@ div#msd-menu {
|
|||||||
width: 450px;
|
width: 450px;
|
||||||
}
|
}
|
||||||
|
|
||||||
div#msd-menu .msd-feature-disabled, div.msd-message, input.msd-message {
|
div#msd-menu .msd-feature-disabled,
|
||||||
|
div#msd-menu div.msd-message,
|
||||||
|
div#msd-menu input.msd-message {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -42,6 +42,7 @@ div#login {
|
|||||||
padding: 15px;
|
padding: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="text"]#user-input, input[type="password"]#passwd-input {
|
input[type="text"]#user-input,
|
||||||
|
input[type="password"]#passwd-input {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -81,7 +81,8 @@ img.svg-gray {
|
|||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
button, select {
|
button,
|
||||||
|
select {
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
border: var(--border-key-thin);
|
border: var(--border-key-thin);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
@ -97,11 +98,13 @@ button, select {
|
|||||||
}
|
}
|
||||||
@media (hover: hover), (min--moz-device-pixel-ratio: 0) {
|
@media (hover: hover), (min--moz-device-pixel-ratio: 0) {
|
||||||
/* If we have a mouse cursor */
|
/* If we have a mouse cursor */
|
||||||
button:enabled:hover, select:enabled:hover {
|
button:enabled:hover,
|
||||||
|
select:enabled:hover {
|
||||||
color: var(--cs-control-hovered-fg);
|
color: var(--cs-control-hovered-fg);
|
||||||
background-color: var(--cs-control-hovered-bg);
|
background-color: var(--cs-control-hovered-bg);
|
||||||
}
|
}
|
||||||
button:active, select:active {
|
button:active,
|
||||||
|
select:active {
|
||||||
color: var(--cs-control-pressed-fg) !important;
|
color: var(--cs-control-pressed-fg) !important;
|
||||||
background-color: var(--cs-control-pressed-bg) !important;
|
background-color: var(--cs-control-pressed-bg) !important;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
@ -112,12 +115,14 @@ button, select {
|
|||||||
}
|
}
|
||||||
@media (hover: none) {
|
@media (hover: none) {
|
||||||
/* If we DON'T have a mouse cursor */
|
/* If we DON'T have a mouse cursor */
|
||||||
button:active, select:active {
|
button:active,
|
||||||
|
select:active {
|
||||||
color: var(--cs-control-hovered-fg);
|
color: var(--cs-control-hovered-fg);
|
||||||
background-color: var(--cs-control-hovered-bg);
|
background-color: var(--cs-control-hovered-bg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
button:disabled, select:disabled {
|
button:disabled,
|
||||||
|
select:disabled {
|
||||||
color: var(--cs-control-disabled-fg);
|
color: var(--cs-control-disabled-fg);
|
||||||
cursor: default;
|
cursor: default;
|
||||||
}
|
}
|
||||||
@ -153,7 +158,10 @@ input[type=text], input[type=password] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
|
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
|
||||||
button, select, input[type=text], input[type=password] {
|
button,
|
||||||
|
select,
|
||||||
|
input[type=text],
|
||||||
|
input[type=password] {
|
||||||
height: 45px !important;
|
height: 45px !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -176,12 +184,16 @@ div.buttons-row {
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 16.66%
|
width: 16.66%
|
||||||
}
|
}
|
||||||
.row50:not(:first-child), .row25:not(:first-child), .row16:not(:first-child) {
|
.row50:not(:first-child),
|
||||||
|
.row25:not(:first-child),
|
||||||
|
.row16:not(:first-child) {
|
||||||
border-top-left-radius: 0;
|
border-top-left-radius: 0;
|
||||||
border-bottom-left-radius: 0;
|
border-bottom-left-radius: 0;
|
||||||
border-left: var(--border-control-thin) !important;
|
border-left: var(--border-control-thin) !important;
|
||||||
}
|
}
|
||||||
.row50:not(:last-child), .row25:not(:last-child), .row16:not(:last-child) {
|
.row50:not(:last-child),
|
||||||
|
.row25:not(:last-child),
|
||||||
|
.row16:not(:last-child) {
|
||||||
border-top-right-radius: 0;
|
border-top-right-radius: 0;
|
||||||
border-bottom-right-radius: 0;
|
border-bottom-right-radius: 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -76,12 +76,14 @@ ul#menu li a.menu-item {
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul#menu li a#menu-logo:hover:not(.active), a.menu-item:hover:not(.active) {
|
ul#menu li a#menu-logo:hover:not(.active),
|
||||||
|
ul#menu li a.menu-item:hover:not(.active) {
|
||||||
background-color: var(--cs-menu-hovered-bg);
|
background-color: var(--cs-menu-hovered-bg);
|
||||||
}
|
}
|
||||||
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
|
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
|
||||||
/* iPad 8 */
|
/* iPad 8 */
|
||||||
ul#menu li a#menu-item:hover:not(.active), a.menu-item:hover:not(.active) {
|
ul#menu li a#menu-item:hover:not(.active),
|
||||||
|
ul#menu li a.menu-item:hover:not(.active) {
|
||||||
background-color: var(--cs-menu-default-bg) !important;
|
background-color: var(--cs-menu-default-bg) !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -131,7 +133,8 @@ ul#menu li div.menu-item-content-text table.one-line-switch {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ul#menu li div.menu-item-content button, select {
|
ul#menu li div.menu-item-content-buttons button,
|
||||||
|
ul#menu li div.menu-item-content-buttons select {
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
|
|||||||
@ -47,7 +47,8 @@ div.switch-box label.switch-label span.switch-inner {
|
|||||||
margin-left: -100%;
|
margin-left: -100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.switch-box label.switch-label span.switch-inner:before, span.switch-inner:after {
|
div.switch-box label.switch-label span.switch-inner:before,
|
||||||
|
div.switch-box label.switch-label span.switch-inner:after {
|
||||||
display: block;
|
display: block;
|
||||||
float: left;
|
float: left;
|
||||||
width: 50%;
|
width: 50%;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user