mirror of
https://github.com/callumalpass/tasknotes.git
synced 2026-07-22 12:50:26 +00:00
291 lines
7.9 KiB
CSS
291 lines
7.9 KiB
CSS
/* =====================================================================
|
||
TIME ENTRY EDITOR MODAL
|
||
===================================================================== */
|
||
|
||
.time-entry-editor-modal .modal {
|
||
width: auto;
|
||
max-width: 800px;
|
||
}
|
||
|
||
.time-entry-editor-modal .modal-content {
|
||
width: 600px;
|
||
max-width: 90vw;
|
||
}
|
||
|
||
.time-entry-editor-modal__entries {
|
||
margin-bottom: var(--size-4-4);
|
||
max-height: 60vh;
|
||
overflow-y: auto;
|
||
}
|
||
|
||
.time-entry-editor-modal__empty {
|
||
text-align: center;
|
||
padding: var(--size-4-8);
|
||
color: var(--text-muted);
|
||
font-style: italic;
|
||
}
|
||
|
||
/* =====================================================================
|
||
TIME ENTRY ITEM
|
||
===================================================================== */
|
||
|
||
.time-entry-editor-modal__entry {
|
||
border: 1px solid var(--background-modifier-border);
|
||
border-radius: var(--radius-m);
|
||
padding: var(--size-4-3);
|
||
margin-bottom: var(--size-4-3);
|
||
background: var(--background-secondary);
|
||
transition: background-color 0.2s ease, border-color 0.2s ease;
|
||
}
|
||
|
||
.time-entry-editor-modal__entry:hover {
|
||
border-color: var(--interactive-accent);
|
||
background: var(--background-primary);
|
||
}
|
||
|
||
.time-entry-editor-modal__entry-header {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
margin-bottom: var(--size-4-2);
|
||
}
|
||
|
||
.time-entry-editor-modal__entry-date {
|
||
font-weight: 600;
|
||
color: var(--text-normal);
|
||
font-size: var(--font-ui-medium);
|
||
}
|
||
|
||
.time-entry-editor-modal__delete-button {
|
||
background: transparent;
|
||
border: none;
|
||
color: var(--text-muted);
|
||
cursor: var(--cursor-link, pointer);
|
||
padding: var(--size-4-1);
|
||
border-radius: var(--radius-s);
|
||
transition: background-color 0.2s ease, color 0.2s ease;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
.time-entry-editor-modal__delete-button:hover {
|
||
background: var(--background-modifier-error);
|
||
color: var(--text-error);
|
||
}
|
||
|
||
.time-entry-editor-modal__delete-button svg {
|
||
width: 16px;
|
||
height: 16px;
|
||
}
|
||
|
||
/* =====================================================================
|
||
TIME INPUT FIELDS
|
||
===================================================================== */
|
||
|
||
.time-entry-editor-modal__time-container {
|
||
margin-top: var(--size-4-2);
|
||
}
|
||
|
||
.time-entry-editor-modal__time-container .setting-item {
|
||
border: none;
|
||
padding: var(--size-4-2) 0;
|
||
}
|
||
|
||
.time-entry-editor-modal__time-container .setting-item-name {
|
||
font-size: var(--font-ui-small);
|
||
font-weight: 600;
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.time-entry-editor-modal__time-container .setting-item-control input,
|
||
.time-entry-editor-modal__time-container .setting-item-control textarea {
|
||
background: var(--background-primary);
|
||
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;
|
||
width: 100%;
|
||
}
|
||
|
||
.time-entry-editor-modal__datetime-input {
|
||
background: var(--background-primary);
|
||
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;
|
||
width: 100%;
|
||
color: var(--text-normal);
|
||
font-family: var(--font-interface);
|
||
}
|
||
|
||
.time-entry-editor-modal__datetime-input:focus {
|
||
border-color: var(--interactive-accent);
|
||
outline: none;
|
||
}
|
||
|
||
.time-entry-editor-modal__time-container .setting-item-control input:focus,
|
||
.time-entry-editor-modal__time-container .setting-item-control textarea:focus {
|
||
border-color: var(--interactive-accent);
|
||
outline: none;
|
||
}
|
||
|
||
.time-entry-editor-modal__time-container .setting-item-control textarea {
|
||
resize: vertical;
|
||
font-family: var(--font-text);
|
||
}
|
||
|
||
/* Description editor – Setting row must stack so the editor gets full width */
|
||
.time-entry-editor-modal__time-container .time-entry-editor-modal__description-setting {
|
||
flex-direction: column;
|
||
align-items: flex-start;
|
||
}
|
||
|
||
.time-entry-editor-modal__time-container .time-entry-editor-modal__description-setting .setting-item-control {
|
||
width: 100%;
|
||
justify-content: flex-start;
|
||
text-align: left;
|
||
}
|
||
|
||
.time-entry-editor-modal__description-editor-container {
|
||
width: 100%;
|
||
}
|
||
|
||
.time-entry-editor-modal__description-editor,
|
||
.time-entry-editor-modal__description-editor-fallback {
|
||
background: var(--background-primary);
|
||
border: 1px solid var(--background-modifier-border);
|
||
border-radius: var(--radius-s);
|
||
width: 100%;
|
||
min-height: 80px;
|
||
max-height: 200px;
|
||
box-sizing: border-box;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.time-entry-editor-modal__description-editor .cm-editor {
|
||
height: 100%;
|
||
min-height: 80px;
|
||
max-height: 200px;
|
||
}
|
||
|
||
.time-entry-editor-modal__description-editor .cm-scroller {
|
||
overflow: auto;
|
||
max-height: 200px;
|
||
padding-top: var(--size-4-2);
|
||
padding-bottom: var(--size-4-2);
|
||
}
|
||
|
||
.time-entry-editor-modal__description-editor .cm-content {
|
||
padding-left: var(--size-4-2);
|
||
padding-right: var(--size-4-2);
|
||
padding-top: 0;
|
||
padding-bottom: 0;
|
||
font-family: var(--font-text);
|
||
font-size: var(--font-ui-medium);
|
||
line-height: var(--line-height-normal);
|
||
}
|
||
|
||
.time-entry-editor-modal__description-editor .cm-placeholder {
|
||
color: var(--text-faint);
|
||
font-style: italic;
|
||
}
|
||
|
||
.time-entry-editor-modal__description-editor-fallback {
|
||
padding: var(--size-4-1) var(--size-4-2);
|
||
font-family: var(--font-text);
|
||
resize: vertical;
|
||
min-height: 80px;
|
||
max-height: 200px;
|
||
}
|
||
|
||
/* Focus ring on the description editor */
|
||
.time-entry-editor-modal__description-editor:focus-within {
|
||
border-color: var(--interactive-accent);
|
||
}
|
||
|
||
.time-entry-editor-modal__duration-info {
|
||
margin-top: var(--size-4-1);
|
||
padding: var(--size-4-1) var(--size-4-2);
|
||
background: var(--background-primary-alt);
|
||
border-radius: var(--radius-s);
|
||
font-size: var(--font-ui-small);
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
/* =====================================================================
|
||
FOOTER
|
||
===================================================================== */
|
||
|
||
.time-entry-editor-modal__add-button-container {
|
||
margin-bottom: var(--size-4-4);
|
||
padding-bottom: var(--size-4-3);
|
||
border-bottom: 1px solid var(--background-modifier-border);
|
||
}
|
||
|
||
.time-entry-editor-modal__footer {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
padding-top: var(--size-4-3);
|
||
border-top: 1px solid var(--background-modifier-border);
|
||
}
|
||
|
||
.time-entry-editor-modal__total {
|
||
font-weight: 600;
|
||
font-size: var(--font-ui-large);
|
||
color: var(--text-normal);
|
||
}
|
||
|
||
.time-entry-editor-modal__buttons {
|
||
display: flex;
|
||
gap: var(--size-4-2);
|
||
}
|
||
|
||
.time-entry-editor-modal__buttons button {
|
||
min-width: 80px;
|
||
}
|
||
|
||
/* =====================================================================
|
||
DARK MODE ADJUSTMENTS
|
||
===================================================================== */
|
||
|
||
.theme-dark .time-entry-editor-modal__entry {
|
||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
|
||
}
|
||
|
||
.theme-dark .time-entry-editor-modal__entry:hover {
|
||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
||
}
|
||
|
||
/* =====================================================================
|
||
RESPONSIVE DESIGN
|
||
===================================================================== */
|
||
|
||
@media (max-width: 700px) {
|
||
.time-entry-editor-modal .modal-content {
|
||
width: 90vw;
|
||
}
|
||
|
||
.time-entry-editor-modal .modal-title {
|
||
white-space: normal;
|
||
overflow-wrap: anywhere;
|
||
}
|
||
|
||
.time-entry-editor-modal__footer {
|
||
flex-direction: column;
|
||
align-items: flex-start;
|
||
gap: var(--size-4-3);
|
||
}
|
||
|
||
.time-entry-editor-modal__buttons {
|
||
width: 100%;
|
||
flex-direction: column;
|
||
}
|
||
|
||
.time-entry-editor-modal__buttons button {
|
||
width: 100%;
|
||
}
|
||
}
|