web: use hover effects only when supported

This commit is contained in:
wukko 2024-06-17 01:12:59 +06:00
parent 95aeec3380
commit 5390415aa7
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2
3 changed files with 20 additions and 15 deletions

View file

@ -121,19 +121,20 @@
margin-bottom: 0.1rem; margin-bottom: 0.1rem;
} }
#download-button:hover {
background: var(--button-hover-transparent);
}
#download-button:disabled { #download-button:disabled {
cursor: unset; cursor: unset;
} }
#download-button:disabled:hover {
background: none;
}
:global(#input-container.focused) #download-button { :global(#input-container.focused) #download-button {
border-left: 2px var(--secondary) solid; border-left: 2px var(--secondary) solid;
} }
@media (hover: hover) {
#download-button:hover {
background: var(--button-hover-transparent);
}
#download-button:disabled:hover {
background: none;
}
}
</style> </style>

View file

@ -63,10 +63,6 @@
opacity: 1; opacity: 1;
} }
.sidebar-tab:hover {
opacity: 1;
}
.sidebar-tab:focus-visible { .sidebar-tab:focus-visible {
box-shadow: 0 0 0 3px var(--blue) inset; box-shadow: 0 0 0 3px var(--blue) inset;
outline: none; outline: none;
@ -78,6 +74,12 @@
color: var(--sidebar-highlight); color: var(--sidebar-highlight);
} }
@media (hover: hover) {
.sidebar-tab:hover {
opacity: 1;
}
}
@media screen and (max-width: 535px) { @media screen and (max-width: 535px) {
.sidebar-tab { .sidebar-tab {
padding: 5px var(--padding); padding: 5px var(--padding);

View file

@ -130,9 +130,11 @@
transform: scale(0.95); transform: scale(0.95);
} }
:global(button:hover) { @media (hover: hover) {
background-color: var(--button-hover); :global(button:hover) {
z-index: 1; background-color: var(--button-hover);
z-index: 1;
}
} }
:global(.center-column-container) { :global(.center-column-container) {