mirror of
https://github.com/callumalpass/tasknotes.git
synced 2026-07-22 12:50:26 +00:00
1627 lines
48 KiB
CSS
1627 lines
48 KiB
CSS
/* =====================================================================
|
|
TASK MODAL - Google Keep/Todoist Inspired
|
|
===================================================================== */
|
|
|
|
/* Fix suggestion text truncation */
|
|
.suggestion-item .nlp-suggest-text {
|
|
white-space: nowrap;
|
|
overflow: visible;
|
|
text-overflow: clip;
|
|
max-width: none;
|
|
width: auto;
|
|
}
|
|
|
|
/* =====================================================================
|
|
EMBEDDABLE MARKDOWN EDITOR
|
|
===================================================================== */
|
|
|
|
.tn-task-modal__markdown-editor--details {
|
|
margin-bottom: var(--size-4-3);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: var(--radius-s);
|
|
overflow: hidden;
|
|
min-height: 200px;
|
|
max-height: 400px;
|
|
}
|
|
|
|
.tn-task-modal__markdown-editor--details .task-details-editor {
|
|
min-height: 200px;
|
|
max-height: 400px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
/* Make the editor container scrollable */
|
|
.tn-task-modal__markdown-editor--details .cm-editor {
|
|
height: 100%;
|
|
min-height: 200px;
|
|
max-height: 400px;
|
|
}
|
|
|
|
.tn-task-modal__markdown-editor--details .cm-scroller {
|
|
overflow: auto;
|
|
min-height: inherit;
|
|
height: 100%;
|
|
max-height: 400px;
|
|
cursor: text;
|
|
}
|
|
|
|
.tn-task-modal__markdown-editor--details .cm-sizer,
|
|
.tn-task-modal__markdown-editor--details .cm-contentContainer,
|
|
.tn-task-modal__markdown-editor--details .cm-content {
|
|
box-sizing: border-box;
|
|
min-height: inherit;
|
|
min-width: 100%;
|
|
width: 100%;
|
|
}
|
|
|
|
.tn-task-modal__markdown-editor .cm-sizer {
|
|
container-type: normal;
|
|
}
|
|
|
|
.tn-task-modal__markdown-editor--details .cm-sizer,
|
|
.tn-task-modal__markdown-editor--details .cm-contentContainer {
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
.tn-task-modal__markdown-editor--details .details-editor-fallback {
|
|
display: block;
|
|
width: 100%;
|
|
min-height: inherit;
|
|
height: 100%;
|
|
max-height: 400px;
|
|
box-sizing: border-box;
|
|
padding: var(--size-4-2);
|
|
border: none;
|
|
border-radius: 0;
|
|
background: transparent;
|
|
color: var(--text-normal);
|
|
font-family: var(--font-text);
|
|
font-size: var(--font-ui-medium);
|
|
line-height: var(--line-height-normal);
|
|
resize: none;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.tn-task-modal__markdown-editor--details .details-editor-fallback:focus {
|
|
outline: none;
|
|
box-shadow: none;
|
|
}
|
|
|
|
/* Style the editor content */
|
|
.tn-task-modal__markdown-editor--details .cm-content {
|
|
padding-left: var(--size-4-2);
|
|
padding-right: var(--size-4-2);
|
|
padding-top: var(--size-4-2);
|
|
padding-bottom: var(--size-4-2);
|
|
font-family: var(--font-text);
|
|
font-size: var(--font-ui-medium);
|
|
line-height: var(--line-height-normal);
|
|
caret-color: var(--text-normal);
|
|
}
|
|
|
|
.tn-task-modal__markdown-editor--details .markdown-source-view.mod-cm6 .cm-content {
|
|
padding: var(--size-4-2);
|
|
}
|
|
|
|
.tn-task-modal__markdown-editor--details .cm-header,
|
|
.tn-task-modal__markdown-editor--details .cm-formatting-header {
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.tn-task-modal__markdown-editor--details .HyperMD-header-1,
|
|
.tn-task-modal__markdown-editor--details .cm-header-1 {
|
|
color: var(--h1-color, var(--text-normal));
|
|
}
|
|
|
|
.tn-task-modal__markdown-editor--details .HyperMD-header-2,
|
|
.tn-task-modal__markdown-editor--details .cm-header-2 {
|
|
color: var(--h2-color, var(--text-normal));
|
|
}
|
|
|
|
.tn-task-modal__markdown-editor--details .HyperMD-header-3,
|
|
.tn-task-modal__markdown-editor--details .cm-header-3 {
|
|
color: var(--h3-color, var(--text-normal));
|
|
}
|
|
|
|
.tn-task-modal__markdown-editor--details .HyperMD-header-4,
|
|
.tn-task-modal__markdown-editor--details .cm-header-4 {
|
|
color: var(--h4-color, var(--text-normal));
|
|
}
|
|
|
|
.tn-task-modal__markdown-editor--details .HyperMD-header-5,
|
|
.tn-task-modal__markdown-editor--details .cm-header-5 {
|
|
color: var(--h5-color, var(--text-normal));
|
|
}
|
|
|
|
.tn-task-modal__markdown-editor--details .HyperMD-header-6,
|
|
.tn-task-modal__markdown-editor--details .cm-header-6 {
|
|
color: var(--h6-color, var(--text-normal));
|
|
}
|
|
|
|
.tn-task-modal__markdown-editor--details .cm-cursor,
|
|
.tn-task-modal__markdown-editor--details .cm-dropCursor {
|
|
border-left-color: var(--text-normal);
|
|
}
|
|
|
|
.tn-task-modal__markdown-editor--details .cm-lineNumbers,
|
|
.tn-task-modal__markdown-editor--details .cm-gutters {
|
|
display: none;
|
|
}
|
|
|
|
/* Placeholder styling */
|
|
.tn-task-modal__markdown-editor--details .cm-placeholder {
|
|
color: var(--text-faint);
|
|
font-style: italic;
|
|
}
|
|
|
|
/* =====================================================================
|
|
NLP MARKDOWN EDITOR
|
|
===================================================================== */
|
|
|
|
.tn-task-modal__markdown-editor--nlp {
|
|
margin-bottom: var(--size-4-2);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: var(--radius-s);
|
|
overflow: visible;
|
|
min-height: 80px;
|
|
max-height: 200px;
|
|
background: transparent;
|
|
transition: background-color 0.2s ease, border-color 0.2s ease;
|
|
}
|
|
|
|
.tn-task-modal__markdown-editor--nlp .nlp-editor {
|
|
min-height: 80px;
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.tn-task-modal__markdown-editor--nlp .cm-editor {
|
|
height: 100%;
|
|
min-height: 80px;
|
|
max-height: 200px;
|
|
background: transparent;
|
|
overflow: visible;
|
|
}
|
|
|
|
/* Focus state for NLP editor - match old nl-input styling */
|
|
.tn-task-modal__markdown-editor--nlp:focus-within {
|
|
border-color: var(--interactive-accent);
|
|
background: transparent;
|
|
box-shadow: 0 0 0 2px rgba(var(--interactive-accent-rgb), 0.2);
|
|
}
|
|
|
|
.tn-task-modal__markdown-editor--nlp:focus-within .cm-editor {
|
|
background: transparent;
|
|
}
|
|
|
|
.tn-task-modal__markdown-editor--nlp .cm-scroller {
|
|
overflow: auto;
|
|
min-height: inherit;
|
|
height: 100%;
|
|
max-height: 200px;
|
|
cursor: text;
|
|
}
|
|
|
|
.tn-task-modal__markdown-editor--nlp .cm-sizer,
|
|
.tn-task-modal__markdown-editor--nlp .cm-contentContainer,
|
|
.tn-task-modal__markdown-editor--nlp .cm-content {
|
|
box-sizing: border-box;
|
|
min-height: inherit;
|
|
min-width: 100%;
|
|
width: 100%;
|
|
}
|
|
|
|
.tn-task-modal__markdown-editor--nlp .cm-sizer,
|
|
.tn-task-modal__markdown-editor--nlp .cm-contentContainer {
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
.tn-task-modal__markdown-editor--nlp .cm-content {
|
|
padding-left: var(--size-4-2);
|
|
padding-right: var(--size-4-2);
|
|
padding-top: var(--size-4-3);
|
|
padding-bottom: var(--size-4-3);
|
|
font-family: var(--font-text);
|
|
font-size: var(--font-ui-medium);
|
|
line-height: 1.5;
|
|
caret-color: var(--text-normal);
|
|
}
|
|
|
|
.tn-task-modal__markdown-editor--nlp .markdown-source-view.mod-cm6 .cm-content {
|
|
padding: var(--size-4-3) var(--size-4-2);
|
|
}
|
|
|
|
.tn-task-modal__markdown-editor--nlp .cm-cursor,
|
|
.tn-task-modal__markdown-editor--nlp .cm-dropCursor {
|
|
border-left-color: var(--text-normal);
|
|
}
|
|
|
|
.tn-task-modal__markdown-editor--nlp .cm-lineNumbers,
|
|
.tn-task-modal__markdown-editor--nlp .cm-gutters {
|
|
display: none;
|
|
}
|
|
|
|
|
|
.tn-task-modal__markdown-editor--nlp .cm-placeholder {
|
|
color: var(--text-muted);
|
|
font-style: italic;
|
|
}
|
|
|
|
|
|
/* =====================================================================
|
|
CODEMIRROR AUTOCOMPLETE STYLING (for NLP triggers)
|
|
Scoped to TaskNotes modals only
|
|
===================================================================== */
|
|
|
|
/* Main autocomplete tooltip - scoped to TaskNotes modals */
|
|
.tasknotes-plugin .cm-tooltip-autocomplete {
|
|
background-color: var(--background-primary);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: var(--radius-m);
|
|
box-shadow: var(--shadow-s);
|
|
padding: var(--size-4-1);
|
|
font-family: var(--font-ui);
|
|
font-size: var(--font-ui-small);
|
|
z-index: 9999;
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
/* Autocomplete list */
|
|
.tasknotes-plugin .cm-tooltip-autocomplete ul {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
/* Individual completion option */
|
|
.tasknotes-plugin .cm-tooltip-autocomplete li {
|
|
padding: var(--size-4-2) var(--size-4-3);
|
|
cursor: var(--cursor-link, pointer);
|
|
border-radius: var(--radius-s);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--size-4-2);
|
|
}
|
|
|
|
/* Hovered option */
|
|
.tasknotes-plugin .cm-tooltip-autocomplete li:hover,
|
|
.tasknotes-plugin .cm-tooltip-autocomplete li[aria-selected="true"] {
|
|
background-color: var(--background-modifier-hover);
|
|
}
|
|
|
|
/* Selected option */
|
|
.tasknotes-plugin .cm-tooltip-autocomplete li[aria-selected="true"] {
|
|
background-color: var(--background-modifier-active-hover);
|
|
}
|
|
|
|
/* Completion label (main text) */
|
|
.tasknotes-plugin .cm-completionLabel {
|
|
flex: 1;
|
|
color: var(--text-normal);
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Completion info (right side) */
|
|
.tasknotes-plugin .cm-completionInfo {
|
|
color: var(--text-muted);
|
|
font-size: var(--font-ui-smaller);
|
|
font-weight: normal;
|
|
}
|
|
|
|
/* Completion detail (description) */
|
|
.tasknotes-plugin .cm-completionDetail {
|
|
color: var(--text-faint);
|
|
font-size: var(--font-ui-smaller);
|
|
margin-left: var(--size-4-2);
|
|
}
|
|
|
|
/* Icon for different completion types */
|
|
.tasknotes-plugin .cm-completionIcon {
|
|
width: 16px;
|
|
height: 16px;
|
|
margin-right: var(--size-4-2);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Match highlighting in completion */
|
|
.tasknotes-plugin .cm-completionMatchedText {
|
|
text-decoration: underline;
|
|
color: var(--color-accent);
|
|
}
|
|
|
|
.tasknotes-plugin.minimalist-task-modal {
|
|
/* Modal container adjustments */
|
|
}
|
|
|
|
.tasknotes-plugin .task-modal__field-group + .task-modal__field-group {
|
|
margin-top: var(--size-4-3);
|
|
}
|
|
|
|
/* Modal header with TaskNotes icon */
|
|
/* User fields section styling */
|
|
.tn-task-modal__user-fields {
|
|
margin-top: var(--size-4-4);
|
|
border-top: 0.5px solid var(--background-modifier-border);
|
|
padding-top: var(--size-4-3);
|
|
}
|
|
|
|
.tn-task-modal__section-label {
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
font-size: 0.9em;
|
|
margin-bottom: var(--size-4-2);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.tasknotes-plugin.minimalist-task-modal .modal-content {
|
|
padding: 0;
|
|
border-radius: var(--radius-l);
|
|
box-shadow: var(--shadow-l);
|
|
min-width: 480px;
|
|
max-width: 600px;
|
|
transition: box-shadow 0.3s ease, transform 0.3s ease;
|
|
}
|
|
|
|
.tasknotes-plugin .minimalist-modal-container {
|
|
padding: var(--size-4-4);
|
|
background: var(--modal-background);
|
|
}
|
|
|
|
/* Override shadow variable inside the modal, then re-apply outer shadow explicitly */
|
|
.theme-light .tasknotes-plugin.minimalist-task-modal,
|
|
.theme-dark .tasknotes-plugin.minimalist-task-modal {
|
|
--shadow-l: none;
|
|
}
|
|
|
|
/* Re-apply outer shadow to the modal element itself */
|
|
.tasknotes-plugin.minimalist-task-modal > .modal {
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
/* =====================================================================
|
|
TITLE INPUT - PRIMARY FOCUS
|
|
===================================================================== */
|
|
|
|
.tasknotes-plugin .title-input-container {
|
|
margin-bottom: var(--size-4-3);
|
|
}
|
|
|
|
.tasknotes-plugin .title-input {
|
|
width: 100%;
|
|
padding: var(--size-4-2) var(--size-4-1);
|
|
font-family: inherit;
|
|
font-size: var(--font-ui-large);
|
|
font-weight: 500;
|
|
line-height: 1.4;
|
|
border: none;
|
|
outline: none;
|
|
background: transparent;
|
|
color: var(--text-normal);
|
|
resize: none;
|
|
min-height: 44px;
|
|
max-height: calc((var(--font-ui-large) * 1.4 * 3) + (var(--size-4-2) * 2));
|
|
height: var(--tn-task-modal-title-height, auto);
|
|
overflow-y: var(--tn-task-modal-title-overflow-y, hidden);
|
|
transition: background-color 0.2s ease, color 0.2s ease;
|
|
}
|
|
|
|
.tasknotes-plugin .title-input::placeholder {
|
|
color: var(--text-muted);
|
|
font-weight: 400;
|
|
}
|
|
|
|
.tasknotes-plugin .title-input:focus,
|
|
.tasknotes-plugin .title-input:active,
|
|
.tasknotes-plugin .title-input:focus-visible {
|
|
background: var(--background-modifier-hover);
|
|
border-radius: var(--radius-s);
|
|
outline: none;
|
|
box-shadow: none;
|
|
}
|
|
|
|
/* =====================================================================
|
|
ACTION BAR - ICON-BASED CONTROLS
|
|
===================================================================== */
|
|
|
|
.tasknotes-plugin .tn-task-modal__action-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--size-4-1);
|
|
margin-bottom: var(--size-4-3);
|
|
padding: var(--size-4-1) 0;
|
|
}
|
|
|
|
.tasknotes-plugin .action-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: var(--radius-s);
|
|
cursor: var(--cursor-link, pointer);
|
|
transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
|
|
position: relative;
|
|
}
|
|
|
|
.tasknotes-plugin .action-icon:hover {
|
|
background: var(--background-modifier-hover);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.tasknotes-plugin .action-icon .icon {
|
|
width: 16px;
|
|
height: 16px;
|
|
color: var(--text-muted);
|
|
transition: color 0.2s ease;
|
|
}
|
|
|
|
.tasknotes-plugin .action-icon:hover .icon {
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
/* Active state for icons when they have values - only show the dot */
|
|
.tasknotes-plugin .action-icon.has-value {
|
|
/* Remove full background colorization */
|
|
}
|
|
|
|
.tasknotes-plugin .action-icon.has-value::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: -2px;
|
|
right: -2px;
|
|
width: 8px;
|
|
height: 8px;
|
|
background: var(--color-accent);
|
|
border: 2px solid var(--background-primary);
|
|
border-radius: 50%;
|
|
}
|
|
|
|
/* =====================================================================
|
|
DETAILS SECTION - PROGRESSIVE DISCLOSURE
|
|
===================================================================== */
|
|
|
|
.tasknotes-plugin .details-container {
|
|
transition: opacity 0.3s ease, transform 0.3s ease;
|
|
transform-origin: top;
|
|
}
|
|
|
|
.tasknotes-plugin .detail-label {
|
|
font-size: var(--font-ui-small);
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
margin-bottom: var(--size-4-1);
|
|
margin-top: var(--size-4-3);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.tasknotes-plugin .detail-label:first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.tasknotes-plugin .title-input-detailed {
|
|
width: 100%;
|
|
padding: var(--size-4-2);
|
|
font-family: inherit;
|
|
font-size: var(--font-ui-medium);
|
|
font-weight: 500;
|
|
line-height: 1.4;
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: var(--radius-s);
|
|
background: transparent;
|
|
color: var(--text-normal);
|
|
resize: none;
|
|
min-height: calc((var(--font-ui-medium) * 1.4) + (var(--size-4-2) * 2) + 2px);
|
|
max-height: calc((var(--font-ui-medium) * 1.4 * 3) + (var(--size-4-2) * 2) + 2px);
|
|
height: var(--tn-task-modal-title-height, auto);
|
|
overflow-y: var(--tn-task-modal-title-overflow-y, hidden);
|
|
margin-bottom: var(--size-4-3);
|
|
transition: background-color 0.2s ease, border-color 0.2s ease;
|
|
}
|
|
|
|
.tasknotes-plugin .title-input-detailed:focus,
|
|
.tasknotes-plugin .title-input-detailed:active,
|
|
.tasknotes-plugin .title-input-detailed:focus-visible {
|
|
outline: none;
|
|
box-shadow: none;
|
|
border-color: var(--interactive-accent);
|
|
background: transparent;
|
|
}
|
|
|
|
.tasknotes-plugin .title-input-detailed::placeholder {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.tasknotes-plugin .details-input {
|
|
width: 100%;
|
|
min-height: 80px;
|
|
padding: var(--size-4-2);
|
|
font-size: var(--font-ui-medium);
|
|
line-height: 1.5;
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: var(--radius-s);
|
|
background: transparent;
|
|
color: var(--text-normal);
|
|
resize: vertical;
|
|
transition: background-color 0.2s ease, border-color 0.2s ease;
|
|
}
|
|
|
|
.tasknotes-plugin .details-input:focus {
|
|
outline: none;
|
|
border-color: var(--interactive-accent);
|
|
background: transparent;
|
|
}
|
|
|
|
.tasknotes-plugin .details-input::placeholder {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
|
|
/* =====================================================================
|
|
ADDITIONAL FIELDS - SETTINGS STYLE
|
|
===================================================================== */
|
|
|
|
.tasknotes-plugin .details-container .setting-item {
|
|
border: none;
|
|
padding: var(--size-4-2) 0;
|
|
}
|
|
|
|
.tasknotes-plugin .details-container .setting-item-name {
|
|
font-size: var(--font-ui-small);
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.tasknotes-plugin .details-container .setting-item-control input {
|
|
min-width: 0;
|
|
background: transparent;
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: var(--radius-s);
|
|
padding: var(--size-4-1) var(--size-4-2);
|
|
font-size: var(--font-ui-medium);
|
|
transition: background-color 0.2s ease, border-color 0.2s ease;
|
|
}
|
|
|
|
.tasknotes-plugin .details-container .setting-item-control input:focus {
|
|
border-color: var(--interactive-accent);
|
|
background: transparent;
|
|
outline: none;
|
|
}
|
|
|
|
.tasknotes-plugin .details-container .tn-task-modal__wide-text-setting {
|
|
gap: var(--size-4-3);
|
|
}
|
|
|
|
.tasknotes-plugin .details-container .tn-task-modal__wide-text-setting .setting-item-info {
|
|
flex: 1 1 35%;
|
|
min-width: 7rem;
|
|
}
|
|
|
|
.tasknotes-plugin .details-container .tn-task-modal__wide-text-setting .setting-item-control {
|
|
flex: 1 1 65%;
|
|
min-width: min(100%, 14rem);
|
|
}
|
|
|
|
.tasknotes-plugin .details-container .tn-task-modal__wide-text-setting .setting-item-control input {
|
|
width: 100%;
|
|
}
|
|
|
|
/* =====================================================================
|
|
OPEN NOTE BUTTON (IN BUTTON BAR)
|
|
===================================================================== */
|
|
|
|
.tasknotes-plugin .tn-task-modal__open-note-button {
|
|
padding: var(--size-4-2) var(--size-4-3);
|
|
font-weight: 500;
|
|
border: 1px solid var(--interactive-accent);
|
|
border-radius: var(--radius-s);
|
|
background: transparent;
|
|
color: var(--interactive-accent);
|
|
cursor: var(--cursor-link, pointer);
|
|
transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
|
|
min-width: 80px;
|
|
}
|
|
|
|
.tasknotes-plugin .tn-task-modal__open-note-button:hover {
|
|
background: var(--interactive-accent);
|
|
color: var(--text-on-accent);
|
|
border: 1px solid var(--interactive-accent);
|
|
}
|
|
|
|
.tasknotes-plugin .tn-task-modal__open-note-button:active {
|
|
background: var(--interactive-accent);
|
|
color: var(--text-on-accent);
|
|
border: 1px solid var(--interactive-accent);
|
|
}
|
|
|
|
.tasknotes-plugin .tn-task-modal__open-note-button:focus-visible {
|
|
box-shadow: 0 0 0 3px var(--background-modifier-border-focus);
|
|
}
|
|
|
|
.tasknotes-plugin .tn-task-modal__archive-button:focus-visible {
|
|
box-shadow: 0 0 0 3px var(--background-modifier-border-focus);
|
|
}
|
|
|
|
/* =====================================================================
|
|
MODAL BUTTON CONTAINER - Native Obsidian style
|
|
===================================================================== */
|
|
|
|
/* Use native modal-button-container class */
|
|
.modal.mod-tasknotes .modal-button-container {
|
|
display: flex;
|
|
gap: var(--size-4-2);
|
|
}
|
|
|
|
/* Push Save/Cancel buttons to the right on desktop only */
|
|
body:not(.is-mobile) .modal.mod-tasknotes .modal-button-container .mod-cta {
|
|
margin-left: auto;
|
|
}
|
|
|
|
/* =====================================================================
|
|
MODAL EXPANSION ANIMATION
|
|
===================================================================== */
|
|
|
|
.tasknotes-plugin.minimalist-task-modal.expanded .modal-content {
|
|
min-height: 400px;
|
|
max-height: 85vh;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* Flex column so the split-content fills remaining space while buttons stay pinned */
|
|
.tasknotes-plugin.minimalist-task-modal.expanded .minimalist-modal-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.tasknotes-plugin.minimalist-task-modal.expanded .modal-split-content {
|
|
flex: 1 1 auto;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
/* Keep buttons pinned at the bottom, outside the scrollable area */
|
|
.tasknotes-plugin.minimalist-task-modal.expanded .modal-button-container {
|
|
flex-shrink: 0;
|
|
flex-wrap: wrap;
|
|
padding-top: var(--size-4-3);
|
|
margin-top: var(--size-4-3);
|
|
}
|
|
|
|
/* =====================================================================
|
|
RESPONSIVE DESIGN
|
|
===================================================================== */
|
|
|
|
@media (max-width: 600px) {
|
|
.tasknotes-plugin.minimalist-task-modal .modal-content {
|
|
min-width: 90vw;
|
|
max-width: 90vw;
|
|
}
|
|
|
|
.tasknotes-plugin .minimalist-modal-container {
|
|
padding: var(--size-4-3);
|
|
}
|
|
|
|
.tasknotes-plugin .tn-task-modal__action-bar {
|
|
flex-wrap: wrap;
|
|
gap: var(--size-4-2);
|
|
}
|
|
|
|
.modal.mod-tasknotes .modal-button-container {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.modal.mod-tasknotes .modal-button-container button {
|
|
width: 100%;
|
|
}
|
|
|
|
/* Reset margin for small screens on desktop too */
|
|
.modal.mod-tasknotes .modal-button-container .mod-cta {
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
|
|
/* =====================================================================
|
|
MOBILE-SPECIFIC FIXES (Obsidian Mobile)
|
|
On mobile, modals often take full screen. Ensure buttons stay at bottom
|
|
without overlapping scrollable content.
|
|
===================================================================== */
|
|
|
|
body.is-mobile .tasknotes-plugin.minimalist-task-modal.expanded .modal-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
width: 100%;
|
|
max-width: none;
|
|
max-height: calc(100vh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
|
|
}
|
|
|
|
body.is-mobile .tasknotes-plugin.minimalist-task-modal > .modal {
|
|
width: calc(100vw - 16px - env(safe-area-inset-left) - env(safe-area-inset-right));
|
|
max-width: calc(100vw - 16px - env(safe-area-inset-left) - env(safe-area-inset-right));
|
|
max-height: 100%;
|
|
}
|
|
|
|
@supports (height: 100dvh) {
|
|
body.is-mobile .tasknotes-plugin.minimalist-task-modal.expanded .modal-content {
|
|
max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
|
|
}
|
|
}
|
|
|
|
body.is-mobile .tasknotes-plugin.minimalist-task-modal.expanded .minimalist-modal-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
body.is-mobile .tasknotes-plugin.minimalist-task-modal.expanded .modal-split-content {
|
|
flex: 1 1 auto;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
/* Add padding at bottom to ensure content isn't hidden behind buttons during scroll */
|
|
padding-bottom: var(--size-4-2);
|
|
}
|
|
|
|
body.is-mobile .tasknotes-plugin.minimalist-task-modal .modal-split-left .details-container {
|
|
order: 3;
|
|
}
|
|
|
|
body.is-mobile .tasknotes-plugin.minimalist-task-modal .modal-split-right {
|
|
order: 4;
|
|
}
|
|
|
|
body.is-mobile .tasknotes-plugin .tn-task-modal__markdown-editor--details,
|
|
body.is-mobile .tasknotes-plugin .tn-task-modal__markdown-editor--details .task-details-editor,
|
|
body.is-mobile .tasknotes-plugin .tn-task-modal__markdown-editor--details .cm-editor,
|
|
body.is-mobile .tasknotes-plugin .tn-task-modal__markdown-editor--details .details-editor-fallback {
|
|
min-height: 140px;
|
|
max-height: 32vh;
|
|
}
|
|
|
|
body.is-mobile .tasknotes-plugin .tn-task-modal__markdown-editor--details .cm-scroller {
|
|
max-height: 32vh;
|
|
}
|
|
|
|
body.is-mobile .tasknotes-plugin .action-icon {
|
|
width: 40px;
|
|
height: 40px;
|
|
}
|
|
|
|
body.is-mobile .tasknotes-plugin.minimalist-task-modal.is-mobile-keyboard-focused.expanded .modal-split-content {
|
|
padding-bottom: calc(min(42vh, 320px) + env(safe-area-inset-bottom));
|
|
scroll-padding-bottom: calc(min(42vh, 320px) + env(safe-area-inset-bottom));
|
|
}
|
|
|
|
body.is-mobile .tasknotes-plugin.minimalist-task-modal.expanded .modal-button-container {
|
|
flex-shrink: 0;
|
|
position: relative;
|
|
background: var(--modal-background);
|
|
padding-top: var(--size-4-3);
|
|
margin-top: var(--size-4-2);
|
|
margin-bottom: max(var(--size-4-1), env(safe-area-inset-bottom));
|
|
}
|
|
|
|
body.is-mobile .modal.mod-tasknotes .tn-task-modal__button-bar {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: var(--size-4-2);
|
|
}
|
|
|
|
body.is-mobile .modal.mod-tasknotes .tn-task-modal__button-bar button {
|
|
width: 100%;
|
|
min-height: 40px;
|
|
margin: 0;
|
|
padding-inline: var(--size-4-2);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
body.is-mobile .modal.mod-tasknotes .tn-task-modal__button-bar .mod-cta {
|
|
grid-column: span 2;
|
|
}
|
|
|
|
body.is-mobile .tasknotes-plugin .task-project-remove {
|
|
width: 32px;
|
|
height: 32px;
|
|
min-width: 32px;
|
|
min-height: 32px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-left: var(--size-4-1);
|
|
}
|
|
|
|
body.is-mobile .tasknotes-plugin .task-project-item--task-card .task-project-remove {
|
|
margin-top: var(--size-4-1);
|
|
}
|
|
|
|
/* =====================================================================
|
|
SPLIT LAYOUT - BASE STYLES (mobile/narrow screens)
|
|
On narrow screens, content flows vertically with details below title
|
|
===================================================================== */
|
|
|
|
/* Split content wrapper - use flex column for ordering on narrow screens */
|
|
.tasknotes-plugin.minimalist-task-modal .modal-split-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* Left column: contains title, action bar, and form fields */
|
|
.tasknotes-plugin.minimalist-task-modal .modal-split-left {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* Title input container - first item */
|
|
.tasknotes-plugin.minimalist-task-modal .modal-split-left .title-input-container,
|
|
.tasknotes-plugin.minimalist-task-modal .modal-split-left .tn-task-modal__markdown-editor--nlp {
|
|
order: 1;
|
|
}
|
|
|
|
/* Action bar - second item */
|
|
.tasknotes-plugin.minimalist-task-modal .modal-split-left .tn-task-modal__action-bar {
|
|
order: 2;
|
|
}
|
|
|
|
/* Right column: contains details editor - appears after action bar on narrow screens */
|
|
.tasknotes-plugin.minimalist-task-modal .modal-split-right {
|
|
order: 3;
|
|
}
|
|
|
|
/* Details container (form fields) - after the details editor on narrow screens */
|
|
.tasknotes-plugin.minimalist-task-modal .modal-split-left .details-container {
|
|
order: 4;
|
|
}
|
|
|
|
/* Additional sections (completions calendar, metadata) - last */
|
|
.tasknotes-plugin.minimalist-task-modal .modal-split-left .completions-calendar-container,
|
|
.tasknotes-plugin.minimalist-task-modal .modal-split-left .metadata-container {
|
|
order: 5;
|
|
}
|
|
|
|
/* Hide empty right column indicator on narrow screens */
|
|
.tasknotes-plugin.minimalist-task-modal .modal-split-right:empty {
|
|
display: none;
|
|
}
|
|
|
|
/* =====================================================================
|
|
SPLIT LAYOUT - WIDE SCREENS (900px+)
|
|
Details field appears on the right when modal is expanded
|
|
Only applies when split-layout-enabled class is present (controlled by setting)
|
|
===================================================================== */
|
|
|
|
@media (min-width: 900px) {
|
|
/* Widen modal for split layout when expanded */
|
|
/* Target both .modal (modalEl) and .modal-content for max compatibility */
|
|
.tasknotes-plugin.minimalist-task-modal.split-layout-enabled.expanded .modal,
|
|
.tasknotes-plugin.minimalist-task-modal.split-layout-enabled.expanded.modal {
|
|
width: 850px;
|
|
max-width: 90vw;
|
|
}
|
|
|
|
.tasknotes-plugin.minimalist-task-modal.split-layout-enabled.expanded .modal-content {
|
|
min-width: 100%;
|
|
max-width: 100%;
|
|
padding: 0;
|
|
}
|
|
|
|
/* Main container - no padding on right for edge-to-edge details */
|
|
.tasknotes-plugin.minimalist-task-modal.split-layout-enabled.expanded .minimalist-modal-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding-right: 0;
|
|
}
|
|
|
|
/* Split content wrapper - holds left and right columns side by side */
|
|
.tasknotes-plugin.minimalist-task-modal.split-layout-enabled.expanded .modal-split-content {
|
|
display: block;
|
|
flex: 1;
|
|
min-height: 0;
|
|
gap: 0;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
/* Left column - use grid so the details editor can sit beside the form without display: contents. */
|
|
.tasknotes-plugin.minimalist-task-modal.split-layout-enabled.expanded .modal-split-left {
|
|
min-width: 0;
|
|
display: grid;
|
|
grid-template-columns: 380px minmax(280px, 1fr);
|
|
gap: 0;
|
|
padding-right: 0;
|
|
overflow: visible;
|
|
max-height: 70vh;
|
|
}
|
|
|
|
.tasknotes-plugin.minimalist-task-modal.split-layout-enabled.expanded .modal-split-left .title-input-container,
|
|
.tasknotes-plugin.minimalist-task-modal.split-layout-enabled.expanded .modal-split-left .tn-task-modal__markdown-editor--nlp,
|
|
.tasknotes-plugin.minimalist-task-modal.split-layout-enabled.expanded .modal-split-left .tn-task-modal__action-bar,
|
|
.tasknotes-plugin.minimalist-task-modal.split-layout-enabled.expanded .modal-split-left .details-container,
|
|
.tasknotes-plugin.minimalist-task-modal.split-layout-enabled.expanded .modal-split-left .completions-calendar-container,
|
|
.tasknotes-plugin.minimalist-task-modal.split-layout-enabled.expanded .modal-split-left .metadata-container {
|
|
order: unset;
|
|
grid-column: 1;
|
|
margin-right: var(--size-4-4);
|
|
}
|
|
|
|
/* Right column - details editor takes full height, edge to edge */
|
|
.tasknotes-plugin.minimalist-task-modal.split-layout-enabled.expanded .modal-split-right {
|
|
min-width: 280px;
|
|
min-height: 360px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
grid-column: 2;
|
|
grid-row: 1 / span 20;
|
|
order: unset;
|
|
border-left: 1px solid var(--background-modifier-border);
|
|
margin: calc(-1 * var(--size-4-4)) 0;
|
|
margin-right: calc(-1 * var(--size-4-4));
|
|
border-radius: 0;
|
|
max-height: 70vh;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Hide empty right column on wide screens too */
|
|
.tasknotes-plugin.minimalist-task-modal.split-layout-enabled.expanded .modal-split-right:empty {
|
|
display: none;
|
|
}
|
|
|
|
/* When right column is empty, left column takes full width */
|
|
.tasknotes-plugin.minimalist-task-modal.split-layout-enabled.expanded .modal-split-content--right-empty .modal-split-left {
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow-y: auto;
|
|
padding-right: 0;
|
|
}
|
|
|
|
.tasknotes-plugin.minimalist-task-modal.split-layout-enabled.expanded .modal-split-content--right-empty .modal-split-left .title-input-container,
|
|
.tasknotes-plugin.minimalist-task-modal.split-layout-enabled.expanded .modal-split-content--right-empty .modal-split-left .tn-task-modal__markdown-editor--nlp,
|
|
.tasknotes-plugin.minimalist-task-modal.split-layout-enabled.expanded .modal-split-content--right-empty .modal-split-left .tn-task-modal__action-bar,
|
|
.tasknotes-plugin.minimalist-task-modal.split-layout-enabled.expanded .modal-split-content--right-empty .modal-split-left .details-container,
|
|
.tasknotes-plugin.minimalist-task-modal.split-layout-enabled.expanded .modal-split-content--right-empty .modal-split-left .completions-calendar-container,
|
|
.tasknotes-plugin.minimalist-task-modal.split-layout-enabled.expanded .modal-split-content--right-empty .modal-split-left .metadata-container {
|
|
margin-right: 0;
|
|
}
|
|
|
|
/* Details label in right column */
|
|
.tasknotes-plugin.minimalist-task-modal.split-layout-enabled.expanded .modal-split-right .detail-label {
|
|
margin: 0;
|
|
padding: var(--size-4-3) var(--size-4-4);
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
}
|
|
|
|
/* Make details editor fill the right column completely */
|
|
.tasknotes-plugin.minimalist-task-modal.split-layout-enabled.expanded .modal-split-right .tn-task-modal__markdown-editor--details {
|
|
flex: 1;
|
|
min-height: 0;
|
|
height: 100%;
|
|
max-height: none;
|
|
display: flex;
|
|
flex-direction: column;
|
|
border: none;
|
|
border-radius: 0;
|
|
margin: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.tasknotes-plugin.minimalist-task-modal.split-layout-enabled.expanded .modal-split-right .tn-task-modal__markdown-editor--details .cm-editor {
|
|
flex: 1;
|
|
height: 100%;
|
|
max-height: none;
|
|
border-radius: 0;
|
|
min-height: 320px;
|
|
}
|
|
|
|
.tasknotes-plugin.minimalist-task-modal.split-layout-enabled.expanded .modal-split-right .tn-task-modal__markdown-editor--details .cm-scroller {
|
|
flex: 1;
|
|
max-height: none;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.tasknotes-plugin.minimalist-task-modal.split-layout-enabled.expanded .modal-split-right .tn-task-modal__markdown-editor--details .task-details-editor {
|
|
max-height: none;
|
|
flex: 1;
|
|
min-height: 320px;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Button container needs proper positioning */
|
|
.tasknotes-plugin.minimalist-task-modal.split-layout-enabled.expanded .modal-button-container {
|
|
padding-right: var(--size-4-4);
|
|
}
|
|
}
|
|
|
|
/* =====================================================================
|
|
SPLIT LAYOUT - EXTRA WIDE SCREENS (1200px+)
|
|
Modal expands to 1100px on larger screens
|
|
===================================================================== */
|
|
|
|
@media (min-width: 1200px) {
|
|
.tasknotes-plugin.minimalist-task-modal.split-layout-enabled.expanded .modal,
|
|
.tasknotes-plugin.minimalist-task-modal.split-layout-enabled.expanded.modal {
|
|
width: 1100px;
|
|
}
|
|
|
|
/* Left column gets more space on wider screens */
|
|
.tasknotes-plugin.minimalist-task-modal.split-layout-enabled.expanded .modal-split-left {
|
|
grid-template-columns: 480px minmax(280px, 1fr);
|
|
}
|
|
}
|
|
|
|
/* =====================================================================
|
|
ACCESSIBILITY ENHANCEMENTS
|
|
===================================================================== */
|
|
|
|
.tasknotes-plugin .action-icon:focus-visible {
|
|
outline: none;
|
|
box-shadow: 0 0 0 1px var(--interactive-accent);
|
|
transition: box-shadow 0.15s ease;
|
|
}
|
|
|
|
.tasknotes-plugin .details-input:focus-visible {
|
|
outline: 2px solid var(--interactive-accent);
|
|
outline-offset: 1px;
|
|
}
|
|
|
|
/* =====================================================================
|
|
METADATA SECTION - FOR EDIT MODAL
|
|
===================================================================== */
|
|
|
|
.tasknotes-plugin .metadata-container {
|
|
margin-top: var(--size-4-3);
|
|
padding-top: var(--size-4-3);
|
|
border-top: 0.5px solid var(--background-modifier-border);
|
|
}
|
|
|
|
.tasknotes-plugin .metadata-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--size-4-1);
|
|
}
|
|
|
|
.tasknotes-plugin .metadata-item {
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: var(--font-ui-small);
|
|
min-width: 0;
|
|
}
|
|
|
|
.tasknotes-plugin .metadata-key {
|
|
color: var(--text-muted);
|
|
flex: 0 0 auto;
|
|
font-weight: 500;
|
|
min-width: 80px;
|
|
}
|
|
|
|
.tasknotes-plugin .metadata-value {
|
|
color: var(--text-normal);
|
|
flex: 1 1 auto;
|
|
font-family: var(--font-monospace);
|
|
min-width: 0;
|
|
overflow-wrap: anywhere;
|
|
white-space: normal;
|
|
}
|
|
|
|
/* =====================================================================
|
|
AUTOCOMPLETE STYLING
|
|
===================================================================== */
|
|
|
|
.tasknotes-plugin .autocomplete-suggestions {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
right: 0;
|
|
background: var(--background-primary);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-top: none;
|
|
border-radius: 0 0 var(--radius-s) var(--radius-s);
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
z-index: 1000;
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.tasknotes-plugin .autocomplete-suggestion {
|
|
padding: 8px 12px;
|
|
cursor: var(--cursor-link, pointer);
|
|
border-bottom: 1px solid var(--background-modifier-border-hover);
|
|
font-size: var(--font-ui-small);
|
|
color: var(--text-normal);
|
|
transition: background-color 0.1s ease;
|
|
}
|
|
|
|
.tasknotes-plugin .autocomplete-suggestion:hover {
|
|
background: var(--background-modifier-hover);
|
|
}
|
|
|
|
.tasknotes-plugin .autocomplete-suggestion:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
/* =====================================================================
|
|
NLP INPUT STYLING UPDATES
|
|
===================================================================== */
|
|
|
|
.tasknotes-plugin .nl-input {
|
|
width: 100%;
|
|
padding: var(--size-4-3) var(--size-4-2);
|
|
font-weight: 400;
|
|
line-height: 1.5;
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: var(--radius-s);
|
|
background: transparent;
|
|
color: var(--text-normal);
|
|
resize: vertical;
|
|
min-height: 80px;
|
|
transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
|
|
}
|
|
|
|
.tasknotes-plugin .nl-input:focus {
|
|
outline: none;
|
|
border-color: var(--interactive-accent);
|
|
background: transparent;
|
|
box-shadow: 0 0 0 2px rgba(var(--interactive-accent-rgb), 0.2);
|
|
}
|
|
|
|
.tasknotes-plugin .nl-input::placeholder {
|
|
color: var(--text-muted);
|
|
font-style: italic;
|
|
}
|
|
|
|
/* =====================================================================
|
|
COMPLETIONS CALENDAR SECTION
|
|
===================================================================== */
|
|
|
|
.tasknotes-plugin .completions-calendar-container {
|
|
margin-top: var(--size-4-3);
|
|
padding-top: var(--size-4-3);
|
|
border-top: 0.5px solid var(--background-modifier-border);
|
|
}
|
|
|
|
.tasknotes-plugin .completions-calendar-content {
|
|
max-width: 200px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* =====================================================================
|
|
RECURRING CALENDAR COMPONENT - BEM & MINIMALIST
|
|
===================================================================== */
|
|
|
|
.tasknotes-plugin .metadata-item--calendar {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.tasknotes-plugin .recurring-calendar {
|
|
margin-top: var(--size-4-1);
|
|
font-size: var(--font-ui-small);
|
|
width: 100%;
|
|
max-width: 200px;
|
|
}
|
|
|
|
.tasknotes-plugin .recurring-calendar__header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: var(--size-4-1);
|
|
}
|
|
|
|
.tasknotes-plugin .recurring-calendar__nav {
|
|
appearance: none;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 20px;
|
|
height: 20px;
|
|
min-width: 20px;
|
|
min-height: 20px;
|
|
margin: 0;
|
|
padding: 0;
|
|
border: 0;
|
|
border-radius: var(--radius-s);
|
|
box-shadow: none;
|
|
background: transparent;
|
|
color: var(--text-muted);
|
|
cursor: var(--cursor-link, pointer);
|
|
line-height: 1;
|
|
transition: background-color 0.1s ease, color 0.1s ease;
|
|
}
|
|
|
|
.tasknotes-plugin .recurring-calendar__nav:hover,
|
|
.tasknotes-plugin .recurring-calendar__nav:focus-visible {
|
|
background: var(--background-modifier-hover);
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.tasknotes-plugin .recurring-calendar__nav svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
stroke: currentColor;
|
|
}
|
|
|
|
.tasknotes-plugin .recurring-calendar__month {
|
|
font-size: var(--font-ui-small);
|
|
color: var(--text-normal);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.tasknotes-plugin .recurring-calendar__grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(7, 1fr);
|
|
gap: 2px;
|
|
}
|
|
|
|
.tasknotes-plugin .recurring-calendar__day {
|
|
width: 20px;
|
|
height: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 11px;
|
|
color: var(--text-faint);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.tasknotes-plugin .recurring-calendar__day--faded {
|
|
color: var(--text-faint);
|
|
opacity: 0.4;
|
|
}
|
|
|
|
.tasknotes-plugin .recurring-calendar__day--clickable {
|
|
cursor: var(--cursor-link, pointer);
|
|
transition: background-color 0.1s ease, color 0.1s ease;
|
|
}
|
|
|
|
.tasknotes-plugin .recurring-calendar__day--clickable:hover {
|
|
background: var(--background-modifier-hover);
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.tasknotes-plugin .recurring-calendar__day--recurring {
|
|
color: var(--text-normal);
|
|
border: 1px solid var(--text-muted);
|
|
}
|
|
|
|
.tasknotes-plugin .recurring-calendar__day--recurring:hover {
|
|
border-color: var(--interactive-accent);
|
|
color: var(--interactive-accent);
|
|
background: var(--background-modifier-hover);
|
|
}
|
|
|
|
.tasknotes-plugin .recurring-calendar__day--completed {
|
|
background: var(--interactive-accent);
|
|
color: var(--text-on-accent);
|
|
border: 1px solid var(--interactive-accent);
|
|
}
|
|
|
|
.tasknotes-plugin .recurring-calendar__day--completed:hover {
|
|
background: var(--interactive-accent-hover);
|
|
}
|
|
|
|
.tasknotes-plugin .recurring-calendar__day--skipped {
|
|
background: rgba(128, 128, 128, 0.3);
|
|
color: var(--text-muted);
|
|
border: 1px solid var(--text-faint);
|
|
text-decoration: line-through;
|
|
}
|
|
|
|
.tasknotes-plugin .recurring-calendar__day--skipped:hover {
|
|
background: rgba(128, 128, 128, 0.4);
|
|
border-color: var(--text-muted);
|
|
}
|
|
|
|
.tasknotes-plugin .nl-preview-container {
|
|
margin-top: var(--size-4-2);
|
|
padding: var(--size-4-2);
|
|
background: var(--background-primary-alt);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: var(--radius-s);
|
|
display: none;
|
|
}
|
|
|
|
.tasknotes-plugin .nl-preview-container.nl-preview-container--visible {
|
|
display: block;
|
|
visibility: visible;
|
|
}
|
|
|
|
.tasknotes-plugin .nl-preview-item {
|
|
display: flex;
|
|
align-items: center;
|
|
word-break: break-all;
|
|
margin-bottom: var(--size-4-1);
|
|
font-size: var(--font-ui-small);
|
|
}
|
|
|
|
.tasknotes-plugin .nl-preview-item:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.tasknotes-plugin .nl-preview-label {
|
|
min-width: 80px;
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
margin-right: var(--size-4-2);
|
|
}
|
|
|
|
.tasknotes-plugin .nl-preview-value {
|
|
color: var(--text-normal);
|
|
flex: 1;
|
|
}
|
|
|
|
/* =====================================================================
|
|
DARK MODE ADJUSTMENTS
|
|
===================================================================== */
|
|
|
|
.theme-dark .tasknotes-plugin .action-icon.has-value::after {
|
|
border-color: var(--background-primary-alt);
|
|
}
|
|
|
|
.theme-dark .tasknotes-plugin .autocomplete-suggestions {
|
|
box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
/* NLP Auto-suggestion specific styles */
|
|
.tasknotes-plugin .nlp-suggest-icon {
|
|
display: inline-block;
|
|
font-weight: 600;
|
|
color: var(--interactive-accent);
|
|
margin-right: var(--size-2-2);
|
|
min-width: 14px;
|
|
}
|
|
|
|
.tasknotes-plugin .nlp-suggest-text {
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
/* NLP Project Suggestion Styles - Rich Metadata Display (Textarea-based suggester in TaskCreationModal) */
|
|
.tasknotes-plugin .nlp-suggest-project__filename {
|
|
font-weight: var(--font-weight-medium);
|
|
color: var(--text-normal);
|
|
font-size: var(--font-ui-small);
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.tasknotes-plugin .nlp-suggest-project__meta {
|
|
font-size: var(--font-ui-smaller);
|
|
color: var(--text-muted);
|
|
margin-top: 2px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.tasknotes-plugin .nlp-suggest-project__meta-label {
|
|
color: var(--text-muted);
|
|
font-weight: 500;
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.tasknotes-plugin .nlp-suggest-project__meta-value {
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
/* CodeMirror Project Suggestion Styles - Rich Metadata Display */
|
|
.tasknotes-plugin .cm-tooltip-autocomplete .cm-project-suggestion {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
padding: var(--size-4-1) 0;
|
|
}
|
|
|
|
.tasknotes-plugin .cm-tooltip-autocomplete .cm-project-suggestion__name {
|
|
font-weight: var(--font-weight-medium);
|
|
color: var(--text-normal);
|
|
font-size: var(--font-ui-small);
|
|
}
|
|
|
|
.tasknotes-plugin .cm-tooltip-autocomplete .cm-project-suggestion__meta {
|
|
font-size: var(--font-ui-smaller);
|
|
color: var(--text-muted);
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.tasknotes-plugin .cm-tooltip-autocomplete .cm-project-suggestion__meta-label {
|
|
color: var(--text-muted);
|
|
font-weight: 500;
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.tasknotes-plugin .cm-tooltip-autocomplete .cm-project-suggestion__meta-value {
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
/* =====================================================================
|
|
PROJECT SELECTION UI
|
|
===================================================================== */
|
|
|
|
.tasknotes-plugin .task-projects-list {
|
|
margin-top: var(--size-4-2);
|
|
border: none;
|
|
border-radius: var(--radius-s);
|
|
max-height: 150px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.tasknotes-plugin .task-projects-empty {
|
|
padding: var(--size-4-3);
|
|
text-align: center;
|
|
color: var(--text-muted);
|
|
font-style: italic;
|
|
border: none;
|
|
font-size: var(--font-ui-small);
|
|
}
|
|
|
|
.tasknotes-plugin .task-project-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: var(--size-4-2);
|
|
border: none;
|
|
gap: var(--size-4-2);
|
|
border-radius: var(--radius-s);
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
.tasknotes-plugin .task-project-item:hover {
|
|
background-color: var(--background-modifier-hover);
|
|
}
|
|
|
|
.tasknotes-plugin .task-project-item--task-card {
|
|
align-items: flex-start;
|
|
padding: 0;
|
|
background: transparent;
|
|
}
|
|
|
|
.tasknotes-plugin .task-project-item--task-card:hover {
|
|
background: transparent;
|
|
}
|
|
|
|
.tasknotes-plugin .task-project-card-host {
|
|
flex: 1;
|
|
min-width: 0;
|
|
border-radius: var(--radius-s);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.tasknotes-plugin .task-project-item--task-card .task-card {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.tasknotes-plugin .task-project-item--task-card .task-project-remove {
|
|
margin-top: var(--size-4-2);
|
|
}
|
|
|
|
.tasknotes-plugin .task-project-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.tasknotes-plugin .task-project-name {
|
|
display: block;
|
|
font-weight: var(--font-weight-medium);
|
|
color: var(--text-normal);
|
|
font-size: var(--font-ui-small);
|
|
}
|
|
|
|
.tasknotes-plugin .task-project-item--unresolved {
|
|
border: 1px solid var(--color-orange);
|
|
background: color-mix(in srgb, var(--color-orange) 12%, var(--background-secondary));
|
|
}
|
|
|
|
.tasknotes-plugin .task-project-item--unresolved .task-project-name {
|
|
color: var(--color-orange);
|
|
}
|
|
|
|
/* Make clickable project names in edit modal look and behave like links */
|
|
.tasknotes-plugin .clickable-project .internal-link {
|
|
color: var(--link-color);
|
|
text-decoration: none;
|
|
cursor: var(--cursor-link, pointer);
|
|
font-weight: var(--font-weight-medium);
|
|
font-size: var(--font-ui-small);
|
|
border-radius: var(--radius-xs);
|
|
padding: 1px 2px;
|
|
transition: background-color 0.2s ease, color 0.2s ease;
|
|
}
|
|
|
|
.tasknotes-plugin .clickable-project .internal-link:hover {
|
|
background-color: var(--background-modifier-hover);
|
|
color: var(--link-color-hover);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Remove the default + prefix for clickable projects since they're now clearly links */
|
|
.tasknotes-plugin .clickable-project .internal-link::before {
|
|
content: '+';
|
|
color: var(--text-muted);
|
|
margin-right: 2px;
|
|
}
|
|
|
|
/* Style dependency items the same way when rendered as internal links */
|
|
.tasknotes-plugin .clickable-dependency .task-dependency-link {
|
|
color: var(--link-color);
|
|
text-decoration: none;
|
|
cursor: var(--cursor-link, pointer);
|
|
font-weight: var(--font-weight-medium);
|
|
font-size: var(--font-ui-small);
|
|
border-radius: var(--radius-xs);
|
|
padding: 1px 2px;
|
|
transition: background-color 0.2s ease, color 0.2s ease;
|
|
}
|
|
|
|
.tasknotes-plugin .clickable-dependency .task-dependency-link:hover {
|
|
background-color: var(--background-modifier-hover);
|
|
color: var(--link-color-hover);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.tasknotes-plugin .task-project-path {
|
|
font-size: var(--font-ui-smaller);
|
|
color: var(--text-muted);
|
|
margin-top: 2px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Use consistent button system for project remove button */
|
|
.tasknotes-plugin .task-project-remove {
|
|
background: transparent;
|
|
border: none;
|
|
box-shadow: none;
|
|
color: var(--text-muted);
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
width: 20px;
|
|
height: 20px;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.tasknotes-plugin .task-project-remove:hover {
|
|
background: var(--tn-color-error);
|
|
color: var(--tn-bg-primary);
|
|
border: none;
|
|
box-shadow: none;
|
|
}
|
|
|
|
/* =====================================================================
|
|
PROJECT SELECT MODAL
|
|
===================================================================== */
|
|
|
|
/* Use consistent button system for project suggestions */
|
|
.tasknotes-plugin .project-suggestion {
|
|
background: transparent;
|
|
border: none;
|
|
box-shadow: none;
|
|
padding: var(--size-4-2);
|
|
border-radius: var(--radius-s);
|
|
}
|
|
|
|
.tasknotes-plugin .project-suggestion:hover {
|
|
background: var(--tn-interactive-hover);
|
|
border: none;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.tasknotes-plugin .project-name {
|
|
font-weight: var(--font-weight-medium);
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.tasknotes-plugin .project-path {
|
|
font-size: var(--font-ui-smaller);
|
|
color: var(--text-muted);
|
|
margin-top: 2px;
|
|
}
|