顶栏上方留白改为 1.5 倍标题高度,标题与导航间距改为 0.8 倍。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-04 20:35:46 +08:00
parent 2c0e25eaf8
commit d24df2e618
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -21,6 +21,8 @@
--hub-title-size: 1.75rem;
--hub-title-lh: 1.25;
--hub-title-h: calc(var(--hub-title-size) * var(--hub-title-lh));
--hub-title-pad-top: calc(var(--hub-title-h) * 1.5);
--hub-title-nav-gap: calc(var(--hub-title-h) * 0.8);
--hub-title-gap: calc(var(--hub-title-h) * 1.1);
}
* { box-sizing: border-box; }
@@ -54,8 +56,8 @@ a:hover { color: #7dd3fc; }
.topbar-brand {
display: block;
margin: 0 auto var(--hub-title-gap);
padding-top: var(--hub-title-gap);
margin: 0 auto var(--hub-title-nav-gap);
padding-top: var(--hub-title-pad-top);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
font-size: var(--hub-title-size);
font-weight: 700;
+1 -1
View File
@@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block title %}加密货币|OKX 期权中控{% endblock %}</title>
<link rel="stylesheet" href="{{ url_for('static', filename='hub.css') }}?v=29">
<link rel="stylesheet" href="{{ url_for('static', filename='hub.css') }}?v=30">
</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 %}">
{% if session.get('logged_in') %}