mirror of
https://github.com/devonthesofa/obsidian-note-status.git
synced 2026-07-22 12:30:24 +00:00
feat: ui and ux improved
This commit is contained in:
parent
92726d906e
commit
586e003ac7
2 changed files with 1658 additions and 942 deletions
582
styles.css
582
styles.css
|
|
@ -1,135 +1,315 @@
|
|||
/* Base styles and variables */
|
||||
:root {
|
||||
--status-transition-time: 0.2s;
|
||||
--status-border-radius: 4px;
|
||||
}
|
||||
|
||||
/* Status Pane */
|
||||
.note-status-pane {
|
||||
padding: var(--size-4-2);
|
||||
background: var(--background-secondary);
|
||||
color: var(--text-normal);
|
||||
font-family: var(--font-interface);
|
||||
overflow-y: auto;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.note-status-search {
|
||||
margin-bottom: var(--size-4-2);
|
||||
}
|
||||
|
||||
.note-status-search-input {
|
||||
width: 100%;
|
||||
padding: var(--input-padding);
|
||||
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: border-color 0.2s ease;
|
||||
}
|
||||
|
||||
.note-status-search-input:focus {
|
||||
border-color: var(--interactive-accent);
|
||||
}
|
||||
|
||||
.note-status-actions-refresh {
|
||||
padding: var(--size-4-1) var(--size-4-3);
|
||||
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;
|
||||
}
|
||||
|
||||
.note-status-actions-refresh:hover {
|
||||
background: var(--background-modifier-hover);
|
||||
}
|
||||
|
||||
/* Status Group Titles */
|
||||
.status-group .nav-folder-title .status-active,
|
||||
.status-group .nav-folder-title .status-onHold,
|
||||
.status-group .nav-folder-title .status-completed,
|
||||
.status-group .nav-folder-title .status-dropped,
|
||||
.status-group .nav-folder-title .status-unknown {
|
||||
font-weight: 600;
|
||||
padding: var(--size-4-2) var(--size-4-3);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--size-4-1);
|
||||
transition: background 0.2s ease;
|
||||
}
|
||||
|
||||
.status-group .nav-folder-title:hover span {
|
||||
background: var(--background-modifier-hover);
|
||||
}
|
||||
|
||||
/* Status Dropdown */
|
||||
padding: var(--size-4-2);
|
||||
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);
|
||||
border-bottom: 1px solid var(--background-modifier-border);
|
||||
margin-bottom: var(--size-4-2);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--size-4-2);
|
||||
}
|
||||
|
||||
/* Search input improvements */
|
||||
.note-status-search {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.search-input-wrapper {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.search-input-icon {
|
||||
position: absolute;
|
||||
left: var(--size-4-1);
|
||||
color: var(--text-muted);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.note-status-search-input {
|
||||
width: 100%;
|
||||
padding: var(--input-padding);
|
||||
padding-left: calc(var(--size-4-1) * 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) ease;
|
||||
}
|
||||
|
||||
.note-status-search-input:focus {
|
||||
border-color: var(--interactive-accent);
|
||||
box-shadow: 0 0 0 2px rgba(var(--interactive-accent-rgb), 0.2);
|
||||
}
|
||||
|
||||
.search-input-clear-button {
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
right: var(--size-4-1);
|
||||
cursor: pointer;
|
||||
color: var(--text-muted);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
transition: opacity var(--status-transition-time) ease;
|
||||
}
|
||||
|
||||
.search-input-clear-button.is-visible {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.search-input-clear-button:hover {
|
||||
color: var(--text-normal);
|
||||
}
|
||||
|
||||
/* Actions toolbar */
|
||||
.status-pane-actions-container {
|
||||
display: flex;
|
||||
gap: var(--size-4-2);
|
||||
justify-content: flex-end;
|
||||
margin-top: var(--size-4-1);
|
||||
}
|
||||
|
||||
.note-status-view-toggle,
|
||||
.note-status-actions-refresh {
|
||||
padding: var(--size-4-1) var(--size-4-2);
|
||||
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) ease;
|
||||
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: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
/* Status Groups Container */
|
||||
.note-status-groups-container {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
/* Status Group Styling */
|
||||
.status-group {
|
||||
margin-bottom: var(--size-4-3);
|
||||
border-radius: var(--status-border-radius);
|
||||
background: var(--background-primary-alt);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.status-group .nav-folder-title {
|
||||
padding: var(--size-4-1);
|
||||
background: var(--background-secondary-alt);
|
||||
transition: background var(--status-transition-time) ease;
|
||||
}
|
||||
|
||||
.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);
|
||||
}
|
||||
|
||||
/* Collapse indicators */
|
||||
.collapse-indicator {
|
||||
margin-right: var(--size-4-2);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: var(--text-muted);
|
||||
transition: transform var(--status-transition-time) ease;
|
||||
}
|
||||
|
||||
.is-collapsed .collapse-indicator {
|
||||
transform: rotate(-90deg);
|
||||
}
|
||||
|
||||
/* File items */
|
||||
.status-group .nav-folder-children {
|
||||
padding: var(--size-4-1);
|
||||
background: var(--background-primary);
|
||||
}
|
||||
|
||||
.nav-file {
|
||||
border-radius: var(--status-border-radius);
|
||||
transition: background var(--status-transition-time) ease;
|
||||
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);
|
||||
}
|
||||
|
||||
.nav-file-icon {
|
||||
color: var(--text-muted);
|
||||
margin-right: var(--size-4-2);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.nav-file-title-content {
|
||||
flex: 1;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
/* Compact view */
|
||||
.compact-view .nav-file-title {
|
||||
padding: var(--size-4-1) var(--size-4-2);
|
||||
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;
|
||||
}
|
||||
|
||||
/* Status Dropdown */
|
||||
.note-status-dropdown {
|
||||
padding: var(--size-4-1);
|
||||
background: var(--background-secondary);
|
||||
position: sticky;
|
||||
z-index: var(--layer-popover);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--size-4-2);
|
||||
}
|
||||
|
||||
.note-status-dropdown.top {
|
||||
border-bottom: var(--border-width) solid var(--background-modifier-border);
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.note-status-dropdown.bottom {
|
||||
border-top: var(--border-width) solid var(--background-modifier-border);
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
.note-status-label {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.note-status-select {
|
||||
padding: var(--input-padding);
|
||||
border: var(--input-border-width) solid var(--background-modifier-border);
|
||||
border-radius: var(--input-radius);
|
||||
background: var(--background-primary); /* Base background */
|
||||
background-image: none !important; /* Override theme's SVG */
|
||||
color: var(--text-normal);
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
transition: all 0.2s ease;
|
||||
appearance: auto;
|
||||
min-width: 120px;
|
||||
}
|
||||
|
||||
.note-status-select:hover {
|
||||
box-shadow: 0 2px 4px var(--background-modifier-box-shadow);
|
||||
}
|
||||
|
||||
.note-status-select option {
|
||||
background: var(--background-primary); /* Clean option background */
|
||||
color: var(--text-normal);
|
||||
}
|
||||
|
||||
.note-status-hide-button {
|
||||
padding: var(--size-4-1) var(--size-4-2);
|
||||
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 0.2s ease;
|
||||
}
|
||||
|
||||
.note-status-hide-button:hover {
|
||||
background: var(--background-modifier-hover);
|
||||
}
|
||||
|
||||
/* File Explorer Icons */
|
||||
.note-status-icon {
|
||||
margin-left: var(--size-4-1);
|
||||
font-size: var(--font-ui-small);
|
||||
}
|
||||
|
||||
padding: var(--size-4-2);
|
||||
background: var(--background-secondary);
|
||||
position: sticky;
|
||||
z-index: var(--layer-popover);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--size-4-2);
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.note-status-dropdown.top {
|
||||
border-bottom: var(--border-width) solid var(--background-modifier-border);
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.note-status-dropdown.bottom {
|
||||
border-top: var(--border-width) solid var(--background-modifier-border);
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
.note-status-label {
|
||||
font-weight: bold;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.note-status-select {
|
||||
padding: var(--input-padding);
|
||||
border: var(--input-border-width) solid var(--background-modifier-border);
|
||||
border-radius: var(--input-radius);
|
||||
background: var(--background-primary);
|
||||
background-image: none !important; /* Override theme's SVG */
|
||||
color: var(--text-normal);
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
transition: all var(--status-transition-time) ease;
|
||||
appearance: auto;
|
||||
min-width: 150px;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.note-status-select:hover,
|
||||
.note-status-select:focus {
|
||||
border-color: var(--interactive-accent);
|
||||
box-shadow: 0 0 0 2px rgba(var(--interactive-accent-rgb), 0.2);
|
||||
}
|
||||
|
||||
.note-status-select option {
|
||||
background: var(--background-primary);
|
||||
color: var(--text-normal);
|
||||
padding: var(--size-4-1) var(--size-4-2);
|
||||
}
|
||||
|
||||
.note-status-hide-button {
|
||||
padding: var(--size-4-1) var(--size-4-2);
|
||||
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) ease;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.note-status-hide-button:hover {
|
||||
background: var(--background-modifier-hover);
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
/* File Explorer Icons */
|
||||
.note-status-icon {
|
||||
margin-left: var(--size-4-1);
|
||||
font-size: var(--font-ui-small);
|
||||
}
|
||||
|
||||
/* Status Bar */
|
||||
.note-status-bar {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
padding: 0 var(--size-4-2);
|
||||
height: 22px;
|
||||
gap: var(--size-4-1);
|
||||
background: var(--background-secondary);
|
||||
border-radius: var(--status-border-radius);
|
||||
margin: 0 var(--size-4-1);
|
||||
transition: opacity var(--status-transition-time) ease;
|
||||
cursor: pointer;
|
||||
border: 1px solid var(--background-modifier-border);
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.note-status-bar:hover {
|
||||
background: var(--background-modifier-hover);
|
||||
}
|
||||
|
||||
.note-status-bar.left {
|
||||
|
|
@ -149,45 +329,129 @@
|
|||
opacity: 1;
|
||||
}
|
||||
|
||||
/* Los colores de estado se manejan dinámicamente en JS, no aquí */
|
||||
/* Batch Modal Styling */
|
||||
.note-status-batch-modal {
|
||||
max-width: 500px;
|
||||
}
|
||||
|
||||
.note-status-batch-modal h2 {
|
||||
margin-bottom: var(--size-4-3);
|
||||
text-align: center;
|
||||
padding-bottom: var(--size-4-2);
|
||||
border-bottom: 1px solid var(--background-modifier-border);
|
||||
}
|
||||
|
||||
/* Colores de los estados
|
||||
.status-active {
|
||||
color: var(--text-success);
|
||||
.note-status-modal-search {
|
||||
margin-bottom: var(--size-4-2);
|
||||
position: relative;
|
||||
}
|
||||
.status-onHold {
|
||||
color: var(--text-warning);
|
||||
}
|
||||
.status-completed {
|
||||
color: var(--text-accent);
|
||||
}
|
||||
.status-dropped {
|
||||
color: var(--text-error);
|
||||
}
|
||||
.status-unknown {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
*/
|
||||
|
||||
/* Aplicar colores a los íconos y textos en el status bar y explorador */
|
||||
.note-status-bar .note-status-active,
|
||||
.nav-file-title .note-status-active {
|
||||
color: var(--text-success);
|
||||
.note-status-modal-search-input {
|
||||
width: 100%;
|
||||
padding: var(--input-padding);
|
||||
padding-left: calc(var(--size-4-1) * 3);
|
||||
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) ease;
|
||||
}
|
||||
.note-status-bar .note-status-onHold,
|
||||
.nav-file-title .note-status-onHold {
|
||||
color: var(--text-warning);
|
||||
|
||||
.note-status-modal-search-input:focus {
|
||||
border-color: var(--interactive-accent);
|
||||
box-shadow: 0 0 0 2px rgba(var(--interactive-accent-rgb), 0.2);
|
||||
}
|
||||
.note-status-bar .note-status-completed,
|
||||
.nav-file-title .note-status-completed {
|
||||
color: var(--text-accent);
|
||||
|
||||
.note-status-file-select-container,
|
||||
.note-status-status-select-container {
|
||||
margin-bottom: var(--size-4-2);
|
||||
}
|
||||
.note-status-bar .note-status-dropped,
|
||||
.nav-file-title .note-status-dropped {
|
||||
color: var(--text-error);
|
||||
|
||||
.note-status-file-select,
|
||||
.note-status-status-select {
|
||||
width: 100%;
|
||||
padding: var(--input-padding);
|
||||
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) ease;
|
||||
}
|
||||
.note-status-bar .note-status-unknown,
|
||||
.nav-file-title .note-status-unknown {
|
||||
color: var(--text-muted);
|
||||
|
||||
.note-status-file-select {
|
||||
min-height: 200px;
|
||||
}
|
||||
|
||||
.note-status-file-select option,
|
||||
.note-status-status-select option {
|
||||
padding: var(--size-4-1);
|
||||
}
|
||||
|
||||
.note-status-modal-buttons {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-top: var(--size-4-3);
|
||||
gap: var(--size-4-2);
|
||||
}
|
||||
|
||||
.note-status-modal-buttons button {
|
||||
flex: 1;
|
||||
padding: var(--size-4-2);
|
||||
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) ease;
|
||||
}
|
||||
|
||||
.note-status-modal-buttons button:hover {
|
||||
background: var(--background-modifier-hover);
|
||||
}
|
||||
|
||||
.note-status-modal-buttons button.mod-cta {
|
||||
background: var(--interactive-accent);
|
||||
color: var(--text-on-accent);
|
||||
border-color: var(--interactive-accent);
|
||||
}
|
||||
|
||||
.note-status-modal-buttons button.mod-cta:hover {
|
||||
background: var(--interactive-accent-hover);
|
||||
}
|
||||
|
||||
/* Settings Tab Styling */
|
||||
.custom-status-list {
|
||||
margin-bottom: var(--size-4-3);
|
||||
border: 1px solid var(--background-modifier-border);
|
||||
border-radius: var(--status-border-radius);
|
||||
background: var(--background-primary-alt);
|
||||
padding: var(--size-4-2);
|
||||
}
|
||||
|
||||
.status-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: var(--size-4-1) var(--size-4-2);
|
||||
border-bottom: 1px solid var(--background-modifier-border);
|
||||
margin-bottom: var(--size-4-1);
|
||||
}
|
||||
|
||||
.status-item:last-child {
|
||||
border-bottom: none;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.status-remove-button {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
/* Animations */
|
||||
@keyframes fadeIn {
|
||||
from { opacity: 0; }
|
||||
to { opacity: 1; }
|
||||
}
|
||||
|
||||
.status-group {
|
||||
animation: fadeIn 0.3s ease;
|
||||
|
|
|
|||
Loading…
Reference in a new issue