summaryrefslogtreecommitdiff
path: root/kvmd/web/css/main.css
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-08-31 17:48:36 +0300
committerDevaev Maxim <[email protected]>2018-08-31 17:48:36 +0300
commitecb866f57a983f22e67b74b0bef45a3f211a3d0f (patch)
tree1c37c80be5cce49a34bd18fcfc5a10e39794daeb /kvmd/web/css/main.css
parent1bf3506d2e72eba65d8c7d187151a51cf0abcf6d (diff)
testing mouse buttons for touch interface
Diffstat (limited to 'kvmd/web/css/main.css')
-rw-r--r--kvmd/web/css/main.css26
1 files changed, 18 insertions, 8 deletions
diff --git a/kvmd/web/css/main.css b/kvmd/web/css/main.css
index d8477ed5..8290ef42 100644
--- a/kvmd/web/css/main.css
+++ b/kvmd/web/css/main.css
@@ -14,8 +14,10 @@ a {
text-decoration: underline dotted;
color: var(--fg-color-normal);
}
-a:hover {
- text-decoration: underline;
+@media (hover: hover) {
+ a:hover {
+ text-decoration: underline;
+ }
}
hr {
@@ -35,17 +37,25 @@ button, select {
outline: none;
cursor: pointer;
}
-button:enabled:hover, select:enabled:hover {
- color: var(--fg-color-intensive);
- background-color: var(--bg-color-dark) !important;
+@media (hover: hover) {
+ 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;
+ }
+}
+@media (hover: none) {
+ 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;
}
-button:active, select:active {
- color: var(--fg-color-selected) !important;
-}
select {
-webkit-appearance: button;