Skip to content

Commit a4a97a1

Browse files
committed
Improve docs font-size/readability and code block line number alignment
1 parent de1c890 commit a4a97a1

File tree

10 files changed

+41
-22
lines changed

10 files changed

+41
-22
lines changed

public/assets/css/app.css

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

public/assets/css/app.css.map

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

public/assets/css/laravel.css

Lines changed: 12 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/assets/css/laravel.css.map

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

public/build/assets/css/laravel-38c399da.css renamed to public/build/assets/css/laravel-b2b0f00c.css

Lines changed: 12 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/build/assets/css/laravel.css.map

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

public/build/rev-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"assets/css/laravel.css": "assets/css/laravel-38c399da.css",
2+
"assets/css/laravel.css": "assets/css/laravel-b2b0f00c.css",
33
"assets/js/laravel.js": "assets/js/laravel-01156b2f.js"
44
}

resources/assets/sass/components/_prism.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77

88
.docs article code[class*="language-"],
99
.docs article pre[class*="language-"] {
10-
font-size: 11px;
10+
font-size: 12px;
11+
vertical-align: middle;
1112
}
1213

1314
code[class*="language-"],
@@ -165,8 +166,8 @@ pre.line-numbers > code {
165166
.line-numbers .line-numbers-rows {
166167
position: absolute;
167168
pointer-events: none;
168-
top: -2px;
169-
padding-top: 2px;
169+
top: -4px;
170+
padding-top: 0px;
170171
font-size: 100%;
171172
left: -3.8em;
172173
width: 3em; /* works for line-numbers below 1000 lines */

resources/assets/sass/content/_docs.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
}
1313

1414
p {
15-
font-size: 14px;
15+
font-size: 16px;
1616
line-height: 1.65;
1717
}
1818

@@ -25,6 +25,7 @@
2525
line-height: 1.5;
2626
padding-bottom: 50px;
2727
border-bottom: 1px solid $color__faint;
28+
-webkit-font-smoothing: antialiased;
2829
li {
2930
&:before {
3031
content: "# ";

resources/assets/sass/core/_base.scss

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@ body {
1313
padding-top: 10px;
1414
}
1515

16-
// h1, h2, h3, h4, h5, h6, p {
17-
// margin-top: 0;
18-
// padding-top: 0;
19-
// margin-bottom: 1.5em;
20-
// }
16+
h1, h2, h3, h4 {
17+
-webkit-font-smoothing: antialiased;
18+
}
2119

2220
.container {
2321
max-width: 1080px;
@@ -38,6 +36,9 @@ h1 {
3836
p {
3937
line-height: 1.5;
4038
margin: 10px 0 20px;
39+
strong {
40+
-webkit-font-smoothing: antialiased;
41+
}
4142
}
4243

4344
.contain {

0 commit comments

Comments
 (0)