Skip to content

Build your personal knowledge base with Trilium Notes

1.2 KB
Raw Blame
.component.note-detail {
    max-width: var(--max-content-width); /* Inherited from .note-split */
    font-family: var(--detail-font-family);
    font-size: var(--detail-font-size);
    contain: none;
    position: relative; /* anchor for the content-loading overlay */
}

body.prefers-centered-content .note-detail {
    /* Horizontally center the widget in its parent when the "Keep content centered" option is on */
    margin-inline: auto;
}

.note-detail > * {
    contain: none;
}

.note-detail-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--main-background-color);
    animation: note-detail-loading-overlay-fade-in 100ms ease-in;

    > .bx-loader-alt {
        font-size: 2em;
        color: var(--muted-text-color);
    }
}

/* Dialogs (e.g. the quick-edit popup) paint their content area with the modal background,
   so the overlay must match it there instead of the main background. */
.modal .note-detail-loading-overlay {
    background: var(--modal-background-color);
}

@keyframes note-detail-loading-overlay-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}