Replace all hardcoded colors across 10 CSS files with CSS variables defined in index.css. Dark mode (default) uses the existing navy/purple palette, light mode uses Notion-inspired warm neutrals from the design tokens (--bg-primary: #FFFFFF, --bg-sidebar: #F7F6F3, --text-primary: #37352F). Toggle button (sun/moon) in the sidebar header persists preference to localStorage. An inline script in index.html applies the saved theme before React mounts to prevent flash. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
448 lines
7.8 KiB
CSS
448 lines
7.8 KiB
CSS
.inspector {
|
|
background: var(--bg-sidebar);
|
|
color: var(--text-primary);
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow-y: auto;
|
|
border-left: 1px solid var(--border-primary);
|
|
transition: width 0.2s ease;
|
|
}
|
|
|
|
.inspector--collapsed {
|
|
width: 40px !important;
|
|
min-width: 40px !important;
|
|
}
|
|
|
|
.inspector__header {
|
|
padding: 14px 12px;
|
|
border-bottom: 1px solid var(--border-primary);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
-webkit-app-region: drag;
|
|
app-region: drag;
|
|
}
|
|
|
|
.inspector__header button {
|
|
-webkit-app-region: no-drag;
|
|
app-region: no-drag;
|
|
}
|
|
|
|
.inspector__header h3 {
|
|
margin: 0;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.inspector__toggle {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-tertiary);
|
|
cursor: pointer;
|
|
padding: 4px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.inspector__toggle:hover {
|
|
color: var(--text-heading);
|
|
}
|
|
|
|
.inspector__content {
|
|
padding: 12px;
|
|
}
|
|
|
|
.inspector__section {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.inspector__section h4 {
|
|
margin: 0 0 8px;
|
|
font-size: 12px;
|
|
text-transform: uppercase;
|
|
color: var(--text-tertiary);
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.inspector__empty {
|
|
font-size: 13px;
|
|
color: var(--text-faint);
|
|
margin: 0;
|
|
}
|
|
|
|
/* Properties */
|
|
.inspector__props {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.inspector__prop {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.inspector__prop-label {
|
|
color: var(--text-tertiary);
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.inspector__prop-value {
|
|
color: var(--text-secondary);
|
|
text-align: right;
|
|
}
|
|
|
|
.inspector__prop-value--editable {
|
|
cursor: pointer;
|
|
padding: 2px 4px;
|
|
border-radius: 4px;
|
|
transition: background-color 0.15s;
|
|
}
|
|
|
|
.inspector__prop-value--editable:hover {
|
|
background-color: var(--bg-hover);
|
|
}
|
|
|
|
.inspector__edit-input {
|
|
background: var(--bg-button);
|
|
border: 1px solid var(--border-dialog);
|
|
color: var(--text-heading);
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
font-size: 13px;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.inspector__edit-input:focus {
|
|
outline: none;
|
|
border-color: var(--link-color);
|
|
}
|
|
|
|
.inspector__prop-delete {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
padding: 0;
|
|
font-size: 14px;
|
|
line-height: 1;
|
|
opacity: 0;
|
|
transition: opacity 0.15s, color 0.15s;
|
|
}
|
|
|
|
.inspector__prop:hover .inspector__prop-delete {
|
|
opacity: 1;
|
|
}
|
|
|
|
.inspector__prop-delete:hover {
|
|
color: var(--accent-red);
|
|
}
|
|
|
|
.inspector__status-pill {
|
|
display: inline-block;
|
|
padding: 2px 10px;
|
|
border-radius: 12px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
color: #fff;
|
|
}
|
|
|
|
.inspector__status-pill--editable {
|
|
cursor: pointer;
|
|
transition: opacity 0.15s;
|
|
}
|
|
|
|
.inspector__status-pill--editable:hover {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.inspector__bool-toggle {
|
|
background: none;
|
|
border: 1px solid var(--border-primary);
|
|
color: var(--text-secondary);
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
transition: all 0.15s;
|
|
}
|
|
|
|
.inspector__bool-toggle:hover {
|
|
background: var(--bg-hover);
|
|
border-color: var(--text-muted);
|
|
}
|
|
|
|
/* List editor */
|
|
.inspector__list-editor {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
width: 100%;
|
|
}
|
|
|
|
.inspector__list-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.inspector__list-item-text {
|
|
flex: 1;
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
padding: 2px 4px;
|
|
border-radius: 4px;
|
|
transition: background-color 0.15s;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.inspector__list-item-text:hover {
|
|
background-color: var(--bg-hover);
|
|
}
|
|
|
|
.inspector__list-item-delete {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
padding: 0 4px;
|
|
font-size: 14px;
|
|
line-height: 1;
|
|
opacity: 0;
|
|
transition: opacity 0.15s, color 0.15s;
|
|
}
|
|
|
|
.inspector__list-item:hover .inspector__list-item-delete {
|
|
opacity: 1;
|
|
}
|
|
|
|
.inspector__list-item-delete:hover {
|
|
color: var(--accent-red);
|
|
}
|
|
|
|
.inspector__list-add {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
font-size: 12px;
|
|
padding: 4px 0;
|
|
cursor: pointer;
|
|
text-align: left;
|
|
}
|
|
|
|
.inspector__list-add:hover {
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.inspector__add-prop {
|
|
margin-top: 12px;
|
|
background: none;
|
|
border: 1px dashed var(--border-primary);
|
|
color: var(--text-muted);
|
|
padding: 6px 12px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
width: 100%;
|
|
transition: all 0.15s;
|
|
}
|
|
|
|
.inspector__add-prop:hover:not(:disabled) {
|
|
border-color: var(--link-color);
|
|
color: var(--link-color);
|
|
}
|
|
|
|
.inspector__add-prop:disabled {
|
|
cursor: not-allowed;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
/* Add property dialog */
|
|
.inspector__add-dialog {
|
|
margin-top: 12px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
padding: 12px;
|
|
background: var(--bg-button);
|
|
border-radius: 6px;
|
|
border: 1px solid var(--border-dialog);
|
|
}
|
|
|
|
.inspector__add-dialog-buttons {
|
|
display: flex;
|
|
gap: 8px;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.inspector__add-dialog-buttons button {
|
|
background: var(--bg-hover);
|
|
border: none;
|
|
color: var(--text-secondary);
|
|
padding: 6px 12px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
transition: all 0.15s;
|
|
}
|
|
|
|
.inspector__add-dialog-buttons button:hover:not(:disabled) {
|
|
background: var(--border-dialog);
|
|
color: var(--text-heading);
|
|
}
|
|
|
|
.inspector__add-dialog-buttons button:first-child {
|
|
background: var(--accent-blue);
|
|
color: #fff;
|
|
}
|
|
|
|
.inspector__add-dialog-buttons button:first-child:hover:not(:disabled) {
|
|
background: var(--accent-blue-hover);
|
|
}
|
|
|
|
.inspector__add-dialog-buttons button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Relationships */
|
|
.inspector__rel-group {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.inspector__rel-label {
|
|
display: block;
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.inspector__rel-links {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.inspector__rel-link {
|
|
background: none;
|
|
border: none;
|
|
color: var(--link-color);
|
|
font-size: 13px;
|
|
padding: 2px 0;
|
|
cursor: pointer;
|
|
text-align: left;
|
|
}
|
|
|
|
.inspector__rel-link:hover {
|
|
color: var(--link-hover);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Backlinks */
|
|
.inspector__count {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
font-weight: 400;
|
|
margin-left: 4px;
|
|
}
|
|
|
|
.inspector__backlinks {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.inspector__backlink {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
background: none;
|
|
border: none;
|
|
color: var(--link-color);
|
|
font-size: 13px;
|
|
padding: 4px 0;
|
|
cursor: pointer;
|
|
text-align: left;
|
|
gap: 8px;
|
|
}
|
|
|
|
.inspector__backlink:hover {
|
|
color: var(--link-hover);
|
|
}
|
|
|
|
.inspector__backlink-title {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.inspector__backlink-type {
|
|
font-size: 11px;
|
|
color: var(--text-faint);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Git History */
|
|
.inspector__commits {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.inspector__commit {
|
|
border-left: 2px solid var(--border-primary);
|
|
padding-left: 10px;
|
|
}
|
|
|
|
.inspector__commit-top {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.inspector__commit-hash {
|
|
font-family: 'SF Mono', 'Menlo', monospace;
|
|
font-size: 11px;
|
|
color: var(--link-color);
|
|
}
|
|
|
|
.inspector__commit-date {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.inspector__commit-msg {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.inspector__view-all {
|
|
margin-top: 10px;
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
font-size: 12px;
|
|
padding: 4px 0;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.inspector__view-all:hover {
|
|
color: var(--text-tertiary);
|
|
}
|