Skip to content

Commit 09b4634

Browse files
committed
opti: 基础样式调整
1 parent a775a5c commit 09b4634

File tree

5 files changed

+26
-24
lines changed

5 files changed

+26
-24
lines changed

theme/style.css

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1702,7 +1702,7 @@ body {
17021702
}
17031703

17041704
.m-summary-title {
1705-
font-size: 12px;
1705+
font-size: 16px;
17061706
line-height: 2.5;
17071707
color: rgba(3, 17, 31, 0.87);
17081708
}
@@ -1875,7 +1875,7 @@ body {
18751875
}
18761876

18771877
.m-footer-links .title {
1878-
font-size: 12px;
1878+
font-size: 16px;
18791879
line-height: 2;
18801880
color: rgba(3, 17, 31, 0.38);
18811881
}
@@ -1894,7 +1894,7 @@ body {
18941894

18951895
@media screen and (min-width: 960px) {
18961896
.m-footer {
1897-
font-size: 12px;
1897+
font-size: 16px;
18981898
color: rgba(3, 17, 31, 0.54);
18991899
padding: .24rem .64rem;
19001900
}
@@ -1938,7 +1938,7 @@ body {
19381938

19391939
.g-home .m-section-title .name {
19401940
margin-bottom: .24rem;
1941-
font-size: 20px;
1941+
font-size: 32px;
19421942
position: relative;
19431943
}
19441944

@@ -1955,7 +1955,7 @@ body {
19551955
}
19561956

19571957
.g-home .m-section-title .desc {
1958-
font-size: 12px;
1958+
font-size: 16px;
19591959
color: rgba(3, 17, 31, 0.54);
19601960
line-height: 1.6;
19611961
}
@@ -1978,7 +1978,7 @@ body {
19781978
width: 1.2rem;
19791979
padding: .14rem;
19801980
line-height: .2rem;
1981-
font-size: 12px;
1981+
font-size: 16px;
19821982
color: #1890ff;
19831983
background-color: #fff;
19841984
margin-right: .08rem;
@@ -2050,12 +2050,12 @@ body {
20502050
}
20512051

20522052
.g-home .m-section.feature .item .title {
2053-
font-size: 20px;
2053+
font-size: 32px;
20542054
margin-bottom: .16rem;
20552055
}
20562056

20572057
.g-home .m-section.feature .item .desc {
2058-
font-size: 12px;
2058+
font-size: 16px;
20592059
color: rgba(3, 17, 31, 0.54);
20602060
}
20612061

@@ -2064,10 +2064,10 @@ body {
20642064
flex-direction: row;
20652065
}
20662066
.g-home .m-section-title .name {
2067-
font-size: 24px;
2067+
font-size: 48px;
20682068
}
20692069
.g-home .m-section-title .desc {
2070-
font-size: 14px;
2070+
font-size: 20px;
20712071
line-height: 1.6;
20722072
}
20732073
.g-home .m-section .btn {
@@ -2077,10 +2077,10 @@ body {
20772077
text-align: left;
20782078
}
20792079
.g-home .m-section.home .m-section-title .name {
2080-
font-size: 24px;
2080+
font-size: 48px;
20812081
}
20822082
.g-home .m-section.home .m-section-title .desc {
2083-
font-size: 14px;
2083+
font-size: 20px;
20842084
line-height: 1.6;
20852085
}
20862086
.g-home .m-section.home .m-section-btngroup {

theme/styles/common/variables.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ $body-bg: #fff;
6363
$font-size: 14px;
6464
$line-height: 1.5;
6565
// headline
66+
$font-size-display2: 56px;
67+
$font-size-display1: 48px;
6668
$font-size-h1: 32px;
6769
$font-size-h2: 24px;
6870
$font-size-h3: 20px;

theme/styles/footer.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
margin-bottom: .24rem;
2424
}
2525
.title {
26-
font-size: $font-size-h6;
26+
font-size: $font-size-h4;
2727
line-height: 2;
2828
color: $deep-disable-text-color;
2929
}
@@ -43,7 +43,7 @@
4343
// Expand footer on PC
4444
@include media-md() {
4545
.m-footer {
46-
font-size: $font-size-h6;
46+
font-size: $font-size-h4;
4747
color: $deep-caption-text-color;
4848
padding: .24rem .64rem;
4949
&-container {

theme/styles/homepage.scss

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
text-align: center;
1818
.name {
1919
margin-bottom: .24rem;
20-
font-size: $font-size-h3;
20+
font-size: $font-size-h1;
2121
position: relative;
2222
&:after {
2323
content: '';
@@ -32,7 +32,7 @@
3232
}
3333
}
3434
.desc {
35-
font-size: $font-size-h6;
35+
font-size: $font-size-h4;
3636
color: $deep-caption-text-color;
3737
line-height: 1.6;
3838
}
@@ -53,7 +53,7 @@
5353
width: 1.2rem;
5454
padding: .14rem;
5555
line-height: .2rem;
56-
font-size: $font-size-h6;
56+
font-size: $font-size-h4;
5757
color: $primary-6;
5858
background-color: $white;
5959
margin-right: .08rem;
@@ -115,11 +115,11 @@
115115
flex: 0 0 46%;
116116
margin-bottom: .32rem;
117117
.title {
118-
font-size: $font-size-h3;
118+
font-size: $font-size-h1;
119119
margin-bottom: .16rem;
120120
}
121121
.desc {
122-
font-size: $font-size-h6;
122+
font-size: $font-size-h4;
123123
color: $deep-caption-text-color;
124124
}
125125
}
@@ -136,10 +136,10 @@
136136
.m-section {
137137
&-title {
138138
.name {
139-
font-size: $font-size-h2;
139+
font-size: $font-size-display1;
140140
}
141141
.desc {
142-
font-size: $font-size-h5;
142+
font-size: $font-size-h3;
143143
line-height: 1.6;
144144
}
145145
}
@@ -152,10 +152,10 @@
152152
text-align: left;
153153
}
154154
.m-section-title .name {
155-
font-size: $font-size-h2;
155+
font-size: $font-size-display1;
156156
}
157157
.m-section-title .desc {
158-
font-size: $font-size-h5;
158+
font-size: $font-size-h3;
159159
line-height: 1.6;
160160
}
161161
.m-section-btngroup {

theme/styles/summary.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
}
4242
}
4343
&-title {
44-
font-size: $font-size-h6;
44+
font-size: $font-size-h4;
4545
line-height: 2.5;
4646
color: $deep-body-text-color;
4747
}

0 commit comments

Comments
 (0)