style(mobile/context_menu): improve backdrop

This commit is contained in:
Elian Doran 2025-11-28 21:21:07 +02:00
parent 18d3cb6f0c
commit 0aafdca999
No known key found for this signature in database

View File

@ -313,6 +313,14 @@ body.desktop .dropdown-menu.static .dropdown-item.active {
}
/* #region Mobile tweaks for dropdown menus */
body.mobile #context-menu-cover {
transition: background-color 150ms ease-in;
&.show {
background: rgba(0, 0, 0, 0.7);
}
}
body.mobile .dropdown-menu {
--dropdown-menu-padding-vertical: 0.7em;
--dropdown-menu-padding-horizontal: 1em;
@ -320,7 +328,7 @@ body.mobile .dropdown-menu {
font-size: 1em !important;
.dropdown-toggle::after {
top: var(--dropdown-menu-padding-vertical);
top: 0.5em;
right: var(--dropdown-menu-padding-horizontal);
transform: translateX(50%) rotate(90deg);
}