Skip to content

Commit 74f7e42

Browse files
committed
[site] font adjustments
1 parent 843a45f commit 74f7e42

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

docs/_site/mkdocs-extra.css

+28
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,34 @@
8282
/* max-width: initial; */
8383
/* } */
8484

85+
/* Font adjustments */
86+
/* px2rem($size, $base: 20px) => math.div($size, $base) * 1rem */
87+
/* html { */
88+
/* Hack: mkdocs wants to set base `font-size: 62.5%` to base all calculations on `10px` */
89+
/* But Chrome defines minimal `font-size: 12px` if language is Chinese */
90+
/* so it just doubles `font-size` to use `20px` base; https://github.com/squidfunk/mkdocs-material/issues/911 */
91+
/* font-size: 125% */
92+
/* } */
93+
@media screen and (min-width: 100em) {
94+
/* [screen medium +]: Set base `font-size` to `11px` i.e. `137.5%` */
95+
html {
96+
font-size: 137.5%
97+
}
98+
}
99+
@media screen and (min-width: 125em) {
100+
/* [screen large +]: Set base `font-size` to `12px` i.e. `150%` */
101+
html {
102+
font-size: 137.5%
103+
}
104+
}
105+
/* body { */
106+
/* mkdocs default: px2rem(12px) */
107+
/* font-size: 0.5rem */
108+
/* } */
109+
/* .md-typeset { */
110+
/* font-size: 0.7rem; */
111+
/* } */
112+
85113
/* Hide images for light mode */
86114
/* img[src$="#only-light"] { */
87115
/* display: none; */

lychee-check.ps1 lycheeCheck.ps1

File renamed without changes.

mkdocs.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ theme:
5050
icon: material/flare
5151
name: Light Mode
5252
font:
53-
text: Nunito
53+
# text: Nunito
54+
text: Source Serif Pro
5455
code: Source Code Pro
5556
icon:
5657
logo: material/gamepad-variant

0 commit comments

Comments
 (0)