Skip to content

Build your personal knowledge base with Trilium Notes

2.4 KB
Raw Blame
.tn-embedded-note-pane {
    display: flex;
    flex-direction: column;
    gap: 10px;

    .note-detail {
        flex: 1;
        max-width: none;
        min-height: 120px;
    }

    .promoted-attributes-container {
        gap: 8px;
        margin: 0;
        max-height: none;
        overflow: visible;
    }

    .promoted-attribute-cell {
        margin: 0;
    }

    .promoted-attributes-widget:not(:has(.promoted-attribute-cell)) {
        display: none;
    }
}

.tn-embedded-note-actions {
    display: flex;
    align-items: center;
    gap: 4px;

    .tn-embedded-note-color {
        margin-inline-start: auto;
    }
}

.tn-embedded-note-pane:not(.tn-embedded-note-pane-wide) {
    .promoted-attributes-container {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
    }

    .promoted-attribute-cell {
        > .input-group,
        > .promoted-attribute-values {
            flex: 1;
            min-width: 0;
            margin-inline-start: 8px;
        }

        input[type="text"],
        input[type="number"] {
            width: auto !important;
        }

        > label {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .tn-field {
            min-width: 0;
            padding: 0;
        }
    }
}

:root .tn-embedded-note-actions .tn-embedded-note-remove.icon-action {
    color: var(--dropdown-item-icon-destructive-color);
}

:root .icon-action.bx-expand-alt.tn-embedded-note-maximize {
    --icon-button-size: 24px;

    border-radius: 50%;
}

.tn-overlay-panel.tn-embedded-note-panel {
    &:not(.with-hue) {
        --note-icon-custom-color: initial;
        --note-icon-custom-background-color: initial;
        --note-icon-hover-custom-background-color: initial;
    }

    .tn-overlay-panel-header > .title-row {
        box-sizing: content-box;
        padding-block: 9px;
        padding-inline-start: 9px;
        /* Room for the maximize and close buttons at the end of the row (see OverlayPanel.css). */
        padding-inline-end: 64px;
    }

    .tn-embedded-note-pane {
        padding-top: 0;
    }
}

.modal.tn-embedded-note-sheet {
    .modal-dialog {
        max-height: var(--tn-modal-max-height);
        height: 100%;
    }

    .modal-content {
        overflow: hidden;
    }

    .modal-body {
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: auto;
    }
}