Match options branding: title prefix and ETH/BTC header quotes.
Use 「加密货币 | OKX 对冲」 and show live top-right ETHUSDT/BTCUSDT quotes like the options instance. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -561,6 +561,129 @@ 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;
|
||||
white-space: nowrap;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.header-live-quotes .hlq-icon {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
border-radius: 50%;
|
||||
flex: 0 0 auto;
|
||||
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
|
||||
}
|
||||
.header-live-quotes .hlq-icon--eth {
|
||||
background: radial-gradient(circle at 35% 30%, #8ad0ff, #3c7cff 55%, #1a3a8a);
|
||||
}
|
||||
.header-live-quotes .hlq-icon--btc {
|
||||
background: radial-gradient(circle at 35% 30%, #ffd27a, #f0a028 55%, #a65a00);
|
||||
}
|
||||
.header-live-quotes .hlq-sym {
|
||||
color: #9aa3bf;
|
||||
min-width: 58px;
|
||||
}
|
||||
.header-live-quotes .hlq-last {
|
||||
color: #e8ecff;
|
||||
font-weight: 600;
|
||||
min-width: 64px;
|
||||
text-align: right;
|
||||
}
|
||||
.header-live-quotes .hlq-chg,
|
||||
.header-live-quotes .hlq-pct {
|
||||
min-width: 48px;
|
||||
text-align: right;
|
||||
color: #9aa3bf;
|
||||
}
|
||||
.header-live-quotes .hlq-row.is-up .hlq-chg,
|
||||
.header-live-quotes .hlq-row.is-up .hlq-pct {
|
||||
color: #3dd68c;
|
||||
}
|
||||
.header-live-quotes .hlq-row.is-down .hlq-chg,
|
||||
.header-live-quotes .hlq-row.is-down .hlq-pct {
|
||||
color: #ff8a8a;
|
||||
}
|
||||
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"] .header.header--brand .brand-sep,
|
||||
html[data-theme="light"] .header-live-quotes .hlq-sym {
|
||||
color: #5a6f85;
|
||||
}
|
||||
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%;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── 统一顶栏面板:状态/筛选 + 统计条 ── */
|
||||
.instance-header-panel {
|
||||
margin-top: 18px;
|
||||
|
||||
Reference in New Issue
Block a user