Skip to content

Commit 2052fc2

Browse files
Add scaladoc typography fallback fonts (#16063)
Adds the correct fallback fonts to the `typography.css`. This improves readibility for users who for some reason can't load the fonts (e.g. disabled JS/custom fonts on their browsers). WIthout this change, inline code would not use a monospace font on such cases. <details><summary>Before</summary> <img src ="https://user-images.githubusercontent.com/1187242/190891202-738b984c-8a06-47d0-84cf-b42c36f3b150.png"> </details> <details><summary>After</summary> <img src ="https://user-images.githubusercontent.com/1187242/190891317-a4290c2a-6add-4b61-87e5-7e110131f6a3.png"> </details>
2 parents 2ecc94d + 3e67961 commit 2052fc2

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

scaladoc/resources/dotty_res/styles/theme/typography.css

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,85 +26,85 @@
2626
.h700 {
2727
font-size: 40px;
2828
line-height: 40px;
29-
font-family: "Inter-Bold";
29+
font-family: "Inter-Bold", sans-serif;
3030
}
3131

3232
.h600 {
3333
font-size: 32px;
3434
line-height: 40px;
35-
font-family: "Inter-SemiBold";
35+
font-family: "Inter-SemiBold", sans-serif;
3636
}
3737

3838
.h500 {
3939
font-size: 28px;
4040
line-height: 32px;
41-
font-family: "Inter-Medium";
41+
font-family: "Inter-Medium", sans-serif;
4242
}
4343

4444
.h400 {
4545
font-size: 24px;
4646
line-height: 32px;
47-
font-family: "Inter-Medium";
47+
font-family: "Inter-Medium", sans-serif;
4848
}
4949

5050
.h300 {
5151
font-size: 20px;
5252
line-height: 24px;
53-
font-family: "Inter-Bold";
53+
font-family: "Inter-Bold", sans-serif;
5454
}
5555

5656
.h200 {
5757
font-size: 16px;
5858
line-height: 24px;
59-
font-family: "Inter-SemiBold";
59+
font-family: "Inter-SemiBold", sans-serif;
6060
}
6161

6262
.h100 {
6363
font-size: 13px;
6464
line-height: 16px;
65-
font-family: "Inter-SemiBold";
65+
font-family: "Inter-SemiBold", sans-serif;
6666
}
6767

6868
.h50 {
6969
font-size: 9px;
7070
line-height: 12px;
71-
font-family: "Inter-SemiBold";
71+
font-family: "Inter-SemiBold", sans-serif;
7272
}
7373

7474
.body-large {
7575
font-size: 20px;
7676
line-height: 24px;
77-
font-family: "Inter-Regular";
77+
font-family: "Inter-Regular", sans-serif;
7878
}
7979

8080
.body-medium {
8181
font-size: 16px;
8282
line-height: 24px;
83-
font-family: "Inter-Regular";
83+
font-family: "Inter-Regular", sans-serif;
8484
}
8585

8686
.body-small {
8787
font-size: 13px;
8888
line-height: 16px;
89-
font-family: "Inter-Regular";
89+
font-family: "Inter-Regular", sans-serif;
9090
}
9191

9292
.mono-medium {
9393
font-size: 16px;
9494
line-height: 24px;
95-
font-family: "FiraCode-Regular";
95+
font-family: "FiraCode-Regular", monospace;
9696
}
9797

9898
.mono-small-inline {
9999
font-size: 13px;
100100
line-height: 16px;
101-
font-family: "FiraCode-Regular";
101+
font-family: "FiraCode-Regular", monospace;
102102
}
103103

104104
.mono-small-block {
105105
font-size: 15px;
106106
line-height: 20px;
107-
font-family: "FiraCode-Regular";
107+
font-family: "FiraCode-Regular", monospace;
108108
}
109109

110110
:root {

0 commit comments

Comments
 (0)