mirror of
https://github.com/devonthesofa/obsidian-note-status.git
synced 2026-07-22 12:30:24 +00:00
reafactor: cleaned-up CSS
This commit is contained in:
parent
c902435100
commit
6798eb9307
2 changed files with 202 additions and 568 deletions
752
styles.css
752
styles.css
|
|
@ -20,12 +20,7 @@
|
|||
}
|
||||
|
||||
/* Animations */
|
||||
@keyframes fadeIn {
|
||||
from { opacity: 0; }
|
||||
to { opacity: 1; }
|
||||
}
|
||||
|
||||
@keyframes scaleIn {
|
||||
@keyframes note-status-scale-in {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: scale(0.9);
|
||||
|
|
@ -36,7 +31,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
@keyframes slideInFade {
|
||||
@keyframes note-status-slide-in-fade {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(-10px);
|
||||
|
|
@ -47,7 +42,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
@keyframes fadeInSlideDown {
|
||||
@keyframes note-status-fade-in-slide-down {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(-6px);
|
||||
|
|
@ -58,29 +53,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
@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 {
|
||||
@keyframes note-status-pulse {
|
||||
0% { transform: scale(1); }
|
||||
50% { transform: scale(0.98); }
|
||||
100% { transform: scale(1); }
|
||||
|
|
@ -98,116 +71,31 @@
|
|||
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 {
|
||||
.note-status-action-button {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.note-status-select-all,
|
||||
.note-status-apply-button {
|
||||
padding: 8px 16px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
border-radius: var(--radius-s);
|
||||
background: var(--background-secondary);
|
||||
border: var(--input-border-width) solid var(--background-modifier-border);
|
||||
color: var(--text-normal);
|
||||
background: transparent;
|
||||
color: var(--text-muted);
|
||||
cursor: pointer;
|
||||
transition: all 0.15s var(--ease-out);
|
||||
font-size: var(--font-smaller);
|
||||
transition: all 0.15s ease;
|
||||
border: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.note-status-select-all:hover,
|
||||
.note-status-apply-button:hover {
|
||||
background: var(--background-modifier-hover);
|
||||
box-shadow: var(--shadow-s);
|
||||
.note-status-action-button:hover {
|
||||
background-color: var(--background-modifier-hover);
|
||||
color: var(--text-normal);
|
||||
}
|
||||
|
||||
.note-status-select-all:active,
|
||||
.note-status-apply-button:active {
|
||||
transform: translateY(1px);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.note-status-apply-button {
|
||||
background: var(--interactive-accent);
|
||||
.note-status-action-button.note-status-button-active {
|
||||
background-color: 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;
|
||||
transform: scale(0.95);
|
||||
}
|
||||
|
||||
/* Toolbar button styling */
|
||||
|
|
@ -256,7 +144,7 @@
|
|||
|
||||
/* Print styles - hide interactive elements when printing */
|
||||
@media print {
|
||||
.note-status-dropdown,
|
||||
.note-status-unified-dropdown,
|
||||
.note-status-bar,
|
||||
.note-status-pane {
|
||||
display: none !important;
|
||||
|
|
@ -343,7 +231,6 @@
|
|||
}
|
||||
|
||||
.note-status-search-input,
|
||||
.note-status-modal-search-input,
|
||||
.note-status-popover-search-input {
|
||||
width: 100%;
|
||||
padding: var(--input-padding);
|
||||
|
|
@ -357,7 +244,6 @@
|
|||
}
|
||||
|
||||
.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);
|
||||
|
|
@ -430,27 +316,27 @@
|
|||
}
|
||||
|
||||
/* Status Group Styling */
|
||||
.status-group {
|
||||
.note-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);
|
||||
animation: note-status-fade-in-slide-down 0.3s var(--ease-out);
|
||||
}
|
||||
|
||||
.status-group .nav-folder-title {
|
||||
.note-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 {
|
||||
.note-status-group .nav-folder-title:hover {
|
||||
background: var(--background-modifier-hover);
|
||||
}
|
||||
|
||||
.status-group .nav-folder-title-content {
|
||||
.note-status-group .nav-folder-title-content {
|
||||
font-weight: var(--font-semibold);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
|
@ -458,7 +344,7 @@
|
|||
}
|
||||
|
||||
/* Collapse indicators */
|
||||
.collapse-indicator {
|
||||
.note-status-collapse-indicator {
|
||||
margin-right: var(--size-4-2, 8px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
|
@ -467,18 +353,18 @@
|
|||
opacity: 1;
|
||||
}
|
||||
|
||||
.is-collapsed .collapse-indicator {
|
||||
.note-status-is-collapsed .note-status-collapse-indicator {
|
||||
transform: rotate(-90deg);
|
||||
}
|
||||
|
||||
/* File items */
|
||||
.status-group .nav-folder-children {
|
||||
.note-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 {
|
||||
.note-status-group.nav-folder.note-status-is-collapsed .nav-folder-children {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
|
@ -517,223 +403,25 @@
|
|||
}
|
||||
|
||||
/* Compact view */
|
||||
.compact-view .nav-file-title {
|
||||
.note-status-compact-view .nav-file-title {
|
||||
padding: 2px var(--size-4-2, 8px);
|
||||
font-size: var(--font-smaller);
|
||||
}
|
||||
|
||||
.compact-view .nav-folder-children {
|
||||
.note-status-compact-view .nav-folder-children {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.compact-view .nav-file {
|
||||
.note-status-compact-view .nav-file {
|
||||
margin-bottom: 0;
|
||||
border-radius: 0;
|
||||
border-bottom: 1px solid var(--background-modifier-border);
|
||||
}
|
||||
|
||||
.compact-view .nav-file:last-child {
|
||||
.note-status-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;
|
||||
|
|
@ -834,7 +522,7 @@
|
|||
.note-status-option-selecting {
|
||||
background-color: var(--interactive-accent) !important;
|
||||
color: var(--text-on-accent) !important;
|
||||
animation: pulse 0.3s var(--ease-out);
|
||||
animation: note-status-pulse 0.3s var(--ease-out);
|
||||
}
|
||||
|
||||
.note-status-option-icon {
|
||||
|
|
@ -870,11 +558,29 @@
|
|||
|
||||
/* Animation for unified dropdown */
|
||||
.note-status-popover-animate-in {
|
||||
animation: statusDropdownFadeIn 0.22s var(--ease-out) forwards;
|
||||
animation: note-status-dropdown-fade-in 0.22s var(--ease-out) forwards;
|
||||
}
|
||||
|
||||
.note-status-popover-animate-out {
|
||||
animation: statusDropdownFadeOut 0.22s var(--ease-out) forwards;
|
||||
@keyframes note-status-dropdown-fade-in {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: scale(0.95);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes note-status-dropdown-fade-out {
|
||||
from {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
to {
|
||||
opacity: 0;
|
||||
transform: scale(0.95);
|
||||
}
|
||||
}
|
||||
|
||||
/* Popover header */
|
||||
|
|
@ -957,6 +663,7 @@
|
|||
border-radius: var(--radius-s);
|
||||
transition: all 0.2s var(--ease-out);
|
||||
cursor: pointer;
|
||||
height: 22px; /* Consistent height */
|
||||
}
|
||||
|
||||
.note-status-bar:hover {
|
||||
|
|
@ -1010,131 +717,31 @@
|
|||
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);
|
||||
/* Status chips styling */
|
||||
.note-status-chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border-radius: 50%;
|
||||
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: note-status-scale-in 0.2s var(--ease-out);
|
||||
}
|
||||
|
||||
/*
|
||||
* Context menu and toolbar styles
|
||||
*/
|
||||
|
||||
/* Context menu enhancements */
|
||||
.note-status-context-menu .menu-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.note-status-chip.clickable {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.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-chip.clickable:hover {
|
||||
background: var(--background-modifier-hover);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: var(--status-hover-shadow);
|
||||
}
|
||||
|
||||
.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;
|
||||
|
|
@ -1142,77 +749,39 @@
|
|||
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-chip-icon {
|
||||
margin-right: 6px;
|
||||
}
|
||||
|
||||
.note-status-popover-bottom {
|
||||
top: auto !important;
|
||||
bottom: var(--bottom-offset-px, 10px);
|
||||
.note-status-chip-text {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.status-color-dot {
|
||||
display: inline-block;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
.note-status-chip-remove {
|
||||
margin-left: 6px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
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;
|
||||
background: var(--background-modifier-border);
|
||||
color: var(--text-muted);
|
||||
margin-bottom: 8px;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s var(--ease-out);
|
||||
}
|
||||
|
||||
.template-statuses {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 5px;
|
||||
.note-status-chip-remove:hover {
|
||||
background: var(--text-accent);
|
||||
color: var(--text-on-accent);
|
||||
transform: scale(1.1);
|
||||
}
|
||||
|
||||
.template-status-chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 2px 8px;
|
||||
border-radius: 12px;
|
||||
background: var(--background-secondary);
|
||||
font-size: 0.85em;
|
||||
}
|
||||
|
||||
/* Pagination styles */
|
||||
/*
|
||||
* Pagination styles
|
||||
*/
|
||||
.note-status-pagination {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
|
@ -1278,39 +847,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
/* Improve status bar styles to fix any issues */
|
||||
.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;
|
||||
height: 22px; /* Consistent height */
|
||||
}
|
||||
|
||||
/* Make sure icon container doesn't disrupt layout */
|
||||
.note-status-icon-container {
|
||||
display: inline-flex;
|
||||
margin-left: 4px;
|
||||
gap: 2px;
|
||||
align-items: center;
|
||||
flex-shrink: 0;
|
||||
position: relative; /* Use relative positioning */
|
||||
z-index: 1; /* Keep on top */
|
||||
}
|
||||
|
||||
/* Fix title content to ensure it's always visible */
|
||||
.nav-file-title-content {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
margin-right: 4px; /* Add margin to prevent overlap */
|
||||
}
|
||||
|
||||
/* Empty message and show unassigned button */
|
||||
.note-status-empty-message {
|
||||
margin-bottom: 12px;
|
||||
text-align: center;
|
||||
|
|
@ -1345,4 +882,101 @@
|
|||
.note-status-show-unassigned-button:active {
|
||||
transform: translateY(0);
|
||||
box-shadow: var(--shadow-xs);
|
||||
}
|
||||
|
||||
/* Positioning classes for dropdowns */
|
||||
.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 for dynamic positioning */
|
||||
.note-status-popover-fixed {
|
||||
--pos-x: 0;
|
||||
--pos-y: 0;
|
||||
--max-height: 300px;
|
||||
left: var(--pos-x-px, 0);
|
||||
top: var(--pos-y-px, 0);
|
||||
max-height: var(--max-height-px, 300px);
|
||||
}
|
||||
|
||||
/* Position adjustment classes */
|
||||
.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);
|
||||
}
|
||||
|
||||
/* Template styling */
|
||||
.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;
|
||||
}
|
||||
|
|
@ -60,7 +60,7 @@ export class StatusPaneView extends View {
|
|||
this.createActionToolbar(headerContainer);
|
||||
|
||||
// Set initial compact view state
|
||||
containerEl.toggleClass('compact-view', this.settings.compactView);
|
||||
containerEl.toggleClass('note-status-compact-view', this.settings.compactView);
|
||||
|
||||
// Add a container for the groups
|
||||
const groupsContainer = containerEl.createDiv({ cls: 'note-status-groups-container' });
|
||||
|
|
@ -138,7 +138,7 @@ export class StatusPaneView extends View {
|
|||
// Trigger settings update
|
||||
window.dispatchEvent(new CustomEvent('note-status:settings-changed'));
|
||||
|
||||
this.containerEl.toggleClass('compact-view', this.settings.compactView);
|
||||
this.containerEl.toggleClass('note-status-compact-view', this.settings.compactView);
|
||||
await this.renderGroups(this.searchInput?.value.toLowerCase() || '');
|
||||
});
|
||||
|
||||
|
|
@ -248,11 +248,11 @@ export class StatusPaneView extends View {
|
|||
}
|
||||
|
||||
private renderStatusGroup(container: HTMLElement, status: string, files: TFile[]): void {
|
||||
const groupEl = container.createDiv({ cls: 'status-group nav-folder' });
|
||||
const groupEl = container.createDiv({ cls: 'note-status-group nav-folder' });
|
||||
const titleEl = groupEl.createDiv({ cls: 'nav-folder-title' });
|
||||
|
||||
// Create a container for the collapse button and title
|
||||
const collapseContainer = titleEl.createDiv({ cls: 'collapse-indicator' });
|
||||
const collapseContainer = titleEl.createDiv({ cls: 'note-status-collapse-indicator' });
|
||||
setIcon(collapseContainer, 'chevron-down');
|
||||
|
||||
// Create a container for the title content
|
||||
|
|
@ -268,22 +268,22 @@ export class StatusPaneView extends View {
|
|||
const isCollapsed = this.settings.collapsedStatuses[status] ?? false;
|
||||
|
||||
if (isCollapsed) {
|
||||
groupEl.addClass('is-collapsed');
|
||||
groupEl.addClass('note-status-is-collapsed');
|
||||
collapseContainer.empty();
|
||||
setIcon(collapseContainer, 'chevron-right');
|
||||
}
|
||||
|
||||
titleEl.addEventListener('click', (e) => {
|
||||
e.preventDefault();
|
||||
const isCurrentlyCollapsed = groupEl.hasClass('is-collapsed');
|
||||
const isCurrentlyCollapsed = groupEl.hasClass('note-status-is-collapsed');
|
||||
|
||||
// Toggle the collapsed state
|
||||
if (isCurrentlyCollapsed) {
|
||||
groupEl.removeClass('is-collapsed');
|
||||
groupEl.removeClass('note-status-is-collapsed');
|
||||
collapseContainer.empty();
|
||||
setIcon(collapseContainer, 'chevron-down');
|
||||
} else {
|
||||
groupEl.addClass('is-collapsed');
|
||||
groupEl.addClass('note-status-is-collapsed');
|
||||
collapseContainer.empty();
|
||||
setIcon(collapseContainer, 'chevron-right');
|
||||
}
|
||||
|
|
@ -444,7 +444,7 @@ export class StatusPaneView extends View {
|
|||
*/
|
||||
updateSettings(settings: NoteStatusSettings): void {
|
||||
this.settings = settings;
|
||||
this.containerEl.toggleClass('compact-view', settings.compactView);
|
||||
this.containerEl.toggleClass('note-status-compact-view', settings.compactView);
|
||||
|
||||
// Refresh the view with the current search query
|
||||
this.renderGroups(this.searchInput?.value.toLowerCase() || '');
|
||||
|
|
|
|||
Loading…
Reference in a new issue