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
.calendar-event-fields {
display: flex;
flex-direction: column;
gap: 10px;
.calendar-event-field {
display: flex;
flex-direction: column;
gap: 4px;
}
/* Faded as the promoted grid fades its labels (see theme-next/shell.css), so the event's own
fields and the note's promoted ones read as one form when they stand in the same dock. */
.calendar-event-field-name {
font-weight: normal;
font-size: 0.85em;
opacity: 0.75;
margin: 0;
}
.calendar-event-field-controls {
display: flex;
align-items: center;
gap: 8px;
/* A number in a sentence is a small thing; the box beside it should be too, leaving the
line to the words around it. */
> .tn-number-unit-pair {
flex: 0 1 auto;
}
}
}
.calendar-event-row {
display: flex;
align-items: center;
gap: 6px;
/* Shared by the inputs and the button to add hours, so the time row keeps its height when
one replaces the other. */
--calendar-event-control-height: 2rem;
min-height: var(--calendar-event-control-height);
/* A native date or time input with `width: auto` is as wide as its fields and picker icon.
It can still shrink when the row is narrower than that, as on a phone. */
> input {
flex: 0 1 auto;
width: auto;
min-width: 0;
height: var(--calendar-event-control-height);
padding: 0.25rem 0.5rem;
}
.calendar-event-add-time {
display: inline-flex;
align-items: center;
gap: 0.35em;
height: var(--calendar-event-control-height);
padding: 0 0.5rem;
.tn-icon {
font-size: 1.2em;
}
}
.select-button {
--bs-btn-padding-y: 0.25rem;
--bs-btn-padding-x: 0.5rem;
}
/* As wide as an `ActionButton`, so the icons line up with the popover's toolbar above them. */
.calendar-event-row-icon {
flex: 0 0 var(--icon-button-size);
font-size: 1.1em;
text-align: center;
color: var(--muted-text-color);
}
.calendar-event-row-separator {
opacity: 0.75;
}
.calendar-event-remove-time {
flex: none;
margin-inline-start: auto;
}
.calendar-event-duration {
flex: none;
white-space: nowrap;
font-size: 0.9em;
color: var(--muted-text-color);
}
}