lllin000_PaperForge/paperforge/plugin/styles.css

368 lines
8.4 KiB
CSS

/* ==========================================================================
PaperForge — Obsidian Plugin Styles
A clean dashboard for literature pipeline monitoring & control.
========================================================================== */
/* ── Root Panel ── */
.paperforge-status-panel {
padding: 20px;
height: 100%;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 24px;
}
/* ==========================================================================
SECTION 1 — Header
========================================================================== */
.paperforge-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.paperforge-header-left {
display: flex;
align-items: center;
gap: 10px;
}
.paperforge-header-logo {
width: 28px;
height: 28px;
border-radius: var(--radius-s);
background: var(--interactive-accent);
color: var(--text-on-accent);
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
font-weight: var(--font-bold);
flex-shrink: 0;
}
.paperforge-header-title {
font-size: var(--font-ui-medium);
font-weight: var(--font-semibold);
color: var(--text-normal);
margin: 0;
line-height: 1;
}
.paperforge-header-badge {
font-size: 11px;
font-weight: var(--font-medium);
padding: 2px 8px;
border-radius: 10px;
background: var(--background-secondary);
color: var(--text-muted);
border: 1px solid var(--background-modifier-border);
line-height: 1.4;
}
.paperforge-header-refresh {
width: 28px;
height: 28px;
padding: 0;
cursor: pointer;
background: transparent;
color: var(--text-muted);
border: none;
border-radius: var(--radius-s);
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
transition: background 0.15s, color 0.15s, transform 0.3s;
}
.paperforge-header-refresh:hover {
background: var(--background-modifier-hover);
color: var(--text-normal);
}
.paperforge-header-refresh:active {
transform: rotate(180deg);
}
/* ==========================================================================
SECTION 2 — Metric Cards
========================================================================== */
.paperforge-metrics {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
}
.paperforge-metric-card {
background: var(--background-secondary);
border: 1px solid var(--background-modifier-border);
border-radius: var(--radius-m);
padding: 16px 12px 14px;
text-align: center;
position: relative;
overflow: hidden;
transition: border-color 0.15s;
}
.paperforge-metric-card::before {
content: '';
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 3px;
background: var(--metric-color, var(--interactive-accent));
border-radius: 0 2px 2px 0;
}
.paperforge-metric-card:hover {
border-color: var(--interactive-accent);
}
.paperforge-metric-value {
font-size: 28px;
font-weight: var(--font-bold);
line-height: 1.1;
color: var(--text-normal);
letter-spacing: -0.5px;
}
.paperforge-metric-label {
font-size: var(--font-ui-smaller);
color: var(--text-muted);
margin-top: 4px;
text-transform: uppercase;
letter-spacing: 0.5px;
font-weight: var(--font-medium);
}
/* ==========================================================================
SECTION 3 — OCR Pipeline
========================================================================== */
.paperforge-ocr-section {
background: var(--background-secondary);
border: 1px solid var(--background-modifier-border);
border-radius: var(--radius-m);
padding: 16px;
}
.paperforge-ocr-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 14px;
}
.paperforge-ocr-title {
font-size: var(--font-ui-small);
font-weight: var(--font-semibold);
color: var(--text-normal);
margin: 0;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.paperforge-ocr-badge {
font-size: 11px;
font-weight: var(--font-semibold);
padding: 3px 10px;
border-radius: 10px;
line-height: 1.4;
}
.paperforge-ocr-badge.idle {
background: var(--background-modifier-hover);
color: var(--text-muted);
}
.paperforge-ocr-badge.active {
background: var(--color-blue);
color: var(--text-on-accent);
}
.paperforge-progress-track {
display: flex;
height: 10px;
border-radius: 5px;
overflow: hidden;
background: var(--background-modifier-border);
gap: 2px;
}
.paperforge-progress-seg {
height: 100%;
transition: width 0.5s ease;
min-width: 0;
}
.paperforge-progress-seg:first-child {
border-radius: 5px 0 0 5px;
}
.paperforge-progress-seg:last-child {
border-radius: 0 5px 5px 0;
}
.paperforge-progress-seg:only-child {
border-radius: 5px;
}
.paperforge-progress-seg.pending {
background: var(--text-faint);
}
.paperforge-progress-seg.active {
background: var(--color-blue);
animation: paperforge-pulse 1.5s ease-in-out infinite;
}
.paperforge-progress-seg.done {
background: var(--color-green);
}
.paperforge-progress-seg.failed {
background: var(--text-error);
}
@keyframes paperforge-pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
.paperforge-ocr-counts {
display: flex;
justify-content: space-between;
margin-top: 12px;
gap: 4px;
}
.paperforge-ocr-count {
display: flex;
flex-direction: column;
align-items: center;
flex: 1;
min-width: 0;
}
.paperforge-ocr-count-value {
font-size: var(--font-ui-medium);
font-weight: var(--font-bold);
color: var(--text-normal);
line-height: 1.2;
}
.paperforge-ocr-count-label {
font-size: 10px;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.3px;
margin-top: 2px;
}
.paperforge-ocr-empty {
text-align: center;
padding: 24px 12px;
color: var(--text-muted);
font-size: var(--font-ui-small);
}
/* ==========================================================================
SECTION 4 — Quick Actions
========================================================================== */
.paperforge-actions-section {
display: flex;
flex-direction: column;
gap: 10px;
}
.paperforge-actions-title {
font-size: var(--font-ui-small);
font-weight: var(--font-semibold);
color: var(--text-normal);
margin: 0;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.paperforge-actions-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}
.paperforge-action-card {
background: var(--background-secondary);
border: 1px solid var(--background-modifier-border);
border-radius: var(--radius-m);
padding: 14px;
cursor: pointer;
transition: background 0.15s, border-color 0.15s, transform 0.1s;
display: flex;
flex-direction: column;
gap: 6px;
position: relative;
}
.paperforge-action-card:hover {
background: var(--background-modifier-hover);
border-color: var(--interactive-accent);
}
.paperforge-action-card:active {
transform: scale(0.98);
}
.paperforge-action-card.running {
opacity: 0.6;
pointer-events: none;
}
.paperforge-action-card-icon {
font-size: 18px;
color: var(--interactive-accent);
line-height: 1;
}
.paperforge-action-card-title {
font-size: var(--font-ui-small);
font-weight: var(--font-semibold);
color: var(--text-normal);
line-height: 1.3;
}
.paperforge-action-card-desc {
font-size: var(--font-ui-smaller);
color: var(--text-muted);
line-height: 1.4;
}
.paperforge-action-card-hint {
font-size: 10px;
color: var(--text-faint);
text-transform: uppercase;
letter-spacing: 0.5px;
align-self: flex-end;
}
/* ==========================================================================
Misc
========================================================================== */
.paperforge-status-error {
color: var(--text-error);
font-size: var(--font-ui-small);
padding: 12px;
background: var(--background-secondary);
border: 1px solid var(--background-modifier-border);
border-radius: var(--radius-m);
text-align: center;
}
.paperforge-status-loading {
text-align: center;
padding: 24px 12px;
color: var(--text-muted);
font-size: var(--font-ui-small);
}