mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 09:01:54 +08:00
fixed browser detection, loading css from js
This commit is contained in:
@@ -134,40 +134,6 @@ select.key {
|
||||
border: var(--border-key-thin);
|
||||
box-shadow: var(--shadow-micro);
|
||||
}
|
||||
@media (hover: hover), (min--moz-device-pixel-ratio: 0) {
|
||||
/* If we have a mouse cursor */
|
||||
button:enabled:hover,
|
||||
select:enabled:hover,
|
||||
input[type=file]:enabled:hover::-webkit-file-selector-button,
|
||||
input[type=file]:enabled:hover::file-selector-button {
|
||||
color: var(--cs-control-hovered-fg);
|
||||
background-color: var(--cs-control-hovered-bg);
|
||||
}
|
||||
button:active,
|
||||
select:active,
|
||||
input[type=file]:active::-webkit-file-selector-button,
|
||||
input[type=file]:active::file-selector-button {
|
||||
color: var(--cs-control-pressed-fg) !important;
|
||||
background-color: var(--cs-control-pressed-bg) !important;
|
||||
}
|
||||
button.key:active,
|
||||
select.key:active {
|
||||
box-shadow: none;
|
||||
}
|
||||
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,
|
||||
input[type=file]:active::-webkit-file-selector-button,
|
||||
input[type=file]:active::file-selector-button {
|
||||
color: var(--cs-control-hovered-fg);
|
||||
background-color: var(--cs-control-hovered-bg);
|
||||
}
|
||||
}
|
||||
button:disabled,
|
||||
select:disabled,
|
||||
input[type=file]:disabled::-webkit-file-selector-button,
|
||||
@@ -214,17 +180,6 @@ input[type=text], input[type=password] {
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
@media only screen and (pointer: coarse) and (orientation: portrait) {
|
||||
button,
|
||||
select,
|
||||
input[type=text],
|
||||
input[type=password],
|
||||
input[type=file]::-webkit-file-selector-button,
|
||||
input[type=file]::file-selector-button {
|
||||
height: 45px !important;
|
||||
}
|
||||
}
|
||||
|
||||
div.buttons-row {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
Reference in New Issue
Block a user