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(menu): drop the CSS comments that narrate layout
Elian Doran433bf06408b9
diff --git a/apps/client/src/widgets/react/Menu.css b/apps/client/src/widgets/react/Menu.cssindex 59fb135e86..b6583387f1 100644--- a/apps/client/src/widgets/react/Menu.css+++ b/apps/client/src/widgets/react/Menu.css@@ -51,11 +51,6 @@ body.desktop .dropdown-submenu > .dropdown-menu.tn-menu.tn-menu-immediate {animation: none;}-/*- * On a phone, a submenu is a page that takes its menu's place (`SubmenuPage`), and the frame- * follows the height of the page on show. The level under a page keeps its rows and its scroll- * position, hidden out of the flow. The slides are slide_animations.css's.- */.tn-menu-page {--tn-popup-padding: var(--padding, var(--menu-padding-size));display: flex;@@ -76,7 +71,6 @@ body.desktop .dropdown-submenu > .dropdown-menu.tn-menu.tn-menu-immediate {padding: var(--tn-popup-padding) var(--tn-popup-padding) 0;}-/* A sliding level stands a full width to the side, which the frame would scroll to. */.dropdown-menu.tn-menu:has(> .tn-menu-page) {overflow-x: hidden;}@@ -131,7 +125,6 @@ body[dir="rtl"] .dropdown-menu.tn-menu {}}-/* A menu in the flow of what holds it, as a list is, rather than beside an anchor. */.dropdown-menu.tn-menu.tn-menu-inline {position: static;width: 100%;@@ -197,12 +190,9 @@ body.desktop .dropdown-item.dropdown-submenu.submenu-open,border-color: transparent !important;}-/* The input at the top of a filterable submenu, above its rows or its matches. */.tn-menu-filter-row {padding-bottom: 4px;- /* As wide as a row's highlight, the text where a row's icon starts, and the icon inside the- field at its end, as in the quick search. */.tn-menu-filter-box {display: flex;align-items: center;@@ -214,8 +204,6 @@ body.desktop .dropdown-item.dropdown-submenu.submenu-open,cursor: text;}- /* The box is the field; the input inside takes none of the field styling the theme gives- every text input, `.form-control` and focus included. */.tn-menu-filter-input,.tn-menu-filter-input:hover,.tn-menu-filter-input:focus {@@ -237,7 +225,6 @@ body.desktop .dropdown-item.dropdown-submenu.submenu-open,font-style: italic;}-/* Marked as the quick search marks its terms, in the theme's highlight colour. */.tn-menu-filter-title mark {padding: 0;background-color: transparent;@@ -245,7 +232,6 @@ body.desktop .dropdown-item.dropdown-submenu.submenu-open,text-decoration: underline;}-/* The submenus a match stands in, after its title. */.tn-menu-filter-path {margin-inline-start: 0.75em;color: var(--muted-text-color);diff --git a/apps/client/src/widgets/react/slide_animations.css b/apps/client/src/widgets/react/slide_animations.cssindex e5a4f62708..cdb410f763 100644--- a/apps/client/src/widgets/react/slide_animations.css+++ b/apps/client/src/widgets/react/slide_animations.css@@ -1,9 +1,4 @@-/*- * The slides between two views that replace each other, such as a list and the page it leads to:- * `SlidePages`, the master-detail flow and a phone's submenu pages. Named by the physical direction- * they move in, so a right-to-left layout swaps which one a rule uses. `useMobileMasterDetail`- * recognizes their end by the `tn-slide-` prefix.- */+/* `SlidePages` recognizes the end of these animations by their `tn-slide-` prefix. */@keyframes tn-slide-in-from-right {from { transform: translateX(100%); opacity: 0; }