fix(ui): unify header bar styling, height, and full-width edge-to-edge layout
This commit is contained in:
parent
c519385e83
commit
185e0cc611
2 changed files with 137 additions and 48 deletions
|
|
@ -17,7 +17,9 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 8px 16px;
|
padding: 8px 24px;
|
||||||
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
border-bottom: 1px solid var(--border-color);
|
border-bottom: 1px solid var(--border-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -98,47 +100,58 @@
|
||||||
background: var(--primary-blue-light);
|
background: var(--primary-blue-light);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Financial HUD: Desktop 3-part layout (Left: Finances, Center: Sector Bar, Right: Dept Buttons & Multiplier) */
|
/* Financial HUD: Full-width corporate control bar spanning 100% of the screen */
|
||||||
#financial-hud {
|
#financial-hud {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 16px;
|
gap: 14px;
|
||||||
padding: 8px 16px;
|
padding: 8px 24px;
|
||||||
max-width: 1680px;
|
width: 100%;
|
||||||
margin: 0 auto;
|
max-width: 100%;
|
||||||
|
margin: 0;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Consolidated Executive Financial Hub */
|
/* Consolidated Executive Financial Hub */
|
||||||
.executive-fin-hub {
|
.executive-fin-hub {
|
||||||
display: flex;
|
display: inline-flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 14px;
|
gap: 12px;
|
||||||
padding: 6px 14px;
|
padding: 6px 14px;
|
||||||
|
height: 48px;
|
||||||
border-radius: var(--radius-md);
|
border-radius: var(--radius-md);
|
||||||
background: #f8faff;
|
background: var(--bg-surface);
|
||||||
border: 1px solid #bfdbfe;
|
border: 1px solid var(--border-color);
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
min-width: 270px;
|
|
||||||
box-shadow: var(--shadow-sm);
|
box-shadow: var(--shadow-sm);
|
||||||
|
box-sizing: border-box;
|
||||||
|
transition: border-color 0.15s, background-color 0.15s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.executive-fin-hub:hover {
|
||||||
|
border-color: var(--border-subtle);
|
||||||
}
|
}
|
||||||
|
|
||||||
.fin-hub-main {
|
.fin-hub-main {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
min-width: 110px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fin-hub-divider {
|
.fin-hub-divider {
|
||||||
width: 1px;
|
width: 1px;
|
||||||
height: 38px;
|
height: 30px;
|
||||||
background: #cbd5e1;
|
background: var(--border-color);
|
||||||
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fin-hub-details {
|
.fin-hub-details {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
gap: 2px;
|
gap: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -151,10 +164,11 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.fin-detail-label {
|
.fin-detail-label {
|
||||||
font-size: 0.68rem;
|
font-size: 0.65rem;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
color: var(--text-muted);
|
color: var(--text-muted);
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.03em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fin-detail-val {
|
.fin-detail-val {
|
||||||
|
|
@ -163,24 +177,27 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.hud-label {
|
.hud-label {
|
||||||
font-size: 0.68rem;
|
font-size: 0.65rem;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
color: var(--text-secondary);
|
color: var(--text-secondary);
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
letter-spacing: 0.04em;
|
letter-spacing: 0.04em;
|
||||||
|
line-height: 1;
|
||||||
|
margin-bottom: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hud-main-val {
|
.hud-main-val {
|
||||||
font-size: 1.20rem;
|
font-size: 1.15rem;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
color: var(--text-primary);
|
color: var(--text-primary);
|
||||||
line-height: 1.1;
|
line-height: 1.1;
|
||||||
margin: 1px 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.hud-sub-val {
|
.hud-sub-val {
|
||||||
font-size: 0.72rem;
|
font-size: 0.70rem;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
|
line-height: 1;
|
||||||
|
margin-top: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rate-positive {
|
.rate-positive {
|
||||||
|
|
@ -191,13 +208,14 @@
|
||||||
color: var(--purple-rnd);
|
color: var(--purple-rnd);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Centered Sector Container in Sticky Header */
|
/* Centered Sector Container in Sticky Header - Dynamic full expansion */
|
||||||
#header-sector-container {
|
#header-sector-container {
|
||||||
flex: 1;
|
flex: 1 1 auto;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
max-width: 820px;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#header-sector-container .production-toolbar {
|
#header-sector-container .production-toolbar {
|
||||||
|
|
@ -205,20 +223,66 @@
|
||||||
background: var(--bg-surface);
|
background: var(--bg-surface);
|
||||||
border: 1px solid var(--border-color);
|
border: 1px solid var(--border-color);
|
||||||
border-radius: var(--radius-md);
|
border-radius: var(--radius-md);
|
||||||
padding: 4px 6px;
|
padding: 4px;
|
||||||
|
height: 48px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
box-shadow: 0 1px 2px rgba(0,0,0,0.03);
|
box-shadow: var(--shadow-sm);
|
||||||
|
}
|
||||||
|
|
||||||
|
#header-sector-container .sector-tabs-scroll {
|
||||||
|
display: flex;
|
||||||
|
gap: 6px;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#header-sector-container .sector-pill {
|
#header-sector-container .sector-pill {
|
||||||
padding: 6px 4px;
|
flex: 1 1 0;
|
||||||
|
height: 38px;
|
||||||
|
padding: 0 8px;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 6px;
|
||||||
|
background: var(--bg-surface-sub);
|
||||||
|
border: 1px solid var(--border-color);
|
||||||
|
border-radius: var(--radius-sm);
|
||||||
|
color: var(--text-primary);
|
||||||
|
cursor: pointer;
|
||||||
|
white-space: nowrap;
|
||||||
|
transition: all 0.15s ease;
|
||||||
|
box-sizing: border-box;
|
||||||
|
font-size: 0.78rem;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header-sector-container .sector-pill:hover {
|
||||||
|
border-color: var(--border-subtle);
|
||||||
|
background: var(--border-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
#header-sector-container .sector-pill.active {
|
||||||
|
background: var(--text-primary);
|
||||||
|
color: #ffffff;
|
||||||
|
border-color: var(--text-primary);
|
||||||
|
box-shadow: var(--shadow-sm);
|
||||||
|
}
|
||||||
|
|
||||||
|
#header-sector-container .sector-pill.active iconify-icon {
|
||||||
|
color: #ffffff !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header-sector-container .sector-pill.active .sector-pill-rate {
|
||||||
|
color: #a7f3d0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Right Header Actions: Department Nav & Buy Multiplier */
|
/* Right Header Actions: Department Nav & Buy Multiplier */
|
||||||
.header-right-actions {
|
.header-right-actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 10px;
|
gap: 8px;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -226,36 +290,41 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 4px;
|
gap: 4px;
|
||||||
background: var(--bg-surface-sub);
|
background: var(--bg-surface);
|
||||||
border: 1px solid var(--border-color);
|
border: 1px solid var(--border-color);
|
||||||
border-radius: var(--radius-sm);
|
border-radius: var(--radius-md);
|
||||||
padding: 3px;
|
padding: 4px;
|
||||||
|
height: 48px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
box-shadow: var(--shadow-sm);
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-nav-btn {
|
.header-nav-btn {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 5px;
|
justify-content: center;
|
||||||
padding: 5px 10px;
|
gap: 6px;
|
||||||
|
height: 38px;
|
||||||
|
padding: 0 12px;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
border-radius: 4px;
|
border-radius: var(--radius-sm);
|
||||||
color: var(--text-secondary);
|
color: var(--text-secondary);
|
||||||
font-size: 0.78rem;
|
font-size: 0.80rem;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.15s;
|
transition: all 0.15s ease;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
line-height: 1;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-nav-btn iconify-icon {
|
.header-nav-btn iconify-icon {
|
||||||
font-size: 1.05rem;
|
font-size: 1.15rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-nav-btn:hover {
|
.header-nav-btn:hover {
|
||||||
background: var(--bg-surface);
|
background: var(--bg-surface-sub);
|
||||||
color: var(--text-primary);
|
color: var(--text-primary);
|
||||||
border-color: var(--border-color);
|
border-color: var(--border-color);
|
||||||
}
|
}
|
||||||
|
|
@ -278,8 +347,12 @@
|
||||||
|
|
||||||
.header-nav-btn .nav-pill-badge {
|
.header-nav-btn .nav-pill-badge {
|
||||||
margin-left: 2px;
|
margin-left: 2px;
|
||||||
padding: 1px 5px;
|
padding: 2px 6px;
|
||||||
font-size: 0.65rem;
|
font-size: 0.65rem;
|
||||||
|
font-weight: 800;
|
||||||
|
border-radius: 10px;
|
||||||
|
background: var(--amber-dark);
|
||||||
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hud-multiplier-box {
|
.hud-multiplier-box {
|
||||||
|
|
@ -289,29 +362,44 @@
|
||||||
|
|
||||||
.multi-button-group {
|
.multi-button-group {
|
||||||
display: flex;
|
display: flex;
|
||||||
background: var(--bg-surface-sub);
|
align-items: center;
|
||||||
|
background: var(--bg-surface);
|
||||||
border: 1px solid var(--border-color);
|
border: 1px solid var(--border-color);
|
||||||
border-radius: var(--radius-sm);
|
border-radius: var(--radius-md);
|
||||||
padding: 2px;
|
padding: 4px;
|
||||||
gap: 2px;
|
height: 48px;
|
||||||
|
gap: 3px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
box-shadow: var(--shadow-sm);
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-multi-pill {
|
.btn-multi-pill {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border: none;
|
border: 1px solid transparent;
|
||||||
padding: 4px 8px;
|
height: 38px;
|
||||||
border-radius: 4px;
|
padding: 0 10px;
|
||||||
font-size: 0.75rem;
|
border-radius: var(--radius-sm);
|
||||||
|
font-size: 0.78rem;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
color: var(--text-secondary);
|
color: var(--text-secondary);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-family: var(--font-mono);
|
font-family: var(--font-mono);
|
||||||
transition: all 0.15s;
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
transition: all 0.15s ease;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-multi-pill:hover {
|
||||||
|
background: var(--bg-surface-sub);
|
||||||
|
color: var(--text-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-multi-pill.active {
|
.btn-multi-pill.active {
|
||||||
background: var(--text-primary);
|
background: var(--text-primary);
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
|
border-color: var(--text-primary);
|
||||||
box-shadow: var(--shadow-sm);
|
box-shadow: var(--shadow-sm);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -72,11 +72,12 @@
|
||||||
#financial-hud {
|
#financial-hud {
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
|
padding: 8px 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.executive-fin-hub {
|
.executive-fin-hub {
|
||||||
min-width: auto;
|
min-width: 0;
|
||||||
flex: 1;
|
flex: 1 1 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
#header-sector-container {
|
#header-sector-container {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue