Skip to content

Commit b7864d2

Browse files
committed
style(layout): 优化导航栏与内容间距,增加顶部空白区域
1 parent 103af64 commit b7864d2

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

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

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
left: 0;
55
right: 0;
66
background-color: #ffffff;
7-
padding: 5px 0;
8-
height: 50px;
7+
padding: 8px 0;
8+
height: 60px;
99
display: flex;
1010
align-items: center;
1111
transition: all 0.3s ease;
@@ -14,8 +14,8 @@
1414
}
1515

1616
.header.scrolled {
17-
padding: 3px 0;
18-
height: 40px;
17+
padding: 5px 0;
18+
height: 50px;
1919
}
2020

2121
.header-container {
@@ -39,15 +39,15 @@
3939
}
4040

4141
.site-logo {
42-
height: 30px;
42+
height: 36px;
4343
margin-right: 8px;
4444
transition: all 0.3s ease;
4545
background-color: transparent;
4646
mix-blend-mode: multiply;
4747
}
4848

4949
.header.scrolled .site-logo {
50-
height: 24px;
50+
height: 30px;
5151
}
5252

5353
.site-name {
@@ -72,16 +72,20 @@
7272
justify-content: flex-start;
7373
padding: 0;
7474
margin: 0;
75+
height: 100%;
76+
align-items: center;
7577
}
7678

7779
.main-nav a {
78-
font-size: 14px;
80+
font-size: 16px;
7981
font-weight: 500;
8082
position: relative;
81-
padding-bottom: 3px;
83+
padding-bottom: 5px;
8284
color: #333;
8385
text-decoration: none;
8486
transition: color 0.3s;
87+
line-height: 36px;
88+
display: inline-block;
8589
}
8690

8791
.main-nav a:after {

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.hero {
2-
padding-top: 90px;
2+
padding-top: 150px;
33
padding-bottom: 80px;
44
margin-top: 0;
55
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
@@ -20,7 +20,7 @@
2020
max-width: 500px;
2121
position: relative;
2222
z-index: 5;
23-
padding-top: 20px;
23+
padding-top: 30px;
2424
}
2525

2626
h1 {
@@ -126,7 +126,7 @@ h1 {
126126

127127
@media (max-width: 992px) {
128128
.hero {
129-
padding-top: 80px;
129+
padding-top: 130px;
130130
padding-bottom: 60px;
131131
margin-top: 0;
132132
}

0 commit comments

Comments
 (0)