Skip to content

Commit 9b6f393

Browse files
committed
fix(header): 优化导航栏菜单与GitHub徽标对齐
1 parent b7864d2 commit 9b6f393

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

script-hook-website/src/components/Header.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@
6363
.main-nav {
6464
flex: 1;
6565
padding-left: 0;
66+
display: flex;
67+
align-items: center;
68+
height: 100%;
6669
}
6770

6871
.main-nav ul {
@@ -84,14 +87,15 @@
8487
color: #333;
8588
text-decoration: none;
8689
transition: color 0.3s;
87-
line-height: 36px;
90+
line-height: 1;
8891
display: inline-block;
92+
vertical-align: middle;
8993
}
9094

9195
.main-nav a:after {
9296
content: "";
9397
position: absolute;
94-
bottom: 0;
98+
bottom: -4px;
9599
left: 0;
96100
width: 0;
97101
height: 2px;

0 commit comments

Comments
 (0)