Update: open dropdown on hover

This commit is contained in:
Rectos VX
2024-05-08 20:21:07 +04:00
parent 1634987171
commit 72ba97a00c
2 changed files with 237 additions and 197 deletions

View File

@@ -276,4 +276,38 @@ span.icon-text::after {
.dropdown-mw-20 {
min-width: 200px;
}
/* Dropdown open on hover */
.dropdown-menu {
padding-top: 0.5rem;
top: auto;
left: 0;
}
.dropdown-menu[data-bs-popper] {
top: auto;
left: 0;
margin-top: 0 !important;
}
.dropdown:hover .dropdown-menu {
display: block;
margin-top: 0;
}
.dropdown-menu-wrapper {
padding: 1.5rem 0;
border-radius: 1rem;
color: var(--md-sys-color-on-surface);
background-color: var(--md-sys-color-surface-container);
border: 1px solid var(--md-sys-color-surface-5);
box-shadow: var(--md-sys-elevation-2);
}
.dropdown-menu-tp {
color: transparent;
background-color: transparent;
border: none;
box-shadow: none;
}