Skip to content

Commit a63ba36

Browse files
cormullionnickrobinson251simeonschaub
authored
Docs that use JuliaMono font (#293)
* -> JuliaMono font * delete themes * add pre, detab * Update docs/src/assets/chainrules.scss Co-authored-by: Simeon Schaub <simeondavidschaub99@gmail.com> Co-authored-by: Nick Robinson <npr251@gmail.com> Co-authored-by: Simeon Schaub <simeondavidschaub99@gmail.com>
1 parent 0fa97bd commit a63ba36

File tree

1 file changed

+19
-12
lines changed

1 file changed

+19
-12
lines changed

docs/src/assets/chainrules.scss

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
11
// Only for light theme
22

3+
@font-face {
4+
font-family: JuliaMono;
5+
src:
6+
local('JuliaMono'),
7+
url("https://cdn.jsdelivr.net/gh/cormullion/juliamono/webfonts/JuliaMono-Regular.woff2");
8+
}
9+
10+
html.theme--documenter-dark pre,
11+
html.theme--documenter-dark code {
12+
font-family: "JuliaMono";
13+
}
14+
315
html:not(.theme--documenter-dark) body #documenter {
416
// Links
5-
17+
618
a {
719
color: #4595D1;
820
}
9-
21+
1022
a:hover, a:focus {
1123
color: #194E82;
1224
}
@@ -29,7 +41,7 @@ html:not(.theme--documenter-dark) body #documenter {
2941
.tocitem {
3042
color: #FFFFFF;
3143
background: none;
32-
44+
3345
&:hover { @extend %nav-hover; }
3446
}
3547

@@ -63,26 +75,22 @@ html:not(.theme--documenter-dark) body #documenter {
6375
}
6476
}
6577
}
66-
78+
6779
// Text
6880

6981
article#documenter-page a.docs-heading-anchor {
7082
color: #194E82;
7183
}
7284

7385
// Code
74-
75-
code {
86+
87+
pre, code {
7688
color: inherit;
77-
89+
font-family: "JuliaMono";
7890
.hljs-meta { color: #4595D1; }
79-
8091
.hljs-keyword { color: #194E82; }
8192
}
8293

83-
pre, code {
84-
font-family: "Liberation Mono", "Consolas", "DejaVu Sans Mono", "Ubuntu Mono", "andale mono", "lucida console", monospace;
85-
}
8694
}
8795

8896
// Terminology Block
@@ -118,4 +126,3 @@ details {
118126
html.theme--documenter-dark details {
119127
background: #282f2f;
120128
}
121-

0 commit comments

Comments
 (0)