Align header title and ETH/BTC quotes with crypto_okx.
Match fullwidth title separator, page spacing, and move live tickers into the nav right column using the same spot-ticker UI/API. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -53,22 +53,43 @@ html[data-theme="light"] {
|
||||
}
|
||||
|
||||
.top-nav {
|
||||
display: flex !important;
|
||||
flex-wrap: nowrap !important;
|
||||
justify-content: flex-start !important;
|
||||
align-items: stretch;
|
||||
overflow-x: auto !important;
|
||||
overflow-y: hidden;
|
||||
display: grid !important;
|
||||
grid-template-columns: 1fr !important;
|
||||
gap: 8px !important;
|
||||
margin-bottom: 12px !important;
|
||||
padding: 2px 2px 6px;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
overflow: visible !important;
|
||||
}
|
||||
|
||||
.top-nav-links {
|
||||
grid-column: 1 !important;
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
overflow-x: auto !important;
|
||||
overflow-y: hidden;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
overscroll-behavior-x: contain;
|
||||
scrollbar-width: none;
|
||||
gap: 6px !important;
|
||||
margin-bottom: 12px !important;
|
||||
padding: 2px 2px 6px;
|
||||
gap: 6px;
|
||||
scroll-padding-inline: 10px;
|
||||
touch-action: pan-x;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.top-nav-links::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.top-nav-spot-tickers {
|
||||
grid-column: 1 !important;
|
||||
justify-self: stretch;
|
||||
align-self: stretch;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-end;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.top-nav::-webkit-scrollbar {
|
||||
@@ -561,126 +582,125 @@ html[data-theme="light"] .theme-toggle-btn.is-active {
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
/* 顶栏品牌:加密货币 | OKX 对冲 + 右上角 ETH/BTC 报价 */
|
||||
.header.header--brand {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 52px;
|
||||
margin-bottom: 10px;
|
||||
padding: 0 168px 0 12px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.header.header--brand .brand-title {
|
||||
margin: 0;
|
||||
font-size: 1.7rem;
|
||||
font-weight: 700;
|
||||
color: #e8ecff;
|
||||
text-align: center;
|
||||
line-height: 1.25;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
.header.header--brand .brand-prefix {
|
||||
color: #e8ecff;
|
||||
}
|
||||
.header.header--brand .brand-sep {
|
||||
display: inline-block;
|
||||
margin: 0 0.45em;
|
||||
color: #9aa3bf;
|
||||
font-weight: 500;
|
||||
}
|
||||
.header.header--brand .brand-product {
|
||||
color: #e8ecff;
|
||||
}
|
||||
.header-live-quotes {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
gap: 3px;
|
||||
z-index: 2;
|
||||
pointer-events: none;
|
||||
}
|
||||
.header-live-quotes .hlq-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 0.72rem;
|
||||
line-height: 1.2;
|
||||
color: #c5cce0;
|
||||
/* 导航右侧 ETH/BTC 报价 — 与 crypto_okx 同款 */
|
||||
.top-nav-links > a {
|
||||
flex: 0 0 auto;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.top-nav-spot-tickers {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 3px;
|
||||
min-width: 0;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.header-live-quotes .hlq-icon {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
|
||||
.nav-spot-row {
|
||||
display: grid;
|
||||
grid-template-columns: 3px 18px minmax(4.6em, auto) minmax(5em, auto) minmax(3.6em, auto) minmax(3.8em, auto);
|
||||
align-items: center;
|
||||
column-gap: 7px;
|
||||
padding: 3px 9px 3px 5px;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 6px;
|
||||
background: rgba(16, 22, 36, 0.72);
|
||||
line-height: 1.2;
|
||||
white-space: nowrap;
|
||||
font-size: 0.88rem;
|
||||
}
|
||||
|
||||
.nav-spot-row:hover {
|
||||
border-color: #3a4568;
|
||||
}
|
||||
|
||||
.nav-spot-ribbon {
|
||||
width: 3px;
|
||||
height: 16px;
|
||||
border-radius: 1px 2px 2px 1px;
|
||||
background: #e24b6a;
|
||||
justify-self: center;
|
||||
}
|
||||
|
||||
.nav-spot-icon {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border-radius: 50%;
|
||||
flex: 0 0 auto;
|
||||
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 0.72rem;
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
}
|
||||
.header-live-quotes .hlq-icon--eth {
|
||||
background: radial-gradient(circle at 35% 30%, #8ad0ff, #3c7cff 55%, #1a3a8a);
|
||||
|
||||
.nav-spot-icon--eth {
|
||||
background: #627eea;
|
||||
}
|
||||
.header-live-quotes .hlq-icon--btc {
|
||||
background: radial-gradient(circle at 35% 30%, #ffd27a, #f0a028 55%, #a65a00);
|
||||
|
||||
.nav-spot-icon--btc {
|
||||
background: #f2a900;
|
||||
color: #1a1200;
|
||||
}
|
||||
.header-live-quotes .hlq-sym {
|
||||
color: #9aa3bf;
|
||||
min-width: 58px;
|
||||
}
|
||||
.header-live-quotes .hlq-last {
|
||||
color: #e8ecff;
|
||||
|
||||
.nav-spot-sym {
|
||||
color: var(--inst-text, #e8ecff);
|
||||
font-weight: 600;
|
||||
min-width: 64px;
|
||||
text-align: right;
|
||||
letter-spacing: 0.01em;
|
||||
}
|
||||
.header-live-quotes .hlq-chg,
|
||||
.header-live-quotes .hlq-pct {
|
||||
min-width: 48px;
|
||||
|
||||
.nav-spot-last,
|
||||
.nav-spot-chg,
|
||||
.nav-spot-pct {
|
||||
text-align: right;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.nav-spot--up .nav-spot-last,
|
||||
.nav-spot--up .nav-spot-chg,
|
||||
.nav-spot--up .nav-spot-pct {
|
||||
color: #2dd4a8;
|
||||
}
|
||||
|
||||
.nav-spot--down .nav-spot-last,
|
||||
.nav-spot--down .nav-spot-chg,
|
||||
.nav-spot--down .nav-spot-pct {
|
||||
color: #ff6b7a;
|
||||
}
|
||||
|
||||
.nav-spot--flat .nav-spot-last,
|
||||
.nav-spot--flat .nav-spot-chg,
|
||||
.nav-spot--flat .nav-spot-pct {
|
||||
color: #9aa3bf;
|
||||
}
|
||||
.header-live-quotes .hlq-row.is-up .hlq-chg,
|
||||
.header-live-quotes .hlq-row.is-up .hlq-pct {
|
||||
color: #3dd68c;
|
||||
|
||||
html[data-theme="light"] .nav-spot-row {
|
||||
background: rgba(255, 255, 255, 0.85);
|
||||
border-color: #d5e0ec;
|
||||
}
|
||||
.header-live-quotes .hlq-row.is-down .hlq-chg,
|
||||
.header-live-quotes .hlq-row.is-down .hlq-pct {
|
||||
color: #ff8a8a;
|
||||
|
||||
html[data-theme="light"] .nav-spot-row:hover {
|
||||
border-color: #9bb4cc;
|
||||
}
|
||||
html[data-theme="light"] .header.header--brand .brand-title,
|
||||
html[data-theme="light"] .header.header--brand .brand-prefix,
|
||||
html[data-theme="light"] .header.header--brand .brand-product {
|
||||
color: #142232;
|
||||
|
||||
html[data-theme="light"] .nav-spot--up .nav-spot-last,
|
||||
html[data-theme="light"] .nav-spot--up .nav-spot-chg,
|
||||
html[data-theme="light"] .nav-spot--up .nav-spot-pct {
|
||||
color: #0a8f6c;
|
||||
}
|
||||
html[data-theme="light"] .header.header--brand .brand-sep,
|
||||
html[data-theme="light"] .header-live-quotes .hlq-sym {
|
||||
color: #5a6f85;
|
||||
|
||||
html[data-theme="light"] .nav-spot--down .nav-spot-last,
|
||||
html[data-theme="light"] .nav-spot--down .nav-spot-chg,
|
||||
html[data-theme="light"] .nav-spot--down .nav-spot-pct {
|
||||
color: #d12b3a;
|
||||
}
|
||||
html[data-theme="light"] .header-live-quotes .hlq-last {
|
||||
color: #142232;
|
||||
}
|
||||
@media (max-width: 720px) {
|
||||
.header.header--brand {
|
||||
padding: 0 8px;
|
||||
min-height: 0;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.header.header--brand .brand-title {
|
||||
font-size: 1.05rem !important;
|
||||
text-align: left;
|
||||
}
|
||||
.header-live-quotes {
|
||||
position: static;
|
||||
transform: none;
|
||||
margin-top: 6px;
|
||||
align-items: flex-start;
|
||||
width: 100%;
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
.nav-spot-row {
|
||||
grid-template-columns: 3px 16px minmax(4em, auto) minmax(4.2em, auto) minmax(3.2em, auto) minmax(3.4em, auto);
|
||||
column-gap: 5px;
|
||||
font-size: 0.8rem;
|
||||
padding: 2px 7px 2px 4px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user