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
@import "../legacy/ListOrGridView.css";
.search-results-list {
display: flex;
flex-direction: column;
min-width: 0;
.search-results-list-toolbar {
display: flex;
align-items: center;
gap: 12px;
white-space: nowrap;
}
.search-results-list-count {
opacity: 0.7;
font-size: 0.9em;
}
.search-results-list-page-size {
display: flex;
align-items: center;
gap: 6px;
margin: 0;
}
.search-results-list-page-size-label {
opacity: 0.7;
font-size: 0.9em;
}
.search-results-list-page-size .form-select {
width: auto;
}
.search-results-list-cards {
display: flex;
flex-direction: column;
gap: 8px;
padding: 8px 0;
margin-inline: var(--content-margin-inline);
min-width: 0;
}
.search-result-card.note-book-card {
flex: 0 0 auto;
max-height: none;
width: 100%;
min-width: 0;
color: inherit;
text-decoration: none;
user-select: text;
}
.note-list-container.search-results .search-result-card.note-book-card:active {
transform: none;
}
.search-result-card-title {
font-weight: 500;
overflow-wrap: anywhere;
color: inherit;
text-decoration: none;
}
.search-result-card-content {
padding: .5rem 1rem 1rem;
font-size: 0.85rem;
cursor: text;
user-select: text;
}
.search-result-card-content .note-book-content {
font-size: inherit;
animation: none;
}
.search-result-card-content .note-book-content .rendered-content {
padding: 0;
}
.search-result-card-more {
display: inline-flex;
align-items: center;
gap: 4px;
margin-top: 6px;
color: var(--muted-text-color);
cursor: pointer;
&:hover {
color: var(--link-color);
text-decoration: none;
}
}
.search-result-card-more:hover .search-result-card-more-label {
text-decoration: underline;
}
.search-result-card-snippet {
line-height: 1.4;
overflow-wrap: anywhere;
}
.search-result-card-snippet.type-code {
font-family: var(--monospace-font-family);
white-space: pre-wrap;
}
.search-result-card-snippet.unavailable {
font-style: italic;
opacity: 0.7;
}
.search-result-card-snippet.skeleton {
height: 2.6em;
border-radius: 4px;
background: linear-gradient(
90deg,
var(--main-border-color) 25%,
var(--card-background-color) 37%,
var(--main-border-color) 63%
);
background-size: 400% 100%;
animation: search-result-skeleton 1.4s ease infinite;
}
.search-result-card-badges {
display: flex;
flex-wrap: wrap;
gap: 4px;
margin-top: 6px;
}
/* The server-injected <b> highlights of the snippet and the attribute badges. */
.search-result-card-snippet b,
.search-result-card-badges b {
background: var(--note-list-view-search-result-highlight-background);
color: var(--note-list-view-search-result-highlight-color);
font-weight: 600;
text-decoration: underline;
}
/* A word the search accepted in place of one that was typed: a different hue from the same
family, not bold, dotted, so it reads as an approximate match rather than something the
query actually contained. */
.search-result-card-snippet b.search-fuzzy-match,
.search-result-card-badges b.search-fuzzy-match {
color: var(--note-list-view-search-result-fuzzy-highlight-color);
font-weight: 400;
text-decoration: underline dotted;
}
}
@keyframes search-result-skeleton {
from {
background-position: 100% 0;
}
to {
background-position: 0 0;
}
}