mirror of
https://github.com/devonthesofa/obsidian-note-status.git
synced 2026-07-22 12:30:24 +00:00
1331 lines
No EOL
28 KiB
CSS
1331 lines
No EOL
28 KiB
CSS
/* Base styles and variables */
|
|
:root {
|
|
--status-transition-time: 0.22s;
|
|
--status-border-radius: var(--radius-s, 4px);
|
|
--status-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
--status-hover-shadow: 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);
|
|
}
|
|
|
|
/* Status Pane */
|
|
.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 improvements */
|
|
.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, 6px 8px);
|
|
padding-left: calc(var(--size-4-1, 4px) * 3 + 18px);
|
|
border: var(--input-border-width, 1px) solid var(--background-modifier-border);
|
|
border-radius: var(--input-radius, 4px);
|
|
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 hsla(var(--interactive-accent-hsl), 0.2);
|
|
}
|
|
|
|
.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, 1px) solid var(--background-modifier-border);
|
|
border-radius: var(--button-radius, 4px);
|
|
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(--status-border-radius);
|
|
background: var(--background-primary-alt);
|
|
box-shadow: var(--shadow-xs);
|
|
overflow: hidden;
|
|
animation: fadeInSlideDown 0.3s var(--ease-out);
|
|
}
|
|
|
|
.status-group .nav-folder-title {
|
|
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: 600;
|
|
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(--status-border-radius);
|
|
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: 0.9em;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
/* 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, 0.85em);
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: var(--status-icon-size);
|
|
height: var(--status-icon-size);
|
|
}
|
|
/* Tooltip styling for status description */
|
|
.note-status-icon {
|
|
position: relative;
|
|
}
|
|
|
|
|
|
/* Handle long descriptions */
|
|
.note-status-icon::after {
|
|
max-width: 200px;
|
|
white-space: normal;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Ensure tooltip is above all other elements */
|
|
.note-status-icon {
|
|
z-index: 500; /* Higher than most elements */
|
|
}
|
|
|
|
/* Additional tooltip positioning for different contexts */
|
|
.nav-file-title .note-status-icon::after {
|
|
bottom: 150%; /* Position above in file explorer */
|
|
}
|
|
|
|
.status-bar .note-status-icon::after {
|
|
bottom: auto;
|
|
top: -30px;
|
|
}
|
|
|
|
/* Ensure tooltips in popovers and dropdowns are visible */
|
|
.note-status-popover .note-status-option-icon::after,
|
|
.note-status-dropdown .note-status-chip-icon::after {
|
|
z-index: 1001; /* Even higher for nested elements */
|
|
}
|
|
|
|
/* Hover effect for icon container */
|
|
.note-status-icon-container:hover {
|
|
background-color: var(--background-modifier-hover);
|
|
border-radius: var(--radius-s, 4px);
|
|
padding: 1px 2px;
|
|
}
|
|
|
|
/* Status Dropdown */
|
|
.note-status-dropdown {
|
|
padding: var(--size-4-2, 8px);
|
|
background: var(--background-primary);
|
|
position: sticky;
|
|
z-index: var(--layer-popover, 40);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--size-4-2, 8px);
|
|
box-shadow: var(--shadow-s);
|
|
border-radius: var(--radius-m, 8px);
|
|
margin: var(--size-4-2, 8px);
|
|
max-width: 720px;
|
|
margin: 8px auto;
|
|
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;
|
|
}
|
|
|
|
.note-status-dropdown.top {
|
|
top: 8px;
|
|
}
|
|
|
|
.note-status-dropdown.bottom {
|
|
bottom: 8px;
|
|
}
|
|
|
|
/* 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: 600;
|
|
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, 4px);
|
|
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:active,
|
|
.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(--status-border-radius);
|
|
}
|
|
|
|
.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;
|
|
width: 100%;
|
|
height: 100%;
|
|
min-height: 36px;
|
|
background: var(--background-secondary-alt);
|
|
border-radius: var(--radius-s, 4px);
|
|
font-size: 0.9em;
|
|
user-select: none;
|
|
}
|
|
|
|
/* 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: 0.9em;
|
|
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;
|
|
}
|
|
|
|
.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, 8px);
|
|
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: 0.9em;
|
|
}
|
|
|
|
/* Status popover */
|
|
.note-status-popover {
|
|
position: absolute;
|
|
background: var(--background-primary);
|
|
border-radius: var(--radius-m, 8px);
|
|
box-shadow: var(--status-box-shadow);
|
|
z-index: calc(var(--layer-popover, 40) + 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);
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.note-status-popover.popover-top {
|
|
transform-origin: bottom center;
|
|
box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.note-status-popover.popover-bottom {
|
|
transform-origin: top center;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
/* Search container */
|
|
.note-status-popover-search {
|
|
padding: var(--size-4-2, 8px);
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
position: sticky;
|
|
top: 0;
|
|
background: var(--background-primary);
|
|
z-index: 1;
|
|
}
|
|
|
|
/* 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: 0.9em;
|
|
}
|
|
|
|
/* Status option items */
|
|
.note-status-option {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 8px 12px;
|
|
border-radius: var(--radius-s, 4px);
|
|
cursor: pointer;
|
|
transition: all 0.15s var(--ease-out);
|
|
margin-bottom: 2px;
|
|
position: relative;
|
|
}
|
|
|
|
.note-status-option:hover {
|
|
background: var(--background-modifier-hover);
|
|
}
|
|
|
|
.note-status-option.is-selected {
|
|
background: var(--background-secondary-alt);
|
|
}
|
|
|
|
.note-status-option-selecting {
|
|
background: var(--interactive-accent) !important;
|
|
color: var(--text-on-accent);
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.note-status-option-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-right: 8px;
|
|
font-size: 1em;
|
|
min-width: 16px;
|
|
}
|
|
|
|
.note-status-option-text {
|
|
flex: 1;
|
|
font-size: 0.9em;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.note-status-option-check {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-accent);
|
|
margin-left: 4px;
|
|
}
|
|
|
|
/* 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;
|
|
}
|
|
|
|
.note-status-modal-icon {
|
|
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: 600;
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.note-status-file-count,
|
|
.note-status-status-count {
|
|
font-size: 0.85em;
|
|
color: var(--text-muted);
|
|
transition: all 0.2s var(--ease-out);
|
|
}
|
|
|
|
.note-status-file-count.has-selection,
|
|
.note-status-status-count.has-selection {
|
|
color: var(--text-accent);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.note-status-file-select-container,
|
|
.note-status-status-select-container {
|
|
position: relative;
|
|
}
|
|
|
|
.note-status-file-select,
|
|
.note-status-status-select {
|
|
width: 100%;
|
|
padding: 8px;
|
|
border-radius: var(--radius-s, 4px);
|
|
background: var(--background-primary);
|
|
border: 1px solid var(--background-modifier-border);
|
|
color: var(--text-normal);
|
|
font-size: 0.9em;
|
|
outline: none;
|
|
transition: all 0.2s var(--ease-out);
|
|
max-height: 200px;
|
|
}
|
|
|
|
.note-status-file-select option,
|
|
.note-status-status-select option {
|
|
padding: 6px 8px;
|
|
}
|
|
|
|
.note-status-file-select:focus,
|
|
.note-status-status-select:focus {
|
|
border-color: var(--interactive-accent);
|
|
box-shadow: 0 0 0 2px hsla(var(--interactive-accent-hsl), 0.2);
|
|
}
|
|
|
|
.note-status-empty-option {
|
|
font-style: italic;
|
|
color: var(--text-muted);
|
|
text-align: center;
|
|
padding: 12px !important;
|
|
}
|
|
|
|
/* Mode selection in batch modal */
|
|
.note-status-mode-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
padding: 8px;
|
|
background: var(--background-primary-alt);
|
|
border-radius: var(--radius-s, 4px);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.note-status-mode-option {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 12px;
|
|
border-radius: var(--radius-s, 4px);
|
|
cursor: pointer;
|
|
transition: all 0.15s var(--ease-out);
|
|
}
|
|
|
|
.note-status-mode-option:hover {
|
|
background: var(--background-modifier-hover);
|
|
}
|
|
|
|
.note-status-mode-option.is-active {
|
|
background: var(--background-modifier-hover);
|
|
}
|
|
|
|
.note-status-mode-radio {
|
|
margin: 0;
|
|
}
|
|
|
|
.note-status-mode-label {
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
|
|
/* 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, 4px);
|
|
background: var(--background-secondary);
|
|
border: 1px solid var(--background-modifier-border);
|
|
color: var(--text-normal);
|
|
cursor: pointer;
|
|
transition: all 0.15s var(--ease-out);
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
/* Status bar refinements */
|
|
.note-status-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 4px 8px;
|
|
border-radius: var(--radius-s, 4px);
|
|
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: 0.8em;
|
|
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;
|
|
}
|
|
|
|
/* 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: 0.75em;
|
|
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 enhancements */
|
|
.note-status-context-menu .menu-item {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.note-status-context-menu .menu-item.is-active {
|
|
color: var(--text-accent);
|
|
}
|
|
|
|
.note-status-menu-header {
|
|
font-weight: 600;
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
margin-bottom: 2px;
|
|
pointer-events: none !important;
|
|
}
|
|
|
|
.note-status-menu-section {
|
|
font-size: 0.8em;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
color: var(--text-muted);
|
|
pointer-events: none !important;
|
|
}
|
|
|
|
/* 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);
|
|
}
|
|
}
|
|
|
|
/* Responsive adjustments */
|
|
@media (max-width: 768px) {
|
|
.note-status-dropdown {
|
|
margin: 4px;
|
|
padding: 6px;
|
|
}
|
|
|
|
.note-status-chip {
|
|
max-width: 150px;
|
|
}
|
|
|
|
.note-status-batch-modal {
|
|
max-width: 95%;
|
|
}
|
|
}
|
|
|
|
/* 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;
|
|
}
|
|
}
|
|
|
|
/* Dark mode adjustments */
|
|
.theme-dark .note-status-popover {
|
|
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
|
|
}
|
|
|
|
.theme-dark .note-status-option-selecting {
|
|
box-shadow: 0 0 0 1px var(--interactive-accent);
|
|
}
|
|
|
|
/* Print styles - hide interactive elements when printing */
|
|
@media print {
|
|
.note-status-dropdown,
|
|
.note-status-bar,
|
|
.note-status-pane {
|
|
display: none !important;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/* 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;
|
|
}
|
|
|
|
/* 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: bold;
|
|
}
|
|
|
|
/* Toolbar popover styling */
|
|
.note-status-toolbar-popover {
|
|
width: 280px;
|
|
max-width: 90vw;
|
|
border-radius: var(--radius-m, 8px);
|
|
overflow: hidden;
|
|
box-shadow: var(--shadow-m), 0 0 15px rgba(0, 0, 0, 0.1);
|
|
border: 1px solid var(--background-modifier-border);
|
|
background: var(--background-primary);
|
|
}
|
|
|
|
.note-status-popover-header {
|
|
padding: 12px;
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
background: var(--background-secondary-alt);
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.note-status-popover-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-weight: 600;
|
|
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);
|
|
}
|
|
|
|
/* Empty indicator for popover */
|
|
.note-status-popover-chips .note-status-empty-indicator {
|
|
width: 100%;
|
|
min-height: auto;
|
|
padding: 8px 0;
|
|
justify-content: flex-start;
|
|
background: transparent;
|
|
}
|
|
|
|
/* Make icons more visible */
|
|
.note-status-toolbar-icon {
|
|
display: flex !important;
|
|
align-items: center !important;
|
|
justify-content: center !important;
|
|
}
|
|
|
|
/* Make the unified dropdown look consistent in all contexts */
|
|
.note-status-unified-dropdown {
|
|
width: 280px;
|
|
max-width: 90vw;
|
|
border-radius: var(--radius-m, 8px);
|
|
overflow: hidden;
|
|
box-shadow: var(--shadow-m), 0 0 15px rgba(0, 0, 0, 0.1);
|
|
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 */
|
|
}
|
|
|
|
/* Better 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;
|
|
}
|
|
|
|
@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);
|
|
}
|
|
}
|
|
|
|
/* Fix for positioning when transitioning */
|
|
.note-status-popover {
|
|
transform-origin: top left;
|
|
pointer-events: all !important;
|
|
}
|
|
|
|
/* Make sure clickable elements in dropdown work properly */
|
|
.note-status-option,
|
|
.note-status-option-icon,
|
|
.note-status-option-text,
|
|
.note-status-chip,
|
|
.note-status-chip-remove,
|
|
.note-status-popover-search-input {
|
|
pointer-events: all !important;
|
|
}
|
|
|
|
/* Fix option clicking */
|
|
.note-status-option {
|
|
cursor: pointer !important;
|
|
transition: background-color 0.15s ease;
|
|
}
|
|
|
|
.note-status-option:hover {
|
|
background-color: var(--background-modifier-hover) !important;
|
|
}
|
|
|
|
.note-status-option.is-selected {
|
|
background-color: var(--interactive-accent-hover) !important;
|
|
color: var(--text-on-accent) !important;
|
|
}
|
|
|
|
/* Make options more visible when selecting */
|
|
.note-status-option-selecting {
|
|
background-color: var(--interactive-accent) !important;
|
|
color: var(--text-on-accent) !important;
|
|
animation: pulse 0.3s var(--ease-out);
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0% { transform: scale(1); }
|
|
50% { transform: scale(0.98); }
|
|
100% { transform: scale(1); }
|
|
}
|
|
|
|
/* Ensure dropdown shows above modal if needed */
|
|
.modal-container .note-status-unified-dropdown {
|
|
z-index: 10001 !important;
|
|
}
|
|
|
|
/* Make sure scrollable containers in dropdown work properly */
|
|
.note-status-options-container {
|
|
max-height: 250px;
|
|
overflow-y: auto;
|
|
scrollbar-width: thin;
|
|
}
|
|
|
|
/* Fix dropdown header styling */
|
|
.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;
|
|
}
|
|
|
|
/* Improve status badges styling */
|
|
.note-status-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 4px 8px;
|
|
margin: 2px;
|
|
border-radius: 12px;
|
|
background: var(--background-secondary);
|
|
border: 1px solid var(--background-modifier-border);
|
|
color: var(--text-normal);
|
|
font-size: 0.9em;
|
|
max-width: 100%;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.note-status-chip-icon {
|
|
margin-right: 4px;
|
|
}
|
|
|
|
/* Remove button on badges */
|
|
.note-status-chip-remove {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-left: 4px;
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 50%;
|
|
background: var(--background-modifier-border);
|
|
color: var(--text-muted);
|
|
cursor: pointer !important;
|
|
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);
|
|
}
|
|
|
|
/* Improve search input */
|
|
.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);
|
|
}
|
|
|
|
.note-status-popover-search-input {
|
|
width: 100%;
|
|
padding: 8px;
|
|
border-radius: var(--input-radius, 4px);
|
|
border: 1px solid var(--background-modifier-border);
|
|
background: var(--background-primary);
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.note-status-popover-search-input:focus {
|
|
border-color: var(--interactive-accent);
|
|
box-shadow: 0 0 0 2px rgba(var(--interactive-accent-rgb), 0.2);
|
|
outline: none;
|
|
}
|
|
|
|
/* Better options styling */
|
|
.note-status-option {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 8px 12px;
|
|
margin: 2px 4px;
|
|
border-radius: var(--radius-s, 4px);
|
|
background: var(--background-primary);
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.note-status-option.is-selected {
|
|
font-weight: 500;
|
|
}
|
|
|
|
.note-status-option-icon {
|
|
margin-right: 8px;
|
|
font-size: 1.1em;
|
|
}
|
|
|
|
.note-status-option-check {
|
|
margin-left: auto;
|
|
color: var(--text-accent);
|
|
}
|
|
|
|
|
|
/* Prevent event propagation issues */
|
|
.note-status-unified-dropdown * {
|
|
pointer-events: all !important;
|
|
}
|
|
|
|
/* Animation for badge removal */
|
|
.note-status-chip-removing {
|
|
transform: scale(0.8);
|
|
opacity: 0;
|
|
transition: all 0.15s ease-out;
|
|
} |