报价回到导航同一行右侧并对齐总览卡片,拉开标题与导航间距。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+39
-25
@@ -54,15 +54,16 @@ a:hover { color: #7dd3fc; }
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
gap: 12px;
|
gap: 0;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
padding: 40px 28px 16px;
|
padding: 40px 0 18px;
|
||||||
border-bottom: 1px solid var(--line);
|
border-bottom: 1px solid var(--line);
|
||||||
background: rgba(8, 14, 26, 0.75);
|
background: rgba(8, 14, 26, 0.75);
|
||||||
backdrop-filter: blur(12px);
|
backdrop-filter: blur(12px);
|
||||||
}
|
}
|
||||||
.topbar-brand {
|
.topbar-brand {
|
||||||
align-self: center;
|
align-self: center;
|
||||||
|
margin-bottom: 32px;
|
||||||
font-family: var(--font);
|
font-family: var(--font);
|
||||||
font-size: 1.75rem;
|
font-size: 1.75rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
@@ -75,7 +76,20 @@ a:hover { color: #7dd3fc; }
|
|||||||
.topbar-brand:hover {
|
.topbar-brand:hover {
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
|
.topbar-inner {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 1800px;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 0 clamp(16px, 3vw, 48px);
|
||||||
|
}
|
||||||
|
.topbar-row {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
|
||||||
|
align-items: center;
|
||||||
|
gap: 10px 12px;
|
||||||
|
}
|
||||||
.topbar-nav {
|
.topbar-nav {
|
||||||
|
grid-column: 2;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
@@ -101,6 +115,8 @@ a:hover { color: #7dd3fc; }
|
|||||||
text-shadow: none;
|
text-shadow: none;
|
||||||
}
|
}
|
||||||
.top-nav-spot-tickers {
|
.top-nav-spot-tickers {
|
||||||
|
grid-column: 3;
|
||||||
|
justify-self: end;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 3px;
|
gap: 3px;
|
||||||
@@ -174,15 +190,29 @@ a:hover { color: #7dd3fc; }
|
|||||||
.topbar-logout:hover {
|
.topbar-logout:hover {
|
||||||
color: #e8f1ff;
|
color: #e8f1ff;
|
||||||
}
|
}
|
||||||
|
@media (max-width: 1100px) {
|
||||||
|
.topbar-row {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
justify-items: center;
|
||||||
|
}
|
||||||
|
.topbar-nav,
|
||||||
|
.top-nav-spot-tickers {
|
||||||
|
grid-column: 1;
|
||||||
|
justify-self: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
@media (max-width: 720px) {
|
@media (max-width: 720px) {
|
||||||
.topbar {
|
.topbar {
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
padding: 28px 16px 12px;
|
padding: 28px 0 12px;
|
||||||
gap: 10px;
|
|
||||||
}
|
}
|
||||||
.topbar-brand {
|
.topbar-brand {
|
||||||
|
margin-bottom: 18px;
|
||||||
font-size: 1.35rem;
|
font-size: 1.35rem;
|
||||||
}
|
}
|
||||||
|
.topbar-inner {
|
||||||
|
padding: 0 16px;
|
||||||
|
}
|
||||||
.topbar-logout {
|
.topbar-logout {
|
||||||
top: 12px;
|
top: 12px;
|
||||||
right: 14px;
|
right: 14px;
|
||||||
@@ -236,23 +266,8 @@ body.page-login .main {
|
|||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
letter-spacing: 0.04em;
|
letter-spacing: 0.04em;
|
||||||
}
|
}
|
||||||
.overview-head {
|
|
||||||
align-items: flex-start;
|
|
||||||
}
|
|
||||||
.overview-head-right {
|
|
||||||
margin-left: auto;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: flex-end;
|
|
||||||
gap: 8px;
|
|
||||||
}
|
|
||||||
.overview-head-clock-row {
|
|
||||||
display: inline-flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 12px;
|
|
||||||
}
|
|
||||||
.overview-bj-clock {
|
.overview-bj-clock {
|
||||||
margin-left: 0;
|
margin-left: auto;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
@@ -319,13 +334,12 @@ body.page-login .main {
|
|||||||
}
|
}
|
||||||
@media (max-width: 720px) {
|
@media (max-width: 720px) {
|
||||||
.page-head { flex-wrap: wrap; }
|
.page-head { flex-wrap: wrap; }
|
||||||
.overview-head-right {
|
.overview-bj-clock {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
|
order: 3;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
align-items: flex-start;
|
justify-content: flex-start;
|
||||||
}
|
padding-top: 2px;
|
||||||
.overview-head-clock-row {
|
|
||||||
flex-wrap: wrap;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.muted { color: var(--muted); font-size: 0.9rem; }
|
.muted { color: var(--muted); font-size: 0.9rem; }
|
||||||
|
|||||||
+23
-1
@@ -4,12 +4,14 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title>{% block title %}加密货币|OKX 期权中控{% endblock %}</title>
|
<title>{% block title %}加密货币|OKX 期权中控{% endblock %}</title>
|
||||||
<link rel="stylesheet" href="{{ url_for('static', filename='hub.css') }}?v=24">
|
<link rel="stylesheet" href="{{ url_for('static', filename='hub.css') }}?v=25">
|
||||||
</head>
|
</head>
|
||||||
<body class="{% if request.path.startswith('/login') %}page-login{% elif request.path.startswith('/desk') %}page-desk{% elif request.path.startswith('/stats') %}page-stats{% elif request.path.startswith('/instances') %}page-instances{% elif request.path == '/' %}page-dashboard{% endif %}">
|
<body class="{% if request.path.startswith('/login') %}page-login{% elif request.path.startswith('/desk') %}page-desk{% elif request.path.startswith('/stats') %}page-stats{% elif request.path.startswith('/instances') %}page-instances{% elif request.path == '/' %}page-dashboard{% endif %}">
|
||||||
{% if session.get('logged_in') %}
|
{% if session.get('logged_in') %}
|
||||||
<header class="topbar">
|
<header class="topbar">
|
||||||
<a href="/" class="topbar-brand">加密货币|OKX 期权中控</a>
|
<a href="/" class="topbar-brand">加密货币|OKX 期权中控</a>
|
||||||
|
<div class="topbar-inner">
|
||||||
|
<div class="topbar-row">
|
||||||
<nav class="topbar-nav">
|
<nav class="topbar-nav">
|
||||||
<a href="/" class="{% if request.path == '/' %}active{% endif %}">总览</a>
|
<a href="/" class="{% if request.path == '/' %}active{% endif %}">总览</a>
|
||||||
<a href="/cond_orders" class="{% if request.path.startswith('/cond_orders') %}active{% endif %}">条件单</a>
|
<a href="/cond_orders" class="{% if request.path.startswith('/cond_orders') %}active{% endif %}">条件单</a>
|
||||||
@@ -18,6 +20,26 @@
|
|||||||
<a href="/stats" class="{% if request.path.startswith('/stats') %}active{% endif %}">数据统计</a>
|
<a href="/stats" class="{% if request.path.startswith('/stats') %}active{% endif %}">数据统计</a>
|
||||||
<a href="/settings" class="{% if request.path.startswith('/settings') %}active{% endif %}">系统设置</a>
|
<a href="/settings" class="{% if request.path.startswith('/settings') %}active{% endif %}">系统设置</a>
|
||||||
</nav>
|
</nav>
|
||||||
|
<div class="top-nav-spot-tickers" id="nav-spot-tickers" aria-label="BTC ETH 报价" title="来自在线客户端 · 相对北京 08:00">
|
||||||
|
<div class="nav-spot-row" data-base="ETH">
|
||||||
|
<span class="nav-spot-ribbon" aria-hidden="true"></span>
|
||||||
|
<span class="nav-spot-icon nav-spot-icon--eth" aria-hidden="true">Ξ</span>
|
||||||
|
<span class="nav-spot-sym">ETHUSDT</span>
|
||||||
|
<span class="nav-spot-last" data-field="last">—</span>
|
||||||
|
<span class="nav-spot-chg" data-field="change">—</span>
|
||||||
|
<span class="nav-spot-pct" data-field="change_pct">—</span>
|
||||||
|
</div>
|
||||||
|
<div class="nav-spot-row" data-base="BTC">
|
||||||
|
<span class="nav-spot-ribbon" aria-hidden="true"></span>
|
||||||
|
<span class="nav-spot-icon nav-spot-icon--btc" aria-hidden="true">₿</span>
|
||||||
|
<span class="nav-spot-sym">BTCUSDT</span>
|
||||||
|
<span class="nav-spot-last" data-field="last">—</span>
|
||||||
|
<span class="nav-spot-chg" data-field="change">—</span>
|
||||||
|
<span class="nav-spot-pct" data-field="change_pct">—</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<a href="/logout" class="topbar-logout">退出</a>
|
<a href="/logout" class="topbar-logout">退出</a>
|
||||||
</header>
|
</header>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -1,36 +1,14 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% block title %}总览 · 加密货币|OKX 期权中控{% endblock %}
|
{% block title %}总览 · 加密货币|OKX 期权中控{% endblock %}
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<section class="page-head overview-head">
|
<section class="page-head">
|
||||||
<h1>期权持仓总览</h1>
|
<h1>期权持仓总览</h1>
|
||||||
<div class="overview-head-right">
|
|
||||||
<div class="top-nav-spot-tickers" id="nav-spot-tickers" aria-label="BTC ETH 报价" title="来自在线客户端 · 相对北京 08:00">
|
|
||||||
<div class="nav-spot-row" data-base="ETH">
|
|
||||||
<span class="nav-spot-ribbon" aria-hidden="true"></span>
|
|
||||||
<span class="nav-spot-icon nav-spot-icon--eth" aria-hidden="true">Ξ</span>
|
|
||||||
<span class="nav-spot-sym">ETHUSDT</span>
|
|
||||||
<span class="nav-spot-last" data-field="last">—</span>
|
|
||||||
<span class="nav-spot-chg" data-field="change">—</span>
|
|
||||||
<span class="nav-spot-pct" data-field="change_pct">—</span>
|
|
||||||
</div>
|
|
||||||
<div class="nav-spot-row" data-base="BTC">
|
|
||||||
<span class="nav-spot-ribbon" aria-hidden="true"></span>
|
|
||||||
<span class="nav-spot-icon nav-spot-icon--btc" aria-hidden="true">₿</span>
|
|
||||||
<span class="nav-spot-sym">BTCUSDT</span>
|
|
||||||
<span class="nav-spot-last" data-field="last">—</span>
|
|
||||||
<span class="nav-spot-chg" data-field="change">—</span>
|
|
||||||
<span class="nav-spot-pct" data-field="change_pct">—</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="overview-head-clock-row">
|
|
||||||
<div class="overview-bj-clock" id="overview-bj-clock" title="Asia/Shanghai">
|
<div class="overview-bj-clock" id="overview-bj-clock" title="Asia/Shanghai">
|
||||||
<span class="overview-bj-label">北京时间</span>
|
<span class="overview-bj-label">北京时间</span>
|
||||||
<time class="overview-bj-time" id="overview-bj-time" datetime="">--</time>
|
<time class="overview-bj-time" id="overview-bj-time" datetime="">--</time>
|
||||||
<span class="overview-bj-meta" id="overview-bj-meta"></span>
|
<span class="overview-bj-meta" id="overview-bj-meta"></span>
|
||||||
</div>
|
</div>
|
||||||
<button type="button" class="btn" id="btn-refresh">刷新</button>
|
<button type="button" class="btn" id="btn-refresh">刷新</button>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
</section>
|
||||||
<p class="muted" id="overview-status">加载中…</p>
|
<p class="muted" id="overview-status">加载中…</p>
|
||||||
<section class="overview-summary" id="overview-summary" hidden></section>
|
<section class="overview-summary" id="overview-summary" hidden></section>
|
||||||
|
|||||||
Reference in New Issue
Block a user