mirror of
https://github.com/trevware/obsidian-sidebar-highlights.git
synced 2026-07-22 05:51:12 +00:00
2298 lines
No EOL
53 KiB
CSS
2298 lines
No EOL
53 KiB
CSS
/* Utility classes for show/hide functionality */
|
|
/* Namespaced with sh- prefix to prevent conflicts with other plugins/themes */
|
|
.sh-hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
.sh-visible {
|
|
display: block !important;
|
|
}
|
|
|
|
.sh-visible-flex {
|
|
display: flex !important;
|
|
}
|
|
|
|
.sh-visible-inline {
|
|
display: inline !important;
|
|
}
|
|
|
|
.sh-visible-inline-block {
|
|
display: inline-block !important;
|
|
}
|
|
|
|
/* Plugin does not style editor highlights - themes handle .cm-highlight completely */
|
|
|
|
/* Sidebar highlights in tasks - use same styling as editor */
|
|
.task-text-content .cm-highlight,
|
|
.task-context .cm-highlight {
|
|
background-color: var(--text-highlight-bg);
|
|
color: inherit;
|
|
}
|
|
|
|
/* Individual highlight color classes for sidebar items - use CSS custom properties */
|
|
.highlight-item-card.highlight-color-yellow {
|
|
border-left-color: var(--sh-highlight-yellow, #ffd700);
|
|
}
|
|
|
|
.highlight-item-card.highlight-color-red {
|
|
border-left-color: var(--sh-highlight-red, #ff6b6b);
|
|
}
|
|
|
|
.highlight-item-card.highlight-color-teal {
|
|
border-left-color: var(--sh-highlight-teal, #4ecdc4);
|
|
}
|
|
|
|
.highlight-item-card.highlight-color-blue {
|
|
border-left-color: var(--sh-highlight-blue, #45b7d1);
|
|
}
|
|
|
|
.highlight-item-card.highlight-color-green {
|
|
border-left-color: var(--sh-highlight-green, #96ceb4);
|
|
}
|
|
|
|
.highlight-item-card.highlight-color-default {
|
|
border-left-color: rgb(var(--text-highlight-bg-rgb));
|
|
}
|
|
|
|
/* Support for custom colors via CSS custom properties */
|
|
.highlight-item-card.highlight-color-custom {
|
|
border-left-color: var(--highlight-color, rgb(var(--text-highlight-bg-rgb)));
|
|
}
|
|
|
|
/* Override default view-content padding for highlights sidebar */
|
|
.workspace-leaf-content[data-type="highlights-sidebar"] .view-content {
|
|
padding: 0;
|
|
}
|
|
|
|
/* Search chip styles */
|
|
.search-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
background-color: var(--interactive-accent);
|
|
color: var(--text-on-accent);
|
|
border-radius: 12px;
|
|
padding: 2px 8px;
|
|
margin: 2px;
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.search-chip:hover {
|
|
background-color: var(--interactive-accent-hover);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.search-chip-exclude {
|
|
background-color: var(--text-error);
|
|
color: var(--text-on-accent);
|
|
}
|
|
|
|
.search-chip-exclude:hover {
|
|
background-color: var(--text-error);
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.search-chip-icon {
|
|
font-weight: bold;
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.search-chip-value {
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.search-chip-remove {
|
|
cursor: pointer;
|
|
font-weight: bold;
|
|
opacity: 0.7;
|
|
padding: 0 2px;
|
|
border-radius: 50%;
|
|
transition: opacity 0.2s ease;
|
|
}
|
|
|
|
.search-chip-remove:hover {
|
|
opacity: 1;
|
|
background-color: rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.search-chip-group {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
background-color: var(--background-modifier-border);
|
|
border-radius: 16px;
|
|
padding: 4px 8px;
|
|
margin: 2px;
|
|
gap: 4px;
|
|
}
|
|
|
|
.search-chip-group-label {
|
|
color: var(--text-muted);
|
|
font-weight: bold;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.search-chip-or-indicator {
|
|
color: var(--text-muted);
|
|
font-size: 10px;
|
|
font-weight: bold;
|
|
margin: 0 2px;
|
|
}
|
|
|
|
.search-chip-grouped {
|
|
background-color: var(--interactive-accent);
|
|
margin: 0;
|
|
}
|
|
|
|
.search-chip-tag {
|
|
border-left: 3px solid var(--color-green);
|
|
}
|
|
|
|
.search-chip-collection {
|
|
border-left: 3px solid var(--color-blue);
|
|
}
|
|
|
|
.search-chip-text {
|
|
border-left: 3px solid var(--text-muted);
|
|
}
|
|
|
|
/* Autocomplete dropdown styles */
|
|
.search-autocomplete-dropdown {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
right: 0;
|
|
background-color: var(--background-primary);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 6px;
|
|
box-shadow: var(--shadow-s);
|
|
z-index: 1000;
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.highlights-search-input-container {
|
|
position: relative;
|
|
}
|
|
|
|
.search-autocomplete-item {
|
|
padding: 8px 12px;
|
|
cursor: pointer;
|
|
transition: background-color 0.1s ease;
|
|
}
|
|
|
|
.search-autocomplete-item:hover {
|
|
background-color: var(--background-modifier-hover);
|
|
}
|
|
|
|
.search-chips-container {
|
|
display: inline-flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 2px;
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.highlights-search-input-container {
|
|
position: relative;
|
|
padding: 4px;
|
|
border: 1px solid var(--background-modifier-border);
|
|
background-color: var(--background-primary);
|
|
}
|
|
|
|
.highlights-search-input-container .highlights-search-input {
|
|
width: 100%;
|
|
border: none;
|
|
background: transparent;
|
|
outline: none;
|
|
padding: 4px;
|
|
display: block;
|
|
}
|
|
|
|
/* Simple search styles */
|
|
.simple-search-dropdown {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
right: 0;
|
|
background-color: var(--background-primary);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 0 0 6px 6px;
|
|
box-shadow: var(--shadow-s);
|
|
z-index: 1000;
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.simple-search-suggestion {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 8px 12px;
|
|
cursor: pointer;
|
|
transition: background-color 0.1s ease;
|
|
}
|
|
|
|
.simple-search-suggestion:hover,
|
|
.simple-search-suggestion.selected {
|
|
background-color: var(--background-modifier-hover);
|
|
}
|
|
|
|
.simple-search-suggestion-icon {
|
|
font-weight: bold;
|
|
margin-right: 6px;
|
|
color: var(--interactive-accent);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.simple-search-suggestion-icon.exclude {
|
|
color: var(--text-error);
|
|
}
|
|
|
|
.simple-search-suggestion-text {
|
|
flex: 1;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.simple-search-preview {
|
|
margin-top: 4px;
|
|
padding: 4px 8px;
|
|
background-color: var(--background-modifier-form-field);
|
|
border-radius: 4px;
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
display: block;
|
|
width: 100%;
|
|
clear: both;
|
|
}
|
|
|
|
.simple-search-preview-text {
|
|
font-style: italic;
|
|
}
|
|
|
|
.simple-search-preview-label {
|
|
font-style: italic;
|
|
}
|
|
|
|
.simple-search-preview-logic {
|
|
font-family: var(--font-monospace);
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Sidebar styles */
|
|
.highlights-search-container {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
flex-wrap: wrap;
|
|
gap: var(--size-2-1);
|
|
padding: 8px;
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
flex-shrink: 0;
|
|
background: transparent !important;
|
|
}
|
|
|
|
.highlights-search-input {
|
|
flex: 1;
|
|
width: 100%;
|
|
padding: 8px 12px;
|
|
border-radius: var(--radius-s);
|
|
border: 1px solid var(--background-modifier-border);
|
|
background-color: var(--background-primary);
|
|
color: var(--text-normal);
|
|
font-size: var(--font-ui-small);
|
|
font-family: var(--font-interface);
|
|
box-sizing: border-box;
|
|
transition: border-color 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
|
|
}
|
|
|
|
.highlights-search-input::placeholder {
|
|
color: var(--text-faint);
|
|
}
|
|
|
|
.highlights-search-input:focus {
|
|
border-color: var(--interactive-accent);
|
|
box-shadow: 0 0 0 2px var(--interactive-accent-hover);
|
|
outline: none;
|
|
}
|
|
|
|
.highlights-search-input:hover:not(:focus) {
|
|
border-color: var(--background-modifier-border-hover);
|
|
}
|
|
|
|
.highlights-group-button {
|
|
-webkit-app-region: no-drag;
|
|
background-color: transparent !important;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: var(--size-2-2) var(--size-2-3);
|
|
cursor: var(--cursor);
|
|
border-radius: var(--clickable-icon-radius);
|
|
color: var(--icon-color) !important;
|
|
opacity: var(--icon-opacity);
|
|
transition: opacity 0.15s ease-in-out;
|
|
height: auto !important;
|
|
border: none;
|
|
font-family: var(--font-interface);
|
|
box-sizing: border-box;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
/* Push the overflow ("more") menu to the far right of the toolbar. */
|
|
.highlights-group-button.highlights-overflow-button {
|
|
margin-left: auto;
|
|
}
|
|
|
|
.highlights-group-button:hover {
|
|
background-color: var(--background-modifier-hover) !important;
|
|
opacity: var(--icon-opacity-hover);
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.highlights-group-button:active {
|
|
background-color: var(--background-modifier-active) !important;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.highlights-group-button.active {
|
|
background-color: var(--background-modifier-active-hover) !important;
|
|
color: var(--icon-color-active) !important;
|
|
opacity: 1;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.highlights-group-button.active:hover {
|
|
background-color: var(--background-modifier-active-hover) !important;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.highlights-group-button.is-active {
|
|
opacity: var(--icon-opacity-hover);
|
|
color: var(--icon-color-active) !important;
|
|
background-color: var(--background-modifier-active-hover) !important;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.highlights-group-button.is-active:hover {
|
|
background-color: var(--background-modifier-active-hover) !important;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.search-term-highlight {
|
|
background-color: var(--text-highlight-bg);
|
|
color: var(--text-normal);
|
|
padding: 0;
|
|
border-radius: 2px;
|
|
font-family: inherit;
|
|
font-size: inherit;
|
|
font-weight: inherit;
|
|
line-height: inherit;
|
|
letter-spacing: inherit;
|
|
box-decoration-break: clone;
|
|
-webkit-box-decoration-break: clone;
|
|
}
|
|
|
|
.highlights-list-area {
|
|
padding: 12px 12px;
|
|
flex-grow: 1;
|
|
overflow-y: scroll;
|
|
min-height: 0;
|
|
scrollbar-gutter: stable;
|
|
position: relative;
|
|
}
|
|
|
|
.highlights-list-area > .highlights-list > p {
|
|
margin-top: 0;
|
|
padding: 15px 0;
|
|
text-align: center;
|
|
color: var(--text-faint);
|
|
font-size: var(--font-ui-small);
|
|
}
|
|
|
|
.highlight-group-header {
|
|
font-size: var(--font-adaptive-smaller);
|
|
font-weight: 500;
|
|
padding: 0 8px 8px 8px;
|
|
margin: 24px 0 0 0;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
}
|
|
|
|
.highlight-group-header > span:first-child {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.highlight-group-header:first-of-type {
|
|
margin-top: 0;
|
|
}
|
|
|
|
/* Current note tasks section styles */
|
|
.current-note-group-header {
|
|
margin-bottom: 8px !important;
|
|
border-bottom: none !important;
|
|
padding-bottom: 0 !important;
|
|
}
|
|
|
|
.current-note-tasks-card {
|
|
background-color: var(--background-modifier-active-hover);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: var(--radius-m);
|
|
padding: 12px;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.group-color-square {
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 2px;
|
|
border: 1px solid var(--background-modifier-border);
|
|
flex-shrink: 0;
|
|
background-color: var(--group-color, var(--background-modifier-border));
|
|
}
|
|
|
|
/* Group color squares - use CSS variables for dynamic colors */
|
|
.group-color-square[data-color-name="yellow"] { background-color: var(--sh-highlight-yellow, #ffd700); }
|
|
.group-color-square[data-color-name="red"] { background-color: var(--sh-highlight-red, #ff6b6b); }
|
|
.group-color-square[data-color-name="teal"] { background-color: var(--sh-highlight-teal, #4ecdc4); }
|
|
.group-color-square[data-color-name="blue"] { background-color: var(--sh-highlight-blue, #45b7d1); }
|
|
.group-color-square[data-color-name="green"] { background-color: var(--sh-highlight-green, #96ceb4); }
|
|
|
|
.group-tag-icon {
|
|
width: 12px;
|
|
height: 12px;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.group-tag-icon svg {
|
|
width: 10px;
|
|
height: 10px;
|
|
}
|
|
|
|
.highlight-item-card {
|
|
background: var(--background-secondary);
|
|
border: none;
|
|
border-left: 5px solid rgb(var(--text-highlight-bg-rgb)); /* Default color, overridden by color classes */
|
|
border-radius: 6px;
|
|
padding: 0;
|
|
margin-bottom: 10px;
|
|
box-shadow: var(--shadow-s);
|
|
font-size: var(--font-ui-smaller);
|
|
font-weight: var(--font-light);
|
|
transition: background-color 0.2s ease, border-left-color 0.2s ease;
|
|
position: relative;
|
|
}
|
|
|
|
.highlight-item-card.selected {
|
|
box-shadow: var(--shadow-s);
|
|
}
|
|
|
|
.highlight-item-card.highlight-selected {
|
|
box-shadow: 0 0 0 1.5px rgb(var(--text-highlight-bg-rgb)), var(--shadow-s); /* Default selection color, overridden by color classes */
|
|
}
|
|
|
|
/* Color-specific selection box-shadows - use CSS custom properties */
|
|
.highlight-item-card.highlight-color-yellow.highlight-selected {
|
|
box-shadow: 0 0 0 1.5px var(--sh-highlight-yellow, #ffd700), var(--shadow-s);
|
|
}
|
|
|
|
.highlight-item-card.highlight-color-red.highlight-selected {
|
|
box-shadow: 0 0 0 1.5px var(--sh-highlight-red, #ff6b6b), var(--shadow-s);
|
|
}
|
|
|
|
.highlight-item-card.highlight-color-teal.highlight-selected {
|
|
box-shadow: 0 0 0 1.5px var(--sh-highlight-teal, #4ecdc4), var(--shadow-s);
|
|
}
|
|
|
|
.highlight-item-card.highlight-color-blue.highlight-selected {
|
|
box-shadow: 0 0 0 1.5px var(--sh-highlight-blue, #45b7d1), var(--shadow-s);
|
|
}
|
|
|
|
.highlight-item-card.highlight-color-green.highlight-selected {
|
|
box-shadow: 0 0 0 1.5px var(--sh-highlight-green, #96ceb4), var(--shadow-s);
|
|
}
|
|
|
|
/* Support for custom colors in selection state */
|
|
.highlight-item-card.highlight-color-custom.highlight-selected {
|
|
box-shadow: 0 0 0 1.5px var(--highlight-color, rgb(var(--text-highlight-bg-rgb))), var(--shadow-s);
|
|
}
|
|
|
|
/* Native comment highlight card styling - similar to regular highlights but with muted appearance */
|
|
.highlight-item-card.highlight-native-comment {
|
|
border-left-color: var(--text-muted) !important;
|
|
background: var(--background-primary);
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.highlight-item-card.highlight-native-comment:hover {
|
|
background: var(--background-modifier-hover);
|
|
opacity: 1;
|
|
}
|
|
|
|
.highlight-item-card.highlight-native-comment.highlight-selected {
|
|
box-shadow: 0 0 0 1.5px var(--text-muted), var(--shadow-s) !important;
|
|
}
|
|
|
|
/* Hover-based color picker - only triggered by left border hover */
|
|
.highlight-border-hover-zone {
|
|
position: absolute;
|
|
left: -5px;
|
|
top: 0;
|
|
width: 25px; /* Covers the 5px border + 20px additional hover area extending left */
|
|
height: 100%;
|
|
z-index: 1;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.hover-color-picker {
|
|
position: absolute;
|
|
left: -5px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
z-index: 10;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: opacity 0.2s ease, visibility 0.2s ease;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.hover-color-picker.sh-visible {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.hover-color-options {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
background: var(--background-primary);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 8px;
|
|
padding: 6px;
|
|
box-shadow: var(--shadow-l);
|
|
}
|
|
|
|
.hover-color-option {
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
border: 1px solid var(--background-modifier-border);
|
|
transition: transform 0.1s ease, border-color 0.2s ease, opacity 0.2s ease;
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
animation: slideIn 0.2s ease forwards;
|
|
animation-delay: calc(var(--option-index) * 0.05s);
|
|
}
|
|
|
|
.hover-color-option:hover {
|
|
transform: translateY(0) scale(1.2);
|
|
border-color: var(--text-normal);
|
|
z-index: 1;
|
|
}
|
|
|
|
/* Hover color options - match custom colors using CSS variables */
|
|
/* Using data-color-name for cleaner semantic attributes */
|
|
.hover-color-option[data-color-name="yellow"] { background-color: var(--sh-highlight-yellow, #ffd700); }
|
|
.hover-color-option[data-color-name="red"] { background-color: var(--sh-highlight-red, #ff6b6b); }
|
|
.hover-color-option[data-color-name="teal"] { background-color: var(--sh-highlight-teal, #4ecdc4); }
|
|
.hover-color-option[data-color-name="blue"] { background-color: var(--sh-highlight-blue, #45b7d1); }
|
|
.hover-color-option[data-color-name="green"] { background-color: var(--sh-highlight-green, #96ceb4); }
|
|
|
|
/* Legacy support: fallback for old data-color hex values */
|
|
/* These will be overridden by inline styles set by JavaScript */
|
|
.hover-color-option[data-color] { background-color: var(--interactive-normal); }
|
|
|
|
@keyframes slideIn {
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.highlight-quote {
|
|
color: var(--text-normal);
|
|
padding: 10px 48px 10px 15px; /* top right bottom left - right padding for copy button */
|
|
margin-bottom: 0;
|
|
border-radius: 0 6px 0 0;
|
|
cursor: pointer;
|
|
font-size: var(--sh-quote-font-size, inherit);
|
|
font-weight: var(--sh-highlight-font-weight, var(--font-light));
|
|
line-height: var(--line-height-normal);
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
.highlight-quote:hover {
|
|
background-color: var(--background-modifier-hover);
|
|
}
|
|
|
|
.highlight-actions {
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin-top: 0;
|
|
padding: 6px 15px 6px 15px;
|
|
border-top: 0.5px solid var(--background-modifier-border);
|
|
font-size: var(--sh-details-font-size, var(--font-ui-smaller));
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
.highlight-info-container {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow: visible;
|
|
}
|
|
|
|
.highlight-filename {
|
|
color: var(--text-muted) !important;
|
|
font-size: var(--sh-details-font-size, var(--font-ui-smaller));
|
|
margin-bottom: 4px;
|
|
display: block;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
order: -1; /* Ensures filename appears first */
|
|
}
|
|
|
|
.highlight-filename:hover {
|
|
color: var(--text-normal) !important;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.highlight-actions:hover .comment-toggle {
|
|
color: var(--text-normal);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.highlight-actions.no-comments {
|
|
cursor: default;
|
|
}
|
|
|
|
.highlight-actions.no-comments:hover {
|
|
background-color: transparent;
|
|
}
|
|
|
|
.comment-buttons {
|
|
display: flex;
|
|
gap: 4px;
|
|
opacity: 0;
|
|
transition: opacity 0.2s ease;
|
|
}
|
|
|
|
.highlight-item-card.selected .comment-buttons {
|
|
opacity: 1;
|
|
}
|
|
|
|
|
|
.highlight-comments {
|
|
border-top: 0.5px solid var(--background-modifier-border);
|
|
background-color: var(--background-modifier-form-field);
|
|
border-radius: 0 0 6px 6px;
|
|
}
|
|
|
|
.highlight-comment {
|
|
cursor: pointer;
|
|
color: var(--text-normal);
|
|
font-size: var(--sh-comment-font-size, var(--font-ui-smaller));
|
|
line-height: var(--line-height-normal);
|
|
padding: 6px 15px;
|
|
transition: background-color 0.15s ease, color 0.15s ease;
|
|
border-bottom: 0.5px solid var(--background-modifier-border);
|
|
}
|
|
|
|
.highlight-comment:last-child {
|
|
margin-bottom: 0;
|
|
border-radius: 0 0 6px 0;
|
|
}
|
|
|
|
.highlight-comment:hover {
|
|
background-color: var(--background-modifier-hover);
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.comment-btn {
|
|
background: transparent;
|
|
border: none;
|
|
padding: 4px;
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-muted);
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
.comment-btn:hover {
|
|
background: var(--background-modifier-hover);
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.icon-btn {
|
|
background: transparent;
|
|
border: 1px solid var(--background-modifier-border);
|
|
padding: 6px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 32px;
|
|
height: 32px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.icon-btn:hover {
|
|
background: var(--background-modifier-hover);
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.icon-btn.remove:hover {
|
|
background: var(--text-error);
|
|
color: white;
|
|
border-color: var(--text-error);
|
|
}
|
|
|
|
/* Color picker popup */
|
|
.color-picker-popup {
|
|
position: absolute;
|
|
background: var(--background-primary);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 6px;
|
|
padding: 8px;
|
|
box-shadow: var(--shadow-l);
|
|
z-index: 1000;
|
|
display: flex;
|
|
gap: 6px;
|
|
}
|
|
|
|
|
|
/* Accordion-style comment toggle */
|
|
.comment-toggle {
|
|
cursor: pointer;
|
|
transition: color 0.2s ease, text-decoration 0.2s ease;
|
|
}
|
|
|
|
.comment-toggle:hover {
|
|
color: var(--text-normal);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.info-container {
|
|
pointer-events: none;
|
|
}
|
|
|
|
.focused {
|
|
animation: highlight-flash 2s ease-out;
|
|
}
|
|
|
|
@keyframes highlight-flash {
|
|
0% { background-color: var(--interactive-accent); }
|
|
100% { background-color: transparent; }
|
|
}
|
|
|
|
/* Override menu item border-radius for tag filter dropdown - scoped to plugin context only */
|
|
.highlights-dropdown-menu .menu .menu-item {
|
|
border-radius: 0 !important;
|
|
}
|
|
|
|
/* Highlight tags display */
|
|
.highlight-tags {
|
|
padding: 6px 0 0 0;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
}
|
|
|
|
.highlight-tag {
|
|
background-color: var(--tag-background);
|
|
color: var(--tag-color);
|
|
border: 1px solid var(--tag-border-color);
|
|
border-radius: var(--tag-radius);
|
|
padding: 1px 6px;
|
|
font-size: var(--tag-size);
|
|
font-weight: var(--tag-weight);
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
line-height: 1.2;
|
|
cursor: pointer;
|
|
transition: background-color 0.15s ease, border-color 0.15s ease;
|
|
}
|
|
|
|
.highlight-tag:hover {
|
|
background-color: var(--interactive-hover);
|
|
border-color: var(--interactive-accent);
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.highlight-tag::before {
|
|
content: '#';
|
|
opacity: 0.7;
|
|
}
|
|
|
|
/* Tag filter badge */
|
|
.tag-filter-badge {
|
|
position: absolute;
|
|
top: -6px;
|
|
right: -6px;
|
|
background-color: var(--interactive-accent);
|
|
color: var(--text-on-accent);
|
|
border-radius: 10px;
|
|
min-width: 18px;
|
|
height: 18px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0 4px;
|
|
box-sizing: border-box;
|
|
pointer-events: none;
|
|
z-index: 1;
|
|
}
|
|
|
|
/* Tabs container */
|
|
.highlights-tabs-container {
|
|
display: flex;
|
|
background: transparent !important;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.highlights-tab {
|
|
flex: 1;
|
|
padding: 10px 0;
|
|
border: none !important;
|
|
background: transparent !important;
|
|
color: var(--text-muted) !important;
|
|
font-size: var(--font-ui-small);
|
|
font-family: var(--font-interface);
|
|
font-weight: var(--font-weight-normal);
|
|
cursor: pointer;
|
|
transition: color 0.2s ease;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
position: relative;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.highlights-tab:hover {
|
|
color: var(--text-normal) !important;
|
|
background-color: transparent !important;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.highlights-tab.active {
|
|
color: var(--text-normal) !important;
|
|
background-color: transparent !important;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.highlights-tab.active::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 2px;
|
|
background-color: var(--interactive-accent);
|
|
}
|
|
|
|
/* Line info styling */
|
|
.highlight-line-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.highlight-line-info span {
|
|
text-align: left;
|
|
}
|
|
|
|
.line-icon {
|
|
width: 12px;
|
|
height: 12px;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.line-icon svg {
|
|
width: 10px;
|
|
height: 10px;
|
|
}
|
|
|
|
/* Comment icon styling */
|
|
.comment-icon {
|
|
width: 12px;
|
|
height: 12px;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.comment-icon svg {
|
|
width: 10px;
|
|
height: 10px;
|
|
}
|
|
|
|
/* Collections styles */
|
|
.collections-container {
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* Add padding only when there's a grid (not for empty state) */
|
|
.collections-container:has(.collections-grid) {
|
|
padding: 12px;
|
|
}
|
|
|
|
.collections-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.collections-title {
|
|
font-size: var(--font-ui-medium);
|
|
font-weight: var(--font-weight-bold);
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.new-collection-btn {
|
|
padding: 8px 16px;
|
|
border-radius: var(--radius-s);
|
|
border: 1px solid var(--interactive-accent);
|
|
background-color: var(--interactive-accent);
|
|
color: var(--text-on-accent);
|
|
font-size: var(--font-ui-small);
|
|
font-family: var(--font-interface);
|
|
cursor: pointer;
|
|
transition: background-color 0.2s ease, border-color 0.2s ease;
|
|
}
|
|
|
|
.new-collection-btn:hover {
|
|
background-color: var(--interactive-accent-hover);
|
|
border-color: var(--interactive-accent-hover);
|
|
}
|
|
|
|
.collections-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 4px;
|
|
align-content: start;
|
|
}
|
|
|
|
/* Responsive collections grid - single column on narrow sidebars */
|
|
@container (max-width: 220px) {
|
|
.collections-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* Also handle very narrow cases */
|
|
@media (max-width: 400px) {
|
|
.collections-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.collection-card {
|
|
background: var(--background-secondary);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 8px;
|
|
padding: 6px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
height: 100px; /* Fixed height for consistent grid */
|
|
min-height: 100px; /* Ensure minimum height */
|
|
max-height: 100px; /* Prevent stretching */
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: relative;
|
|
overflow: hidden; /* Prevent content overflow */
|
|
}
|
|
|
|
.collection-card:hover {
|
|
border-color: var(--interactive-accent);
|
|
box-shadow: var(--shadow-s);
|
|
}
|
|
|
|
.collection-card:hover .collection-delete-btn {
|
|
opacity: 1;
|
|
}
|
|
|
|
.collection-name {
|
|
font-size: var(--font-ui-smaller);
|
|
font-weight: 600;
|
|
color: var(--text-normal);
|
|
margin-bottom: 2px;
|
|
padding-right: 28px; /* Add padding to account for menu button */
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
flex-shrink: 0; /* Prevent shrinking */
|
|
}
|
|
|
|
.collection-description {
|
|
font-size: var(--font-ui-smaller);
|
|
color: var(--text-muted);
|
|
line-height: var(--line-height-tight);
|
|
overflow: hidden;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2; /* Limit to 2 lines */
|
|
line-clamp: 2; /* Standard property for compatibility */
|
|
-webkit-box-orient: vertical;
|
|
margin-bottom: 8px; /* Add space before stats */
|
|
}
|
|
|
|
.collection-stats {
|
|
font-size: var(--font-ui-smaller);
|
|
color: var(--text-faint);
|
|
padding-top: 4px;
|
|
border-top: 1px solid var(--background-modifier-border);
|
|
flex-shrink: 0; /* Prevent shrinking */
|
|
margin-top: auto; /* Push to bottom */
|
|
}
|
|
|
|
.collection-delete-btn {
|
|
position: absolute;
|
|
top: 6px;
|
|
right: 6px;
|
|
width: 20px;
|
|
height: 20px;
|
|
border-radius: 50%;
|
|
background: var(--background-primary);
|
|
border: 1px solid var(--background-modifier-border);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
opacity: 0;
|
|
transition: all 0.2s ease;
|
|
z-index: 1;
|
|
}
|
|
|
|
.collection-delete-btn:hover {
|
|
background: var(--text-error);
|
|
border-color: var(--text-error);
|
|
color: white;
|
|
}
|
|
|
|
.collection-delete-btn svg {
|
|
width: 12px;
|
|
height: 12px;
|
|
}
|
|
|
|
.collection-menu-btn {
|
|
position: absolute;
|
|
top: 8px;
|
|
right: 8px;
|
|
width: 20px;
|
|
height: 20px;
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
color: var(--text-muted);
|
|
transition: all 0.2s ease;
|
|
border-radius: 4px;
|
|
opacity: 0;
|
|
}
|
|
|
|
.collection-menu-btn:hover {
|
|
color: var(--text-normal);
|
|
background-color: var(--background-modifier-hover);
|
|
}
|
|
|
|
.collection-card:hover .collection-menu-btn {
|
|
display: flex;
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Remove floating toolbar styles - functionality moved to main button bar */
|
|
|
|
/* Adjust padding for the last item in the highlights list and collections grid */
|
|
.highlights-list-area > .highlights-list:last-child,
|
|
.highlights-list-area > .collections-grid:last-child {
|
|
padding-bottom: 20px; /* Reduce padding since no floating button */
|
|
}
|
|
|
|
/* Styling for empty states in highlights-list */
|
|
.highlights-list p {
|
|
color: var(--text-faint);
|
|
text-align: center;
|
|
font-size: var(--font-ui-small);
|
|
margin-top: 20px; /* Add some top margin */
|
|
padding: 10px;
|
|
}
|
|
|
|
/* Search input container */
|
|
.highlights-search-input-container {
|
|
padding: 8px 12px;
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
background-color: var(--background-primary);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.highlights-search-input-container .highlights-search-input {
|
|
margin: 0;
|
|
background-color: var(--background-modifier-form-field);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: var(--input-radius);
|
|
color: var(--text-normal);
|
|
font-family: var(--font-ui);
|
|
font-size: var(--font-ui-small);
|
|
padding: 6px 12px;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.highlights-search-input-container .highlights-search-input:focus {
|
|
border-color: var(--background-modifier-border-focus);
|
|
box-shadow: inset 0 0 0 1px var(--background-modifier-border-focus);
|
|
outline: none;
|
|
}
|
|
|
|
.highlights-search-input-container .highlights-search-input::placeholder {
|
|
color: var(--text-faint);
|
|
}
|
|
|
|
/* Comment stat clickable styling */
|
|
.highlight-comment-stat.clickable {
|
|
cursor: pointer;
|
|
border-radius: var(--radius-s);
|
|
padding: 2px 4px;
|
|
margin: -2px -4px;
|
|
transition: background-color 0.15s ease, opacity 0.15s ease;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.highlight-comment-stat.clickable:hover {
|
|
background-color: var(--background-modifier-hover);
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Disabled comment stat styling for native comments */
|
|
.highlight-comment-stat.disabled {
|
|
cursor: not-allowed;
|
|
opacity: 0.5;
|
|
color: var(--text-faint);
|
|
}
|
|
|
|
.highlight-comment-stat.disabled .comment-icon {
|
|
color: var(--text-faint);
|
|
}
|
|
|
|
/* Collection stat clickable styling */
|
|
.highlight-collection-stat.clickable {
|
|
cursor: pointer;
|
|
border-radius: var(--radius-s);
|
|
padding: 2px 4px;
|
|
margin: -2px -4px;
|
|
transition: background-color 0.15s ease, opacity 0.15s ease;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.highlight-collection-stat.clickable:hover {
|
|
background-color: var(--background-modifier-hover);
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Copy button in quote section - appears on hover */
|
|
.highlight-quote {
|
|
position: relative;
|
|
}
|
|
|
|
.highlight-quote-copy-button {
|
|
position: absolute;
|
|
right: 12px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 20px;
|
|
height: 20px;
|
|
cursor: pointer;
|
|
opacity: 0;
|
|
transition: opacity 0.2s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.highlight-quote:hover .highlight-quote-copy-button {
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.highlight-quote-copy-button:hover {
|
|
opacity: 1 !important;
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.highlight-quote-copy-button .copy-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.highlight-quote-copy-button .copy-icon svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
/* Add Comment line styling - distinct from regular comments */
|
|
.highlight-add-comment-line {
|
|
color: var(--text-muted);
|
|
font-size: var(--font-ui-smaller);
|
|
line-height: var(--line-height-normal);
|
|
padding: 8px 15px;
|
|
cursor: pointer;
|
|
transition: background-color 0.15s ease, color 0.15s ease;
|
|
background-color: var(--background-primary-alt);
|
|
border-radius: 0 0 6px 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: left;
|
|
gap: 6px;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.highlight-add-comment-icon {
|
|
width: 14px;
|
|
height: 14px;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.highlight-add-comment-icon svg {
|
|
width: 12px;
|
|
height: 12px;
|
|
}
|
|
|
|
.highlight-add-comment-line:hover {
|
|
background-color: var(--background-modifier-hover);
|
|
color: var(--text-normal);
|
|
border-radius: 0 0 6px 0;
|
|
}
|
|
|
|
.highlight-add-comment-line:hover .highlight-add-comment-icon {
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
/* Highlights sidebar content layout */
|
|
.highlights-sidebar-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
}
|
|
|
|
/* Search input container visibility */
|
|
.highlights-search-input-container.hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
/* Collection info line styling */
|
|
.collection-info-line {
|
|
color: var(--text-muted);
|
|
font-size: var(--font-ui-smaller);
|
|
margin-bottom: 2px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
/* Collection description empty state */
|
|
.collection-description-empty {
|
|
font-style: italic;
|
|
}
|
|
|
|
/* Highlight info line styling */
|
|
.highlight-info-line {
|
|
color: var(--text-muted);
|
|
font-size: var(--sh-details-font-size, var(--font-ui-smaller));
|
|
margin-bottom: 2px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
}
|
|
|
|
.highlight-stats-section {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
flex-shrink: 1;
|
|
min-width: 0;
|
|
overflow: visible;
|
|
}
|
|
|
|
.highlight-timestamp-container {
|
|
margin-left: auto;
|
|
flex-shrink: 1;
|
|
min-width: 0;
|
|
max-width: 50%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.highlight-timestamp-info {
|
|
color: var(--text-muted);
|
|
font-size: var(--sh-details-font-size, var(--font-ui-smaller));
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
/* Dropdown menu styling */
|
|
.highlights-dropdown-menu {
|
|
position: fixed;
|
|
background: var(--background-primary);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: var(--radius-m);
|
|
box-shadow: var(--shadow-l);
|
|
z-index: 1000;
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
min-width: 200px;
|
|
}
|
|
|
|
.highlights-dropdown-menu.dropdown-positioned {
|
|
top: var(--dropdown-top);
|
|
left: var(--dropdown-left);
|
|
}
|
|
|
|
.highlights-dropdown-menu.dropdown-constrained-height {
|
|
max-height: var(--dropdown-max-height);
|
|
}
|
|
|
|
.highlights-dropdown-menu .menu-separator {
|
|
height: 1px;
|
|
background: var(--background-modifier-border);
|
|
margin: 4px 8px;
|
|
}
|
|
|
|
.highlights-dropdown-heading {
|
|
padding: 4px 12px;
|
|
font-size: var(--font-ui-smaller);
|
|
color: var(--text-muted);
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
cursor: default;
|
|
user-select: none;
|
|
}
|
|
|
|
/* Expandable dropdown items */
|
|
.dropdown-expandable-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
/* Secondary panel styling */
|
|
.highlights-dropdown-secondary {
|
|
position: fixed;
|
|
top: var(--dropdown-top);
|
|
left: var(--dropdown-left);
|
|
z-index: 9999;
|
|
min-width: 200px;
|
|
transition: top 0.15s ease-out, left 0.15s ease-out;
|
|
}
|
|
|
|
/* Corner radius for dropdown items - need !important to override existing rule */
|
|
.highlights-dropdown-menu .menu-item {
|
|
border-radius: 0 !important;
|
|
}
|
|
|
|
.highlights-dropdown-menu .menu-item.first-menu-item {
|
|
border-radius: var(--radius-m) var(--radius-m) 0 0 !important;
|
|
}
|
|
|
|
.highlights-dropdown-menu .menu-item.last-menu-item {
|
|
border-radius: 0 0 var(--radius-m) var(--radius-m) !important;
|
|
}
|
|
|
|
.highlights-dropdown-menu .menu-item.only-menu-item {
|
|
border-radius: var(--radius-m) !important;
|
|
}
|
|
|
|
.highlights-dropdown-menu .menu-item.disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
color: var(--text-faint);
|
|
}
|
|
|
|
.highlights-dropdown-menu .menu-item.disabled:hover {
|
|
background-color: transparent;
|
|
}
|
|
|
|
/* Dropdown clear item styling */
|
|
.highlights-dropdown-clear {
|
|
padding: 8px 16px;
|
|
cursor: pointer;
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
color: var(--text-muted);
|
|
font-size: var(--font-ui-small);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.highlights-dropdown-clear:hover {
|
|
background-color: var(--background-modifier-hover);
|
|
}
|
|
|
|
/* Dropdown item styling */
|
|
.highlights-dropdown-item {
|
|
padding: 8px 16px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: var(--font-ui-small);
|
|
user-select: none;
|
|
}
|
|
|
|
.highlights-dropdown-item:hover {
|
|
background-color: var(--background-modifier-hover);
|
|
}
|
|
|
|
.highlights-dropdown-item.disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
color: var(--text-faint);
|
|
}
|
|
|
|
.highlights-dropdown-item.disabled:hover {
|
|
background-color: transparent;
|
|
}
|
|
|
|
/* Dropdown check styling */
|
|
.highlights-dropdown-check {
|
|
width: 16px;
|
|
height: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* Dropdown empty state */
|
|
.highlights-dropdown-empty {
|
|
padding: 8px 16px;
|
|
color: var(--text-faint);
|
|
font-size: var(--font-ui-small);
|
|
font-style: italic;
|
|
}
|
|
|
|
/* Collection navigation back button styling */
|
|
.collection-nav-back {
|
|
background-color: var(--interactive-accent) !important;
|
|
color: var(--text-on-accent) !important;
|
|
border-color: var(--interactive-accent) !important;
|
|
}
|
|
|
|
/* Disabled button styling */
|
|
.highlights-group-button.disabled {
|
|
opacity: 0.5 !important;
|
|
pointer-events: none !important;
|
|
}
|
|
|
|
.highlights-search-input.disabled {
|
|
opacity: 0.5 !important;
|
|
pointer-events: none !important;
|
|
}
|
|
|
|
/* Pagination controls for "All Notes" performance */
|
|
.pagination-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
padding: 15px 10px;
|
|
margin-top: 10px;
|
|
border-top: 1px solid var(--background-modifier-border);
|
|
font-size: var(--font-ui-smaller);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.pagination-btn {
|
|
padding: 6px 12px;
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 4px;
|
|
background: var(--background-secondary);
|
|
color: var(--text-normal);
|
|
cursor: pointer;
|
|
font-size: var(--font-ui-smaller);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.pagination-btn:hover:not(:disabled) {
|
|
background: var(--background-modifier-hover);
|
|
border-color: var(--background-modifier-border-hover);
|
|
}
|
|
|
|
.pagination-btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.pagination-info {
|
|
font-size: var(--font-ui-smaller);
|
|
color: var(--text-muted);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Using Obsidian's built-in .clickable-icon class for buttons */
|
|
|
|
.pagination-info-compact {
|
|
font-size: var(--font-ui-smaller);
|
|
font-weight: 500;
|
|
color: var(--text-muted);
|
|
min-width: 40px;
|
|
text-align: center;
|
|
}
|
|
|
|
/* ==================== TASKS TAB STYLES ==================== */
|
|
|
|
/* Task count flair */
|
|
.tree-item-flair {
|
|
font-size: var(--font-ui-smaller);
|
|
color: var(--text-faint);
|
|
line-height: 1;
|
|
border-radius: var(--radius-s);
|
|
margin-left: auto;
|
|
}
|
|
|
|
/* Task item card - individual task with var(--radius-s) hover rectangle */
|
|
.task-item-card {
|
|
background: transparent;
|
|
border: none;
|
|
border-radius: var(--radius-s);
|
|
padding: 0;
|
|
margin-bottom: 2px;
|
|
box-shadow: none;
|
|
font-size: var(--font-ui-smaller);
|
|
font-weight: var(--font-light);
|
|
transition: background-color 0.15s ease-in-out;
|
|
position: relative;
|
|
}
|
|
|
|
.task-item-card:hover {
|
|
background: var(--background-modifier-hover);
|
|
}
|
|
|
|
.task-item-card.task-completed {
|
|
opacity: 0.6;
|
|
}
|
|
|
|
/* Flash animation for recently moved tasks */
|
|
@keyframes task-flash {
|
|
0% {
|
|
background: var(--background-modifier-hover);
|
|
}
|
|
50% {
|
|
background: var(--background-modifier-hover);
|
|
}
|
|
100% {
|
|
background: transparent;
|
|
}
|
|
}
|
|
|
|
.task-item-card.task-flash {
|
|
animation: task-flash 0.6s ease-out;
|
|
}
|
|
|
|
/* Grouped tasks - merge into one card (disabled - each task now individual) */
|
|
.task-group-container {
|
|
background: transparent;
|
|
border-radius: 0;
|
|
box-shadow: none;
|
|
margin-bottom: 0;
|
|
overflow: visible;
|
|
}
|
|
|
|
.task-group-container .task-item-card {
|
|
margin-bottom: 2px;
|
|
border-radius: var(--radius-s);
|
|
box-shadow: none;
|
|
background: transparent;
|
|
transition: background-color 0.15s ease-in-out;
|
|
}
|
|
|
|
.task-group-container .task-item-card:hover {
|
|
background: var(--background-modifier-hover);
|
|
}
|
|
|
|
.task-group-container .task-item-card:first-child .task-quote {
|
|
border-radius: 16px;
|
|
}
|
|
|
|
.task-group-container .task-item-card:last-child .task-quote {
|
|
border-radius: 16px;
|
|
}
|
|
|
|
.task-group-container .task-item-card:first-child:last-child .task-quote {
|
|
border-radius: 16px;
|
|
}
|
|
|
|
/* Task quote section - uses var(--radius-s) for individual task style */
|
|
.task-quote {
|
|
color: var(--text-normal);
|
|
padding: 4px 72px 4px 8px; /* top right bottom left - right padding for calendar and flag buttons */
|
|
margin-bottom: 0;
|
|
border-radius: var(--radius-s);
|
|
cursor: pointer;
|
|
font-size: var(--sh-quote-font-size, inherit);
|
|
font-weight: var(--sh-task-font-weight, var(--font-light));
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
transition: background-color 0.15s ease-in-out;
|
|
}
|
|
|
|
.task-quote:hover {
|
|
background-color: transparent;
|
|
}
|
|
|
|
/* Hover border radius for grouped tasks */
|
|
.task-group-container .task-quote {
|
|
border-radius: var(--radius-s);
|
|
}
|
|
|
|
.task-group-container .task-item-card:first-child .task-quote {
|
|
border-radius: var(--radius-s);
|
|
}
|
|
|
|
.task-group-container .task-item-card:last-child .task-quote {
|
|
border-radius: var(--radius-s);
|
|
}
|
|
|
|
.task-group-container .task-item-card:first-child:last-child .task-quote {
|
|
border-radius: var(--radius-s);
|
|
}
|
|
|
|
.task-item-card.task-completed .task-quote {
|
|
text-decoration: line-through;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Task checkbox */
|
|
.task-checkbox-container {
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
align-self: flex-start;
|
|
}
|
|
|
|
.task-checkbox {
|
|
width: 20px;
|
|
height: 20px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-muted);
|
|
transition: color 0.2s ease, transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
|
|
}
|
|
|
|
.task-checkbox:hover {
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
/* Flagged task checkbox - yellow outline */
|
|
.task-checkbox-flagged {
|
|
color: #fbbf24 !important; /* Yellow color for flagged tasks */
|
|
}
|
|
|
|
.task-checkbox-flagged:hover {
|
|
color: #f59e0b !important; /* Darker yellow on hover */
|
|
}
|
|
|
|
/* Priority checkbox colors */
|
|
.task-checkbox-priority-1 {
|
|
color: #ef4444 !important; /* Red for Priority 1 (High) */
|
|
}
|
|
|
|
.task-checkbox-priority-1:hover {
|
|
color: #dc2626 !important; /* Darker red on hover */
|
|
}
|
|
|
|
.task-checkbox-priority-2 {
|
|
color: #f59e0b !important; /* Yellow for Priority 2 (Medium) */
|
|
}
|
|
|
|
.task-checkbox-priority-2:hover {
|
|
color: #d97706 !important; /* Darker yellow on hover */
|
|
}
|
|
|
|
.task-checkbox-priority-3 {
|
|
color: #3b82f6 !important; /* Blue for Priority 3 (Low) */
|
|
}
|
|
|
|
.task-checkbox-priority-3:hover {
|
|
color: #2563eb !important; /* Darker blue on hover */
|
|
}
|
|
|
|
.task-checkbox svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
/* Checkbox animation when checking */
|
|
.task-checkbox.checking {
|
|
animation: checkboxBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
|
|
}
|
|
|
|
/* Checkbox animation when unchecking */
|
|
.task-checkbox.unchecking {
|
|
animation: checkboxPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
}
|
|
|
|
@keyframes checkboxBounce {
|
|
0% {
|
|
transform: scale(1);
|
|
}
|
|
30% {
|
|
transform: scale(0.7);
|
|
}
|
|
50% {
|
|
transform: scale(1.3);
|
|
}
|
|
70% {
|
|
transform: scale(0.95);
|
|
}
|
|
85% {
|
|
transform: scale(1.05);
|
|
}
|
|
100% {
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
|
|
@keyframes checkboxPop {
|
|
0% {
|
|
transform: scale(1);
|
|
}
|
|
30% {
|
|
transform: scale(0.7);
|
|
}
|
|
60% {
|
|
transform: scale(1.2);
|
|
}
|
|
80% {
|
|
transform: scale(0.98);
|
|
}
|
|
100% {
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
|
|
.task-text-content {
|
|
flex: 1;
|
|
min-width: 0;
|
|
word-wrap: break-word;
|
|
overflow-wrap: break-word;
|
|
overflow: visible;
|
|
font-weight: inherit; /* Inherit font-weight from parent .task-quote */
|
|
}
|
|
|
|
/* Make task text div display inline */
|
|
.task-text-content > div:not(.task-context):not(.task-date-badge):not(.task-filename-inline) {
|
|
display: inline;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
/* Task context lines */
|
|
.task-context {
|
|
font-size: var(--font-ui-smaller);
|
|
color: var(--text-muted);
|
|
font-style: italic;
|
|
line-height: var(--line-height-tight);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.task-context-line {
|
|
padding-left: 8px;
|
|
border-left: 2px solid var(--background-modifier-border);
|
|
margin: 2px 0;
|
|
}
|
|
|
|
/* Inline filename (shown below context in date grouping) */
|
|
.task-filename-inline {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
gap: 4px;
|
|
margin-top: 6px;
|
|
font-size: var(--font-ui-smaller);
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
transition: color 0.2s ease;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.task-filename-inline:hover {
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.task-filename-icon {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
opacity: 0.7;
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
.task-filename-icon svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
.task-filename-text {
|
|
font-size: var(--font-ui-smaller);
|
|
}
|
|
|
|
/* Parent task info for sub-tasks rendered as standalone */
|
|
.task-parent-separator {
|
|
color: var(--text-faint);
|
|
font-size: var(--font-ui-smaller);
|
|
}
|
|
|
|
.task-parent-icon {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
opacity: 0.6;
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
.task-parent-icon svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
.task-parent-text {
|
|
font-size: var(--font-ui-smaller);
|
|
color: var(--text-muted);
|
|
font-style: italic;
|
|
max-width: 200px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Task actions - hidden for individual task style */
|
|
.task-actions {
|
|
display: none;
|
|
flex-direction: column;
|
|
margin-top: 0;
|
|
padding: 6px 15px 6px 15px;
|
|
border-top: none;
|
|
font-size: var(--sh-details-font-size, var(--font-ui-smaller));
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
.task-info-container {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
flex: 1;
|
|
min-width: 0;
|
|
overflow: visible;
|
|
}
|
|
|
|
.task-info-line {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.task-stats-section {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.task-line-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.task-line-info .line-icon {
|
|
width: 12px;
|
|
height: 12px;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.task-line-info .line-icon svg {
|
|
width: 10px;
|
|
height: 10px;
|
|
}
|
|
|
|
.task-filename {
|
|
color: var(--text-muted) !important;
|
|
font-size: var(--sh-details-font-size, var(--font-ui-smaller));
|
|
margin-bottom: 4px;
|
|
display: block;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
}
|
|
|
|
.task-filename:hover {
|
|
color: var(--text-normal) !important;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Empty state - shared between tasks and highlights */
|
|
.task-empty-state,
|
|
.highlight-empty-state {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
padding: 20px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.task-empty-icon,
|
|
.highlight-empty-icon {
|
|
display: none;
|
|
}
|
|
|
|
.task-empty-text,
|
|
.highlight-empty-text {
|
|
font-size: var(--font-ui-medium);
|
|
text-align: center;
|
|
}
|
|
|
|
/* Loading state */
|
|
.task-loading {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 40px 20px;
|
|
color: var(--text-muted);
|
|
font-size: var(--font-ui-medium);
|
|
}
|
|
|
|
/* Search match highlighting in tasks */
|
|
.task-search-match {
|
|
background-color: var(--text-highlight-bg);
|
|
color: var(--text-normal);
|
|
padding: 2px 4px;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
/* Task progress circle in group headers */
|
|
.task-progress-circle-container {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 20px;
|
|
height: 20px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.task-progress-circle-container svg {
|
|
display: block;
|
|
}
|
|
|
|
.task-progress-circle {
|
|
transition: stroke-dashoffset 0.3s ease;
|
|
}
|
|
|
|
/* Completed group checkmark */
|
|
.task-progress-circle-container.task-progress-complete {
|
|
color: var(--interactive-accent);
|
|
}
|
|
|
|
.task-progress-circle-container.task-progress-complete svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
/* Adjust group header to align with task checkboxes */
|
|
.highlight-group-header > span:first-child {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
width: 100%;
|
|
}
|
|
|
|
/* Task section headers (sub-groups) */
|
|
.task-section-header {
|
|
font-size: var(--font-ui-smaller);
|
|
font-weight: 500;
|
|
color: var(--text-normal);
|
|
padding: 4px 8px;
|
|
margin: 16px 0 10px 0;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.3px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
cursor: pointer;
|
|
transition: color 0.2s ease, opacity 0.2s ease;
|
|
opacity: 1;
|
|
}
|
|
|
|
.task-section-header:hover {
|
|
color: var(--text-normal);
|
|
opacity: 1;
|
|
}
|
|
|
|
.task-section-header.collapsed {
|
|
color: var(--text-muted);
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.task-section-header.collapsed:hover {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
/* Ellipsis indicator for collapsed sections */
|
|
.task-section-ellipsis {
|
|
margin-left: auto;
|
|
font-weight: 400;
|
|
opacity: 0;
|
|
transition: opacity 0.2s ease;
|
|
}
|
|
|
|
.task-section-header.collapsed .task-section-ellipsis {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Task secondary group headers (tag/date/flagged grouping) */
|
|
/* COMMENTED OUT FOR NOW
|
|
.task-secondary-group-header {
|
|
font-size: var(--font-ui-smaller);
|
|
font-weight: 500;
|
|
color: var(--text-muted);
|
|
padding: 4px 8px;
|
|
margin: 12px 0 8px 0;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.3px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
cursor: pointer;
|
|
transition: color 0.2s ease, opacity 0.2s ease;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.task-secondary-group-header:hover {
|
|
color: var(--text-normal);
|
|
opacity: 1;
|
|
}
|
|
*/
|
|
|
|
/* First section header should be closer to main group header */
|
|
.highlight-group-header + .task-section-header {
|
|
margin-top: 6px;
|
|
}
|
|
|
|
/* Adjust spacing for group containers after group headers */
|
|
.highlight-group-header + .task-group-container {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
/* Adjust spacing for highlight items after group headers */
|
|
.highlight-group-header + .highlight-item-card {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
/* Remove border-bottom from group headers in highlights view (not tasks) to avoid double divider */
|
|
.highlights-list:not(.tasks-container):not(.collections-container) .highlight-group-header {
|
|
border-bottom: none;
|
|
}
|
|
|
|
/* Adjust spacing for group containers after section headers */
|
|
.task-section-header + .task-group-container {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
/* Task date badge (on left side) */
|
|
.task-date-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 2px 8px;
|
|
margin-right: 6px;
|
|
font-size: var(--font-ui-smaller);
|
|
font-weight: var(--font-weight-semibold);
|
|
border-radius: 4px;
|
|
background-color: var(--interactive-accent);
|
|
color: var(--text-on-accent);
|
|
flex-shrink: 0;
|
|
white-space: nowrap;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
/* Task flag button (on right side, appears on hover) */
|
|
.task-flag-button {
|
|
position: absolute;
|
|
right: 12px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 20px;
|
|
height: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
color: var(--text-muted);
|
|
opacity: 0;
|
|
transition: opacity 0.2s ease, color 0.2s ease;
|
|
border-radius: var(--radius-s);
|
|
}
|
|
|
|
.task-flag-button svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.task-quote:hover .task-flag-button {
|
|
opacity: 1;
|
|
}
|
|
|
|
.task-flag-button:hover {
|
|
color: var(--text-normal);
|
|
background-color: var(--background-modifier-hover);
|
|
}
|
|
|
|
/* Task calendar button (on right side next to flag, appears on hover) */
|
|
.task-calendar-button {
|
|
position: absolute;
|
|
right: 40px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 20px;
|
|
height: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
color: var(--text-muted);
|
|
opacity: 0;
|
|
transition: opacity 0.2s ease, color 0.2s ease;
|
|
border-radius: var(--radius-s);
|
|
}
|
|
|
|
.task-calendar-button svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.task-quote:hover .task-calendar-button {
|
|
opacity: 1;
|
|
}
|
|
|
|
.task-calendar-button:hover {
|
|
color: var(--text-normal);
|
|
background-color: var(--background-modifier-hover);
|
|
}
|
|
|
|
/* Task tags - ensure they display inline and wrap properly */
|
|
.task-text-content .cm-hashtag {
|
|
display: inline;
|
|
white-space: normal;
|
|
overflow: visible;
|
|
}
|
|
|
|
/* Highlight tags that match search */
|
|
.task-text-content .task-search-match-tag {
|
|
background-color: var(--text-highlight-bg);
|
|
}
|
|
|
|
/* Search match highlighting */
|
|
.task-search-match {
|
|
background-color: var(--text-highlight-bg);
|
|
color: var(--text-normal);
|
|
padding: 1px 2px;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
/* Date input modal styles */
|
|
.date-input-container {
|
|
margin: 20px 0;
|
|
}
|
|
|
|
.date-input-field {
|
|
width: 100%;
|
|
padding: 8px 12px;
|
|
font-size: var(--font-ui-medium);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 4px;
|
|
background-color: var(--background-primary);
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.date-input-field:focus {
|
|
outline: none;
|
|
border-color: var(--interactive-accent);
|
|
}
|
|
|
|
.date-input-field.has-error {
|
|
border-color: var(--text-error);
|
|
}
|
|
|
|
.date-input-error {
|
|
margin-top: 8px;
|
|
color: var(--text-error);
|
|
font-size: var(--font-ui-smaller);
|
|
}
|
|
|
|
/* Date suggestion items (rendered within Obsidian's native suggestion container) */
|
|
.date-suggestion-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
width: 100%;
|
|
}
|
|
|
|
.date-suggestion-label {
|
|
color: var(--text-normal);
|
|
font-size: var(--font-ui-medium);
|
|
}
|
|
|
|
.date-suggestion-date {
|
|
color: var(--text-muted);
|
|
font-size: var(--font-ui-small);
|
|
margin-left: 12px;
|
|
} |