mirror of
https://github.com/devonthesofa/obsidian-note-status.git
synced 2026-07-22 12:30:24 +00:00
126 lines
2.9 KiB
CSS
126 lines
2.9 KiB
CSS
/* ==========================================================================
|
|
Status Selector & Selectable List
|
|
========================================================================== */
|
|
|
|
.note-status-options {
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: var(--radius-s);
|
|
background: var(--background-primary);
|
|
box-shadow: var(--shadow-xs);
|
|
}
|
|
|
|
.note-status-options::-webkit-scrollbar {
|
|
width: var(--scrollbar-width);
|
|
}
|
|
|
|
.note-status-options::-webkit-scrollbar-thumb {
|
|
background: var(--scrollbar-thumb-bg);
|
|
border-radius: var(--radius-s);
|
|
}
|
|
|
|
.note-status-option {
|
|
align-items: stretch;
|
|
}
|
|
|
|
.note-status-option .selectable-list-item-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.note-status-option__icon-wrapper {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: var(--size-2-1);
|
|
border-radius: var(--radius-m);
|
|
border: 1px solid var(--background-modifier-border);
|
|
background: var(--background-secondary);
|
|
min-width: 36px;
|
|
transition:
|
|
border-color var(--anim-duration-fast) ease,
|
|
background var(--anim-duration-fast) ease;
|
|
}
|
|
|
|
.note-status-option:hover .note-status-option__icon-wrapper,
|
|
.note-status-option[data-selected="true"] .note-status-option__icon-wrapper {
|
|
border-color: var(--interactive-accent);
|
|
background: var(--background-modifier-hover);
|
|
}
|
|
|
|
.note-status-option__text {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.note-status-option__name {
|
|
font-weight: var(--font-medium);
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.note-status-option__description {
|
|
font-size: var(--font-ui-smaller);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.note-status-chips {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--size-2-2);
|
|
min-height: 32px;
|
|
align-items: center;
|
|
padding: var(--size-2-1) 0;
|
|
}
|
|
|
|
.status-selector-empty {
|
|
padding: var(--size-4-2);
|
|
text-align: center;
|
|
color: var(--text-muted);
|
|
font-style: italic;
|
|
border: 1px dashed var(--background-modifier-border);
|
|
border-radius: var(--radius-m);
|
|
background: var(--background-primary-alt);
|
|
}
|
|
|
|
/* Selectable List Item (shared across components) */
|
|
.selectable-list-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--size-4-2);
|
|
padding: var(--size-2-3) var(--size-4-2);
|
|
cursor: pointer;
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
transition: background var(--anim-duration-fast) ease;
|
|
}
|
|
|
|
.selectable-list-item:hover {
|
|
background: var(--background-modifier-hover);
|
|
}
|
|
|
|
.selectable-list-item[data-focused="true"] {
|
|
outline: 2px solid var(--interactive-accent);
|
|
outline-offset: -2px;
|
|
}
|
|
|
|
.selectable-list-item[data-selected="true"] {
|
|
background: var(--background-modifier-hover);
|
|
}
|
|
|
|
.selectable-list-item-icon {
|
|
font-size: 16px;
|
|
min-width: 20px;
|
|
}
|
|
|
|
.selectable-list-item-content {
|
|
flex: 1;
|
|
font-size: var(--font-ui-small);
|
|
}
|
|
|
|
.selectable-list-item-check {
|
|
color: var(--interactive-accent);
|
|
display: flex;
|
|
align-items: center;
|
|
}
|