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
+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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user