Skip to content

Commit d570eb9

Browse files
committed
调整主页内边距,增加最小和最大值以改善布局适应性
1 parent 2a0c0cb commit d570eb9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pages/index.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* ==================== 主题变量 ==================== */
22
:root {
33
/* 间距和圆角 */
4-
--home-padding: clamp(3rem, 5vw, 5rem);
4+
--home-padding: clamp(4rem, 6vw, 6rem);
55
--home-radius: 28px;
66

77
/* 面板样式 */
@@ -1687,12 +1687,12 @@ html[data-theme="dark"] .scenario-image-placeholder::after {
16871687

16881688
@media (max-width: 640px) {
16891689
:root {
1690-
--home-padding: clamp(2rem, 8vw, 3rem);
1690+
--home-padding: clamp(2.5rem, 8vw, 4rem);
16911691
}
16921692

16931693
.hero-banner,
16941694
.home-section {
1695-
padding: clamp(1.5rem, 6vw, 2.5rem) 1.5rem;
1695+
padding: clamp(2rem, 6vw, 3rem) 2rem;
16961696
min-height: fit-content;
16971697
}
16981698

0 commit comments

Comments
 (0)