Skip to content

Commit a775a5c

Browse files
committed
docs: 修改基础样式
1 parent cd10bf9 commit a775a5c

File tree

5 files changed

+32
-37
lines changed

5 files changed

+32
-37
lines changed

theme/style.css

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -56,28 +56,27 @@ p {
5656
}
5757

5858
h1, .h1 {
59-
font-size: 56px;
59+
font-size: 32px;
6060
}
6161

6262
h2, .h2 {
63-
font-size: 45px;
63+
font-size: 24px;
6464
}
6565

6666
h3, .h3 {
67-
font-size: 34px;
67+
font-size: 20px;
6868
}
6969

7070
h4, .h4 {
71-
font-size: 24px;
71+
font-size: 16px;
7272
}
7373

7474
h5, .h5 {
75-
font-size: 21px;
76-
line-height: 32px;
75+
font-size: 14px;
7776
}
7877

7978
h6, .h6 {
80-
font-size: 16px;
79+
font-size: 12px;
8180
}
8281

8382
@media screen and (max-width: 960px) {
@@ -1703,7 +1702,7 @@ body {
17031702
}
17041703

17051704
.m-summary-title {
1706-
font-size: 16px;
1705+
font-size: 12px;
17071706
line-height: 2.5;
17081707
color: rgba(3, 17, 31, 0.87);
17091708
}
@@ -1876,7 +1875,7 @@ body {
18761875
}
18771876

18781877
.m-footer-links .title {
1879-
font-size: 16px;
1878+
font-size: 12px;
18801879
line-height: 2;
18811880
color: rgba(3, 17, 31, 0.38);
18821881
}
@@ -1895,7 +1894,7 @@ body {
18951894

18961895
@media screen and (min-width: 960px) {
18971896
.m-footer {
1898-
font-size: 16px;
1897+
font-size: 12px;
18991898
color: rgba(3, 17, 31, 0.54);
19001899
padding: .24rem .64rem;
19011900
}
@@ -1939,7 +1938,7 @@ body {
19391938

19401939
.g-home .m-section-title .name {
19411940
margin-bottom: .24rem;
1942-
font-size: 32px;
1941+
font-size: 20px;
19431942
position: relative;
19441943
}
19451944

@@ -1956,7 +1955,7 @@ body {
19561955
}
19571956

19581957
.g-home .m-section-title .desc {
1959-
font-size: 16px;
1958+
font-size: 12px;
19601959
color: rgba(3, 17, 31, 0.54);
19611960
line-height: 1.6;
19621961
}
@@ -1979,7 +1978,7 @@ body {
19791978
width: 1.2rem;
19801979
padding: .14rem;
19811980
line-height: .2rem;
1982-
font-size: 16px;
1981+
font-size: 12px;
19831982
color: #1890ff;
19841983
background-color: #fff;
19851984
margin-right: .08rem;
@@ -2051,12 +2050,12 @@ body {
20512050
}
20522051

20532052
.g-home .m-section.feature .item .title {
2054-
font-size: 32px;
2053+
font-size: 20px;
20552054
margin-bottom: .16rem;
20562055
}
20572056

20582057
.g-home .m-section.feature .item .desc {
2059-
font-size: 16px;
2058+
font-size: 12px;
20602059
color: rgba(3, 17, 31, 0.54);
20612060
}
20622061

@@ -2065,10 +2064,10 @@ body {
20652064
flex-direction: row;
20662065
}
20672066
.g-home .m-section-title .name {
2068-
font-size: 48px;
2067+
font-size: 24px;
20692068
}
20702069
.g-home .m-section-title .desc {
2071-
font-size: 21px;
2070+
font-size: 14px;
20722071
line-height: 1.6;
20732072
}
20742073
.g-home .m-section .btn {
@@ -2078,10 +2077,10 @@ body {
20782077
text-align: left;
20792078
}
20802079
.g-home .m-section.home .m-section-title .name {
2081-
font-size: 48px;
2080+
font-size: 24px;
20822081
}
20832082
.g-home .m-section.home .m-section-title .desc {
2084-
font-size: 21px;
2083+
font-size: 14px;
20852084
line-height: 1.6;
20862085
}
20872086
.g-home .m-section.home .m-section-btngroup {

theme/styles/common/base.scss

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,26 +47,24 @@ p {
4747
margin-top: 0;
4848
margin-bottom: 1em;
4949
}
50-
5150
// font sizes:
5251
h1, .h1 {
53-
font-size: 56px;
52+
font-size: 32px;
5453
}
5554
h2, .h2 {
56-
font-size: 45px;
55+
font-size: 24px;
5756
}
5857
h3, .h3 {
59-
font-size: 34px;
58+
font-size: 20px;
6059
}
6160
h4, .h4 {
62-
font-size: 24px;
61+
font-size: 16px;
6362
}
6463
h5, .h5 {
65-
font-size: 21px;
66-
line-height: 32px;
64+
font-size: 14px;
6765
}
6866
h6, .h6 {
69-
font-size: 16px;
67+
font-size: 12px;
7068
}
7169

7270
@media screen and (max-width: 960px) {

theme/styles/common/variables.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ $body-bg: #fff;
6363
$font-size: 14px;
6464
$line-height: 1.5;
6565
// headline
66-
$font-size-h1: 56px;
67-
$font-size-h2: 48px;
68-
$font-size-h3: 32px;
69-
$font-size-h4: 24px;
70-
$font-size-h5: 21px;
71-
$font-size-h6: 16px;
66+
$font-size-h1: 32px;
67+
$font-size-h2: 24px;
68+
$font-size-h3: 20px;
69+
$font-size-h4: 16px;
70+
$font-size-h5: 14px;
71+
$font-size-h6: 12px;
7272
$font-size-body: $font-size;
7373

7474
// transition

theme/styles/plugins/markdown.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -721,9 +721,8 @@
721721
.markdown-body h5,
722722
.markdown-body h6 {
723723
font-weight: 500;
724-
// padding-top: .64rem;
725-
// margin-top: -.54rem;
726724
}
725+
727726
.markdown-body a {
728727
text-decoration: none;
729728
background-color: rgba(187,239,253,0.3);

ydoc.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ module.exports = {
55
plugins: ["copy", "search"],
66
pluginsConfig: {
77
'import-asset': {
8-
css: 'custom.css',
9-
js: 'custom.js'
8+
css: 'custom.css'
109
}
1110
},
1211
markdownIt: function(md){

0 commit comments

Comments
 (0)