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
.note-paths-widget {
padding: 12px;
max-height: 300px;
overflow-y: auto;
.note-path-intro {
color: var(--muted-text-color);
}
.note-path-list {
margin: 8px 0;
padding: 0;
list-style: none;
/* The room is for what the list is set between — the intro line, the clone link. Where it is
all the widget holds, as in the sidebar's card, the card's own padding is the room. */
&:first-child { margin-top: 0; }
&:last-child { margin-bottom: 0; }
/* A path is framed already by what holds the list — a card, or the mobile note menu — so it
carries no frame of its own: what tells one path from the next is the room around it, and
the gutter each hangs its marks in. */
li {
position: relative;
padding-block: 5px;
padding-inline-start: 17px;
/* A path is read for where the note sits, not for the words themselves, so it is set a
step below the text around it — the separators and the marks with it, hence the size
on the path rather than on its links. */
font-size: .9em;
/* Current path arrow, in the gutter the paths are indented for. */
&.path-current::before {
position: absolute;
display: flex;
justify-content: flex-end;
align-items: center;
content: "\ee8f";
top: 0;
inset-inline-start: 0;
width: 12px;
bottom: 0;
font-family: "boxicons";
font-size: .75em;
color: var(--menu-item-icon-color);
}
}
/* Note path segment */
a {
padding-inline: 1px;
color: currentColor;
font-weight: normal;
text-decoration: none;
/* The last segment of the note path */
&.basename {
color: var(--muted-text-color);
}
}
}
}
.note-path-list .path-archived a {
color: var(--muted-text-color) !important;
}
.note-path-list .path-search a {
font-style: italic;
}
#right-pane .note-paths-widget {
padding: 0;
}