Skip to content

Commit d2bd33d

Browse files
author
吉人 Ren Ji
committed
Fix nav layout: add nav-right/nav-back styles for protocol pages
1 parent 1f86328 commit d2bd33d

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

docs/assets/css/main.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,21 +157,21 @@ h1, h2, h3, h4 { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe
157157
color: var(--accent);
158158
}
159159

160-
.nav-links {
160+
.nav-links, .nav-right {
161161
display: flex;
162162
align-items: center;
163163
gap: 8px;
164164
}
165165

166-
.nav-links a {
166+
.nav-links a, .nav-back {
167167
padding: 6px 14px;
168168
border-radius: 100px;
169169
font-size: 0.9em;
170170
color: var(--text-2);
171171
transition: color 0.15s, background 0.15s;
172172
}
173173

174-
.nav-links a:hover {
174+
.nav-links a:hover, .nav-back:hover {
175175
color: var(--text);
176176
background: var(--accent-bg);
177177
}
@@ -556,6 +556,7 @@ body[data-theme="dark"] .protocol-status--active {
556556
.features-grid { grid-template-columns: 1fr; }
557557
.section-title { font-size: 1.5em; }
558558
.nav-links a { display: none; }
559+
.nav-back { font-size: 0.82em; padding: 4px 10px; }
559560
}
560561

561562
@media (max-width: 480px) {

src/assets/css/main.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,21 +157,21 @@ h1, h2, h3, h4 { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe
157157
color: var(--accent);
158158
}
159159

160-
.nav-links {
160+
.nav-links, .nav-right {
161161
display: flex;
162162
align-items: center;
163163
gap: 8px;
164164
}
165165

166-
.nav-links a {
166+
.nav-links a, .nav-back {
167167
padding: 6px 14px;
168168
border-radius: 100px;
169169
font-size: 0.9em;
170170
color: var(--text-2);
171171
transition: color 0.15s, background 0.15s;
172172
}
173173

174-
.nav-links a:hover {
174+
.nav-links a:hover, .nav-back:hover {
175175
color: var(--text);
176176
background: var(--accent-bg);
177177
}
@@ -556,6 +556,7 @@ body[data-theme="dark"] .protocol-status--active {
556556
.features-grid { grid-template-columns: 1fr; }
557557
.section-title { font-size: 1.5em; }
558558
.nav-links a { display: none; }
559+
.nav-back { font-size: 0.82em; padding: 4px 10px; }
559560
}
560561

561562
@media (max-width: 480px) {

0 commit comments

Comments
 (0)