Skip to content

Commit 51c7eef

Browse files
authored
docs: Update header font (#405)
2 parents c2a02e2 + a5389ed commit 51c7eef

File tree

2 files changed

+27
-9
lines changed

2 files changed

+27
-9
lines changed

mkdocs/mkdocs.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
site_name: ReplayWeb.page Docs
1+
site_name: Replay Webpage Docs
22
docs_dir: ./site/
33
watch:
44
- ./site/
55
site_dir: _genhtml/
66
repo_url: https://github.com/webrecorder/replayweb.page
77
repo_name: ReplayWeb.page
8-
edit_uri: edit/main/mkdocs/site/docs/
8+
edit_uri: edit/main/mkdocs/site/
99
extra_css:
1010
- docs/stylesheets/extra.css
1111
theme:

mkdocs/site/docs/stylesheets/extra.css

+25-7
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,22 @@
2525
src: url('../assets/fonts/Inter-Italic.var.woff2') format('woff2');
2626
font-feature-settings: "ss03";
2727
}
28+
29+
@font-face {
30+
font-family: "Konsole";
31+
font-weight: 100 900;
32+
font-display: swap;
33+
font-style: normal;
34+
src: url("https://wr-static.sfo3.cdn.digitaloceanspaces.com/fonts/konsole/Konsolev1.1-VF.woff2")
35+
format("woff2");
36+
}
2837

2938
:root {
39+
--md-display-font: "Konsole", "Helvetica", sans-serif;
3040
--md-code-font: "Recursive", monospace;
3141
--md-text-font: "Inter", "Helvetica", "Arial", sans-serif;
32-
--wr-blue-primary: #0891B2;
33-
--wr-orange-primary: #C96509;
42+
--wr-blue-primary: #088eaf;
43+
--wr-orange-primary: #bb4a00;
3444
}
3545

3646
[data-md-color-scheme="webrecorder"] {
@@ -45,14 +55,22 @@
4555

4656
/* Nav changes */
4757

48-
.md-header__title {
49-
font-family: var(--md-code-font);
50-
font-variation-settings: "MONO" 0.51;
58+
.md-header__title,
59+
.md-nav__title {
60+
font-family: var(--md-display-font);
61+
text-transform: uppercase;
62+
font-variation-settings:
63+
"wght" 750,
64+
"wdth" 87;
65+
margin-left: 0 !important;
5166
}
5267

5368
.md-header__title--active {
54-
font-family: var(--md-text-font);
55-
font-weight: 600;
69+
font-family: var(--md-display-font);
70+
text-transform: none;
71+
font-variation-settings:
72+
"wght" 550,
73+
"wdth" 90;
5674
}
5775

5876
/* Custom menu item hover */

0 commit comments

Comments
 (0)