Skip to content

Commit 3142b63

Browse files
committed
略微增加一点移动端适配
1 parent 808ea77 commit 3142b63

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

src/components/HeadMenu.astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@
3131
display: flex;
3232
align-items: center;
3333
justify-content: space-around;
34-
width: 600px;
34+
/* width: 600px; */
3535
height: 55px;
36+
min-width: 32vw
37+
max-width: 90vw
3638
background-color: rgba(255, 255, 255, 0.1);
3739
backdrop-filter: blur(4px);
3840
border: 1px solid rgba(0, 0, 0, 0.2); /* 添加黑色的边框,宽度为 2px */

src/components/TitileCard.astro

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,10 @@ const { title, date, wordNum } = Astro.props;
2929
flex-direction: column;
3030
gap: 10px; /* 行间距 */
3131
align-items: center;
32-
max-width: 600px;
33-
min-width: 380px;
32+
max-width: 90vw;
33+
min-width: 32vw;
3434
height: 130px;
35-
margin-top: 20px;
36-
margin-bottom: 10px;
35+
margin: 20px 20px 10px 20px;
3736
border: 1px solid rgba(0, 0, 0, 0.2); /* 添加黑色的边框,宽度为 2px */
3837
border-radius: 10px;
3938
padding: 10px 25px; /* 给容器添加左右内边距 */

src/layouts/BaseLayout.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ const { description, keywords ,selected} = Astro.props;
9797
}
9898

9999
header {
100-
padding: 30px;
100+
padding: 30px 0;
101101
}
102102

103103
main {

0 commit comments

Comments
 (0)