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
/* Carried by the toggle's wrapper and by the popup's portal alike (see `portalClassName` in Dropdown.tsx),
so the button is styled here and the menu there under the one class. */
.calendar-recurrence-dropdown {
flex: 0 1 auto;
min-width: 0;
/* As wide as the rule it names, like the date and time inputs; a long rule shrinks to the row
and is cut off with an ellipsis. */
> .select-button {
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-align: start;
}
.dropdown-menu {
padding: 10px;
/* Room for the widest of its rows — the seven weekday pills — to breathe. */
min-width: 300px;
}
/* A locale that writes the frequencies long breaks the segments onto a second line rather
than stretching the menu across the calendar. */
.tn-segmented-choice {
flex-wrap: wrap;
}
}
.calendar-recurrence-weekdays {
display: flex;
gap: 4px;
.calendar-recurrence-weekday {
/* Seven of a kind sharing the row evenly, whatever their labels measure in a locale. */
flex: 1 1 0;
min-width: 0;
padding: 3px 0;
border: 1px solid var(--main-border-color);
border-radius: 6px;
background: transparent;
color: var(--main-text-color);
font-size: 0.85em;
cursor: pointer;
&:hover {
background: var(--hover-item-background-color);
}
&.active {
background: var(--active-item-background-color);
border-color: var(--active-item-background-color);
color: var(--active-item-text-color);
}
}
}
.calendar-recurrence-hint {
font-size: 0.85em;
opacity: 0.75;
margin: 0;
}