diff options
author | Maxim Devaev <[email protected]> | 2021-07-31 20:13:48 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2021-07-31 20:13:48 +0300 |
commit | 2895339f303c1af2512d89ce645eb2a2477be319 (patch) | |
tree | 8b4ebddf1090e00d6debba99870625a831f7de85 /web | |
parent | 837283292c1b81b295d5c5a477d9115190ea00fc (diff) |
improved input file styling
Diffstat (limited to 'web')
-rw-r--r-- | web/share/css/main.css | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/web/share/css/main.css b/web/share/css/main.css index 6854dc88..d4426eb2 100644 --- a/web/share/css/main.css +++ b/web/share/css/main.css @@ -137,12 +137,16 @@ select.key { @media (hover: hover), (min--moz-device-pixel-ratio: 0) { /* If we have a mouse cursor */ button:enabled:hover, - select: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 { + 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; } @@ -157,13 +161,17 @@ select.key { @media (hover: none) { /* If we DON'T have a mouse cursor */ button:active, - select: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 { +select:disabled, +input[type=file]:disabled::-webkit-file-selector-button, +input[type=file]:disabled::file-selector-button { color: var(--cs-control-disabled-fg); cursor: default; } |