Skip to content

Commit 7d6af49

Browse files
committed
[docs] Light typography improvements
1 parent df1245e commit 7d6af49

File tree

5 files changed

+21
-8
lines changed

5 files changed

+21
-8
lines changed

docs/css/index.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

site/less/index.less

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ html {
88
--back2: #fafafa;
99
--back3: #eee;
1010
--border: #ddd;
11-
--link: #bbb;
11+
--link: #ddd;
1212
--shadow: #0002;
1313
--plus: #fdd;
1414
--minus: #dfd;
@@ -30,8 +30,8 @@ html.dark {
3030
--back: #111;
3131
--back2: #151515;
3232
--back3: #222;
33-
--border: #333;
34-
--link: #777;
33+
--border: #555;
34+
--link: #555;
3535
--shadow: #000;
3636
--plus: #311;
3737
--minus: #131;

site/less/nav.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ body > main {
5050
border-width: 0 0 0 0.0625rem;
5151
border-style: solid;
5252
border-color: transparent;
53-
line-height: 1.25rem;
53+
line-height: 1.5rem;
5454
> a {
55-
height: 1.25rem;
55+
height: 1.5rem;
5656
}
5757
> span {
5858
vertical-align: text-bottom;

site/less/pre.less

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
pre {
22
display: block;
3-
line-height: 1.2rem;
3+
line-height: 1.25rem;
44
margin: 2rem 0;
55
overflow-x: auto;
66
padding: 1rem;
77

8+
code {
9+
background: none;
10+
padding: 0;
11+
border-radius: 0;
12+
text-decoration-color: @linkColor;
13+
}
14+
815
a {
916
color: inherit !important;
1017
font-weight: 600;

site/less/type.less

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ html {
3737
text-rendering: optimizeLegibility;
3838
font-weight: 400;
3939
letter-spacing: -0.01rem;
40+
line-height: 1.8rem;
4041
}
4142

4243
code {
@@ -88,8 +89,13 @@ h6 {
8889

8990
p {
9091
margin: 1rem 0;
91-
line-height: 1.6em;
9292
clear: both;
93+
code {
94+
background: @borderColor;
95+
padding: 0.05em 0.25em;
96+
border-radius: 0.25rem;
97+
text-decoration-color: transparent;
98+
}
9399
}
94100

95101
.table {

0 commit comments

Comments
 (0)