Skip to content

Commit 87b44dc

Browse files
committed
Adjust design
1 parent a19ac34 commit 87b44dc

File tree

4 files changed

+78
-2
lines changed

4 files changed

+78
-2
lines changed

docs/assets/extra.css

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
/* CSS custom properties replacing Sass variables */
2+
:root {
3+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Adjusted",
4+
"Segoe UI", "Liberation Sans", sans-serif;
5+
}
6+
7+
.md-content__inner {
8+
margin: 0;
9+
padding: 0;
10+
padding-bottom: 3rem;
11+
}
12+
13+
.md-typeset {
14+
p,
15+
ol,
16+
ul,
17+
h1,
18+
h2,
19+
h3,
20+
h4,
21+
h5,
22+
h6 {
23+
padding: 0 20px;
24+
color: black;
25+
}
26+
27+
/* Change header fonts */
28+
h1, h2, h3, h4, h5, h6 {
29+
font-weight: 700;
30+
font-style: normal;
31+
letter-spacing: -0.5px;
32+
line-height: 140%;
33+
}
34+
35+
h1 {
36+
font-size: 1.2rem;
37+
margin: 0.5em 0 1em 0;
38+
}
39+
40+
h2 {
41+
font-size: 1rem;
42+
margin: 1.5em 0 1.3em 0;
43+
}
44+
45+
h3 {
46+
font-size: 0.9rem;
47+
margin: 2em 0 1.1em 0;
48+
}
49+
50+
p, ul, ol, pre {
51+
font-size: 17px;
52+
}
53+
54+
pre {
55+
line-height: 140%;
56+
}
57+
58+
pre > code {
59+
padding-left: 20px;
60+
padding-right: 20px;
61+
}
62+
}
63+
64+
/* Target only the page title (first H1 in the article) */
65+
.md-content__inner.md-typeset h1:first-of-type {
66+
padding-left: 20px;
67+
}
68+
69+
.md-content__inner.md-typeset blockquote {
70+
background-color: #ffd;
71+
border-left: 0;
72+
border-radius: 5px;
73+
padding: 1px 0;
74+
}
File renamed without changes.

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ hide:
99
}
1010
</style>
1111

12-
![jsonrpcserver](images/logo.png)
12+
![jsonrpcserver](assets/logo.png)
1313

1414
_Process incoming JSON-RPC requests in Python._
1515

mkdocs.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
site_name: jsonrpcserver
2-
site_url: https://explodinglabs.com/jsonrpcserver/
2+
site_url: https://www.explodinglabs.com/jsonrpcserver/
33
repo_url: https://github.com/explodinglabs/jsonrpcserver
44
theme:
55
name: material
@@ -30,6 +30,8 @@ theme:
3030
toggle:
3131
icon: material/brightness-4
3232
name: Switch to system preference
33+
extra_css:
34+
- assets/extra.css
3335
markdown_extensions:
3436
- pymdownx.highlight
3537
- pymdownx.superfences

0 commit comments

Comments
 (0)