UI enhancemnts
This commit is contained in:
@@ -75,6 +75,34 @@ button {
|
||||
&:hover:not(:disabled) { background: #163356; }
|
||||
}
|
||||
|
||||
// ── btn-glossary (ghost — "? Glossary" in section header) ──────────────
|
||||
|
||||
.btn-glossary {
|
||||
@extend %btn-inline-flex;
|
||||
background: transparent;
|
||||
color: var(--text-faint);
|
||||
border: 1px solid var(--border);
|
||||
font-size: var(--fs-sm);
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.03em;
|
||||
padding: 4px 11px;
|
||||
border-radius: var(--radius-sm);
|
||||
white-space: nowrap;
|
||||
transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
|
||||
|
||||
&:hover {
|
||||
color: var(--text-muted);
|
||||
background: var(--bg-card);
|
||||
border-color: var(--border-input);
|
||||
}
|
||||
|
||||
&.btn-glossary-active {
|
||||
color: #60a5fa;
|
||||
background: #1e3a5f22;
|
||||
border-color: #1e3a5f88;
|
||||
}
|
||||
}
|
||||
|
||||
// ── btn-analyze (ghost blue — "✦ Analyze" in section header) ────────────
|
||||
|
||||
.btn-analyze {
|
||||
|
||||
@@ -113,3 +113,20 @@ main { flex: 1; padding: 28px 32px; }
|
||||
align-items: center;
|
||||
padding: 80px 0;
|
||||
}
|
||||
|
||||
.nav-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 16px;
|
||||
height: 16px;
|
||||
padding: 0 4px;
|
||||
margin-left: 5px;
|
||||
border-radius: 8px;
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
background: var(--blue);
|
||||
color: #fff;
|
||||
line-height: 1;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
@@ -3,8 +3,12 @@
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
||||
font-family: var(--font-ui);
|
||||
background: var(--bg-base);
|
||||
color: var(--text-secondary);
|
||||
color: var(--text-primary);
|
||||
font-size: var(--fs-md);
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
button { font-family: inherit; cursor: pointer; }
|
||||
input, select { font-family: inherit; }
|
||||
|
||||
+367
-229
@@ -106,32 +106,23 @@
|
||||
|
||||
.asset-section { margin-bottom: 24px; }
|
||||
|
||||
.analyze-btn {
|
||||
margin-left: auto;
|
||||
font-size: var(--fs-sm);
|
||||
padding: 5px 14px;
|
||||
}
|
||||
|
||||
// ── Inline filter row (inside thead) ─────────────────────────────────────
|
||||
// ── Inline filter row ────────────────────────────────────────────────────
|
||||
|
||||
.filter-row td {
|
||||
padding: 4px var(--space-lg) !important;
|
||||
background: #0a1628;
|
||||
padding: 5px 8px !important;
|
||||
background: var(--bg-base);
|
||||
border-bottom: 1px solid var(--border) !important;
|
||||
|
||||
// sticky first cell matches the header sticky column
|
||||
&:first-child {
|
||||
position: sticky;
|
||||
left: 0;
|
||||
background: #0a1628;
|
||||
background: var(--bg-base);
|
||||
z-index: 1;
|
||||
}
|
||||
}
|
||||
|
||||
// Pair of inputs side-by-side (e.g. price min/max)
|
||||
.th-filter-pair {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 4px;
|
||||
max-width: 160px;
|
||||
|
||||
@@ -145,7 +136,6 @@
|
||||
&::-webkit-inner-spin-button { -webkit-appearance: none; }
|
||||
}
|
||||
|
||||
// Checkbox + label for flag filter
|
||||
.th-filter-check {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -155,44 +145,31 @@
|
||||
color: var(--text-secondary);
|
||||
white-space: nowrap;
|
||||
|
||||
input[type='checkbox'] {
|
||||
accent-color: var(--blue);
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
cursor: pointer;
|
||||
}
|
||||
input[type='checkbox'] { accent-color: var(--blue); width: 12px; height: 12px; cursor: pointer; }
|
||||
}
|
||||
|
||||
// Input / select sitting inside a th filter cell
|
||||
.th-filter {
|
||||
width: 100%;
|
||||
min-width: 80px;
|
||||
background: #0f1e33;
|
||||
border: 1px solid #1e3050;
|
||||
background: var(--bg-input);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-sm);
|
||||
color: var(--text-secondary);
|
||||
padding: 3px 7px;
|
||||
padding: 4px 8px;
|
||||
font-size: 11px;
|
||||
font-family: inherit;
|
||||
outline: none;
|
||||
transition: border-color var(--transition);
|
||||
appearance: none;
|
||||
-webkit-appearance: none;
|
||||
|
||||
&:focus { border-color: var(--blue); box-shadow: 0 0 0 2px #3b82f620; }
|
||||
&::placeholder { color: var(--text-faint); }
|
||||
&:focus { border-color: var(--blue); }
|
||||
&::placeholder { color: var(--text-muted); }
|
||||
|
||||
// Style active (non-empty) filter
|
||||
&:not([value='']):not(:placeholder-shown) {
|
||||
border-color: var(--blue);
|
||||
color: #93c5fd;
|
||||
}
|
||||
option { background: var(--bg-surface); }
|
||||
}
|
||||
|
||||
// "Clear filters" link in section header
|
||||
.filter-clear-btn {
|
||||
font-size: 11px;
|
||||
color: var(--text-faint);
|
||||
color: var(--text-muted);
|
||||
background: transparent;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
@@ -203,211 +180,257 @@
|
||||
&:hover { color: var(--red); }
|
||||
}
|
||||
|
||||
// Sortable column header
|
||||
// ── Column headers ────────────────────────────────────────────────────────
|
||||
|
||||
.sort-th {
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
|
||||
&:hover { color: var(--text-muted); }
|
||||
&:hover { color: var(--text-primary); }
|
||||
}
|
||||
|
||||
.sort-icon {
|
||||
display: inline-block;
|
||||
margin-left: 4px;
|
||||
font-size: 10px;
|
||||
color: var(--text-faint);
|
||||
font-size: 9px;
|
||||
color: var(--text-muted);
|
||||
opacity: 0.4;
|
||||
vertical-align: middle;
|
||||
line-height: 1;
|
||||
|
||||
.sort-th:hover & { opacity: 0.8; }
|
||||
}
|
||||
|
||||
// Expand toggle column
|
||||
.col-expand {
|
||||
width: 24px;
|
||||
min-width: 24px;
|
||||
color: var(--text-faint);
|
||||
color: var(--text-muted);
|
||||
font-size: var(--fs-xs);
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
// Prevent Verdict column from collapsing — pill needs room
|
||||
.asset-table th:nth-child(5),
|
||||
.asset-table td:nth-child(5) {
|
||||
min-width: 100px;
|
||||
}
|
||||
|
||||
// Prevent Signal column from collapsing
|
||||
.asset-table th:nth-child(4),
|
||||
.asset-table td:nth-child(4) {
|
||||
min-width: 110px;
|
||||
}
|
||||
.asset-table td:nth-child(4) { min-width: 160px; } // signal cell — pill + why? link
|
||||
|
||||
// ── Merged Signal/Verdict pill ────────────────────────────────────────────
|
||||
// ── Signal pill ───────────────────────────────────────────────────────────
|
||||
|
||||
.signal-verdict-cell {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 3px;
|
||||
min-width: 120px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
// Main verdict pill — colored by signal class
|
||||
.sv-pill {
|
||||
display: inline-block;
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
padding: 2px 9px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
padding: 4px 12px;
|
||||
border-radius: var(--radius-pill);
|
||||
letter-spacing: 0.03em;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
white-space: nowrap;
|
||||
width: fit-content;
|
||||
transition: filter var(--transition);
|
||||
|
||||
&.sv-strong { background: #14532d33; color: #4ade80; border: 1px solid #14532d66; }
|
||||
&.sv-momentum { background: #1e3a5f33; color: #60a5fa; border: 1px solid #1e3a5f66; }
|
||||
&.sv-spec { background: #7c2d1233; color: #fb923c; border: 1px solid #7c2d1266; }
|
||||
&.sv-neutral { background: #1e293b; color: #94a3b8; border: 1px solid #334155; }
|
||||
&.sv-avoid { background: #450a0a33; color: #f87171; border: 1px solid #450a0a66; }
|
||||
&.sv-strong { background: var(--green-dim); color: var(--green); border: 1px solid var(--green-mid); }
|
||||
&.sv-momentum { background: var(--blue-dim); color: var(--blue); border: 1px solid var(--blue-mid); }
|
||||
&.sv-spec { background: var(--amber-dim); color: var(--amber); border: 1px solid #4a3000; }
|
||||
&.sv-neutral { background: var(--bg-elevated); color: var(--text-secondary); border: 1px solid var(--border-input); }
|
||||
&.sv-avoid { background: var(--red-dim); color: var(--red); border: 1px solid #4a1a1a; }
|
||||
}
|
||||
|
||||
// Sub-label showing the full signal text
|
||||
.sv-signal-label {
|
||||
font-size: 10px;
|
||||
color: var(--text-faint);
|
||||
letter-spacing: 0.02em;
|
||||
white-space: nowrap;
|
||||
// Pill as a clickable button — dotted underline signals interactivity
|
||||
button.sv-pill-link {
|
||||
cursor: pointer;
|
||||
background: none; // reset button default, color set by sv-* variant above
|
||||
text-decoration: underline;
|
||||
text-decoration-style: dotted;
|
||||
text-underline-offset: 3px;
|
||||
text-decoration-thickness: 1px;
|
||||
|
||||
&:hover { filter: brightness(1.2); }
|
||||
}
|
||||
|
||||
// ── Score dot scale ───────────────────────────────────────────────────────
|
||||
|
||||
.score-cell {
|
||||
white-space: nowrap;
|
||||
min-width: 80px;
|
||||
}
|
||||
.score-cell { white-space: nowrap; min-width: 80px; }
|
||||
|
||||
.score-dots {
|
||||
display: inline-flex;
|
||||
gap: 3px;
|
||||
gap: 2px;
|
||||
vertical-align: middle;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.score-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
border-radius: 50%;
|
||||
background: #1e3050;
|
||||
border: 1px solid #2a4060;
|
||||
background: var(--border-input);
|
||||
transition: background 0.15s;
|
||||
|
||||
&.on { background: var(--blue); border-color: #60a5fa; box-shadow: 0 0 4px #3b82f644; }
|
||||
&.on { background: var(--blue); }
|
||||
}
|
||||
|
||||
.score-num {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 11px;
|
||||
color: var(--text-dim);
|
||||
font-variant-numeric: tabular-nums;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.score-fail {
|
||||
color: var(--red);
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
.score-fail { color: var(--red); font-size: 12px; font-weight: 700; }
|
||||
|
||||
.score-nodata {
|
||||
font-size: 11px;
|
||||
color: var(--text-muted);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
// ── Flags badge with hover-expand tooltip ────────────────────────────────
|
||||
|
||||
.flags-cell {
|
||||
position: relative;
|
||||
min-width: 48px;
|
||||
// Low-coverage chip — shown when fewer than half the scoring factors had data
|
||||
.score-cov {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 10px;
|
||||
color: var(--amber, #d97706);
|
||||
border: 1px solid currentColor;
|
||||
border-radius: 8px;
|
||||
padding: 0 4px;
|
||||
margin-left: 5px;
|
||||
vertical-align: middle;
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
// ── Cap / Style chips ─────────────────────────────────────────────────────
|
||||
|
||||
.tag {
|
||||
display: inline-block;
|
||||
padding: 2px 8px;
|
||||
border-radius: var(--radius-xs);
|
||||
font-size: 10px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.04em;
|
||||
background: var(--bg-elevated);
|
||||
color: var(--text-secondary);
|
||||
border: 1px solid var(--border);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.cap-tag { color: var(--text-secondary); }
|
||||
.style-tag { color: var(--text-secondary); }
|
||||
|
||||
// ── Flags badge with hover tooltip ───────────────────────────────────────
|
||||
|
||||
.flags-cell { position: relative; min-width: 48px; }
|
||||
|
||||
.flags-badge {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
cursor: default;
|
||||
|
||||
&:hover .flags-tooltip { opacity: 1; pointer-events: auto; }
|
||||
&:hover .flags-tooltip { display: block; }
|
||||
}
|
||||
|
||||
.flags-count {
|
||||
display: inline-block;
|
||||
background: #431a0033;
|
||||
border: 1px solid #431a0066;
|
||||
color: #fb923c;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
background: var(--amber-dim);
|
||||
color: var(--amber);
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
padding: 2px 8px;
|
||||
border-radius: var(--radius-pill);
|
||||
font-weight: 600;
|
||||
padding: 3px 9px;
|
||||
border-radius: var(--radius-xs);
|
||||
border: 1px solid #3a2800;
|
||||
white-space: nowrap;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.flags-tooltip {
|
||||
display: none;
|
||||
position: absolute;
|
||||
bottom: calc(100% + 6px);
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 50;
|
||||
background: #0c1829;
|
||||
border: 1px solid #1e3a5f;
|
||||
background: var(--bg-elevated);
|
||||
border: 1px solid var(--border-input);
|
||||
border-radius: var(--radius-md);
|
||||
padding: 8px 10px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
min-width: 180px;
|
||||
max-width: 280px;
|
||||
padding: 10px 12px;
|
||||
min-width: 240px;
|
||||
max-width: 300px;
|
||||
box-shadow: 0 8px 24px #00000066;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: opacity 0.15s ease;
|
||||
}
|
||||
|
||||
// Summary row — clickable; open state gets left accent bar + lifted bg
|
||||
// NOTE: background is set on the <tr> so that position:sticky td:first-child
|
||||
// inherits it (sticky cells create their own stacking context).
|
||||
.flags-tt-title {
|
||||
font-size: 9px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
color: var(--text-muted);
|
||||
margin-bottom: 7px;
|
||||
}
|
||||
|
||||
.flags-tt-item {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 6px;
|
||||
font-size: 11px;
|
||||
color: var(--amber);
|
||||
margin-bottom: 4px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
// ── Summary row (data row) ────────────────────────────────────────────────
|
||||
|
||||
.summary-row {
|
||||
cursor: pointer;
|
||||
transition: background var(--transition);
|
||||
|
||||
&:hover { background: #1e2f48; }
|
||||
&:hover { background: var(--bg-surface); }
|
||||
|
||||
&.row-open {
|
||||
background: #1a2f4a;
|
||||
background: var(--bg-row-sel);
|
||||
border-left: 2px solid var(--blue);
|
||||
|
||||
td { border-bottom: none !important; }
|
||||
|
||||
// Brighter left accent on the expand cell
|
||||
.col-expand {
|
||||
box-shadow: inset 3px 0 0 #60a5fa;
|
||||
}
|
||||
.col-expand { color: var(--blue); }
|
||||
}
|
||||
}
|
||||
|
||||
// Ticker — monospace, bold
|
||||
.ticker {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
.num {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
// ── Inline detail row ────────────────────────────────────────────────────
|
||||
|
||||
.detail-row td {
|
||||
padding: 0 !important;
|
||||
border-bottom: none !important;
|
||||
box-shadow: inset 0 -3px 0 #1e3a5f;
|
||||
box-shadow: inset 0 -2px 0 var(--blue);
|
||||
}
|
||||
.detail-cell { padding: 0 !important; }
|
||||
|
||||
// Two-column layout: left = metrics (55%), right = bar chart (45%)
|
||||
// min-width: 0 on each child prevents grid blowout
|
||||
.detail-panel {
|
||||
display: grid;
|
||||
grid-template-columns: 55% 45%;
|
||||
gap: 0;
|
||||
background: #0c1829;
|
||||
border-top: 2px solid var(--blue);
|
||||
border-left: 3px solid var(--blue);
|
||||
grid-template-columns: 1fr 360px;
|
||||
border-top: 1px solid var(--blue);
|
||||
background: #0c1520;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
// ── Left zone ────────────────────────────────────────────────────────────
|
||||
.dp-left {
|
||||
min-width: 0;
|
||||
padding: 16px 18px 16px 16px;
|
||||
border-right: 1px solid #1e3a5f;
|
||||
padding: 16px 18px;
|
||||
border-right: 1px solid var(--border);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
@@ -418,176 +441,234 @@
|
||||
.dp-right {
|
||||
min-width: 0;
|
||||
padding: 16px 18px;
|
||||
background: #0a1018;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
// ── Section title ─────────────────────────────────────────────────────────
|
||||
// ── Section label ─────────────────────────────────────────────────────────
|
||||
.dp-title {
|
||||
font-size: 10px;
|
||||
font-size: 9px;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.1em;
|
||||
color: #4a7aaa;
|
||||
color: var(--text-muted);
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
.dp-mode-note {
|
||||
font-size: 10px;
|
||||
font-size: 9px;
|
||||
font-weight: 400;
|
||||
text-transform: none;
|
||||
letter-spacing: 0;
|
||||
color: #3a5a7a;
|
||||
color: var(--text-muted);
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
// ── Metric grid cards ─────────────────────────────────────────────────────
|
||||
// Fixed 4-col grid on left panel — no min-width auto-fill to prevent overflow
|
||||
|
||||
.dp-metric-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 5px;
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.dp-metric-card {
|
||||
min-width: 0;
|
||||
background: #0f2040;
|
||||
border: 1px solid #1a3050;
|
||||
border-radius: 6px;
|
||||
padding: 5px 7px;
|
||||
background: var(--bg-surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-sm);
|
||||
padding: 8px 10px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
gap: 3px;
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
transition: border-color var(--transition), background var(--transition);
|
||||
|
||||
&:hover { border-color: var(--purple); background: var(--bg-elevated); }
|
||||
}
|
||||
|
||||
.dp-mc-label {
|
||||
font-size: 9px;
|
||||
font-weight: 700;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
color: #3d5a7a;
|
||||
letter-spacing: 0.06em;
|
||||
color: var(--text-muted);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
}
|
||||
|
||||
// ? icon inside metric card label — appears on card hover
|
||||
.dp-mc-help {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border-radius: 50%;
|
||||
font-size: 8px;
|
||||
font-weight: 700;
|
||||
color: var(--text-muted);
|
||||
border: 1px solid var(--border);
|
||||
opacity: 0;
|
||||
transition: opacity var(--transition);
|
||||
flex-shrink: 0;
|
||||
|
||||
.dp-metric-card:hover & { opacity: 1; color: var(--purple); border-color: var(--purple); }
|
||||
}
|
||||
|
||||
// Pass / fail color states on metric cards
|
||||
.dp-metric-card.dp-mc-pass {
|
||||
border-color: var(--green-mid);
|
||||
background: linear-gradient(180deg, #0d2e1a 0%, var(--bg-surface) 100%);
|
||||
|
||||
.dp-mc-label { color: var(--green); }
|
||||
}
|
||||
|
||||
.dp-metric-card.dp-mc-fail {
|
||||
border-color: #4a1a1a;
|
||||
background: linear-gradient(180deg, #2e0d0d 0%, var(--bg-surface) 100%);
|
||||
|
||||
.dp-mc-label { color: var(--red); }
|
||||
}
|
||||
|
||||
.dp-mc-value {
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
font-family: var(--font-mono);
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
font-variant-numeric: tabular-nums;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
// ── Gate badge chips ──────────────────────────────────────────────────────
|
||||
.dp-gates-row {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.dp-gates-row { display: flex; gap: 6px; flex-wrap: wrap; }
|
||||
|
||||
.dp-gate-chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.05em;
|
||||
padding: 3px 10px;
|
||||
gap: 5px;
|
||||
padding: 4px 12px;
|
||||
border-radius: var(--radius-pill);
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
|
||||
.dp-gate-chip-pass {
|
||||
background: #14532d33;
|
||||
background: var(--green-dim);
|
||||
color: var(--green);
|
||||
border-color: #14532d66;
|
||||
border-color: var(--green-mid);
|
||||
}
|
||||
|
||||
.dp-gate-chip-fail {
|
||||
background: #450a0a33;
|
||||
background: var(--red-dim);
|
||||
color: var(--red);
|
||||
border-color: #450a0a66;
|
||||
border-color: #4a1a1a;
|
||||
}
|
||||
|
||||
// ── Risk flag pills ───────────────────────────────────────────────────────
|
||||
.dp-risk-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.dp-risk-row { display: flex; flex-wrap: wrap; gap: 6px; }
|
||||
|
||||
.dp-risk-pill {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
padding: 2px 9px;
|
||||
gap: 4px;
|
||||
padding: 3px 10px;
|
||||
border-radius: var(--radius-pill);
|
||||
background: #431a0033;
|
||||
color: #fb923c;
|
||||
border: 1px solid #431a0066;
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
background: var(--amber-dim);
|
||||
color: var(--amber);
|
||||
border: 1px solid #3a2800;
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
transition: background var(--transition);
|
||||
|
||||
&:hover { background: #3a2800; }
|
||||
}
|
||||
|
||||
// ── Horizontal bar chart (factor scores) ─────────────────────────────────
|
||||
.dp-bar-chart {
|
||||
// ── Factor score cards (redesigned) ──────────────────────────────────────
|
||||
|
||||
.dp-factor-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.dp-bar-row {
|
||||
display: grid;
|
||||
grid-template-columns: 88px 1fr 36px;
|
||||
.dp-factor-item {
|
||||
background: var(--bg-surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-sm);
|
||||
padding: 8px 10px;
|
||||
cursor: pointer;
|
||||
transition: border-color var(--transition);
|
||||
|
||||
&:hover { border-color: var(--purple); }
|
||||
}
|
||||
|
||||
.dp-factor-top {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.dp-bar-label {
|
||||
font-size: 12px;
|
||||
color: #6b8aad;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
.dp-factor-name {
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
color: var(--text-secondary);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
|
||||
.dp-factor-verdict {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 10px;
|
||||
font-weight: 600;
|
||||
padding: 1px 7px;
|
||||
border-radius: var(--radius-xs);
|
||||
|
||||
&.fv-pos { background: var(--green-dim); color: var(--green); }
|
||||
&.fv-neg { background: var(--red-dim); color: var(--red); }
|
||||
&.fv-neu { background: var(--bg-elevated); color: var(--text-secondary); }
|
||||
}
|
||||
|
||||
.dp-factor-reason {
|
||||
font-size: 10px;
|
||||
color: var(--text-muted);
|
||||
margin-bottom: 5px;
|
||||
line-height: 1.4;
|
||||
|
||||
b { color: var(--text-secondary); }
|
||||
}
|
||||
|
||||
.dp-bar-track {
|
||||
height: 10px;
|
||||
background: #0f2040;
|
||||
height: 5px;
|
||||
background: var(--border);
|
||||
border-radius: 3px;
|
||||
overflow: hidden;
|
||||
border: 1px solid #1a3050;
|
||||
}
|
||||
|
||||
.dp-bar-fill {
|
||||
height: 100%;
|
||||
border-radius: 3px;
|
||||
transition: width 0.3s ease;
|
||||
transition: width 0.5s ease;
|
||||
|
||||
&.dp-bar-pos {
|
||||
background: linear-gradient(90deg, #16a34a, #4ade80);
|
||||
box-shadow: 0 0 6px #4ade8044;
|
||||
}
|
||||
|
||||
&.dp-bar-neg {
|
||||
background: linear-gradient(90deg, #991b1b, #f87171);
|
||||
box-shadow: 0 0 6px #f8717144;
|
||||
}
|
||||
&.dp-bar-pos { background: var(--green); }
|
||||
&.dp-bar-neg { background: var(--red); }
|
||||
}
|
||||
|
||||
.dp-bar-val {
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
font-variant-numeric: tabular-nums;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
// ── Gate failures (shown instead of bars when gates fail) ─────────────────
|
||||
// Gate failures list (no factor cards)
|
||||
.dp-failures {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -595,37 +676,28 @@
|
||||
}
|
||||
|
||||
.dp-failure-item {
|
||||
font-size: 13px;
|
||||
color: #f87171;
|
||||
font-size: 12px;
|
||||
color: var(--red);
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.dp-no-factors {
|
||||
font-size: 12px;
|
||||
color: #3a5a7a;
|
||||
color: var(--text-muted);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
|
||||
/* score-cell base — layout only; visual rules are in the dot-scale block above */
|
||||
|
||||
/* Classification tags */
|
||||
.cap-tag { color: var(--blue-light, #93c5fd); border-color: var(--blue-dim, #1e3a5f); }
|
||||
.style-tag { color: var(--text-muted); }
|
||||
|
||||
/* Signed % colouring */
|
||||
.pos { color: var(--green); }
|
||||
.neg { color: var(--red); }
|
||||
|
||||
/* Analyst label — not a number */
|
||||
/* Analyst label */
|
||||
.analyst-cell {
|
||||
font-size: var(--fs-sm);
|
||||
color: var(--text-muted);
|
||||
color: var(--text-secondary);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* .flag / .flag-more removed — replaced by .flags-badge hover-expand system */
|
||||
|
||||
// ── MarketContext (collapsible card) ──────────────────────────────────────
|
||||
|
||||
.ctx-grid {
|
||||
@@ -820,3 +892,69 @@
|
||||
.tip-wrap:hover .tip-box { display: block; }
|
||||
|
||||
.ctx-value { font-size: 17px; font-weight: 700; color: var(--text-primary); margin-top: 4px; }
|
||||
|
||||
// ── Pin button + expand toggle ────────────────────────────────────────────
|
||||
|
||||
.col-expand {
|
||||
width: 52px;
|
||||
min-width: 52px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.row-toggle {
|
||||
color: var(--text-muted);
|
||||
font-size: var(--fs-xs);
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.pin-btn {
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 1px 2px;
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
line-height: 1;
|
||||
opacity: 0.35;
|
||||
transition: opacity var(--transition), transform var(--transition);
|
||||
|
||||
&:hover { opacity: 0.85; transform: scale(1.15); }
|
||||
&.pinned { opacity: 1; }
|
||||
}
|
||||
|
||||
// ── News links in detail panel ────────────────────────────────────────────
|
||||
|
||||
.dp-news-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
margin-top: 10px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.dp-news-label {
|
||||
font-size: var(--fs-xs);
|
||||
color: var(--text-muted);
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.04em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.dp-news-link {
|
||||
font-size: var(--fs-xs);
|
||||
color: var(--blue);
|
||||
text-decoration: none;
|
||||
padding: 3px 8px;
|
||||
border-radius: var(--radius-sm);
|
||||
border: 1px solid var(--border);
|
||||
background: var(--bg-hover);
|
||||
transition: background var(--transition), border-color var(--transition);
|
||||
white-space: nowrap;
|
||||
|
||||
&:hover {
|
||||
background: var(--bg-card);
|
||||
border-color: var(--blue);
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -153,3 +153,387 @@
|
||||
color: var(--text-dim);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
// ── GlossaryPanel ─────────────────────────────────────────────────────────
|
||||
|
||||
.glossary-backdrop {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 98; // below panel (99) — transparent click catcher
|
||||
background: transparent;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.glossary-panel {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
width: 340px;
|
||||
background: #0d1117;
|
||||
border-left: 1px solid #1e2a3a;
|
||||
z-index: 99;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
box-shadow: -6px 0 32px #00000088;
|
||||
}
|
||||
|
||||
.glossary-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 14px 16px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
background: var(--bg-surface);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.glossary-title {
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
color: var(--text-secondary);
|
||||
letter-spacing: 0.01em;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.glossary-title-q {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border-radius: 50%;
|
||||
border: 1.5px solid var(--text-dimmer);
|
||||
font-size: 10px;
|
||||
color: var(--text-dimmer);
|
||||
font-weight: 700;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.glossary-close {
|
||||
margin-left: auto;
|
||||
background: none;
|
||||
border: 1px solid var(--border);
|
||||
color: var(--text-dimmer);
|
||||
font-size: 16px;
|
||||
line-height: 1;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
border-radius: var(--radius-xs);
|
||||
flex-shrink: 0;
|
||||
|
||||
&:hover { color: var(--text-muted); background: var(--bg-card); border-color: var(--border-input); }
|
||||
}
|
||||
|
||||
.glossary-search-wrap {
|
||||
position: relative;
|
||||
padding: 10px 12px;
|
||||
border-bottom: 1px solid var(--border-subtle);
|
||||
flex-shrink: 0;
|
||||
background: var(--bg-surface);
|
||||
}
|
||||
|
||||
.glossary-search {
|
||||
width: 100%;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border-input);
|
||||
border-radius: var(--radius-sm);
|
||||
color: var(--text-secondary);
|
||||
padding: 7px 28px 7px 10px;
|
||||
font-size: 12px;
|
||||
font-family: inherit;
|
||||
outline: none;
|
||||
transition: border-color var(--transition);
|
||||
box-sizing: border-box;
|
||||
|
||||
&::placeholder { color: var(--text-faint); }
|
||||
&:focus { border-color: var(--blue); box-shadow: 0 0 0 2px #3b82f618; }
|
||||
}
|
||||
|
||||
.glossary-search-clear {
|
||||
position: absolute;
|
||||
right: 20px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
background: none;
|
||||
border: none;
|
||||
color: var(--text-faint);
|
||||
font-size: 11px;
|
||||
padding: 2px 4px;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover { color: var(--text-muted); }
|
||||
}
|
||||
|
||||
.glossary-body {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 0 0 20px;
|
||||
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: #1e3a5f transparent;
|
||||
&::-webkit-scrollbar { width: 4px; }
|
||||
&::-webkit-scrollbar-thumb { background: #1e3a5f; border-radius: 2px; }
|
||||
}
|
||||
|
||||
// ── Context banner — fixed between search and body ────────────────────────
|
||||
|
||||
.glossary-ctx-banner {
|
||||
background: #0a2e1a;
|
||||
border-top: 1px solid #1a4a2a;
|
||||
border-bottom: 1px solid #1a4a2a;
|
||||
padding: 9px 14px;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
color: #4ade80;
|
||||
letter-spacing: 0.02em;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
flex-shrink: 0;
|
||||
border-radius: 0; // flush with panel edges
|
||||
}
|
||||
|
||||
.glossary-category { margin-bottom: 2px; }
|
||||
|
||||
.glossary-cat-header {
|
||||
font-size: 9px;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.12em;
|
||||
color: var(--text-faint);
|
||||
padding: 12px 14px 4px;
|
||||
}
|
||||
|
||||
// ── Individual item ───────────────────────────────────────────────────────
|
||||
|
||||
.glossary-item {
|
||||
border-left: 3px solid transparent;
|
||||
transition: border-color 0.15s ease, background 0.1s ease;
|
||||
margin: 0 8px 2px;
|
||||
border-radius: 6px;
|
||||
|
||||
// Highlighted = relevant to selected row → green left border, no bg change
|
||||
&.glossary-item-active {
|
||||
border-left-color: #22c55e;
|
||||
}
|
||||
|
||||
// Open/expanded → purple tint + purple left border
|
||||
&.glossary-item-open {
|
||||
border-left-color: #7c3aed;
|
||||
background: #1a1035;
|
||||
border-radius: 6px;
|
||||
}
|
||||
}
|
||||
|
||||
.glossary-item-trigger {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
background: none;
|
||||
border: none;
|
||||
padding: 9px 10px 9px 11px;
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
gap: 8px;
|
||||
border-radius: 6px;
|
||||
transition: background 0.1s ease;
|
||||
|
||||
&:hover { background: #151f2e; }
|
||||
}
|
||||
|
||||
.glossary-item-label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--text-secondary);
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.glossary-active-dot {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
border-radius: 50%;
|
||||
background: #22c55e;
|
||||
box-shadow: 0 0 4px #22c55e66;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
// ── Category tags — all same gray pill, label text only ───────────────────
|
||||
|
||||
.glossary-cat-tag {
|
||||
font-size: 10px;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.02em;
|
||||
text-transform: capitalize;
|
||||
padding: 2px 9px;
|
||||
border-radius: var(--radius-pill);
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
// All same gray — no per-category color variation
|
||||
background: #1e2736;
|
||||
color: #64748b;
|
||||
border: 1px solid #2a3544;
|
||||
}
|
||||
|
||||
// ── Expanded body — card style matching mockup ────────────────────────────
|
||||
|
||||
.glossary-item-body {
|
||||
margin: 0 8px 10px 8px;
|
||||
padding: 12px 10px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
background: #131c2a;
|
||||
border: 1px solid #1e2d40;
|
||||
border-radius: 8px;
|
||||
overflow: hidden; // prevent pill overflow clipping
|
||||
}
|
||||
|
||||
.glossary-definition {
|
||||
font-size: 13px;
|
||||
color: #94a3b8;
|
||||
line-height: 1.6;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
// ── Gate box (code-styled monospace block) ────────────────────────────────
|
||||
|
||||
.glossary-gate-box {
|
||||
background: #0d1520;
|
||||
border: 1px solid #1e2d40;
|
||||
border-radius: 6px;
|
||||
padding: 10px 12px;
|
||||
|
||||
code {
|
||||
font-family: 'JetBrains Mono', var(--font-mono, 'SF Mono', 'Fira Code', monospace);
|
||||
font-size: 12px;
|
||||
color: #93c5fd;
|
||||
line-height: 1.6;
|
||||
display: block;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
}
|
||||
|
||||
// ── Range pills ───────────────────────────────────────────────────────────
|
||||
|
||||
.glossary-range-pills {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
gap: 4px;
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.glossary-range-pill {
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
padding: 5px 8px;
|
||||
border-radius: var(--radius-pill);
|
||||
white-space: nowrap;
|
||||
line-height: 1.3;
|
||||
flex: 1 1 0;
|
||||
min-width: 0;
|
||||
text-align: center;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
&.grange-good {
|
||||
background: #0d2e1a;
|
||||
color: #4ade80;
|
||||
border: 1px solid #1a4a2a;
|
||||
}
|
||||
|
||||
&.grange-bad {
|
||||
background: #2e0d0d;
|
||||
color: #f87171;
|
||||
border: 1px solid #4a1a1a;
|
||||
}
|
||||
|
||||
&.grange-neutral {
|
||||
background: #1e2736;
|
||||
color: #94a3b8;
|
||||
border: 1px solid #2a3544;
|
||||
}
|
||||
}
|
||||
|
||||
// ── Range labels (below pills) ────────────────────────────────────────────
|
||||
|
||||
.glossary-range-labels {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
width: 100%;
|
||||
|
||||
span {
|
||||
flex: 1 1 0;
|
||||
font-size: 10px;
|
||||
font-weight: 500;
|
||||
text-align: center;
|
||||
line-height: 1.3;
|
||||
}
|
||||
}
|
||||
|
||||
.grlabel-good { color: #4ade80; }
|
||||
.grlabel-neutral { color: #64748b; }
|
||||
.grlabel-bad { color: #f87171; }
|
||||
|
||||
// ── Empty state ───────────────────────────────────────────────────────────
|
||||
|
||||
.glossary-empty {
|
||||
padding: 28px 16px;
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
color: var(--text-dimmer);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
// ── Column-header tooltip (300ms CSS delay) ───────────────────────────────
|
||||
// Only active inside <thead> — metric cards in detail panel use dp-mc-help instead
|
||||
|
||||
thead .col-tip {
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
cursor: help;
|
||||
|
||||
&::after {
|
||||
content: attr(data-tip);
|
||||
position: absolute;
|
||||
bottom: calc(100% + 8px);
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: max-content;
|
||||
max-width: 220px;
|
||||
white-space: normal;
|
||||
background: var(--bg-elevated);
|
||||
border: 1px solid var(--border-input);
|
||||
border-radius: var(--radius-sm);
|
||||
padding: 6px 10px;
|
||||
font-size: 11px;
|
||||
font-weight: 400;
|
||||
text-transform: none;
|
||||
letter-spacing: 0;
|
||||
color: var(--text-secondary);
|
||||
line-height: 1.4;
|
||||
pointer-events: none;
|
||||
opacity: 0;
|
||||
transition: opacity 0.15s ease 300ms;
|
||||
z-index: 200;
|
||||
box-shadow: 0 4px 16px #00000055;
|
||||
}
|
||||
|
||||
&:hover::after { opacity: 1; }
|
||||
}
|
||||
|
||||
+52
-36
@@ -1,56 +1,68 @@
|
||||
// ── Design Tokens ────────────────────────────────────────────────────────
|
||||
// SCSS maps generate CSS custom properties. Organised by category so new
|
||||
// tokens are easy to locate and add. All runtime theming uses var(--name).
|
||||
// Single strict surface hierarchy. No decorative colors — semantic only.
|
||||
|
||||
// Background layers — darkest to lightest
|
||||
$bg: (
|
||||
base: #0f1117, // body, nav background
|
||||
surface: #0d1117, // section cards, sidebar
|
||||
elevated: #111827, // section headers, table headers
|
||||
card: #1e293b, // input bg, tags, summary cards, ctx cards
|
||||
card-hover: #131c2b, // table row hover
|
||||
row-alt: #1a2233, // portfolio table row border
|
||||
base: #0a0e14, // body, nav
|
||||
surface: #111820, // section cards, sidebar, table headers
|
||||
elevated: #1a2332, // input bg, metric cards, chips
|
||||
input: #0d1319, // filter inputs, search fields
|
||||
overlay: #000000a6, // modal backdrop
|
||||
row-sel: #0f1f35, // selected/expanded row background
|
||||
);
|
||||
|
||||
// Borders
|
||||
$borders: (
|
||||
border: #1e293b, // primary — cards, sections, inputs
|
||||
border-subtle: #161f2e, // table row separators
|
||||
border-input: #2d3f55, // form input borders
|
||||
border: #1e2d3d, // primary — cards, sections
|
||||
border-subtle: #10182a, // table row separators
|
||||
border-input: #263447, // form input borders, chips
|
||||
);
|
||||
|
||||
// Text — brightest to most muted
|
||||
$text: (
|
||||
text-primary: #f1f5f9, // headings, tickers, card values
|
||||
text-secondary: #e2e8f0, // body text, input values
|
||||
text-muted: #94a3b8, // secondary text, reasons
|
||||
text-dim: #64748b, // labels, table headers, muted values
|
||||
text-dimmer: #475569, // very muted — timestamps, hints
|
||||
text-faint: #334155, // count badge text, column headers
|
||||
text-primary: #e2eaf4, // headings, tickers, values
|
||||
text-secondary: #7a93ad, // body text, labels, column headers
|
||||
text-muted: #3d5166, // very muted — timestamps, category labels
|
||||
);
|
||||
|
||||
// Blue accent ('blue' is a CSS color name — must be quoted)
|
||||
// Blue accent
|
||||
$blues: (
|
||||
'blue': #3b82f6, // focus ring, progress bar, bar-fill
|
||||
'blue-dark': #2563eb, // primary button bg
|
||||
'blue-darker': #1d4ed8, // primary button hover
|
||||
'blue-muted': #60a5fa, // active tab text, edit icon hover
|
||||
'blue-surface': #1e3a5f, // active tab bg, mode tab bg
|
||||
'blue-deep': #0f2240, // analyze button hover bg
|
||||
'blue-badge': #0d1e30, // sidebar header background
|
||||
'blue': #4da6ff, // selection border, active states
|
||||
'blue-dim': #0d2240, // active tab bg
|
||||
'blue-mid': #1a3a5c, // hover states
|
||||
'blue-dark': #1a4a8a, // primary button bg
|
||||
'blue-darker': #2060aa, // primary button hover
|
||||
// legacy aliases — kept so other partials don't break
|
||||
'blue-muted': #4da6ff,
|
||||
'blue-surface': #1a3a5c,
|
||||
'blue-deep': #0d2240,
|
||||
'blue-badge': #0d1319,
|
||||
);
|
||||
|
||||
// Signal / semantic colors (green/yellow/red/orange are CSS color names — must be quoted)
|
||||
// Semantic colors
|
||||
$signals: (
|
||||
'green': #4ade80,
|
||||
'green-bg': #14532d33,
|
||||
'yellow': #facc15,
|
||||
'yellow-bg': #71350033,
|
||||
'red': #f87171,
|
||||
'red-bg': #450a0a33,
|
||||
'red-deep': #450a0a55, // error banner bg
|
||||
'red-border': #7f1d1d, // error banner border
|
||||
'orange': #fb923c,
|
||||
// green
|
||||
'green': #34d17a,
|
||||
'green-dim': #0d2e1a,
|
||||
'green-mid': #1a4a2a,
|
||||
'green-bg': #0d2e1a, // alias for old name
|
||||
// red
|
||||
'red': #f05a5a,
|
||||
'red-dim': #2e0d0d,
|
||||
'red-bg': #2e0d0d,
|
||||
'red-deep': #2e0d0d,
|
||||
'red-border': #4a1a1a,
|
||||
// amber / warning
|
||||
'amber': #f0b429,
|
||||
'amber-dim': #2e2000,
|
||||
// orange — alias kept
|
||||
'orange': #f0b429,
|
||||
// purple — glossary accent
|
||||
'purple': #a78bfa,
|
||||
'purple-dim': #1e1535,
|
||||
// yellow alias
|
||||
'yellow': #f0b429,
|
||||
'yellow-bg': #2e2000,
|
||||
);
|
||||
|
||||
// ── Emit all maps as CSS custom properties ───────────────────────────────
|
||||
@@ -62,6 +74,9 @@ $signals: (
|
||||
@each $name, $val in $signals { --#{$name}: #{$val}; }
|
||||
|
||||
// Typography
|
||||
--font-ui: 'Inter', -apple-system, sans-serif;
|
||||
--font-mono: 'JetBrains Mono', 'SF Mono', monospace;
|
||||
|
||||
--fs-2xs: 9px;
|
||||
--fs-xs: 10px;
|
||||
--fs-sm: 11px;
|
||||
@@ -87,5 +102,6 @@ $signals: (
|
||||
--space-3xl: 32px;
|
||||
|
||||
// Transitions
|
||||
--transition: 0.15s;
|
||||
--transition: 0.18s ease;
|
||||
--transition-slow: 0.28s cubic-bezier(.4,0,.2,1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user