mirror of
https://github.com/taskgenius/taskgenius-plugin.git
synced 2026-07-22 06:40:25 +00:00
- Add FileSuggest to checkbox mode for editable target file selection - Display resolved file paths in file mode (process date templates) - Keep quick action buttons visible in both checkbox and file modes - Update minimal modal styling for improved UX
619 lines
12 KiB
CSS
619 lines
12 KiB
CSS
/* Quick Capture Enhanced Styles - with shadcn theme */
|
|
|
|
:root {
|
|
/* Tab component colors */
|
|
--tg-tab-background: 0 0% 100%;
|
|
--tg-tab-foreground: 240 10% 3.9%;
|
|
--tg-tab-muted: 240 4.8% 95.9%;
|
|
--tg-tab-muted-foreground: 240 3.8% 46.1%;
|
|
--tg-tab-border: 240 5.9% 90%;
|
|
|
|
/* Quick Capture Header background (light) */
|
|
--tg-qc-header-bg: 0 0% 100%;
|
|
}
|
|
|
|
.theme-dark {
|
|
--tg-tab-background: 240 10% 3.9%;
|
|
--tg-tab-foreground: 0 0% 98%;
|
|
--tg-tab-muted: 240 3.7% 15.9%;
|
|
--tg-tab-muted-foreground: 240 5% 64.9%;
|
|
--tg-tab-border: 240 3.7% 15.9%;
|
|
|
|
/* Quick Capture Header background (dark) */
|
|
--tg-qc-header-bg: 240 4% 10%;
|
|
}
|
|
|
|
/* Quick Capture Header - shadcn style, with custom background for header */
|
|
.quick-capture-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 12px 16px;
|
|
border-bottom: 1px solid hsl(var(--tg-tab-border));
|
|
background: hsl(var(--tg-qc-header-bg));
|
|
}
|
|
|
|
.tg-minimal-capture-modal .quick-capture-header {
|
|
padding: 4px 8px;
|
|
}
|
|
|
|
.tg-minimal-capture-modal .model-header {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
/* Quick Capture Tabs - shadcn style */
|
|
.quick-capture-tabs {
|
|
display: inline-flex;
|
|
padding: 4px;
|
|
background: hsl(var(--tg-tab-muted));
|
|
border-radius: 6px;
|
|
gap: 2px;
|
|
}
|
|
|
|
.quick-capture-tab {
|
|
padding: 6px 12px;
|
|
background: transparent;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
|
|
color: hsl(var(--tg-tab-muted-foreground));
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
white-space: nowrap;
|
|
position: relative;
|
|
}
|
|
|
|
.tg-minimal-capture-modal .quick-capture-tab-text {
|
|
display: none;
|
|
}
|
|
|
|
.tg-minimal-capture-modal .quick-capture-tab-icon {
|
|
margin-right: 0;
|
|
}
|
|
|
|
.quick-capture-tab:hover:not(.active) {
|
|
color: hsl(var(--tg-tab-foreground));
|
|
}
|
|
|
|
.quick-capture-tab.active {
|
|
background: hsl(var(--tg-tab-background));
|
|
color: hsl(var(--tg-tab-foreground));
|
|
box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
}
|
|
|
|
/* Quick Capture Tab Button Icon and Text - shadcn style */
|
|
.quick-capture-tab-icon {
|
|
margin-right: 6px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.quick-capture-tab-icon svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
.quick-capture-tab-text {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
line-height: 1;
|
|
}
|
|
|
|
/* Quick Capture Clear Button - shadcn style */
|
|
.quick-capture-clear {
|
|
padding: 6px 12px;
|
|
background: transparent;
|
|
border: 1px solid hsl(var(--tg-tab-border));
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
|
|
color: hsl(var(--tg-tab-muted-foreground));
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.quick-capture-clear:hover {
|
|
/*background: hsl(var(--tg-tab-muted));*/
|
|
/*color: hsl(var(--tg-tab-foreground));*/
|
|
/*border-color: hsl(var(--tg-tab-muted-foreground));*/
|
|
}
|
|
|
|
/* Quick Capture Content */
|
|
.quick-capture-content {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: var(--size-4-3);
|
|
}
|
|
|
|
/* Quick Capture Footer */
|
|
.quick-capture-footer {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: var(--size-4-2);
|
|
border-top: 1px solid var(--background-modifier-border);
|
|
}
|
|
|
|
.quick-capture-footer-left,
|
|
.quick-capture-footer-right {
|
|
display: flex;
|
|
gap: var(--size-2-2);
|
|
}
|
|
|
|
.quick-capture-continue {
|
|
padding: var(--size-2-2) var(--size-4-3);
|
|
background: transparent;
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: var(--radius-s);
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.quick-capture-continue:hover {
|
|
background-color: var(--background-modifier-hover);
|
|
color: var(--text-normal);
|
|
border-color: var(--interactive-accent);
|
|
}
|
|
|
|
/* File Name Input Component */
|
|
.file-name-input-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--size-2-1);
|
|
margin-bottom: var(--size-4-3);
|
|
}
|
|
|
|
.file-name-label {
|
|
font-size: var(--font-ui-small);
|
|
color: var(--text-muted);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.file-name-input {
|
|
width: 100%;
|
|
padding: var(--size-2-2);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: var(--radius-s);
|
|
background-color: var(--background-primary);
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.file-name-input:focus {
|
|
outline: none;
|
|
border-color: var(--interactive-accent);
|
|
box-shadow: 0 0 0 2px var(--interactive-accent-hover);
|
|
}
|
|
|
|
.file-name-templates {
|
|
margin-top: var(--size-4-2);
|
|
}
|
|
|
|
.templates-label {
|
|
font-size: var(--font-ui-small);
|
|
color: var(--text-muted);
|
|
margin-bottom: var(--size-2-1);
|
|
}
|
|
|
|
.template-buttons {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--size-2-1);
|
|
}
|
|
|
|
.template-button {
|
|
padding: var(--size-2-1) var(--size-2-3);
|
|
background-color: var(--background-secondary);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: var(--radius-s);
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
font-size: var(--font-ui-smaller);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.template-button:hover {
|
|
background-color: var(--background-modifier-hover);
|
|
color: var(--text-normal);
|
|
border-color: var(--interactive-accent);
|
|
}
|
|
|
|
/* Mode-specific adjustments */
|
|
.quick-capture-modal.quick-capture-checkbox {
|
|
width: 800px;
|
|
max-width: 90vw;
|
|
height: 700px;
|
|
max-height: 80vh;
|
|
min-height: fit-content;
|
|
}
|
|
|
|
.quick-capture-modal.quick-capture-file {
|
|
width: 800px;
|
|
max-width: 90vw;
|
|
height: 750px;
|
|
max-height: 80vh;
|
|
min-height: fit-content;
|
|
}
|
|
|
|
.quick-capture-modal.tg-minimal-capture-modal {
|
|
width: 600px;
|
|
max-width: 90vw;
|
|
height: 300px;
|
|
max-height: 80vh;
|
|
min-height: fit-content;
|
|
}
|
|
|
|
/* Quick Capture Panel */
|
|
.quick-capture-panel {
|
|
padding: var(--size-4-2);
|
|
background-color: var(--background-primary);
|
|
border-top: 1px solid var(--background-modifier-border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--size-4-2);
|
|
}
|
|
|
|
/* Quick Capture Actions */
|
|
.quick-capture-actions {
|
|
display: flex;
|
|
gap: var(--size-2-1);
|
|
margin-left: auto;
|
|
align-items: center;
|
|
}
|
|
|
|
.quick-capture-actions .quick-action-button {
|
|
background: transparent;
|
|
border: none;
|
|
border-radius: var(--radius-s);
|
|
padding: var(--size-2-1);
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
color: var(--text-muted);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.quick-capture-actions .quick-action-button:hover {
|
|
background-color: var(--background-modifier-hover);
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.quick-capture-actions .quick-action-button.active {
|
|
background-color: var(--interactive-accent);
|
|
color: var(--text-on-accent);
|
|
}
|
|
|
|
/* Minimal Quick Capture Modal */
|
|
.quick-capture-modal.minimal {
|
|
max-width: 600px;
|
|
min-width: 500px;
|
|
max-height: 300px;
|
|
}
|
|
|
|
/* Minimal Quick Capture Target Display */
|
|
.quick-capture-minimal-target-container {
|
|
border-radius: 6px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.quick-capture-minimal-target {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.quick-capture-target-label {
|
|
color: hsl(var(--tg-tab-muted-foreground));
|
|
font-weight: 500;
|
|
}
|
|
|
|
.quick-capture-target-value {
|
|
color: hsl(var(--tg-tab-foreground));
|
|
flex: 1;
|
|
}
|
|
|
|
.quick-capture-minimal-file-input {
|
|
flex: 1;
|
|
padding: 4px 8px;
|
|
background: hsl(var(--tg-tab-background));
|
|
border: 1px solid hsl(var(--tg-tab-border));
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
color: hsl(var(--tg-tab-foreground));
|
|
}
|
|
|
|
.quick-capture-minimal-file-input:focus {
|
|
outline: none;
|
|
border-color: var(--interactive-accent);
|
|
box-shadow: 0 0 0 2px var(--interactive-accent-hover);
|
|
}
|
|
|
|
/* Removed minimal mode styles as minimal UI mode no longer exists */
|
|
|
|
.quick-actions-left {
|
|
display: flex;
|
|
gap: var(--size-2-1);
|
|
}
|
|
|
|
.quick-actions-right {
|
|
display: flex;
|
|
gap: var(--size-2-1);
|
|
}
|
|
|
|
.quick-action-button.active {
|
|
background-color: var(--interactive-accent);
|
|
color: var(--text-on-accent);
|
|
border-color: var(--interactive-accent);
|
|
}
|
|
|
|
.quick-action-save {
|
|
padding: var(--size-2-1) var(--size-4-2);
|
|
min-width: 80px;
|
|
height: 32px;
|
|
border-radius: var(--radius-s);
|
|
}
|
|
|
|
.quick-capture-tag-input {
|
|
position: absolute;
|
|
bottom: 60px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 300px;
|
|
padding: var(--size-2-1);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: var(--radius-s);
|
|
background-color: var(--background-primary);
|
|
color: var(--text-normal);
|
|
font-size: var(--font-text-size);
|
|
z-index: 1000;
|
|
}
|
|
|
|
/* Minimal Quick Capture Suggest */
|
|
.minimal-quick-capture-suggestion {
|
|
padding: var(--size-2-1) var(--size-4-2);
|
|
border-radius: var(--radius-s);
|
|
cursor: pointer;
|
|
transition: background-color 0.2s ease;
|
|
min-height: 40px;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.minimal-quick-capture-suggestion:hover {
|
|
background-color: var(--background-modifier-hover);
|
|
}
|
|
|
|
.minimal-quick-capture-suggestion.is-selected {
|
|
background-color: var(--interactive-accent);
|
|
color: var(--text-on-accent);
|
|
}
|
|
|
|
.minimal-quick-capture-suggestion.is-selected .suggestion-label {
|
|
color: var(--text-on-accent);
|
|
}
|
|
|
|
.minimal-quick-capture-suggestion.is-selected .suggestion-description {
|
|
color: var(--text-on-accent);
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.suggestion-icon {
|
|
font-size: 16px;
|
|
min-width: 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.suggestion-content {
|
|
flex: 1;
|
|
}
|
|
|
|
.suggestion-label {
|
|
font-size: var(--font-text-size);
|
|
font-weight: 500;
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.suggestion-description {
|
|
font-size: var(--font-ui-small);
|
|
color: var(--text-muted);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.quick-capture-header-container {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: var(--size-4-2);
|
|
gap: var(--size-4-2);
|
|
font-size: var(--font-ui-medium);
|
|
font-weight: bold;
|
|
color: var(--text-normal);
|
|
padding: var(--size-2-1) var(--size-4-2);
|
|
flex-wrap: nowrap;
|
|
}
|
|
|
|
.quick-capture-title {
|
|
color: var(--text-normal);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.quick-capture-target {
|
|
flex: 1;
|
|
border-radius: var(--radius-s);
|
|
color: var(--text-accent);
|
|
font-size: var(--font-text-size);
|
|
font-weight: normal;
|
|
min-width: 100px;
|
|
max-width: 500px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
padding: 2px 4px;
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
.quick-capture-target:hover {
|
|
background-color: var(--background-modifier-hover);
|
|
}
|
|
|
|
.quick-capture-target:focus {
|
|
background-color: var(--background-modifier-hover);
|
|
outline: 2px solid var(--interactive-accent);
|
|
outline-offset: -1px;
|
|
overflow: visible;
|
|
text-overflow: initial;
|
|
}
|
|
|
|
.quick-capture-hint {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
margin-bottom: 8px;
|
|
margin-top: -4px;
|
|
text-align: right;
|
|
}
|
|
|
|
.quick-capture-editor {
|
|
min-height: 200px;
|
|
background-color: var(--background-primary);
|
|
}
|
|
|
|
.quick-capture-file-suggest {
|
|
max-width: 500px;
|
|
}
|
|
|
|
.quick-capture-buttons {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
}
|
|
|
|
.quick-capture-submit,
|
|
.quick-capture-cancel {
|
|
padding: 6px 12px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.quick-capture-submit {
|
|
background-color: var(--interactive-accent);
|
|
color: var(--text-on-accent);
|
|
}
|
|
|
|
.quick-capture-cancel {
|
|
background-color: var(--background-modifier-border);
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.quick-capture-modal .modal-title {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-direction: row;
|
|
gap: 10px;
|
|
|
|
font-size: var(--font-ui-medium);
|
|
font-weight: bold;
|
|
}
|
|
|
|
.quick-capture-modal-editor {
|
|
min-height: 150px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.quick-capture-modal-buttons {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 10px;
|
|
}
|
|
|
|
/* Full-featured modal styles */
|
|
.quick-capture-modal.full {
|
|
width: 80vw;
|
|
max-width: 900px;
|
|
}
|
|
|
|
.quick-capture-layout {
|
|
display: flex;
|
|
height: 100%;
|
|
gap: 16px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.quick-capture-config-panel {
|
|
flex: 1;
|
|
border-right: 1px solid var(--background-modifier-border);
|
|
padding-right: 16px;
|
|
overflow-y: auto;
|
|
max-width: 40%;
|
|
}
|
|
|
|
.quick-capture-editor-panel {
|
|
flex: 1.5;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.quick-capture-section-title {
|
|
font-weight: bold;
|
|
margin-bottom: 8px;
|
|
font-size: var(--font-ui-medium);
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.quick-capture-target-container {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.quick-capture-modal.full .quick-capture-modal-editor {
|
|
min-height: 200px;
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: var(--radius-s);
|
|
padding: 8px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
/* Mobile optimization */
|
|
@media (max-width: 768px) {
|
|
.quick-capture-modal.full {
|
|
width: 95vw;
|
|
}
|
|
|
|
.quick-capture-layout {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.quick-capture-config-panel {
|
|
max-width: 100%;
|
|
border-right: none;
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
padding-right: 0;
|
|
padding-bottom: 16px;
|
|
margin-bottom: 16px;
|
|
max-height: 40%;
|
|
}
|
|
}
|
|
|
|
.quick-capture-config-panel .details-status-selector {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
|
|
margin-bottom: var(--size-4-2);
|
|
margin-top: var(--size-4-2);
|
|
}
|
|
|
|
.quick-capture-config-panel .quick-capture-status-selector {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
|
|
gap: var(--size-4-3);
|
|
}
|