Some checks failed
CI/CD / detect-changes (pull_request) Successful in 4s
CI/CD / test-frontend (pull_request) Successful in 6s
CI/CD / build-and-deploy (pull_request) Has been cancelled
CI/CD / test-sqlite (pull_request) Has been cancelled
CI/CD / test-go-pg (pull_request) Has been cancelled
Add spacing token scale (--sp-1 through --sp-12, 4px grid) and tablet breakpoint (max-width: 1024px). Migrate all kernel CSS and 12 in-tree extension packages from hardcoded padding/margin/gap to design tokens. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
796 lines
20 KiB
CSS
796 lines
20 KiB
CSS
/* ── Notes Surface Styles ─────────────────── */
|
|
|
|
.ext-notes-app {
|
|
display: flex;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* ── Sidebar ─────────────────────────────── */
|
|
.ext-notes-sidebar {
|
|
width: 280px;
|
|
min-width: 220px;
|
|
border-right: 1px solid var(--border);
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--bg-raised);
|
|
flex-shrink: 0;
|
|
}
|
|
.ext-notes-sidebar__header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--sp-2);
|
|
padding: var(--sp-3) var(--sp-4);
|
|
border-bottom: 1px solid var(--border);
|
|
flex-shrink: 0;
|
|
}
|
|
.ext-notes-sidebar__title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
flex: 1;
|
|
}
|
|
.ext-notes-sidebar__count {
|
|
font-size: 12px;
|
|
color: var(--text-3);
|
|
}
|
|
.ext-notes-sidebar__actions {
|
|
display: flex;
|
|
gap: var(--sp-1);
|
|
}
|
|
|
|
/* ── Folder Tree ────────────────────────── */
|
|
.ext-notes-folder-tree {
|
|
padding: var(--sp-1) 0;
|
|
border-bottom: 1px solid var(--border);
|
|
flex-shrink: 0;
|
|
max-height: 40%;
|
|
overflow-y: auto;
|
|
}
|
|
.ext-notes-folder-tree__item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--sp-1);
|
|
padding: 5px var(--sp-3);
|
|
font-size: 13px;
|
|
color: var(--text-2);
|
|
cursor: pointer;
|
|
border-radius: var(--radius);
|
|
margin: 1px var(--sp-2);
|
|
transition: var(--transition);
|
|
user-select: none;
|
|
}
|
|
.ext-notes-folder-tree__item:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text);
|
|
}
|
|
.ext-notes-folder-tree__item--active {
|
|
background: var(--bg-active);
|
|
color: var(--text);
|
|
font-weight: 500;
|
|
}
|
|
.ext-notes-folder-tree__toggle {
|
|
width: 14px;
|
|
font-size: 9px;
|
|
text-align: center;
|
|
flex-shrink: 0;
|
|
color: var(--text-3);
|
|
}
|
|
.ext-notes-folder-tree__icon {
|
|
font-size: 13px;
|
|
flex-shrink: 0;
|
|
}
|
|
.ext-notes-folder-tree__name {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
flex: 1;
|
|
}
|
|
.ext-notes-folder-tree__edit {
|
|
flex: 1;
|
|
font-size: 13px;
|
|
padding: 1px var(--sp-1);
|
|
border: 1px solid var(--accent);
|
|
border-radius: 3px;
|
|
background: var(--bg-surface);
|
|
color: var(--text);
|
|
font-family: var(--font);
|
|
outline: none;
|
|
}
|
|
.ext-notes-folder-tree__add {
|
|
padding: var(--sp-2) var(--sp-3);
|
|
font-size: 12px;
|
|
color: var(--text-3);
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
}
|
|
.ext-notes-folder-tree__add:hover {
|
|
color: var(--accent);
|
|
}
|
|
|
|
/* ── Search ──────────────────────────────── */
|
|
.ext-notes-search {
|
|
padding: var(--sp-2) var(--sp-4);
|
|
flex-shrink: 0;
|
|
}
|
|
.ext-notes-search input {
|
|
width: 100%;
|
|
padding: var(--sp-2) var(--sp-3);
|
|
font-size: 13px;
|
|
background: var(--bg-surface);
|
|
color: var(--text);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
font-family: var(--font);
|
|
}
|
|
.ext-notes-search input:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
}
|
|
.ext-notes-search input::placeholder {
|
|
color: var(--text-3);
|
|
}
|
|
|
|
/* ── Note List ───────────────────────────── */
|
|
.ext-notes-list {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: var(--sp-1) var(--sp-2);
|
|
}
|
|
.ext-notes-list__empty {
|
|
padding: var(--sp-10) var(--sp-4);
|
|
text-align: center;
|
|
color: var(--text-3);
|
|
font-size: 13px;
|
|
}
|
|
.ext-notes-list__loading {
|
|
padding: var(--sp-10) 0;
|
|
display: flex;
|
|
justify-content: center;
|
|
color: var(--text-3);
|
|
}
|
|
|
|
/* ── Note Card (sidebar item) ────────────── */
|
|
.ext-notes-note-card {
|
|
padding: var(--sp-3) var(--sp-3);
|
|
border-radius: var(--radius);
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
margin-bottom: 2px;
|
|
}
|
|
.ext-notes-note-card:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
.ext-notes-note-card--active {
|
|
background: var(--bg-active);
|
|
}
|
|
.ext-notes-note-card__title {
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--text);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--sp-2);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.ext-notes-note-card__pin {
|
|
font-size: 11px;
|
|
flex-shrink: 0;
|
|
}
|
|
.ext-notes-note-card__snippet {
|
|
font-size: 12px;
|
|
color: var(--text-3);
|
|
margin-top: 3px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
line-height: 1.4;
|
|
}
|
|
.ext-notes-note-card__date {
|
|
font-size: 11px;
|
|
color: var(--text-3);
|
|
margin-top: 3px;
|
|
}
|
|
|
|
/* ── Editor Pane ─────────────────────────── */
|
|
.ext-notes-editor {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
}
|
|
.ext-notes-editor__empty {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-3);
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* ── Editor Header ───────────────────────── */
|
|
.ext-notes-editor__header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--sp-2);
|
|
padding: var(--sp-3) var(--sp-5);
|
|
border-bottom: 1px solid var(--border);
|
|
flex-shrink: 0;
|
|
}
|
|
.ext-notes-editor__title-input {
|
|
flex: 1;
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: var(--text);
|
|
background: transparent;
|
|
border: none;
|
|
outline: none;
|
|
padding: var(--sp-1) 0;
|
|
font-family: var(--font);
|
|
}
|
|
.ext-notes-editor__title-input::placeholder {
|
|
color: var(--text-3);
|
|
}
|
|
.ext-notes-editor__actions {
|
|
display: flex;
|
|
gap: var(--sp-2);
|
|
align-items: center;
|
|
}
|
|
|
|
/* ── Folder select in editor ────────────── */
|
|
.ext-notes-editor__folder-select {
|
|
font-size: 12px;
|
|
padding: 3px var(--sp-2);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
background: var(--bg-raised);
|
|
color: var(--text-2);
|
|
font-family: var(--font);
|
|
cursor: pointer;
|
|
max-width: 140px;
|
|
}
|
|
.ext-notes-editor__folder-select:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
/* ── Editor Content (body + outline wrapper) */
|
|
.ext-notes-editor__content {
|
|
flex: 1;
|
|
display: flex;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* ── Editor Body ─────────────────────────── */
|
|
.ext-notes-editor__body {
|
|
flex: 1;
|
|
display: flex;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
}
|
|
.ext-notes-editor__body--split {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
}
|
|
.ext-notes-editor__body--split .ext-notes-preview {
|
|
border-left: 1px solid var(--border);
|
|
}
|
|
.ext-notes-editor__textarea {
|
|
flex: 1;
|
|
resize: none;
|
|
padding: var(--sp-5);
|
|
font-size: 14px;
|
|
line-height: 1.6;
|
|
color: var(--text);
|
|
background: var(--bg-surface);
|
|
border: none;
|
|
outline: none;
|
|
font-family: var(--mono);
|
|
tab-size: 2;
|
|
}
|
|
.ext-notes-editor__textarea::placeholder {
|
|
color: var(--text-3);
|
|
}
|
|
|
|
/* ── CodeMirror 6 container ─────────────── */
|
|
.ext-notes-editor__cm {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
}
|
|
.ext-notes-editor__cm .cm-editor {
|
|
height: 100%;
|
|
max-height: none;
|
|
}
|
|
.ext-notes-editor__cm .cm-scroller {
|
|
overflow: auto;
|
|
padding: var(--sp-3) var(--sp-5);
|
|
}
|
|
|
|
/* ── Preview ─────────────────────────────── */
|
|
.ext-notes-preview {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: var(--sp-5);
|
|
border-left: 1px solid var(--border);
|
|
background: var(--bg-surface);
|
|
}
|
|
.ext-notes-preview h1 { font-size: 24px; font-weight: 700; color: var(--text); margin: 0 0 var(--sp-3); }
|
|
.ext-notes-preview h2 { font-size: 20px; font-weight: 600; color: var(--text); margin: var(--sp-5) 0 var(--sp-2); }
|
|
.ext-notes-preview h3 { font-size: 16px; font-weight: 600; color: var(--text); margin: var(--sp-4) 0 var(--sp-2); }
|
|
.ext-notes-preview p { font-size: 14px; color: var(--text); line-height: 1.7; margin: 0 0 var(--sp-3); }
|
|
.ext-notes-preview ul, .ext-notes-preview ol { padding-left: var(--sp-6); margin: 0 0 var(--sp-3); color: var(--text); font-size: 14px; line-height: 1.7; }
|
|
.ext-notes-preview li { margin-bottom: 2px; }
|
|
.ext-notes-preview code {
|
|
font-family: var(--mono);
|
|
font-size: 13px;
|
|
background: var(--bg-raised);
|
|
padding: 2px var(--sp-2);
|
|
border-radius: 3px;
|
|
color: var(--accent);
|
|
}
|
|
.ext-notes-preview pre {
|
|
background: var(--bg-raised);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: var(--sp-4);
|
|
overflow-x: auto;
|
|
margin: 0 0 var(--sp-3);
|
|
}
|
|
.ext-notes-preview pre code {
|
|
background: none;
|
|
padding: 0;
|
|
color: var(--text);
|
|
font-size: 13px;
|
|
}
|
|
.ext-notes-preview blockquote {
|
|
border-left: 3px solid var(--accent);
|
|
margin: 0 0 var(--sp-3);
|
|
padding: var(--sp-1) var(--sp-4);
|
|
color: var(--text-2);
|
|
}
|
|
.ext-notes-preview a { color: var(--accent); text-decoration: none; }
|
|
.ext-notes-preview a:hover { text-decoration: underline; }
|
|
.ext-notes-preview hr {
|
|
border: none;
|
|
border-top: 1px solid var(--border);
|
|
margin: var(--sp-4) 0;
|
|
}
|
|
.ext-notes-preview strong { font-weight: 600; }
|
|
.ext-notes-preview em { font-style: italic; }
|
|
|
|
/* ── Toggle button ───────────────────────── */
|
|
.ext-notes-toggle {
|
|
padding: var(--sp-1) var(--sp-3);
|
|
font-size: 12px;
|
|
border: 1px solid var(--border);
|
|
background: var(--bg-raised);
|
|
color: var(--text-2);
|
|
border-radius: var(--radius);
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
}
|
|
.ext-notes-toggle:hover { background: var(--bg-hover); color: var(--text); }
|
|
.ext-notes-toggle--active { background: var(--accent); color: #fff; border-color: var(--accent); }
|
|
|
|
/* ── Inline buttons ──────────────────────── */
|
|
.ext-notes-btn {
|
|
border: none;
|
|
background: var(--bg-raised);
|
|
color: var(--text-2);
|
|
cursor: pointer;
|
|
border-radius: var(--radius);
|
|
transition: var(--transition);
|
|
padding: var(--sp-1) var(--sp-3);
|
|
font-size: 13px;
|
|
}
|
|
.ext-notes-btn:hover { background: var(--bg-hover); color: var(--text); }
|
|
.ext-notes-btn--danger:hover { background: var(--danger-dim); color: var(--danger); }
|
|
.ext-notes-btn--accent { background: var(--accent); color: #fff; }
|
|
.ext-notes-btn--accent:hover { opacity: 0.9; color: #fff; }
|
|
|
|
/* ── Saved indicator ─────────────────────── */
|
|
.ext-notes-saved {
|
|
font-size: 12px;
|
|
color: var(--text-3);
|
|
padding: 2px var(--sp-2);
|
|
}
|
|
.ext-notes-saved--dirty {
|
|
color: var(--warning);
|
|
}
|
|
|
|
/* ── Tag Pills (shared) ─────────────────── */
|
|
.ext-notes-tag-pill {
|
|
display: inline-block;
|
|
padding: 1px var(--sp-2);
|
|
font-size: 11px;
|
|
background: var(--bg-raised);
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
color: var(--text-2);
|
|
margin: 2px 2px;
|
|
white-space: nowrap;
|
|
cursor: pointer;
|
|
line-height: 1.6;
|
|
transition: var(--transition);
|
|
}
|
|
.ext-notes-tag-pill:hover { background: var(--bg-hover); color: var(--text); }
|
|
.ext-notes-tag-pill--active { background: var(--accent); color: #fff; border-color: var(--accent); }
|
|
.ext-notes-tag-pill__remove {
|
|
margin-left: var(--sp-1);
|
|
font-size: 10px;
|
|
opacity: 0.6;
|
|
cursor: pointer;
|
|
}
|
|
.ext-notes-tag-pill__remove:hover { opacity: 1; }
|
|
|
|
/* ── Tag Filter (sidebar) ──────────────── */
|
|
.ext-notes-tag-filter {
|
|
padding: var(--sp-2) var(--sp-4) var(--sp-1);
|
|
border-bottom: 1px solid var(--border);
|
|
flex-shrink: 0;
|
|
}
|
|
.ext-notes-tag-filter__label {
|
|
font-size: 11px;
|
|
color: var(--text-3);
|
|
margin-bottom: 3px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
.ext-notes-tag-filter__clear {
|
|
font-size: 10px;
|
|
color: var(--accent);
|
|
cursor: pointer;
|
|
background: none;
|
|
border: none;
|
|
padding: 0;
|
|
font-family: var(--font);
|
|
}
|
|
.ext-notes-tag-filter__clear:hover { text-decoration: underline; }
|
|
.ext-notes-tag-filter__pills {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 3px;
|
|
max-height: 60px;
|
|
overflow-y: auto;
|
|
}
|
|
.ext-notes-tag-filter__pills .ext-notes-tag-pill { font-size: 10px; padding: 0 var(--sp-2); }
|
|
|
|
/* ── Tag Input (editor) ────────────────── */
|
|
.ext-notes-tag-input {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--sp-1);
|
|
align-items: center;
|
|
padding: var(--sp-1) var(--sp-5) var(--sp-2);
|
|
border-bottom: 1px solid var(--border);
|
|
position: relative;
|
|
}
|
|
.ext-notes-tag-input__field {
|
|
border: none;
|
|
outline: none;
|
|
font-size: 12px;
|
|
background: transparent;
|
|
color: var(--text);
|
|
min-width: 80px;
|
|
flex: 1;
|
|
padding: 2px 0;
|
|
font-family: var(--font);
|
|
}
|
|
.ext-notes-tag-input__field::placeholder { color: var(--text-3); }
|
|
.ext-notes-tag-input .ext-notes-tag-pill { font-size: 11px; }
|
|
|
|
/* ── Tag Autocomplete ──────────────────── */
|
|
.ext-notes-tag-autocomplete {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: var(--sp-5);
|
|
background: var(--bg-surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
max-height: 120px;
|
|
overflow-y: auto;
|
|
z-index: 10;
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
|
|
min-width: 140px;
|
|
}
|
|
.ext-notes-tag-autocomplete__item {
|
|
padding: var(--sp-1) var(--sp-3);
|
|
font-size: 12px;
|
|
cursor: pointer;
|
|
color: var(--text);
|
|
}
|
|
.ext-notes-tag-autocomplete__item:hover { background: var(--bg-hover); }
|
|
|
|
/* ── Note Card Tags ────────────────────── */
|
|
.ext-notes-note-card__tags {
|
|
display: flex;
|
|
gap: 3px;
|
|
margin-top: 3px;
|
|
overflow: hidden;
|
|
}
|
|
.ext-notes-note-card__tags .ext-notes-tag-pill { font-size: 10px; padding: 0 var(--sp-2); cursor: default; }
|
|
.ext-notes-note-card__tags .ext-notes-tag-pill--overflow {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-3);
|
|
padding: 0 2px;
|
|
cursor: default;
|
|
}
|
|
|
|
/* ── Folder Context Menu ───────────────── */
|
|
.ext-notes-folder-context-menu {
|
|
position: fixed;
|
|
z-index: 100;
|
|
background: var(--bg-surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
box-shadow: 0 4px 16px rgba(0,0,0,0.2);
|
|
min-width: 150px;
|
|
padding: var(--sp-1) 0;
|
|
}
|
|
.ext-notes-folder-context-menu__item {
|
|
padding: var(--sp-2) var(--sp-4);
|
|
font-size: 13px;
|
|
color: var(--text);
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
}
|
|
.ext-notes-folder-context-menu__item:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
.ext-notes-folder-context-menu__item--danger {
|
|
color: var(--danger);
|
|
}
|
|
.ext-notes-folder-context-menu__item--danger:hover {
|
|
background: var(--danger-dim);
|
|
}
|
|
|
|
/* ── Drag and Drop ─────────────────────── */
|
|
.ext-notes-note-card--dragging { opacity: 0.4; }
|
|
.ext-notes-folder-tree__item--drop-target {
|
|
background: color-mix(in srgb, var(--accent) 10%, transparent) !important;
|
|
outline: 2px dashed var(--accent);
|
|
outline-offset: -2px;
|
|
}
|
|
|
|
/* ── Wikilinks ──────────────────────────── */
|
|
.ext-notes-wikilink {
|
|
color: var(--accent);
|
|
text-decoration: none;
|
|
border-bottom: 1px dashed var(--accent);
|
|
cursor: pointer;
|
|
}
|
|
.ext-notes-wikilink:hover {
|
|
border-bottom-style: solid;
|
|
}
|
|
.ext-notes-wikilink.ext-notes-wikilink--unresolved {
|
|
color: var(--danger, #e53e3e);
|
|
border-bottom-color: var(--danger, #e53e3e);
|
|
opacity: 0.7;
|
|
}
|
|
.ext-notes-wikilink.ext-notes-wikilink--unresolved:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* ── Backlinks Panel ────────────────────── */
|
|
.ext-notes-backlinks-panel {
|
|
border-top: 1px solid var(--border);
|
|
padding: var(--sp-3) var(--sp-4);
|
|
background: var(--bg-raised);
|
|
flex-shrink: 0;
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
}
|
|
.ext-notes-backlinks-panel__header {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: var(--text-2);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
margin-bottom: var(--sp-2);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--sp-2);
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
.ext-notes-backlinks-panel__toggle {
|
|
font-size: 9px;
|
|
color: var(--text-2);
|
|
}
|
|
.ext-notes-backlinks-panel__count {
|
|
background: var(--bg-hover);
|
|
color: var(--text-2);
|
|
font-size: 10px;
|
|
padding: 0 var(--sp-2);
|
|
border-radius: 8px;
|
|
line-height: 16px;
|
|
}
|
|
.ext-notes-backlinks-panel__item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--sp-2);
|
|
padding: var(--sp-1) var(--sp-2);
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
}
|
|
.ext-notes-backlinks-panel__item:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
.ext-notes-backlinks-panel__title {
|
|
color: var(--accent);
|
|
font-weight: 500;
|
|
}
|
|
.ext-notes-backlinks-panel__context {
|
|
color: var(--text-2);
|
|
font-size: 11px;
|
|
}
|
|
|
|
/* ── Sidebar Tabs ────────────────────────── */
|
|
.ext-notes-sidebar-tabs {
|
|
display: flex;
|
|
border-bottom: 1px solid var(--border);
|
|
flex-shrink: 0;
|
|
}
|
|
.ext-notes-sidebar-tabs__tab {
|
|
flex: 1;
|
|
padding: var(--sp-3) var(--sp-4);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--text-2);
|
|
background: none;
|
|
border: none;
|
|
border-bottom: 2px solid transparent;
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
text-align: center;
|
|
font-family: var(--font);
|
|
}
|
|
.ext-notes-sidebar-tabs__tab:hover {
|
|
color: var(--text);
|
|
background: var(--bg-hover);
|
|
}
|
|
.ext-notes-sidebar-tabs__tab--active {
|
|
color: var(--text);
|
|
border-bottom-color: var(--accent);
|
|
}
|
|
.ext-notes-sidebar-tabs__tab--disabled {
|
|
color: var(--text-3);
|
|
cursor: default;
|
|
opacity: 0.5;
|
|
}
|
|
.ext-notes-sidebar-tabs__tab--disabled:hover {
|
|
background: none;
|
|
color: var(--text-3);
|
|
}
|
|
|
|
/* ── Sidebar Outline ─────────────────────── */
|
|
.ext-notes-sidebar-outline {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: var(--sp-2) 0;
|
|
}
|
|
.ext-notes-sidebar-outline__empty {
|
|
padding: var(--sp-10) var(--sp-4);
|
|
text-align: center;
|
|
color: var(--text-3);
|
|
font-size: 13px;
|
|
}
|
|
.ext-notes-sidebar-outline__item {
|
|
padding: 5px var(--sp-3);
|
|
font-size: 13px;
|
|
color: var(--text-2);
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
transition: var(--transition);
|
|
border-radius: var(--radius);
|
|
margin: 1px var(--sp-2);
|
|
}
|
|
.ext-notes-sidebar-outline__item:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text);
|
|
}
|
|
.ext-notes-sidebar-outline__item--active {
|
|
background: var(--bg-active);
|
|
color: var(--text);
|
|
font-weight: 500;
|
|
}
|
|
.ext-notes-sidebar-outline__item--h1 { font-weight: 600; color: var(--text); }
|
|
.ext-notes-sidebar-outline__item--h2 { font-weight: 500; }
|
|
|
|
/* ── Graph Pane ─────────────────────────── */
|
|
.ext-notes-graph-pane {
|
|
flex: 1;
|
|
position: relative;
|
|
overflow: hidden;
|
|
background: var(--bg-surface, #fff);
|
|
min-height: 0;
|
|
}
|
|
.ext-notes-graph-pane canvas {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
cursor: grab;
|
|
}
|
|
.ext-notes-graph-pane canvas:active { cursor: grabbing; }
|
|
.ext-notes-graph-toolbar {
|
|
position: absolute;
|
|
top: var(--sp-3);
|
|
right: var(--sp-3);
|
|
display: flex;
|
|
gap: var(--sp-2);
|
|
align-items: center;
|
|
z-index: 5;
|
|
font-size: 12px;
|
|
color: var(--text-2, #666);
|
|
}
|
|
.ext-notes-graph-toolbar label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--sp-1);
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
.ext-notes-graph-toolbar input[type="checkbox"] { margin: 0; }
|
|
.ext-notes-graph-tooltip {
|
|
position: absolute;
|
|
pointer-events: none;
|
|
background: var(--bg-raised, #fff);
|
|
border: 1px solid var(--border, #ddd);
|
|
border-radius: var(--radius, 6px);
|
|
padding: var(--sp-2) var(--sp-3);
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.12);
|
|
z-index: 10;
|
|
max-width: 220px;
|
|
font-size: 12px;
|
|
}
|
|
.ext-notes-graph-tooltip__title {
|
|
font-weight: 600;
|
|
font-size: 13px;
|
|
margin-bottom: 2px;
|
|
}
|
|
.ext-notes-graph-tooltip__tags {
|
|
display: flex;
|
|
gap: var(--sp-1);
|
|
flex-wrap: wrap;
|
|
margin-top: var(--sp-1);
|
|
}
|
|
.ext-notes-graph-tooltip__tags .ext-notes-tag-pill {
|
|
font-size: 10px;
|
|
padding: 1px var(--sp-2);
|
|
border-radius: 8px;
|
|
background: var(--bg-hover, #eee);
|
|
color: var(--text-2, #666);
|
|
}
|
|
.ext-notes-graph-tooltip__edges {
|
|
font-size: 11px;
|
|
color: var(--text-3, #999);
|
|
margin-top: var(--sp-1);
|
|
}
|
|
.ext-notes-graph-empty {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100%;
|
|
color: var(--text-3, #999);
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* ── Responsive ──────────────────────────── */
|
|
@media (max-width: 768px) {
|
|
.ext-notes-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); max-height: 40vh; }
|
|
.ext-notes-app { flex-direction: column; }
|
|
.ext-notes-folder-tree { max-height: 30vh; }
|
|
.ext-notes-editor__body--split { grid-template-columns: 1fr; }
|
|
.ext-notes-editor__body--split .ext-notes-preview { display: none; }
|
|
.ext-notes-graph-pane { min-height: 50vh; }
|
|
}
|