Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
style(mobile): dim lighter behind a phone's menus, not at all on a tablet
Elian Doran29e66324b17a
diff --git a/apps/client/src/stylesheets/theme-next/base.css b/apps/client/src/stylesheets/theme-next/base.cssindex 9aa8188b95..7bf220fb72 100644--- a/apps/client/src/stylesheets/theme-next/base.css+++ b/apps/client/src/stylesheets/theme-next/base.css@@ -419,7 +419,13 @@ body.mobile #context-menu-cover {transition: background-color 150ms ease-in;&.show {- background: rgba(0, 0, 0, 0.7);+ background: rgba(0, 0, 0, 0.32);++ /* A tablet's menus open beside what opened them, undimmed; the cover only takes the tap+ that closes them. */+ @media (min-width: 992px) {+ background: transparent;+ }}&.global-menu-cover {@@ -447,6 +453,11 @@ body.mobile .dropdown-menu.mobile-bottom-menu {body.mobile .tn-popup.tn-menu {min-width: 260px;}++ /* Matches `body.desktop .dropdown-menu` in style.css. */+ body.mobile .tn-popup.dropdown-menu {+ box-shadow: 0px 10px 20px rgba(0, 0, 0, var(--dropdown-shadow-opacity));+ }}body.mobile .dropdown-menu {