Skip to content

Build your personal knowledge base with Trilium Notes

1.9 KB
Raw Blame
/** Mirror the quick-edit popup's z-index scheme (see PopupEditor.css). Reduce the popup below the
    standard dialog layer so dialogs (delete/confirm) and ckeditor popups opened from within it show
    on top instead of tying with it at Bootstrap's default 1055. */
body.tree-popup-open:not(.tree-popup-stacked) > .modal-backdrop { z-index: 998; }
body.tree-popup-open:not(.tree-popup-stacked) .tree-popup-editor-dialog { z-index: 999; }

/** When stacked on top of another modal (e.g. opened from the Options dialog's Related Settings),
    raise the popup and its own backdrop above the underlying modal. */
body.tree-popup-stacked .tree-popup-editor-dialog { z-index: 1100; }
.modal-backdrop.tree-popup-backdrop { z-index: 1099; }

.modal.tree-popup-editor-dialog .modal-dialog {
    width: 90vw;
    max-width: 1100px;
    height: 80vh;
}

.modal.tree-popup-editor-dialog .modal-content {
    height: 80vh;

    .note-detail-doc-content {
        padding: unset;
    }
}

/* Sidebar holding the hoisted note tree. */
body.desktop .modal.tree-popup-editor-dialog .modal-sidebar {
    width: 300px;
}

body.mobile .modal.tree-popup-editor-dialog .modal-sidebar {
    border-top: 1px solid var(--main-border-color);
}

/* Match the normal left-pane sidebar so the tree blends in instead of sitting on the plain modal
   background (mirrors how the Options modal tints its own sidebar). */
.modal.tree-popup-editor-dialog .modal-sidebar {
    color: var(--left-pane-text-color);
    background-color: var(--left-pane-background-color);
}

.modal.tree-popup-editor-dialog .tree-popup-sidebar {
    flex-grow: 1;
    min-height: 0;
    overflow: auto;
}

.modal.tree-popup-editor-dialog .tree-popup-sidebar .fancytree-container {
    height: 100%;
}

/* The header note title (icon + editable title) reuses the quick-edit TitleRow styling — see the
   shared `.popup-editor-dialog, .tree-popup-editor-dialog` rules in PopupEditor.css. */