mirror of
https://github.com/wukko/cobalt.git
synced 2025-02-26 21:18:50 +01:00
web/DownloadButton: fix 1.5px misalignment & add press state
also fixed opacity when disabled
This commit is contained in:
parent
20d24eca43
commit
ad9fd4f601
1 changed files with 9 additions and 6 deletions
|
@ -69,7 +69,9 @@
|
|||
min-width: 48px;
|
||||
|
||||
border-radius: 0;
|
||||
padding: 0 12px;
|
||||
|
||||
/* visually align the button, +1.5px because of inset box-shadow on parent */
|
||||
padding: 0 13.5px 0 12px;
|
||||
|
||||
background: none;
|
||||
box-shadow: none;
|
||||
|
@ -109,7 +111,7 @@
|
|||
|
||||
#download-button:disabled {
|
||||
cursor: unset;
|
||||
opacity: 0.7;
|
||||
color: var(--gray);
|
||||
}
|
||||
|
||||
:global(#input-container.focused) #download-button {
|
||||
|
@ -122,11 +124,12 @@
|
|||
}
|
||||
|
||||
@media (hover: hover) {
|
||||
#download-button:hover {
|
||||
#download-button:hover:not(:disabled) {
|
||||
background: var(--button-hover-transparent);
|
||||
}
|
||||
#download-button:disabled:hover {
|
||||
background: none;
|
||||
}
|
||||
|
||||
#download-button:active:not(:disabled) {
|
||||
background: var(--button-press-transparent);
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Reference in a new issue