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;
}
#download-button:hover {
background: var(--button-hover-transparent);
}
#download-button:disabled {
cursor: unset;
}
#download-button:disabled:hover {
background: none;
}
:global(#input-container.focused) #download-button {
border-left: 2px var(--secondary) solid;
}
@media (hover: hover) {
#download-button:hover {
background: var(--button-hover-transparent);
}
#download-button:disabled:hover {
background: none;
}
}
</style>

View file

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

View file

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