feat: add compare, trends routes, embedder service, and phase5 tests
This commit is contained in:
@@ -556,3 +556,185 @@ mark {
|
||||
.reading-list-filters { gap: 4px; }
|
||||
.filter-chip { padding: 4px 10px; font-size: 0.8rem; }
|
||||
}
|
||||
|
||||
/* ── Search Mode Toggle (Phase 5) ─────────────────────────────── */
|
||||
.search-mode-toggle {
|
||||
display: flex;
|
||||
gap: 0;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
overflow: hidden;
|
||||
}
|
||||
.mode-option {
|
||||
padding: 8px 14px;
|
||||
font-size: 0.85rem;
|
||||
color: var(--ink-light);
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
.mode-option input[type="radio"] { display: none; }
|
||||
.mode-option:hover { background: var(--bg); }
|
||||
.mode-option.active {
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* ── Similarity Score (Phase 5) ────────────────────────────────── */
|
||||
.similarity-score {
|
||||
font-size: 0.8rem;
|
||||
color: var(--accent);
|
||||
white-space: nowrap;
|
||||
padding: 2px 8px;
|
||||
background: #eef3f8;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
/* ── Similar Papers (Phase 5) ──────────────────────────────────── */
|
||||
.similar-papers {
|
||||
margin-top: 32px;
|
||||
padding-top: 24px;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
.similar-papers h2 {
|
||||
font-family: var(--font-body);
|
||||
font-size: 1.1rem;
|
||||
font-weight: 600;
|
||||
margin-bottom: 12px;
|
||||
color: var(--accent);
|
||||
}
|
||||
.similar-paper-item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 10px 0;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.similar-paper-item:last-child { border-bottom: none; }
|
||||
.similar-paper-title a {
|
||||
font-size: 0.92rem;
|
||||
color: var(--ink);
|
||||
}
|
||||
.similar-paper-title a:hover { color: var(--accent); }
|
||||
.similar-paper-dist {
|
||||
font-size: 0.8rem;
|
||||
color: var(--ink-light);
|
||||
}
|
||||
|
||||
/* ── Trends Dashboard (Phase 5) ────────────────────────────────── */
|
||||
.trends-page h1 {
|
||||
font-family: var(--font-body);
|
||||
font-size: 1.5rem;
|
||||
font-weight: 700;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
.charts-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 24px;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
.chart-card {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: 20px;
|
||||
}
|
||||
.chart-card h2 {
|
||||
font-family: var(--font-body);
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
margin-bottom: 12px;
|
||||
color: var(--accent);
|
||||
}
|
||||
.chart-card canvas {
|
||||
width: 100% !important;
|
||||
max-height: 300px;
|
||||
}
|
||||
@media (max-width: 768px) {
|
||||
.charts-grid { grid-template-columns: 1fr; }
|
||||
}
|
||||
|
||||
/* ── Compare Page (Phase 5) ────────────────────────────────────── */
|
||||
.compare-page h1 {
|
||||
font-family: var(--font-body);
|
||||
font-size: 1.5rem;
|
||||
font-weight: 700;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
.compare-table-wrapper {
|
||||
overflow-x: auto;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
.compare-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
font-size: 0.88rem;
|
||||
}
|
||||
.compare-table th,
|
||||
.compare-table td {
|
||||
padding: 12px 16px;
|
||||
border: 1px solid var(--border);
|
||||
vertical-align: top;
|
||||
text-align: left;
|
||||
}
|
||||
.compare-table th {
|
||||
background: var(--bg);
|
||||
font-weight: 600;
|
||||
color: var(--ink-light);
|
||||
white-space: nowrap;
|
||||
min-width: 100px;
|
||||
}
|
||||
.compare-table td.field-label {
|
||||
background: var(--bg);
|
||||
font-weight: 500;
|
||||
color: var(--ink);
|
||||
white-space: nowrap;
|
||||
min-width: 90px;
|
||||
}
|
||||
.compare-table td.paper-col {
|
||||
min-width: 200px;
|
||||
}
|
||||
.compare-table td .no-summary {
|
||||
color: var(--ink-light);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* ── Image Gallery (Phase 5) ───────────────────────────────────── */
|
||||
.image-gallery {
|
||||
margin-top: 24px;
|
||||
}
|
||||
.image-gallery h2 {
|
||||
font-family: var(--font-body);
|
||||
font-size: 1.05rem;
|
||||
font-weight: 600;
|
||||
margin-bottom: 12px;
|
||||
color: var(--accent);
|
||||
}
|
||||
.gallery-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
|
||||
gap: 16px;
|
||||
}
|
||||
.gallery-item {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
overflow: hidden;
|
||||
}
|
||||
.gallery-item img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
}
|
||||
.gallery-item .gallery-caption {
|
||||
padding: 8px 12px;
|
||||
font-size: 0.8rem;
|
||||
color: var(--ink-light);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user