Skip to content

Commit 513e900

Browse files
committed
style: 清理样式注释并优化页脚布局
1 parent 6330adf commit 513e900

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

.vitepress/theme/style.css

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
1-
/* MicYou 主题样式 - 主题色基于应用图标提取 */
1+
/* MicYou 主题样式 */
22

3-
/* ========================================
4-
Core Web Vitals 优化
5-
======================================== */
6-
7-
/* 字体显示优化 - 防止 CLS */
83
html {
94
font-display: swap;
105
}
116

12-
/* 图片和媒体元素尺寸预留 - 防止 CLS */
137
img,
148
video,
159
iframe {
@@ -18,7 +12,6 @@ iframe {
1812
vertical-align: middle;
1913
}
2014

21-
/* Hero 图片固定尺寸 - 防止 CLS */
2215
.VPHero .VPImage.image-src {
2316
width: 192px !important;
2417
height: 192px !important;
@@ -27,7 +20,6 @@ iframe {
2720
object-fit: contain;
2821
}
2922

30-
/* Logo 固定尺寸 - 防止 CLS */
3123
.VPNavBar .VPImage.logo {
3224
width: 24px !important;
3325
height: 24px !important;
@@ -36,12 +28,11 @@ iframe {
3628
object-fit: contain;
3729
}
3830

39-
/* 内容占位 - 防止布局偏移 */
4031
.VPContent {
4132
min-height: calc(100vh - var(--vp-nav-height) - 64px);
33+
padding-bottom: 0 !important;
4234
}
4335

44-
/* Brand Colors */
4536
:root {
4637
--vp-c-brand-1: #4a5d73;
4738
--vp-c-brand-2: #3d4f64;
@@ -56,7 +47,6 @@ iframe {
5647
--vp-c-brand-soft: rgba(107, 138, 173, 0.14);
5748
}
5849

59-
/* Accessibility */
6050
.skip-to-content {
6151
position: absolute;
6252
top: -100%;
@@ -76,7 +66,6 @@ iframe {
7666
top: 16px;
7767
}
7868

79-
/* 导航栏中间统计栏 */
8069
.VPNavBar {
8170
position: relative;
8271
}
@@ -120,7 +109,6 @@ a:focus-visible {
120109
}
121110
}
122111

123-
/* Home Hero */
124112
:root {
125113
--vp-home-hero-name-color: transparent;
126114
--vp-home-hero-name-background: linear-gradient(
@@ -174,7 +162,6 @@ a:focus-visible {
174162
transform: translateY(-5px);
175163
}
176164

177-
/* Navbar */
178165
.VPNavBar.screen-open,
179166
.VPNavScreenMenuLink,
180167
.VPNavScreenMenuGroup,
@@ -186,7 +173,6 @@ a:focus-visible {
186173
display: none;
187174
}
188175

189-
/* Blur Effects */
190176
.VPNavBar:not(.has-sidebar):not(.home.top) {
191177
background-color: rgba(255, 255, 255, 0);
192178
backdrop-filter: blur(10px);
@@ -235,3 +221,17 @@ a:focus-visible {
235221
.dark .VPLocalNav {
236222
background-color: rgba(30, 30, 32, 0);
237223
}
224+
225+
.footer {
226+
padding-top: 24px !important;
227+
padding-bottom: 16px !important;
228+
}
229+
230+
.footer .list-container {
231+
margin-top: 0 !important;
232+
padding-top: 8px;
233+
}
234+
235+
.footer .footer-info {
236+
margin-bottom: 0 !important;
237+
}

0 commit comments

Comments
 (0)