mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 19:12:27 +08:00
Add a fade animation when a menu is opening
This commit is contained in:
parent
3792761ffc
commit
3d27a60897
@ -232,12 +232,21 @@ div.ui-tooltip {
|
||||
border-color: var(--dropdown-border-color);
|
||||
}
|
||||
|
||||
@keyframes dropdown-menu-opening {
|
||||
from {
|
||||
opacity: 0;
|
||||
} to {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.dropdown-menu {
|
||||
border: 1px solid var(--dropdown-border-color);
|
||||
color: var(--menu-text-color) !important;
|
||||
background-color: var(--menu-background-color) !important;
|
||||
font-size: inherit;
|
||||
box-shadow: 0px 10px 20px rgba(0, 0, 0, var(--dropdown-shadow-opacity));
|
||||
animation: dropdown-menu-opening 100ms ease-in;
|
||||
}
|
||||
|
||||
.dropdown-menu.static {
|
||||
@ -1255,4 +1264,5 @@ textarea {
|
||||
.empty-table-placeholder {
|
||||
text-align: center;
|
||||
color: var(--muted-text-color);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user