Allow the submenu opening delay be set via a CSS variable

pull/618/head
Adorian Doran 2024-11-20 14:16:10 +07:00
parent ac9f344130
commit 85b507938b
1 changed files with 5 additions and 1 deletions

@ -19,6 +19,10 @@
--bs-table-bg: transparent !important;
}
:root {
--submenu-opening-delay: 300ms;
}
html {
/* this fixes FF filter vs. position fixed bug: https://github.com/zadam/trilium/issues/233 */
height: 100%;
@ -254,7 +258,7 @@ div.ui-tooltip {
.dropdown-submenu .dropdown-menu {
opacity: 0;
animation-fill-mode: forwards;
animation-delay: 300ms;
animation-delay: var(--submenu-opening-delay);
}
}