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
fix(client): apply the left-pane tree styling to the tree popup sidebar
Elian Doran55ccad4a459f
diff --git a/apps/client/src/stylesheets/theme-next/shell.css b/apps/client/src/stylesheets/theme-next/shell.cssindex 84f6c72649..69b345bc86 100644--- a/apps/client/src/stylesheets/theme-next/shell.css+++ b/apps/client/src/stylesheets/theme-next/shell.css@@ -672,30 +672,34 @@ body.layout-vertical.background-effects div.quick-search .dropdown-menu {/** TREE PANE+ *+ * The tree popup editor's sidebar (`.tree-popup-sidebar`) hosts the same NoteTreeWidget outside+ * `#left-pane`, so every rule in this section matches both via `:is()` — which also keeps the+ * original id-level specificity for the popup, so these still override the base tree.css rules.*/-#left-pane div.tree {+:is(#left-pane, .tree-popup-sidebar) div.tree {padding: 3px 6px 40px 6px;animation: fade-in 200ms ease-in;}-#left-pane span.fancytree-node {+:is(#left-pane, .tree-popup-sidebar) span.fancytree-node {border: unset;border-radius: 6px;cursor: default;}-#left-pane .ui-fancytree ul {+:is(#left-pane, .tree-popup-sidebar) .ui-fancytree ul {padding-inline-start: 10px;}/* The root element of the tree */-#left-pane .fancytree-container > li:first-child > span {+:is(#left-pane, .tree-popup-sidebar) .fancytree-container > li:first-child > span {padding-inline-start: 12px;}-#left-pane span.fancytree-node.fancytree-active,-#left-pane span.fancytree-node.fancytree-active:hover {+:is(#left-pane, .tree-popup-sidebar) span.fancytree-node.fancytree-active,+:is(#left-pane, .tree-popup-sidebar) span.fancytree-node.fancytree-active:hover {position: relative;background: transparent;color: var(--custom-color, var(--left-pane-item-selected-color));@@ -718,7 +722,7 @@ body.layout-vertical.background-effects div.quick-search .dropdown-menu {* element's background color, to allow alpha compositing for the hover state.*/-#left-pane span.fancytree-node.fancytree-active::before {+:is(#left-pane, .tree-popup-sidebar) span.fancytree-node.fancytree-active::before {position: absolute;content: "";top: var(--left-pane-item-selected-shadow-size);@@ -732,7 +736,7 @@ body.layout-vertical.background-effects div.quick-search .dropdown-menu {z-index: -1;}-#left-pane span.fancytree-node.fancytree-selected {+:is(#left-pane, .tree-popup-sidebar) span.fancytree-node.fancytree-selected {--left-pane-item-selected-shadow-size: 4px;position: relative;@@ -740,7 +744,7 @@ body.layout-vertical.background-effects div.quick-search .dropdown-menu {border-radius: 0;}-#left-pane span.fancytree-node.fancytree-selected::after {+:is(#left-pane, .tree-popup-sidebar) span.fancytree-node.fancytree-selected::after {display: block;position: absolute;z-index: -2;@@ -750,12 +754,12 @@ body.layout-vertical.background-effects div.quick-search .dropdown-menu {animation: left-pane-item-select 100ms ease-out;}-#left-pane span.fancytree-node.protected > span.fancytree-custom-icon {+:is(#left-pane, .tree-popup-sidebar) span.fancytree-node.protected > span.fancytree-custom-icon {position: relative;filter: unset !important;}-#left-pane span.fancytree-node.protected > span.fancytree-custom-icon:after {+:is(#left-pane, .tree-popup-sidebar) span.fancytree-node.protected > span.fancytree-custom-icon:after {position: absolute;bottom: 0;inset-inline-end: 0;@@ -767,7 +771,7 @@ body.layout-vertical.background-effects div.quick-search .dropdown-menu {border-radius: 50%;}-body[dir=rtl] #left-pane span.fancytree-node.protected > span.fancytree-custom-icon:after {+body[dir=rtl] :is(#left-pane, .tree-popup-sidebar) span.fancytree-node.protected > span.fancytree-custom-icon:after {transform: translateX(-25%);}@@ -783,37 +787,37 @@ body[dir=rtl] #left-pane span.fancytree-node.protected > span.fancytree-custom-i}}-#left-pane .fancytree-expander,+:is(#left-pane, .tree-popup-sidebar) .fancytree-expander,.nested-note-list-item .note-expander {opacity: 0.65;transition: opacity 150ms ease-in;}-#left-pane .fancytree-expander:hover,+:is(#left-pane, .tree-popup-sidebar) .fancytree-expander:hover,.nested-note-list-item .note-expander:hover {opacity: 1;transition: opacity 300ms ease-out;}-#left-pane .fancytree-custom-icon {+:is(#left-pane, .tree-popup-sidebar) .fancytree-custom-icon {margin-top: 0; /* Use this to align the icon with the tree view item's caption */color: var(--custom-color, var(--left-pane-icon-color));}-#left-pane span.fancytree-active .fancytree-title {+:is(#left-pane, .tree-popup-sidebar) span.fancytree-active .fancytree-title {font-weight: normal;}-#left-pane span.fancytree-node:hover {+:is(#left-pane, .tree-popup-sidebar) span.fancytree-node:hover {background: var(--left-pane-item-hover-background);}-#left-pane .note-indicator-icon.shared-indicator {+:is(#left-pane, .tree-popup-sidebar) .note-indicator-icon.shared-indicator {opacity: 0.5;}-#left-pane .tree-item-button,-#left-pane span.fancytree-node.fancytree-selected .fancytree-custom-icon {+:is(#left-pane, .tree-popup-sidebar) .tree-item-button,+:is(#left-pane, .tree-popup-sidebar) span.fancytree-node.fancytree-selected .fancytree-custom-icon {margin-inline-end: 6px;border: unset;border-radius: 50%;@@ -824,8 +828,8 @@ body[dir=rtl] #left-pane span.fancytree-node.protected > span.fancytree-custom-ibox-shadow 200ms ease-out;}-#left-pane .tree-item-button:hover,-#left-pane span.fancytree-node.fancytree-selected .fancytree-custom-icon:hover {+:is(#left-pane, .tree-popup-sidebar) .tree-item-button:hover,+:is(#left-pane, .tree-popup-sidebar) span.fancytree-node.fancytree-selected .fancytree-custom-icon:hover {background: var(--left-pane-item-action-button-hover-background);box-shadow: var(--left-pane-item-action-button-hover-shadow);transition:@@ -833,8 +837,8 @@ body[dir=rtl] #left-pane span.fancytree-node.protected > span.fancytree-custom-ibox-shadow 100ms ease-in;}-#left-pane span.fancytree-node.fancytree-active .tree-item-button:hover,-#left-pane span.fancytree-node.fancytree-active.fancytree-selected .fancytree-custom-icon:hover {+:is(#left-pane, .tree-popup-sidebar) span.fancytree-node.fancytree-active .tree-item-button:hover,+:is(#left-pane, .tree-popup-sidebar) span.fancytree-node.fancytree-active.fancytree-selected .fancytree-custom-icon:hover {box-shadow: var(--left-pane-item-selected-action-button-hover-shadow);}@@ -849,20 +853,20 @@ body[dir=rtl] #left-pane span.fancytree-node.protected > span.fancytree-custom-i}}-#left-pane span.fancytree-node.fancytree-selected .fancytree-custom-icon {+:is(#left-pane, .tree-popup-sidebar) span.fancytree-node.fancytree-selected .fancytree-custom-icon {margin: 0;}-#left-pane span.fancytree-node.fancytree-selected .fancytree-custom-icon::before {+:is(#left-pane, .tree-popup-sidebar) span.fancytree-node.fancytree-selected .fancytree-custom-icon::before {border: 0;font-size: .65em;}-#left-pane span.fancytree-node.fancytree-selected:hover .fancytree-custom-icon:not(:hover)::before {+:is(#left-pane, .tree-popup-sidebar) span.fancytree-node.fancytree-selected:hover .fancytree-custom-icon:not(:hover)::before {animation: bulk-action-button-blink 500ms linear infinite alternate;}-#left-pane span.fancytree-node.fancytree-selected.protected .fancytree-custom-icon::after {+:is(#left-pane, .tree-popup-sidebar) span.fancytree-node.fancytree-selected.protected .fancytree-custom-icon::after {/* Protected note indicator */display: none;}@@ -878,7 +882,7 @@ body[dir=rtl] #left-pane span.fancytree-node.protected > span.fancytree-custom-i*//* Toolbar container (collapsed state) */-#left-pane .tree-actions {+:is(#left-pane, .tree-popup-sidebar) .tree-actions {max-width: var(--tree-actions-toolbar-collapsed-width);inset-inline-end: var(--tree-actions-toolbar-horizontal-margin);bottom: var(--tree-actions-toolbar-vertical-margin);@@ -894,7 +898,7 @@ body[dir=rtl] #left-pane span.fancytree-node.protected > span.fancytree-custom-i}/* Toolbar container (expanded state) */-#left-pane .tree-actions:hover {+:is(#left-pane, .tree-popup-sidebar) .tree-actions:hover {max-width: 200px;border-color: var(--dropdown-border-color);background: var(--menu-background-color);@@ -903,7 +907,7 @@ body[dir=rtl] #left-pane span.fancytree-node.protected > span.fancytree-custom-i}/* Toolbar button (toolbar collapsed)*/-#left-pane .tree-actions button {+:is(#left-pane, .tree-popup-sidebar) .tree-actions button {border: unset;color: var(--menu-item-icon-color);opacity: 0;@@ -911,18 +915,18 @@ body[dir=rtl] #left-pane span.fancytree-node.protected > span.fancytree-custom-i}/* Toolbar button on hover */-#left-pane .tree-actions button:hover {+:is(#left-pane, .tree-popup-sidebar) .tree-actions button:hover {background: var(--hover-item-background-color);}/* Toolbar button (toolbar expanded) */-#left-pane .tree-actions:hover button {+:is(#left-pane, .tree-popup-sidebar) .tree-actions:hover button {opacity: 1;transition: opacity 250ms ease-in;}/* The floating expand button (toolbar collapsed) */-#left-pane .tree-actions::after {+:is(#left-pane, .tree-popup-sidebar) .tree-actions::after {display: flex;content: "\eab4";position: absolute;@@ -945,7 +949,7 @@ body[dir=rtl] #left-pane span.fancytree-node.protected > span.fancytree-custom-i}/* The floating expand button (toolbar expanded) */-#left-pane .tree-actions:hover::after {+:is(#left-pane, .tree-popup-sidebar) .tree-actions:hover::after {background: transparent;color: var(--menu-item-icon-color);opacity: var(--menu-item-disabled-opacity);@@ -956,7 +960,7 @@ body[dir=rtl] #left-pane span.fancytree-node.protected > span.fancytree-custom-i* Tree settings popup*/-#left-pane .tree-settings-popup {+:is(#left-pane, .tree-popup-sidebar) .tree-settings-popup {box-shadow: 0px 10px 20px rgba(0, 0, 0, var(--dropdown-shadow-opacity));border: 1px solid var(--dropdown-border-color);padding: 25px;@@ -965,7 +969,7 @@ body[dir=rtl] #left-pane span.fancytree-node.protected > span.fancytree-custom-icolor: var(--menu-text-color);}-#left-pane .tree-settings-popup h4 {+:is(#left-pane, .tree-popup-sidebar) .tree-settings-popup h4 {margin-bottom: 0.75em;font-size: 1.5em;line-height: 1;