mirror of
https://github.com/fancive/obsidian-parallel-reader.git
synced 2026-07-22 06:53:43 +00:00
Split-view reading plugin for long-form notes: - LLM self-adaptive segmentation (no heading dependency) - Anchor-based line resolution with fallbacks - Scroll-sync highlight + click-to-jump - Right-click context menu for copy actions - MarkdownRenderer for native table/bold/code rendering - SHA-1 content-hash cache with stale-detection banner - Three backends: Claude Code CLI / Codex CLI / Anthropic API Change-Id: I105c57e3df0b2d8d1570c31e3e3a689ecf52ff71
198 lines
4 KiB
CSS
198 lines
4 KiB
CSS
.parallel-reader-container {
|
|
padding: 0;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
}
|
|
|
|
.parallel-reader-header {
|
|
padding: 12px 14px 8px;
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
background: var(--background-secondary);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.parallel-reader-title {
|
|
font-weight: 600;
|
|
font-size: 13px;
|
|
color: var(--text-normal);
|
|
margin-bottom: 8px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.parallel-reader-cards {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 12px;
|
|
}
|
|
|
|
.parallel-reader-card {
|
|
padding: 16px 18px;
|
|
margin-bottom: 14px;
|
|
background: var(--background-primary);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-left: 3px solid var(--background-modifier-border);
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
transition: border-left-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
|
|
user-select: text;
|
|
-webkit-user-select: text;
|
|
}
|
|
|
|
.parallel-reader-card * {
|
|
user-select: text;
|
|
-webkit-user-select: text;
|
|
}
|
|
|
|
.parallel-reader-card:hover {
|
|
background: var(--background-secondary);
|
|
border-left-color: var(--interactive-accent);
|
|
}
|
|
|
|
.parallel-reader-card.is-active {
|
|
border-left-color: var(--interactive-accent);
|
|
border-left-width: 4px;
|
|
background: var(--background-secondary);
|
|
box-shadow: 0 0 0 1px var(--interactive-accent-hover, var(--interactive-accent));
|
|
}
|
|
|
|
.parallel-reader-card-title {
|
|
font-weight: 700;
|
|
font-size: 15px;
|
|
color: var(--text-accent, var(--interactive-accent));
|
|
margin-bottom: 10px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.parallel-reader-gist {
|
|
font-size: 14px;
|
|
color: var(--text-normal);
|
|
line-height: 1.75;
|
|
margin-bottom: 12px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.parallel-reader-gist p:first-child { margin-top: 0; }
|
|
.parallel-reader-gist p:last-child { margin-bottom: 0; }
|
|
|
|
.parallel-reader-bullets-md {
|
|
font-size: 13px;
|
|
color: var(--text-muted);
|
|
line-height: 1.75;
|
|
}
|
|
|
|
.parallel-reader-bullets-md ul {
|
|
margin: 0;
|
|
padding-left: 22px;
|
|
}
|
|
|
|
.parallel-reader-bullets-md li {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.parallel-reader-bullets-md li:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.parallel-reader-bullets-md li::marker {
|
|
color: var(--interactive-accent);
|
|
}
|
|
|
|
.parallel-reader-bullets-md strong {
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.parallel-reader-bullets-md code {
|
|
font-size: 12px;
|
|
background: var(--code-background, var(--background-secondary));
|
|
padding: 1px 4px;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.parallel-reader-bullets-md table {
|
|
font-size: 12px;
|
|
border-collapse: collapse;
|
|
margin: 6px 0;
|
|
width: 100%;
|
|
}
|
|
|
|
.parallel-reader-bullets-md th {
|
|
background: var(--background-secondary);
|
|
font-weight: 600;
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.parallel-reader-bullets-md th,
|
|
.parallel-reader-bullets-md td {
|
|
border: 1px solid var(--background-modifier-border);
|
|
padding: 4px 8px;
|
|
text-align: left;
|
|
}
|
|
|
|
|
|
.parallel-reader-lvl {
|
|
color: var(--text-muted);
|
|
font-family: var(--font-monospace);
|
|
font-size: 11px;
|
|
margin-right: 2px;
|
|
}
|
|
|
|
.parallel-reader-card-unanchored {
|
|
opacity: 0.75;
|
|
}
|
|
|
|
.parallel-reader-card-unanchored:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.parallel-reader-warn {
|
|
color: var(--text-warning, #e0af68);
|
|
font-size: 11px;
|
|
margin-left: 4px;
|
|
cursor: help;
|
|
}
|
|
|
|
.parallel-reader-bullets {
|
|
margin: 0;
|
|
padding-left: 18px;
|
|
color: var(--text-muted);
|
|
font-size: 12px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.parallel-reader-bullets li {
|
|
margin-bottom: 3px;
|
|
}
|
|
|
|
.parallel-reader-empty-li {
|
|
font-style: italic;
|
|
color: var(--text-faint);
|
|
}
|
|
|
|
.parallel-reader-stale-banner {
|
|
margin: 10px 12px 0;
|
|
padding: 8px 12px;
|
|
background: var(--background-modifier-error, rgba(224, 175, 104, 0.1));
|
|
color: var(--text-warning, #e0af68);
|
|
border-radius: 4px;
|
|
font-size: 12px;
|
|
border: 1px solid var(--text-warning, #e0af68);
|
|
}
|
|
|
|
.parallel-reader-empty {
|
|
padding: 20px;
|
|
text-align: center;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.parallel-reader-empty code {
|
|
display: inline-block;
|
|
margin-top: 8px;
|
|
padding: 4px 8px;
|
|
background: var(--background-secondary);
|
|
border-radius: 3px;
|
|
font-size: 11px;
|
|
}
|