mirror of
https://github.com/devonthesofa/obsidian-note-status.git
synced 2026-07-22 12:30:24 +00:00
1213 lines
No EOL
26 KiB
CSS
1213 lines
No EOL
26 KiB
CSS
/*
|
|
* Note Status Plugin for Obsidian
|
|
* Main CSS file importing all components
|
|
*
|
|
* Author: Aleix Soler
|
|
*/
|
|
|
|
/* Base styles and variables */
|
|
:root {
|
|
--status-transition-time: 0.22s;
|
|
--status-border-radius: var(--radius-s, 4px);
|
|
--status-box-shadow: var(--shadow-s, 0 2px 8px rgba(0, 0, 0, 0.15));
|
|
--status-hover-shadow: var(--shadow-m, 0 4px 12px rgba(0, 0, 0, 0.2));
|
|
--status-icon-size: 16px;
|
|
|
|
/* Animation curves */
|
|
--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
--ease-out: cubic-bezier(0, 0, 0.2, 1);
|
|
--ease-in: cubic-bezier(0.4, 0, 1, 1);
|
|
}
|
|
|
|
/* Animations */
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
@keyframes scaleIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: scale(0.9);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
|
|
@keyframes slideInFade {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes fadeInSlideDown {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-6px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes statusDropdownFadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: scale(0.95);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
|
|
@keyframes statusDropdownFadeOut {
|
|
from {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
transform: scale(0.95);
|
|
}
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0% { transform: scale(1); }
|
|
50% { transform: scale(0.98); }
|
|
100% { transform: scale(1); }
|
|
}
|
|
|
|
/* Common utility classes */
|
|
.note-status-empty-indicator {
|
|
color: var(--text-muted);
|
|
font-style: italic;
|
|
padding: var(--size-4-1, 4px);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-accent);
|
|
font-size: 1.2em;
|
|
}
|
|
|
|
.note-status-modal-title {
|
|
margin: 0;
|
|
font-size: 1.3em;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.note-status-modal-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.note-status-section-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.note-status-section-title {
|
|
margin: 0;
|
|
font-size: 1em;
|
|
font-weight: var(--font-semibold);
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.note-status-status-count {
|
|
font-size: var(--font-smaller);
|
|
color: var(--text-muted);
|
|
transition: all 0.2s var(--ease-out);
|
|
}
|
|
|
|
.note-status-status-count.has-selection {
|
|
color: var(--text-accent);
|
|
font-weight: var(--font-semibold);
|
|
}
|
|
|
|
.note-status-status-select-container {
|
|
position: relative;
|
|
}
|
|
|
|
.note-status-status-select {
|
|
width: 100%;
|
|
padding: 8px;
|
|
border-radius: var(--radius-s);
|
|
background: var(--background-primary);
|
|
border: var(--input-border-width) solid var(--background-modifier-border);
|
|
color: var(--text-normal);
|
|
font-size: var(--font-smaller);
|
|
outline: none;
|
|
transition: all 0.2s var(--ease-out);
|
|
max-height: 200px;
|
|
}
|
|
|
|
.note-status-status-select option {
|
|
padding: 6px 8px;
|
|
}
|
|
|
|
.note-status-status-select:focus {
|
|
border-color: var(--interactive-accent);
|
|
box-shadow: 0 0 0 2px var(--interactive-accent-hover);
|
|
}
|
|
|
|
.note-status-empty-option {
|
|
font-style: italic;
|
|
color: var(--text-muted);
|
|
text-align: center;
|
|
padding: 12px !important;
|
|
}
|
|
|
|
/* Action buttons in modal */
|
|
.note-status-modal-buttons {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.note-status-select-all,
|
|
.note-status-apply-button {
|
|
padding: 8px 16px;
|
|
border-radius: var(--radius-s);
|
|
background: var(--background-secondary);
|
|
border: var(--input-border-width) solid var(--background-modifier-border);
|
|
color: var(--text-normal);
|
|
cursor: pointer;
|
|
transition: all 0.15s var(--ease-out);
|
|
font-size: var(--font-smaller);
|
|
}
|
|
|
|
.note-status-select-all:hover,
|
|
.note-status-apply-button:hover {
|
|
background: var(--background-modifier-hover);
|
|
box-shadow: var(--shadow-s);
|
|
}
|
|
|
|
.note-status-select-all:active,
|
|
.note-status-apply-button:active {
|
|
transform: translateY(1px);
|
|
box-shadow: none;
|
|
}
|
|
|
|
.note-status-apply-button {
|
|
background: var(--interactive-accent);
|
|
color: var(--text-on-accent);
|
|
border-color: var(--interactive-accent);
|
|
}
|
|
|
|
.note-status-apply-button:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* Toolbar button styling */
|
|
.note-status-toolbar-badge-container {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
position: relative;
|
|
}
|
|
|
|
.note-status-toolbar-icon {
|
|
color: var(--text-normal) !important;
|
|
display: flex !important;
|
|
align-items: center !important;
|
|
justify-content: center !important;
|
|
}
|
|
|
|
/* Target all possible toolbar locations */
|
|
.note-status-count-badge {
|
|
position: absolute;
|
|
top: -5px;
|
|
right: -8px;
|
|
background-color: var(--interactive-accent);
|
|
color: var(--text-on-accent);
|
|
border-radius: 10px;
|
|
font-size: 10px;
|
|
min-width: 14px;
|
|
height: 14px;
|
|
padding: 0 3px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: var(--font-bold);
|
|
}
|
|
|
|
/* Toolbar popover styling */
|
|
.note-status-toolbar-popover {
|
|
width: 280px;
|
|
max-width: 90vw;
|
|
border-radius: var(--radius-m);
|
|
overflow: hidden;
|
|
box-shadow: var(--shadow-m);
|
|
border: 1px solid var(--background-modifier-border);
|
|
background: var(--background-primary);
|
|
}
|
|
|
|
/* Print styles - hide interactive elements when printing */
|
|
@media print {
|
|
.note-status-dropdown,
|
|
.note-status-bar,
|
|
.note-status-pane {
|
|
display: none !important;
|
|
}
|
|
}
|
|
|
|
/* Dark mode adjustments */
|
|
.theme-dark .note-status-popover {
|
|
box-shadow: var(--shadow-l);
|
|
}
|
|
|
|
.theme-dark .note-status-option-selecting {
|
|
box-shadow: 0 0 0 1px var(--interactive-accent);
|
|
}
|
|
|
|
/* High contrast improvements */
|
|
@media (forced-colors: active) {
|
|
.note-status-chip,
|
|
.note-status-option.is-selected {
|
|
border: 1px solid currentColor;
|
|
}
|
|
|
|
.note-status-action-button:focus-visible,
|
|
.note-status-chip:focus-visible,
|
|
.note-status-option:focus-visible {
|
|
outline: 2px solid currentColor;
|
|
outline-offset: 2px;
|
|
}
|
|
}
|
|
|
|
/* Component styles */
|
|
/*
|
|
* Status Pane Styles
|
|
*/
|
|
|
|
/* Main container */
|
|
.note-status-pane {
|
|
padding: var(--size-4-2, 8px);
|
|
background: var(--background-secondary);
|
|
color: var(--text-normal);
|
|
font-family: var(--font-interface);
|
|
overflow-y: auto;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* Header elements */
|
|
.note-status-header {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 10;
|
|
background: var(--background-secondary);
|
|
padding-bottom: var(--size-4-2, 8px);
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
margin-bottom: var(--size-4-2, 8px);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--size-4-2, 8px);
|
|
}
|
|
|
|
/* Search input styles */
|
|
.note-status-search {
|
|
width: 100%;
|
|
position: relative;
|
|
}
|
|
|
|
.search-input-wrapper,
|
|
.note-status-search-wrapper {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.search-input-icon,
|
|
.note-status-search-icon {
|
|
position: absolute;
|
|
left: var(--size-4-1, 4px);
|
|
color: var(--text-muted);
|
|
display: flex;
|
|
align-items: center;
|
|
pointer-events: none;
|
|
padding: 4px;
|
|
}
|
|
|
|
.note-status-search-input,
|
|
.note-status-modal-search-input,
|
|
.note-status-popover-search-input {
|
|
width: 100%;
|
|
padding: var(--input-padding);
|
|
padding-left: calc(var(--size-4-1, 4px) * 3 + 18px);
|
|
border: var(--input-border-width) solid var(--background-modifier-border);
|
|
border-radius: var(--input-radius);
|
|
background: var(--background-primary);
|
|
color: var(--text-normal);
|
|
outline: none;
|
|
transition: all var(--status-transition-time) var(--ease-out);
|
|
}
|
|
|
|
.note-status-search-input:focus,
|
|
.note-status-modal-search-input:focus,
|
|
.note-status-popover-search-input:focus {
|
|
border-color: var(--interactive-accent);
|
|
box-shadow: 0 0 0 2px var(--interactive-accent-hover);
|
|
}
|
|
|
|
.search-input-clear-button,
|
|
.note-status-search-clear-button {
|
|
opacity: 0;
|
|
position: absolute;
|
|
right: var(--size-4-1, 4px);
|
|
cursor: pointer;
|
|
color: var(--text-muted);
|
|
display: flex;
|
|
align-items: center;
|
|
transition: opacity var(--status-transition-time) var(--ease-out);
|
|
padding: 4px;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.search-input-clear-button.is-visible,
|
|
.note-status-search-clear-button.is-visible {
|
|
opacity: 1;
|
|
}
|
|
|
|
.search-input-clear-button:hover,
|
|
.note-status-search-clear-button:hover {
|
|
color: var(--text-normal);
|
|
background-color: var(--background-modifier-hover);
|
|
}
|
|
|
|
/* Actions toolbar */
|
|
.status-pane-actions-container {
|
|
display: flex;
|
|
gap: var(--size-4-2, 8px);
|
|
justify-content: flex-end;
|
|
margin-top: var(--size-4-1, 4px);
|
|
}
|
|
|
|
.note-status-view-toggle,
|
|
.note-status-actions-refresh {
|
|
padding: var(--size-4-1, 4px) var(--size-4-2, 8px);
|
|
border: var(--input-border-width) solid var(--background-modifier-border);
|
|
border-radius: var(--button-radius);
|
|
background: var(--background-primary);
|
|
color: var(--text-normal);
|
|
cursor: pointer;
|
|
transition: all var(--status-transition-time) var(--ease-out);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.note-status-view-toggle:hover,
|
|
.note-status-actions-refresh:hover {
|
|
background: var(--background-modifier-hover);
|
|
box-shadow: var(--shadow-s);
|
|
}
|
|
|
|
.note-status-view-toggle:active,
|
|
.note-status-actions-refresh:active {
|
|
transform: translateY(1px);
|
|
box-shadow: none;
|
|
}
|
|
|
|
/* Status Groups Container */
|
|
.note-status-groups-container {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding-right: 2px; /* Prevents scrollbar from hugging the edge */
|
|
}
|
|
|
|
/* Status Group Styling */
|
|
.status-group {
|
|
margin-bottom: var(--size-4-3, 12px);
|
|
border-radius: var(--radius-s);
|
|
background: var(--background-primary-alt);
|
|
box-shadow: var(--shadow-xs);
|
|
overflow: hidden;
|
|
animation: fadeInSlideDown 0.3s var(--ease-out);
|
|
}
|
|
|
|
.status-group .nav-folder-title {
|
|
cursor: pointer;
|
|
padding: var(--size-4-1, 4px) var(--size-4-2, 8px);
|
|
background: var(--background-secondary-alt);
|
|
transition: background var(--status-transition-time) var(--ease-out);
|
|
}
|
|
|
|
.status-group .nav-folder-title:hover {
|
|
background: var(--background-modifier-hover);
|
|
}
|
|
|
|
.status-group .nav-folder-title-content {
|
|
font-weight: var(--font-semibold);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--size-4-1, 4px);
|
|
}
|
|
|
|
/* Collapse indicators */
|
|
.collapse-indicator {
|
|
margin-right: var(--size-4-2, 8px);
|
|
display: flex;
|
|
align-items: center;
|
|
color: var(--text-muted);
|
|
transition: transform var(--status-transition-time) var(--ease-in-out);
|
|
opacity: 1;
|
|
}
|
|
|
|
.is-collapsed .collapse-indicator {
|
|
transform: rotate(-90deg);
|
|
}
|
|
|
|
/* File items */
|
|
.status-group .nav-folder-children {
|
|
padding: var(--size-4-1, 4px);
|
|
background: var(--background-primary);
|
|
transition: height var(--status-transition-time) var(--ease-out);
|
|
}
|
|
|
|
.status-group.nav-folder.is-collapsed .nav-folder-children {
|
|
display: none;
|
|
}
|
|
|
|
.nav-file {
|
|
border-radius: var(--radius-s);
|
|
transition: background var(--status-transition-time) var(--ease-out);
|
|
margin-bottom: 2px;
|
|
position: relative;
|
|
}
|
|
|
|
.nav-file:hover {
|
|
background: var(--background-modifier-hover);
|
|
}
|
|
|
|
.nav-file-title {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: var(--size-4-1, 4px) var(--size-4-2, 8px);
|
|
flex-wrap: nowrap;
|
|
}
|
|
|
|
.nav-file-icon {
|
|
color: var(--text-muted);
|
|
margin-right: var(--size-4-2, 8px);
|
|
display: flex;
|
|
align-items: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.nav-file-title-content {
|
|
flex: 1;
|
|
min-width: 0; /* Allows text to shrink properly */
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
/* Compact view */
|
|
.compact-view .nav-file-title {
|
|
padding: 2px var(--size-4-2, 8px);
|
|
font-size: var(--font-smaller);
|
|
}
|
|
|
|
.compact-view .nav-folder-children {
|
|
padding: 0;
|
|
}
|
|
|
|
.compact-view .nav-file {
|
|
margin-bottom: 0;
|
|
border-radius: 0;
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
}
|
|
|
|
.compact-view .nav-file:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
/*
|
|
* Status Dropdown and Popover Styles
|
|
*/
|
|
|
|
/* Status Dropdown */
|
|
.note-status-dropdown {
|
|
padding: var(--size-4-2, 8px);
|
|
background: var(--background-primary);
|
|
position: sticky;
|
|
z-index: var(--layer-popover);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--size-4-2, 8px);
|
|
box-shadow: var(--shadow-s);
|
|
border-radius: var(--radius-m);
|
|
margin: 8px auto;
|
|
max-width: 720px;
|
|
border: 1px solid var(--background-modifier-border);
|
|
transition: opacity var(--status-transition-time) var(--ease-out),
|
|
transform var(--status-transition-time) var(--ease-out);
|
|
}
|
|
|
|
.note-status-dropdown.note-status-animate-in {
|
|
animation: slideInFade 0.25s var(--ease-out);
|
|
}
|
|
|
|
.note-status-dropdown.note-status-animate-out {
|
|
opacity: 0;
|
|
transform: translateY(-10px);
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* Header styling */
|
|
.note-status-dropdown-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding-bottom: var(--size-4-1, 4px);
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
}
|
|
|
|
.note-status-dropdown-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--size-4-1, 4px);
|
|
font-weight: var(--font-semibold);
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.note-status-dropdown-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-accent);
|
|
}
|
|
|
|
.note-status-dropdown-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--size-4-1, 4px);
|
|
}
|
|
|
|
.note-status-action-button {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: var(--radius-s);
|
|
background: transparent;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
border: none;
|
|
padding: 0;
|
|
}
|
|
|
|
.note-status-action-button:hover {
|
|
background-color: var(--background-modifier-hover);
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.note-status-action-button.note-status-button-active {
|
|
background-color: var(--interactive-accent);
|
|
color: var(--text-on-accent);
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
/* Status chips container */
|
|
.note-status-chips-container {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--size-4-1, 4px);
|
|
padding: var(--size-4-1, 4px);
|
|
min-height: 36px;
|
|
background: var(--background-primary-alt);
|
|
border-radius: var(--radius-s);
|
|
}
|
|
|
|
/* Status chips styling */
|
|
.note-status-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 4px 10px;
|
|
background: var(--background-secondary);
|
|
border-radius: 16px;
|
|
box-shadow: var(--shadow-xs);
|
|
font-size: var(--font-smaller);
|
|
transition: all 0.15s var(--ease-out);
|
|
border: 1px solid var(--background-modifier-border);
|
|
max-width: 180px;
|
|
animation: scaleIn 0.2s var(--ease-out);
|
|
}
|
|
|
|
.note-status-chip.clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.note-status-chip.clickable:hover {
|
|
background: var(--background-modifier-hover);
|
|
transform: translateY(-1px);
|
|
box-shadow: var(--status-hover-shadow);
|
|
}
|
|
|
|
.note-status-chip-removing {
|
|
transform: scale(0.8);
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: all 0.15s ease-out;
|
|
}
|
|
|
|
.note-status-chip-icon {
|
|
margin-right: 6px;
|
|
}
|
|
|
|
.note-status-chip-text {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.note-status-chip-remove {
|
|
margin-left: 6px;
|
|
width: 16px;
|
|
height: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
background: var(--background-modifier-border);
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
transition: all 0.15s var(--ease-out);
|
|
}
|
|
|
|
.note-status-chip-remove:hover {
|
|
background: var(--text-accent);
|
|
color: var(--text-on-accent);
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
/* Add status button */
|
|
.note-status-add-button {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 8px 12px;
|
|
background: var(--background-secondary-alt);
|
|
border-radius: var(--radius-m);
|
|
margin-top: 4px;
|
|
cursor: pointer;
|
|
transition: all 0.15s var(--ease-out);
|
|
border: 1px dashed var(--background-modifier-border);
|
|
}
|
|
|
|
.note-status-add-button:hover {
|
|
background: var(--background-modifier-hover);
|
|
box-shadow: var(--shadow-xs);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.note-status-add-button:active {
|
|
transform: translateY(0px);
|
|
box-shadow: none;
|
|
}
|
|
|
|
.note-status-add-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-right: 8px;
|
|
color: var(--text-accent);
|
|
}
|
|
|
|
.note-status-add-text {
|
|
color: var(--text-muted);
|
|
font-size: var(--font-smaller);
|
|
}
|
|
|
|
/* Status popover */
|
|
.note-status-popover {
|
|
position: absolute;
|
|
background: var(--background-primary);
|
|
border-radius: var(--radius-m);
|
|
box-shadow: var(--status-box-shadow);
|
|
z-index: calc(var(--layer-popover) + 10);
|
|
max-height: 300px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
border: 1px solid var(--background-modifier-border);
|
|
min-width: 200px;
|
|
overflow: hidden;
|
|
width: auto !important;
|
|
opacity: 0;
|
|
transform: scale(0.95);
|
|
transition: opacity var(--status-transition-time) var(--ease-out),
|
|
transform var(--status-transition-time) var(--ease-out);
|
|
transform-origin: top left;
|
|
pointer-events: all !important;
|
|
}
|
|
|
|
.note-status-popover.note-status-popover-animate-in {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
|
|
.note-status-popover.note-status-popover-animate-out {
|
|
opacity: 0;
|
|
transform: scale(0.95);
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* Search container */
|
|
.note-status-popover-search {
|
|
padding: 8px;
|
|
position: sticky;
|
|
top: 0;
|
|
background: var(--background-primary);
|
|
z-index: 3;
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
}
|
|
|
|
/* Status options container */
|
|
.note-status-options-container {
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
max-height: 250px;
|
|
padding: var(--size-4-1, 4px);
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--background-modifier-border) transparent;
|
|
}
|
|
|
|
.note-status-options-container::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
.note-status-options-container::-webkit-scrollbar-thumb {
|
|
background-color: var(--background-modifier-border);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.note-status-options-container::-webkit-scrollbar-track {
|
|
background-color: transparent;
|
|
}
|
|
|
|
/* Empty status options */
|
|
.note-status-empty-options {
|
|
padding: 16px 12px;
|
|
text-align: center;
|
|
color: var(--text-muted);
|
|
font-style: italic;
|
|
font-size: var(--font-smaller);
|
|
}
|
|
|
|
/* Status option items */
|
|
.note-status-option {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 8px 12px;
|
|
margin: 2px 4px;
|
|
border-radius: var(--radius-s);
|
|
background: var(--background-primary);
|
|
color: var(--text-normal);
|
|
cursor: pointer !important;
|
|
transition: background-color 0.15s ease;
|
|
}
|
|
|
|
.note-status-option:hover {
|
|
background: var(--background-modifier-hover);
|
|
}
|
|
|
|
.note-status-option.is-selected {
|
|
background: var(--background-secondary-alt);
|
|
font-weight: var(--font-medium);
|
|
}
|
|
|
|
.note-status-option-selecting {
|
|
background-color: var(--interactive-accent) !important;
|
|
color: var(--text-on-accent) !important;
|
|
animation: pulse 0.3s var(--ease-out);
|
|
}
|
|
|
|
.note-status-option-icon {
|
|
margin-right: 8px;
|
|
font-size: 1.1em;
|
|
}
|
|
|
|
.note-status-option-text {
|
|
flex: 1;
|
|
font-size: var(--font-smaller);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.note-status-option-check {
|
|
margin-left: auto;
|
|
color: var(--text-accent);
|
|
}
|
|
|
|
/* Unified dropdown */
|
|
.note-status-unified-dropdown {
|
|
width: 280px;
|
|
max-width: 90vw;
|
|
border-radius: var(--radius-m);
|
|
overflow: hidden;
|
|
box-shadow: var(--shadow-m);
|
|
border: 1px solid var(--background-modifier-border);
|
|
background: var(--background-primary);
|
|
z-index: 9999 !important; /* Ensure it's above everything */
|
|
pointer-events: all !important; /* Ensure dropdown receives clicks */
|
|
}
|
|
|
|
/* Animation for unified dropdown */
|
|
.note-status-popover-animate-in {
|
|
animation: statusDropdownFadeIn 0.22s var(--ease-out) forwards;
|
|
}
|
|
|
|
.note-status-popover-animate-out {
|
|
animation: statusDropdownFadeOut 0.22s var(--ease-out) forwards;
|
|
}
|
|
|
|
/* Popover header */
|
|
.note-status-popover-header {
|
|
padding: 12px;
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
background: var(--background-secondary-alt);
|
|
display: flex;
|
|
align-items: center;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 2;
|
|
}
|
|
|
|
.note-status-popover-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-weight: var(--font-semibold);
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.note-status-popover-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-accent);
|
|
}
|
|
|
|
.note-status-popover-chips {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
padding: 12px;
|
|
background: var(--background-primary-alt);
|
|
max-height: 120px;
|
|
overflow-y: auto;
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
}
|
|
|
|
/*
|
|
* Explorer integration styles
|
|
*/
|
|
|
|
/* Explorer icons container */
|
|
.note-status-icon-container {
|
|
display: inline-flex;
|
|
margin-left: var(--size-4-1, 4px);
|
|
gap: 2px;
|
|
align-items: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Individual status icons in explorer */
|
|
.note-status-icon {
|
|
font-size: var(--font-ui-smaller);
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: var(--status-icon-size);
|
|
height: var(--status-icon-size);
|
|
position: relative;
|
|
z-index: 500; /* Higher than most elements */
|
|
}
|
|
|
|
.nav-file-title .note-status-icon::after {
|
|
bottom: 150%; /* Position above in file explorer */
|
|
}
|
|
|
|
/*
|
|
* Status bar styles
|
|
*/
|
|
|
|
/* Status bar refinements */
|
|
.note-status-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 4px 8px;
|
|
border-radius: var(--radius-s);
|
|
transition: all 0.2s var(--ease-out);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.note-status-bar:hover {
|
|
background-color: var(--background-modifier-hover);
|
|
}
|
|
|
|
.note-status-badges {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.note-status-badge {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 2px 6px;
|
|
border-radius: 10px;
|
|
background: var(--background-secondary-alt);
|
|
font-size: var(--font-ui-smaller);
|
|
max-width: 100px;
|
|
margin-right: 2px;
|
|
}
|
|
|
|
.note-status-badge-icon {
|
|
margin-right: 2px;
|
|
}
|
|
|
|
.note-status-badge-text {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
/* Status bar positioning and visibility */
|
|
.status-bar .note-status-icon::after {
|
|
bottom: auto;
|
|
top: -30px;
|
|
}
|
|
|
|
/* Auto-hide behavior */
|
|
.note-status-bar.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.note-status-bar.auto-hide {
|
|
opacity: 0.5;
|
|
transition: opacity 0.2s var(--ease-out);
|
|
}
|
|
|
|
.note-status-bar.visible {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Additional styling for multiple status badges */
|
|
.note-status-additional-badges {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
margin-left: 4px;
|
|
}
|
|
|
|
.note-status-mini-badge {
|
|
font-size: var(--font-ui-smallest);
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 50%;
|
|
background: var(--background-secondary);
|
|
box-shadow: var(--shadow-xs);
|
|
}
|
|
|
|
/*
|
|
* Context menu and toolbar styles
|
|
*/
|
|
|
|
/* Context menu enhancements */
|
|
.note-status-context-menu .menu-item {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.note-status-menu-header {
|
|
font-weight: var(--font-semibold);
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
margin-bottom: 2px;
|
|
pointer-events: none !important;
|
|
}
|
|
|
|
.note-status-menu-section {
|
|
font-size: var(--font-ui-smaller);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
color: var(--text-muted);
|
|
pointer-events: none !important;
|
|
}
|
|
|
|
/* Batch modal styling */
|
|
.note-status-batch-modal {
|
|
max-width: 550px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.note-status-modal-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
/* Status batch modal specific styles */
|
|
.note-status-batch-menu {
|
|
z-index: 1000;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Positioning classes for dropdowns to avoid inline styles */
|
|
.note-status-dummy-target {
|
|
position: fixed;
|
|
z-index: 1000;
|
|
width: 0;
|
|
height: 0;
|
|
left: var(--pos-x-px, 0);
|
|
top: var(--pos-y-px, 0);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.note-status-popover-fixed {
|
|
position: fixed;
|
|
z-index: 999;
|
|
}
|
|
|
|
/* Use CSS custom properties with attr() for dynamic positioning */
|
|
.note-status-popover-fixed {
|
|
--pos-x: 0;
|
|
--pos-y: 0;
|
|
--max-height: 300px;
|
|
left: calc(1px * attr(data-pos-x number, 0));
|
|
top: calc(1px * attr(data-pos-y number, 0));
|
|
max-height: var(--max-height);
|
|
}
|
|
|
|
/* Since attr() with units doesn't have widespread support yet,
|
|
we'll add a fallback using CSS variables that can be updated via JS */
|
|
.note-status-popover-fixed {
|
|
left: var(--pos-x-px, 0);
|
|
top: var(--pos-y-px, 0);
|
|
max-height: var(--max-height-px, 300px);
|
|
}
|
|
|
|
/* Status dropdown and popover animation classes */
|
|
.note-status-popover-animate-in {
|
|
animation: statusDropdownFadeIn 0.22s var(--ease-out) forwards;
|
|
}
|
|
|
|
.note-status-popover-animate-out {
|
|
animation: statusDropdownFadeOut 0.22s var(--ease-out) forwards;
|
|
}
|
|
|
|
/* Status Option during selection animation */
|
|
.note-status-option-selecting {
|
|
background-color: var(--interactive-accent) !important;
|
|
color: var(--text-on-accent) !important;
|
|
animation: pulse 0.3s var(--ease-out);
|
|
}
|
|
|
|
/* Chip animation for removing */
|
|
.note-status-chip-removing {
|
|
transform: scale(0.8);
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: all 0.15s ease-out;
|
|
}
|
|
|
|
/* Fallback positioning for right/bottom adjustments */
|
|
.note-status-popover-right {
|
|
left: auto !important;
|
|
right: var(--right-offset-px, 10px);
|
|
}
|
|
|
|
.note-status-popover-bottom {
|
|
top: auto !important;
|
|
bottom: var(--bottom-offset-px, 10px);
|
|
}
|
|
|
|
.status-color-dot {
|
|
display: inline-block;
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background-color: var(--dot-color, #ffffff);
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.template-buttons {
|
|
margin-top: 15px;
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
/* Template selection styling */
|
|
.template-item {
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: var(--status-border-radius);
|
|
margin-bottom: 10px;
|
|
padding: 10px;
|
|
background: var(--background-primary-alt);
|
|
}
|
|
|
|
.template-header {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.template-checkbox {
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.template-name {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.template-description {
|
|
font-size: 0.9em;
|
|
color: var(--text-muted);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.template-statuses {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 5px;
|
|
}
|
|
|
|
.template-status-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 2px 8px;
|
|
border-radius: 12px;
|
|
background: var(--background-secondary);
|
|
font-size: 0.85em;
|
|
} |