Skip to content

Commit 6935e89

Browse files
committed
fix(website): 减少移动端下安装方式内卡片和列表的内边距,优化布局空间
1 parent 817ccf0 commit 6935e89

File tree

2 files changed

+76
-3
lines changed

2 files changed

+76
-3
lines changed

office-website/src/components/Header/Header.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
.starCount {
134134
font-weight: 500;
135135
color: #2563eb;
136-
}
136+
}
137137

138138
/* 移动端导航按钮 */
139139
.mobileNavToggle {

office-website/src/pages/Home/Home.module.css

Lines changed: 75 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@
600600
}
601601

602602
.installMethods {
603-
margin-left: 0.5rem;
603+
margin-left: 0rem;
604604
}
605605

606606
.methodSteps ol {
@@ -807,10 +807,18 @@
807807

808808
@media (max-width: 768px) {
809809
.installMethods {
810-
margin-left: calc(2rem + var(--space-3));
810+
margin-left: 0.5rem;
811811
gap: var(--space-4);
812812
}
813813

814+
.installMethod {
815+
padding: var(--space-3);
816+
}
817+
818+
.methodSteps ol {
819+
padding-left: var(--space-4);
820+
}
821+
814822
.methodTitle {
815823
font-size: 1.1rem;
816824
}
@@ -824,6 +832,71 @@
824832
}
825833
}
826834

835+
@media (max-width: 480px) {
836+
.installMethod {
837+
padding: var(--space-2);
838+
}
839+
840+
.methodSteps ol {
841+
padding-left: var(--space-3);
842+
}
843+
844+
.methodSteps {
845+
margin-top: var(--space-2);
846+
}
847+
848+
.step p, .step ol, .step ul, .browserOptions, .installMethods {
849+
margin-left: 0.5rem;
850+
}
851+
852+
.stepTitle {
853+
flex-direction: column;
854+
align-items: flex-start;
855+
}
856+
857+
.stepNumber {
858+
margin-bottom: var(--space-2);
859+
width: 1.8rem;
860+
height: 1.8rem;
861+
margin-right: var(--space-2);
862+
}
863+
864+
.installSteps::before {
865+
display: none;
866+
}
867+
868+
.installMethods {
869+
margin-left: 0rem;
870+
}
871+
872+
.methodSteps ol {
873+
padding-left: var(--space-4);
874+
}
875+
876+
.contributorItem {
877+
padding: var(--space-3);
878+
}
879+
880+
.contributorAvatar {
881+
width: 80px;
882+
height: 80px;
883+
}
884+
885+
.title {
886+
font-size: 1.8rem;
887+
line-height: 1.2;
888+
margin-top: 2rem;
889+
}
890+
891+
.hero {
892+
padding-top: calc(var(--header-height) + var(--space-8) + 1rem);
893+
}
894+
895+
.heroContent {
896+
padding-top: 4rem;
897+
}
898+
}
899+
827900
.codeBlock {
828901
background-color: #2a2a2a;
829902
color: #f8f8f8;

0 commit comments

Comments
 (0)