feat: apply B-147 visual tokens to shell and three representative pages
Closes B-156 Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
co-authored by
Cursor
multica-agent
parent
b60a4cb682
commit
e778c883db
@@ -227,7 +227,7 @@
|
||||
|
||||
font-size: var(--font-size-card-title);
|
||||
|
||||
font-weight: var(--font-weight-bold);
|
||||
font-weight: var(--font-weight-semibold);
|
||||
}
|
||||
|
||||
.card-h .sub {
|
||||
|
||||
@@ -52,21 +52,21 @@
|
||||
}
|
||||
|
||||
.segmented {
|
||||
height: 34px;
|
||||
height: var(--control-height);
|
||||
|
||||
display: flex;
|
||||
|
||||
overflow: hidden;
|
||||
|
||||
min-height: 36px;
|
||||
min-height: var(--control-height);
|
||||
|
||||
padding: 2px;
|
||||
|
||||
border: 0px;
|
||||
|
||||
border-radius: 7px;
|
||||
border-radius: var(--radius-md);
|
||||
|
||||
background: rgb(236, 239, 244);
|
||||
background: var(--surface-muted);
|
||||
}
|
||||
|
||||
.segment {
|
||||
@@ -82,11 +82,11 @@
|
||||
|
||||
border: 0px;
|
||||
|
||||
border-radius: 5px;
|
||||
border-radius: 6px;
|
||||
|
||||
color: var(--text-secondary);
|
||||
|
||||
font-size: 11.5px;
|
||||
font-size: var(--font-size-label);
|
||||
}
|
||||
|
||||
.segment.active {
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
|
||||
color: var(--text-muted);
|
||||
|
||||
text-align: center;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.table-action {
|
||||
@@ -242,7 +242,7 @@
|
||||
}
|
||||
|
||||
.data-table thead th {
|
||||
padding: 0px 11px;
|
||||
padding: 0 12px;
|
||||
|
||||
border-bottom: 1px solid var(--border);
|
||||
|
||||
@@ -256,17 +256,25 @@
|
||||
|
||||
height: 36px;
|
||||
|
||||
font-size: var(--font-size-label);
|
||||
font-size: var(--font-size-caption);
|
||||
}
|
||||
|
||||
.data-table tbody td {
|
||||
padding: 6px 11px;
|
||||
|
||||
border-bottom: 1px solid var(--border-subtle);
|
||||
|
||||
padding: 0 12px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
color: var(--text-primary);
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
height: 41px;
|
||||
.data-table thead tr:last-child th:first-child,
|
||||
.data-table tbody td:first-child,
|
||||
.tbl thead tr:last-child th:first-child,
|
||||
.tbl tbody td:first-child {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.tbl .row-number {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.main-grid .data-table thead th {
|
||||
@@ -300,11 +308,11 @@
|
||||
|
||||
font-weight: 600;
|
||||
|
||||
font-size: 12px;
|
||||
font-size: var(--font-size-caption);
|
||||
|
||||
text-align: left;
|
||||
|
||||
padding: 8px 12px;
|
||||
padding: 0 12px;
|
||||
|
||||
border-bottom: 1px solid var(--line);
|
||||
|
||||
@@ -336,13 +344,17 @@
|
||||
}
|
||||
|
||||
.tbl tbody td {
|
||||
padding: 9px 12px;
|
||||
padding: 0 12px;
|
||||
|
||||
border-bottom: 1px solid var(--line-soft);
|
||||
|
||||
white-space: nowrap;
|
||||
|
||||
vertical-align: middle;
|
||||
|
||||
height: 40px;
|
||||
|
||||
font-size: var(--font-size-table);
|
||||
}
|
||||
|
||||
.tbl tbody tr:hover {
|
||||
|
||||
@@ -99,6 +99,22 @@ function renderDashboard() {
|
||||
setText("dataDateMetric", dashboardDataTimestamp(meta));
|
||||
animateMetric("sentimentScore", overview.sentiment_score, (value) => Math.round(value));
|
||||
setText("sentimentText", sentimentLabel(overview.sentiment_score));
|
||||
const sentimentChip = document.querySelector("#sentimentText");
|
||||
if (sentimentChip) {
|
||||
const label = sentimentLabel(overview.sentiment_score);
|
||||
sentimentChip.classList.toggle("is-hot", label === "情绪高涨");
|
||||
sentimentChip.classList.toggle("is-strong", label === "情绪偏强");
|
||||
sentimentChip.classList.toggle("is-cold", label === "情绪冰点" || label === "情绪偏弱");
|
||||
}
|
||||
const pageSubtitle = document.querySelector("#currentPageSubtitle");
|
||||
const activePage = window.XiaobaiPages?.get(state.activeView);
|
||||
if (pageSubtitle && activePage?.id !== "mentorView") {
|
||||
const groupLabel = activePage?.group === "market"
|
||||
? "市场复盘"
|
||||
: activePage?.group === "personal" ? "个人" : "智能工具";
|
||||
const dateText = displayCompactDate(meta.trade_date);
|
||||
pageSubtitle.textContent = dateText === "--" ? groupLabel : `${groupLabel} · ${dateText}`;
|
||||
}
|
||||
updateSentimentGauge(overview.sentiment_score);
|
||||
setText("updatedAt", `${dashboardSourceLabel(meta)} · 更新 ${formatTimestamp(meta.updated_at)}`);
|
||||
|
||||
|
||||
+441
-38
@@ -1024,8 +1024,8 @@ body.sidebar-collapsed .app-main {
|
||||
grid-template-columns: 176px minmax(0px, 1fr) auto;
|
||||
}
|
||||
|
||||
.market-tape {
|
||||
display: none;
|
||||
.app-header .market-tape {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.module-nav {
|
||||
@@ -1424,19 +1424,19 @@ body.sidebar-collapsed .module-nav .nav-group + .nav-group {
|
||||
|
||||
padding: 12px 10px 4px;
|
||||
|
||||
color: var(--r2-faint);
|
||||
color: var(--text-3);
|
||||
|
||||
font-size: 11px;
|
||||
font-size: var(--fs-aux);
|
||||
|
||||
font-weight: 400;
|
||||
font-weight: 600;
|
||||
|
||||
letter-spacing: 0px;
|
||||
letter-spacing: .04em;
|
||||
}
|
||||
|
||||
.module-nav .module-tab {
|
||||
width: 100%;
|
||||
|
||||
min-height: 34px;
|
||||
min-height: 36px;
|
||||
|
||||
display: flex;
|
||||
|
||||
@@ -1456,9 +1456,9 @@ body.sidebar-collapsed .module-nav .nav-group + .nav-group {
|
||||
|
||||
background: transparent;
|
||||
|
||||
color: var(--text-secondary);
|
||||
color: var(--text-2);
|
||||
|
||||
font-size: 13px;
|
||||
font-size: var(--fs-table);
|
||||
|
||||
font-weight: 400;
|
||||
}
|
||||
@@ -1476,23 +1476,23 @@ body.sidebar-collapsed .module-nav .nav-group + .nav-group {
|
||||
}
|
||||
|
||||
.module-nav .module-tab:hover {
|
||||
background: var(--surface-hover);
|
||||
background: var(--hover);
|
||||
|
||||
color: var(--r2-ink);
|
||||
color: var(--text-1);
|
||||
}
|
||||
|
||||
.module-nav .module-tab.active {
|
||||
background: var(--r2-blue-soft);
|
||||
background: var(--selected);
|
||||
|
||||
color: var(--r2-blue);
|
||||
color: var(--accent);
|
||||
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.module-nav .module-tab.mobile-active {
|
||||
background: var(--r2-blue-soft);
|
||||
background: var(--selected);
|
||||
|
||||
color: var(--r2-blue);
|
||||
color: var(--accent);
|
||||
|
||||
font-weight: 600;
|
||||
}
|
||||
@@ -2008,7 +2008,7 @@ body.sidebar-collapsed .module-nav .module-tab {
|
||||
|
||||
width: auto;
|
||||
|
||||
min-height: 30px;
|
||||
min-height: var(--statusbar-height);
|
||||
|
||||
height: var(--statusbar-height);
|
||||
|
||||
@@ -2022,11 +2022,11 @@ body.sidebar-collapsed .module-nav .module-tab {
|
||||
|
||||
border-top: 1px solid var(--line);
|
||||
|
||||
background: var(--surface);
|
||||
background: var(--header-bg);
|
||||
|
||||
color: var(--faint);
|
||||
color: var(--text-3);
|
||||
|
||||
font-size: 11.5px;
|
||||
font-size: var(--fs-aux);
|
||||
}
|
||||
|
||||
body.sidebar-collapsed .status-bar {
|
||||
@@ -2168,7 +2168,7 @@ body.sidebar-collapsed .status-bar {
|
||||
|
||||
width: var(--sidebar-width);
|
||||
|
||||
background: var(--surface);
|
||||
background: var(--header-bg);
|
||||
|
||||
border-right: 1px solid var(--line);
|
||||
|
||||
@@ -2277,6 +2277,8 @@ body.sidebar-collapsed .status-bar {
|
||||
margin-left: var(--sidebar-width);
|
||||
|
||||
min-width: 0;
|
||||
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
@media (min-width: 1280px) {
|
||||
@@ -2292,7 +2294,7 @@ body.sidebar-collapsed .status-bar {
|
||||
|
||||
width: auto;
|
||||
|
||||
min-height: 46px;
|
||||
min-height: var(--topbar-height);
|
||||
|
||||
box-shadow: none;
|
||||
|
||||
@@ -2304,17 +2306,17 @@ body.sidebar-collapsed .status-bar {
|
||||
|
||||
z-index: 50;
|
||||
|
||||
background: var(--surface);
|
||||
background: var(--header-bg);
|
||||
|
||||
border-bottom: 1px solid var(--line);
|
||||
border-bottom: 1px solid var(--border);
|
||||
|
||||
display: flex;
|
||||
|
||||
align-items: center;
|
||||
|
||||
gap: 14px;
|
||||
gap: 24px;
|
||||
|
||||
padding: 0 var(--page-pad-x);
|
||||
padding: 0 20px;
|
||||
|
||||
height: var(--topbar-height);
|
||||
}
|
||||
@@ -2494,8 +2496,8 @@ body.sidebar-collapsed .status-bar {
|
||||
padding: var(--mobile-shell-pad);
|
||||
}
|
||||
|
||||
.market-tape {
|
||||
display: none;
|
||||
.app-header .market-tape {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.header-actions {
|
||||
@@ -2746,10 +2748,20 @@ body.sidebar-collapsed .status-bar {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
:root[data-theme="dark"] :is(.module-nav, .app-header, .overview-strip, .status-bar) {
|
||||
:root[data-theme="dark"] :is(.module-nav, .app-header, .status-bar) {
|
||||
border-color: var(--border);
|
||||
|
||||
background: var(--surface);
|
||||
background: var(--header-bg);
|
||||
|
||||
color: var(--text-primary);
|
||||
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
:root[data-theme="dark"] .overview-strip {
|
||||
border-color: var(--border);
|
||||
|
||||
background: transparent;
|
||||
|
||||
color: var(--text-primary);
|
||||
|
||||
@@ -2757,7 +2769,7 @@ body.sidebar-collapsed .status-bar {
|
||||
}
|
||||
|
||||
:root[data-theme="dark"] .app-header {
|
||||
background: color-mix(in srgb, var(--surface) 96%, transparent);
|
||||
background: var(--header-bg);
|
||||
}
|
||||
|
||||
:root[data-theme="dark"] :is(.sidebar-brand, .module-nav .sidebar-brand, .nav-group, .sidebar-collapse-button, .header-date-group) {
|
||||
@@ -3242,12 +3254,14 @@ body.sidebar-collapsed .status-bar {
|
||||
/* Generic page title slot in the shell header. Kept hidden so each page owns
|
||||
its own in-view title header (mentor renders one inside #mentorView). */
|
||||
.app-page-context {
|
||||
min-width: 0;
|
||||
flex: 1 1 auto;
|
||||
min-width: 148px;
|
||||
max-width: 280px;
|
||||
flex: 0 1 auto;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
gap: 2px;
|
||||
display: none;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
#themeModeText {
|
||||
@@ -3256,9 +3270,9 @@ body.sidebar-collapsed .status-bar {
|
||||
|
||||
.app-page-context strong {
|
||||
overflow: hidden;
|
||||
color: var(--text-primary);
|
||||
font-size: 18px;
|
||||
font-weight: var(--font-weight-semibold);
|
||||
color: var(--text-1);
|
||||
font-size: var(--fs-page-title);
|
||||
font-weight: 600;
|
||||
line-height: 1.3;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
@@ -3266,9 +3280,398 @@ body.sidebar-collapsed .status-bar {
|
||||
|
||||
.app-page-context span {
|
||||
overflow: hidden;
|
||||
color: var(--text-secondary);
|
||||
font-size: 13px;
|
||||
color: var(--text-3);
|
||||
font-size: var(--fs-caption);
|
||||
line-height: 1.4;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* Canonical B-147 merged header. */
|
||||
.app-header .overview-strip,
|
||||
.app-header .overview-strip[data-overview-expanded="true"] {
|
||||
position: static;
|
||||
display: flex;
|
||||
flex: 1 1 auto;
|
||||
align-items: stretch;
|
||||
width: auto;
|
||||
height: auto;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow: visible;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.app-header .market-tape {
|
||||
display: flex;
|
||||
flex: 1 1 auto;
|
||||
align-items: center;
|
||||
min-width: 0;
|
||||
gap: 0;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.tape-metric {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
gap: 2px;
|
||||
min-width: 0;
|
||||
padding: 0 16px;
|
||||
}
|
||||
|
||||
.tape-metric + .tape-metric::before,
|
||||
.tape-metric + .overview-toggle::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0;
|
||||
width: 1px;
|
||||
height: 26px;
|
||||
background: var(--border);
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
|
||||
.tape-metric .metric-label {
|
||||
color: var(--text-3);
|
||||
font-size: var(--fs-aux);
|
||||
}
|
||||
|
||||
.tape-metric-value,
|
||||
.tape-metric .metric-value {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
overflow: hidden;
|
||||
color: var(--text-1);
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
font-variant-numeric: tabular-nums;
|
||||
line-height: 1.2;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.tape-metric .metric-value.up,
|
||||
.tape-detail-item .up {
|
||||
color: var(--up);
|
||||
}
|
||||
|
||||
.tape-metric .metric-value.down,
|
||||
.tape-detail-item .down {
|
||||
color: var(--down);
|
||||
}
|
||||
|
||||
.tape-metric .metric-value.warning {
|
||||
color: var(--warn);
|
||||
}
|
||||
|
||||
.tape-sentiment .sentiment-gauge {
|
||||
position: absolute;
|
||||
width: 0;
|
||||
height: 0;
|
||||
overflow: hidden;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.tape-sentiment .sentiment-text {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
height: 18px;
|
||||
padding: 0 6px;
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--accent-soft);
|
||||
color: var(--accent);
|
||||
font-size: var(--fs-caption);
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
||||
.tape-sentiment .sentiment-text.is-hot {
|
||||
background: var(--up-soft);
|
||||
color: var(--up);
|
||||
}
|
||||
|
||||
.tape-sentiment .sentiment-text.is-strong {
|
||||
background: var(--accent-soft);
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.tape-sentiment .sentiment-text.is-cold {
|
||||
background: var(--down-soft);
|
||||
color: var(--down);
|
||||
}
|
||||
|
||||
.app-header .overview-toggle {
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
height: 28px;
|
||||
min-height: 28px;
|
||||
margin-left: 14px;
|
||||
padding: 0 10px;
|
||||
border: 0;
|
||||
border-radius: var(--radius-md);
|
||||
background: transparent;
|
||||
color: var(--text-2);
|
||||
font-size: var(--fs-label);
|
||||
}
|
||||
|
||||
.app-header .overview-toggle:hover {
|
||||
background: var(--hover);
|
||||
color: var(--text-1);
|
||||
}
|
||||
|
||||
.app-header .overview-toggle .lucide {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
.tape-detail {
|
||||
position: absolute;
|
||||
top: calc(var(--topbar-height) + 1px);
|
||||
right: 0;
|
||||
left: 0;
|
||||
z-index: 45;
|
||||
display: none;
|
||||
grid-template-columns: repeat(6, minmax(0, 1fr));
|
||||
gap: 0 16px;
|
||||
padding: 14px 20px 16px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
background: var(--header-bg);
|
||||
box-shadow: var(--shadow-raised);
|
||||
}
|
||||
|
||||
.overview-strip[data-overview-expanded="true"] .tape-detail {
|
||||
display: grid;
|
||||
}
|
||||
|
||||
.tape-detail-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 3px;
|
||||
padding: 8px 14px;
|
||||
border-radius: var(--radius-md);
|
||||
}
|
||||
|
||||
.tape-detail-item:hover {
|
||||
background: var(--hover);
|
||||
}
|
||||
|
||||
.tape-detail-item span {
|
||||
color: var(--text-3);
|
||||
font-size: var(--fs-aux);
|
||||
}
|
||||
|
||||
.tape-detail-item strong {
|
||||
color: var(--text-1);
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.app-header .header-actions {
|
||||
display: flex;
|
||||
flex: 0 0 auto;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.app-header .header-date-group {
|
||||
height: 32px;
|
||||
min-height: 32px;
|
||||
gap: 2px;
|
||||
margin-right: 6px;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.app-header .header-date-group .icon-button,
|
||||
.app-header .header-actions > .icon-button {
|
||||
width: 32px;
|
||||
min-width: 32px;
|
||||
height: 32px;
|
||||
min-height: 32px;
|
||||
border: 0;
|
||||
border-radius: var(--radius-md);
|
||||
background: transparent;
|
||||
color: var(--text-2);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.app-header .header-actions > .icon-button:hover,
|
||||
.app-header .header-date-group .icon-button:hover {
|
||||
background: var(--hover);
|
||||
color: var(--text-1);
|
||||
}
|
||||
|
||||
.app-header .header-date-group .date-input {
|
||||
width: auto;
|
||||
height: 32px;
|
||||
padding: 0 10px;
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: var(--radius-md);
|
||||
background: var(--surface);
|
||||
color: var(--text-1);
|
||||
font-size: var(--fs-label);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.app-header .header-actions > .icon-button .lucide,
|
||||
.app-header .header-date-group .lucide {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.app-header .alert-button {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.app-header .alert-badge {
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
right: 5px;
|
||||
min-width: 14px;
|
||||
height: 14px;
|
||||
padding: 0 3px;
|
||||
border-radius: 7px;
|
||||
background: var(--up);
|
||||
color: #fff;
|
||||
font-size: 10px;
|
||||
font-weight: 600;
|
||||
line-height: 14px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#heavenView.workspace-view,
|
||||
#heavenReadingDialog {
|
||||
--color-action-base: #2563eb;
|
||||
--color-action: #2563eb;
|
||||
--color-action-base-hover: #1d4ed8;
|
||||
--color-action-hover: #1d4ed8;
|
||||
--color-action-base-soft: #eff4ff;
|
||||
--color-action-soft: #eff4ff;
|
||||
--action: #2563eb;
|
||||
--action-hover: #1d4ed8;
|
||||
--action-soft: #eff4ff;
|
||||
--accent: #2563eb;
|
||||
--primary: #2563eb;
|
||||
--blue: #2563eb;
|
||||
--r2-blue: #2563eb;
|
||||
--focus-ring: rgba(37, 99, 235, .16);
|
||||
--text-primary: #1f2937;
|
||||
--text-secondary: #6b7280;
|
||||
--text-tertiary: #9ca3af;
|
||||
--border: #e5e7eb;
|
||||
--border-strong: #d1d5db;
|
||||
--surface-hover: #f8faff;
|
||||
--surface-selected: #eff4ff;
|
||||
--size-radius-sm: 5px;
|
||||
--size-radius-md: 7px;
|
||||
}
|
||||
|
||||
:root[data-theme="dark"] #heavenView.workspace-view,
|
||||
:root[data-theme="dark"] #heavenReadingDialog {
|
||||
--action: #6ca8e8;
|
||||
--action-hover: #8bbcf0;
|
||||
--action-soft: #23364a;
|
||||
--accent: #6ca8e8;
|
||||
--primary: #6ca8e8;
|
||||
--blue: #6ca8e8;
|
||||
--r2-blue: #6ca8e8;
|
||||
--canvas: #121416;
|
||||
--surface: #1b1e21;
|
||||
--surface-muted: #202428;
|
||||
--border: #343a40;
|
||||
--border-strong: #474f57;
|
||||
--text-primary: #e8eaed;
|
||||
--text-secondary: #adb5bd;
|
||||
--text-tertiary: #7f8993;
|
||||
--market-up: #f06d73;
|
||||
--market-up-soft: #40262a;
|
||||
--focus-ring: rgba(108, 168, 232, .22);
|
||||
}
|
||||
|
||||
@media (min-width: 1024px) and (max-width: 1439px) {
|
||||
.tape-optional {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1023px) {
|
||||
.app-header {
|
||||
gap: 8px;
|
||||
height: var(--mobile-header-height);
|
||||
min-height: var(--mobile-header-height);
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
.app-page-context {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.app-header .overview-strip,
|
||||
.app-header .overview-strip[data-overview-expanded="true"] {
|
||||
flex: 0 0 auto;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.app-header .market-tape .tape-metric {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.app-header .overview-toggle {
|
||||
width: var(--mobile-touch-size);
|
||||
min-width: var(--mobile-touch-size);
|
||||
height: var(--mobile-touch-size);
|
||||
min-height: var(--mobile-touch-size);
|
||||
margin-left: 0;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.app-header .overview-toggle span {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.tape-detail,
|
||||
.overview-strip[data-overview-expanded="true"] .tape-detail {
|
||||
top: calc(var(--mobile-header-height) + 1px);
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
body.mobile-shell .app-header .overview-strip,
|
||||
body.mobile-shell .app-header .overview-strip[data-overview-expanded="true"] {
|
||||
width: auto;
|
||||
height: auto;
|
||||
min-height: 0;
|
||||
display: flex;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow: visible;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
body.mobile-shell .app-header .market-tape {
|
||||
display: flex;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
body.mobile-shell .app-header .overview-toggle {
|
||||
display: inline-flex;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -73,7 +73,12 @@
|
||||
const pageTitle = document.querySelector("#currentPageTitle");
|
||||
if (pageTitle) pageTitle.textContent = page?.title || "小白复盘";
|
||||
const pageSubtitle = document.querySelector("#currentPageSubtitle");
|
||||
if (pageSubtitle && previousActiveView !== viewId) pageSubtitle.textContent = "";
|
||||
if (pageSubtitle && previousActiveView !== viewId) {
|
||||
const groupLabel = page?.group === "market"
|
||||
? "市场复盘"
|
||||
: page?.group === "personal" ? "个人" : "智能工具";
|
||||
pageSubtitle.textContent = groupLabel;
|
||||
}
|
||||
document.querySelectorAll(".module-tab").forEach((button) => {
|
||||
button.classList.toggle("active", button.dataset.view === navigationId);
|
||||
button.classList.toggle(
|
||||
@@ -189,26 +194,35 @@
|
||||
toggleHeaderCommandMenu(false);
|
||||
}
|
||||
});
|
||||
function setOverviewExpanded(expanded) {
|
||||
const overview = document.querySelector(".overview-strip");
|
||||
const button = document.querySelector("#overviewToggle");
|
||||
if (!overview || !button) return;
|
||||
overview.dataset.overviewExpanded = String(expanded);
|
||||
button.setAttribute("aria-expanded", String(expanded));
|
||||
button.title = expanded ? "收起市场详情" : "展开市场详情";
|
||||
const label = button.querySelector("span");
|
||||
if (label) label.textContent = "详情";
|
||||
button.querySelector("i")?.setAttribute("data-lucide", expanded ? "chevron-up" : "chevron-down");
|
||||
options.refreshIcons?.();
|
||||
}
|
||||
|
||||
document.querySelector("#overviewToggle")?.addEventListener("click", (event) => {
|
||||
event.stopPropagation();
|
||||
const overview = document.querySelector(".overview-strip");
|
||||
if (!overview) return;
|
||||
const expanded = overview.dataset.overviewExpanded !== "true";
|
||||
overview.dataset.overviewExpanded = String(expanded);
|
||||
event.currentTarget.setAttribute("aria-expanded", String(expanded));
|
||||
event.currentTarget.title = expanded ? "收起市场详情" : "展开市场详情";
|
||||
const label = event.currentTarget.querySelector("span");
|
||||
if (label) label.textContent = expanded ? "收起详情" : "展开详情";
|
||||
event.currentTarget.querySelector("i")?.setAttribute(
|
||||
"data-lucide",
|
||||
expanded ? "chevron-up" : "chevron-down",
|
||||
);
|
||||
options.refreshIcons?.();
|
||||
setOverviewExpanded(expanded);
|
||||
if (expanded) toggleHeaderCommandMenu(false);
|
||||
});
|
||||
document.addEventListener("click", (event) => {
|
||||
if (!event.target.closest(".header-actions")) toggleHeaderCommandMenu(false);
|
||||
if (!event.target.closest(".overview-strip")) setOverviewExpanded(false);
|
||||
});
|
||||
document.addEventListener("keydown", (event) => {
|
||||
if (event.key === "Escape") toggleHeaderCommandMenu(false);
|
||||
if (event.key !== "Escape") return;
|
||||
toggleHeaderCommandMenu(false);
|
||||
setOverviewExpanded(false);
|
||||
});
|
||||
global.addEventListener("resize", () => {
|
||||
toggleHeaderCommandMenu(false);
|
||||
|
||||
+114
-63
@@ -22,19 +22,20 @@
|
||||
--color-gray-900: #1f2937;
|
||||
--color-shell-canvas: #f4f5f7;
|
||||
--color-page-canvas: #f4f5f7;
|
||||
--color-surface-muted: #f3f4f6;
|
||||
--color-surface-subtle: #f8fafc;
|
||||
--color-border: #e5e7eb;
|
||||
--color-border-strong: #d1d5db;
|
||||
--color-text-primary: #1f2937;
|
||||
--color-text-secondary: #6b7280;
|
||||
--color-text-tertiary: #9ca3af;
|
||||
--color-action-base: #2563eb;
|
||||
--color-action-base-hover: #1d4ed8;
|
||||
--color-action-base-soft: #eff4ff;
|
||||
--color-action: #2563eb;
|
||||
--color-action-hover: #1d4ed8;
|
||||
--color-action-soft: #eff4ff;
|
||||
--color-surface-muted: #f2f3f5;
|
||||
--color-surface-subtle: #f8f9fb;
|
||||
--color-border: #eceded;
|
||||
--color-border-strong: #dee0e3;
|
||||
--color-text-primary: #1f2329;
|
||||
--color-text-secondary: #646a73;
|
||||
--color-text-tertiary: #8f959e;
|
||||
--color-action-base: #3370ff;
|
||||
--color-action-base-hover: #2b5fd9;
|
||||
--color-action-base-soft: #eaf1fe;
|
||||
--color-action: #3370ff;
|
||||
--color-action-hover: #2b5fd9;
|
||||
--color-action-soft: #eaf1fe;
|
||||
--color-action-press: #2456b8;
|
||||
--color-action-line: #c7d8fb;
|
||||
--color-market-up-base: #e04536;
|
||||
--color-market-up-base-soft: #fdecea;
|
||||
@@ -49,24 +50,25 @@
|
||||
--color-warning: #b45309;
|
||||
--color-warning-soft: #fdf3e3;
|
||||
|
||||
--size-radius-sm: 5px;
|
||||
--size-radius-md: 7px;
|
||||
--size-radius-sm: 4px;
|
||||
--size-radius-md: 8px;
|
||||
--size-radius-lg: 10px;
|
||||
--size-radius-dialog: 12px;
|
||||
--size-control: 32px;
|
||||
--size-sidebar: 200px;
|
||||
--size-topbar: 46px;
|
||||
--size-summary: 36px;
|
||||
--size-statusbar: 30px;
|
||||
--size-topbar: 64px;
|
||||
--size-summary: 0px;
|
||||
--size-statusbar: 28px;
|
||||
--size-page-pad-y: 14px;
|
||||
--size-page-pad-x: 16px;
|
||||
--size-card-gap: 12px;
|
||||
|
||||
--elevation-card: 0 1px 2px rgba(16, 24, 40, .05);
|
||||
--elevation-soft: 0 1px 2px rgba(16, 24, 40, .05);
|
||||
--elevation-raised: 0 4px 14px rgba(16, 24, 40, .06);
|
||||
--elevation-float: 0 12px 32px rgba(0, 0, 0, .18);
|
||||
--elevation-card: 0 1px 2px rgba(31, 35, 41, .04);
|
||||
--elevation-soft: 0 1px 2px rgba(31, 35, 41, .04);
|
||||
--elevation-raised: 0 2px 6px rgba(31, 35, 41, .04), 0 8px 24px rgba(31, 35, 41, .06);
|
||||
--elevation-float: 0 12px 32px rgba(0, 0, 0, .14);
|
||||
--motion-instant: 100ms;
|
||||
--motion-fast: 140ms;
|
||||
--motion-fast: 120ms;
|
||||
--motion-medium: 200ms;
|
||||
--motion-deliberate: 260ms;
|
||||
--motion-slow: 560ms;
|
||||
@@ -80,8 +82,11 @@
|
||||
--surface-canvas: var(--color-page-canvas);
|
||||
--surface-raised: var(--color-white);
|
||||
--surface-sunken: #eef0f3;
|
||||
--surface-hover: #f8faff;
|
||||
--surface-selected: #eff4ff;
|
||||
--header-bg: var(--color-white);
|
||||
--surface-hover: #f2f3f5;
|
||||
--surface-selected: #eaf1fe;
|
||||
--hover: var(--surface-hover);
|
||||
--selected: var(--surface-selected);
|
||||
--surface-overlay: var(--color-white);
|
||||
--border: var(--color-border);
|
||||
--border-strong: var(--color-border-strong);
|
||||
@@ -93,7 +98,12 @@
|
||||
--on-action: #ffffff;
|
||||
--action: var(--color-action-base);
|
||||
--action-hover: var(--color-action-base-hover);
|
||||
--action-press: var(--color-action-press);
|
||||
--action-soft: var(--color-action-base-soft);
|
||||
--accent: var(--action);
|
||||
--accent-hover: var(--action-hover);
|
||||
--accent-press: var(--action-press);
|
||||
--accent-soft: var(--action-soft);
|
||||
--market-up: var(--color-market-up-base);
|
||||
--market-up-soft: var(--color-market-up-base-soft);
|
||||
--market-down: var(--color-market-down-base);
|
||||
@@ -106,7 +116,12 @@
|
||||
--table-header: var(--surface-subtle);
|
||||
--table-hover: #f8faff;
|
||||
--table-selected: var(--surface-selected);
|
||||
--focus-ring: rgba(37, 99, 235, .16);
|
||||
--focus-ring: rgba(51, 112, 255, .15);
|
||||
--text-1: var(--text-primary);
|
||||
--text-2: var(--text-secondary);
|
||||
--text-3: var(--text-tertiary);
|
||||
--warn: var(--warning-color);
|
||||
--warn-soft: var(--warning-soft);
|
||||
--backdrop: rgba(17, 24, 39, .48);
|
||||
--primary: var(--color-action);
|
||||
--primary-hover: var(--color-action-hover);
|
||||
@@ -126,18 +141,32 @@
|
||||
--radius-lg: var(--size-radius-lg);
|
||||
--shadow-xs: var(--elevation-card);
|
||||
--shadow-sm: var(--elevation-raised);
|
||||
--shadow-card: var(--elevation-card);
|
||||
--shadow-raised: var(--elevation-raised);
|
||||
--shadow-float: var(--elevation-float);
|
||||
--duration-fast: 150ms;
|
||||
--duration-normal: 220ms;
|
||||
|
||||
--font-size-aux: 10.5px;
|
||||
--font-size-caption: 11px;
|
||||
--font-size-label: 12px;
|
||||
--font-size-table: 12.5px;
|
||||
--font-size-body: 13px;
|
||||
--font-size-card-title: 14px;
|
||||
--font-size-page-title: 17px;
|
||||
--font-size-metric: 22px;
|
||||
--font-size-aux: 11.5px;
|
||||
--font-size-caption: 12.5px;
|
||||
--font-size-label: 13px;
|
||||
--font-size-table: 13.5px;
|
||||
--font-size-body: 14px;
|
||||
--font-size-chat: 14px;
|
||||
--font-size-card-title: 15px;
|
||||
--font-size-page-title: 18px;
|
||||
--font-size-metric: 24px;
|
||||
--font-size-hero: 30px;
|
||||
--fs-aux: var(--font-size-aux);
|
||||
--fs-caption: var(--font-size-caption);
|
||||
--fs-label: var(--font-size-label);
|
||||
--fs-table: var(--font-size-table);
|
||||
--fs-body: var(--font-size-body);
|
||||
--fs-chat: var(--font-size-chat);
|
||||
--fs-card-title: var(--font-size-card-title);
|
||||
--fs-page-title: var(--font-size-page-title);
|
||||
--fs-metric: var(--font-size-metric);
|
||||
--fs-hero: var(--font-size-hero);
|
||||
--font-weight-regular: 400;
|
||||
--font-weight-medium: 500;
|
||||
--font-weight-semibold: 600;
|
||||
@@ -147,6 +176,7 @@
|
||||
--space-8: 8px;
|
||||
--space-12: 12px;
|
||||
--space-16: 16px;
|
||||
--space-20: 20px;
|
||||
--space-24: 24px;
|
||||
|
||||
--sidebar-width: var(--size-sidebar);
|
||||
@@ -220,8 +250,10 @@
|
||||
--dragon-profile-weight-semibold: 600;
|
||||
|
||||
--mentor-directory-width: 300px;
|
||||
--mentor-pane-header-height: 60px;
|
||||
--mentor-avatar-size: 42px;
|
||||
--mentor-pane-header-height: 56px;
|
||||
--mentor-avatar-size: 40px;
|
||||
--mentor-message-avatar-size: 36px;
|
||||
--mentor-chat-avatar-size: 38px;
|
||||
--mentor-profile-avatar-size: 68px;
|
||||
--mentor-composer-min-height: 85px;
|
||||
--mentor-message-max-width: 60%;
|
||||
@@ -312,45 +344,64 @@
|
||||
--r2-radius: var(--size-radius-lg);
|
||||
--r2-shadow: var(--elevation-card);
|
||||
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", "PingFang SC", "Microsoft YaHei UI", sans-serif;
|
||||
font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
:root[data-theme="dark"] {
|
||||
color-scheme: dark;
|
||||
--canvas: #121416;
|
||||
--surface: #1b1e21;
|
||||
--surface-muted: #202428;
|
||||
--surface-subtle: #24282d;
|
||||
--canvas: #141519;
|
||||
--header-bg: #1c1e23;
|
||||
--surface: #232529;
|
||||
--surface-muted: #2a2d33;
|
||||
--surface-subtle: #202329;
|
||||
--surface-canvas: var(--canvas);
|
||||
--surface-raised: var(--surface);
|
||||
--surface-sunken: #16191c;
|
||||
--surface-hover: #24282d;
|
||||
--surface-selected: #23364a;
|
||||
--surface-overlay: #24282d;
|
||||
--border: #343a40;
|
||||
--border-strong: #474f57;
|
||||
--border-subtle: #2a2f34;
|
||||
--surface-sunken: #191b1f;
|
||||
--surface-hover: #2a2d33;
|
||||
--surface-selected: #2b3b58;
|
||||
--surface-overlay: #232529;
|
||||
--hover: var(--surface-hover);
|
||||
--selected: var(--surface-selected);
|
||||
--border: #2b2e34;
|
||||
--border-strong: #3a3e47;
|
||||
--border-subtle: #2b2e34;
|
||||
--text-primary: #e8eaed;
|
||||
--text-secondary: #adb5bd;
|
||||
--text-tertiary: #7f8993;
|
||||
--text-secondary: #a9adb3;
|
||||
--text-tertiary: #7c828a;
|
||||
--text-1: var(--text-primary);
|
||||
--text-2: var(--text-secondary);
|
||||
--text-3: var(--text-tertiary);
|
||||
--text-inverse: #ffffff;
|
||||
--action: #6ca8e8;
|
||||
--action-hover: #8bbcf0;
|
||||
--action-soft: #23364a;
|
||||
--market-up: #f06d73;
|
||||
--market-up-soft: #40262a;
|
||||
--action: #5b8def;
|
||||
--action-hover: #7ba5f5;
|
||||
--action-press: #3465c4;
|
||||
--action-soft: #2b3b58;
|
||||
--accent: var(--action);
|
||||
--accent-hover: var(--action-hover);
|
||||
--accent-press: var(--action-press);
|
||||
--accent-soft: var(--action-soft);
|
||||
--market-up: #f26762;
|
||||
--market-up-soft: #3d2829;
|
||||
--market-down: #43bc8a;
|
||||
--market-down-soft: #1d382f;
|
||||
--market-down-soft: #22362c;
|
||||
--warning-color: #e2ad58;
|
||||
--warning-soft: #3d3220;
|
||||
--control-surface: #202428;
|
||||
--control-hover: #2a2f34;
|
||||
--control-border: #474f57;
|
||||
--table-header: #202428;
|
||||
--table-hover: #242f39;
|
||||
--table-selected: #23364a;
|
||||
--focus-ring: rgba(108, 168, 232, .22);
|
||||
--warn: var(--warning-color);
|
||||
--warn-soft: var(--warning-soft);
|
||||
--control-surface: #232529;
|
||||
--control-hover: #2a2d33;
|
||||
--control-border: #3a3e47;
|
||||
--table-header: #202329;
|
||||
--table-hover: #2a2d33;
|
||||
--table-selected: #2b3b58;
|
||||
--focus-ring: rgba(91, 141, 239, .25);
|
||||
--elevation-card: 0 1px 2px rgba(0, 0, 0, .28);
|
||||
--elevation-soft: 0 1px 2px rgba(0, 0, 0, .28);
|
||||
--elevation-raised: 0 1px 2px rgba(0, 0, 0, .30), 0 8px 24px rgba(0, 0, 0, .35);
|
||||
--elevation-float: 0 12px 32px rgba(0, 0, 0, .46);
|
||||
--shadow-card: var(--elevation-card);
|
||||
--shadow-raised: var(--elevation-raised);
|
||||
--backdrop: rgba(0, 0, 0, .66);
|
||||
--primary: var(--action);
|
||||
--primary-hover: var(--action-hover);
|
||||
|
||||
Reference in New Issue
Block a user