Skip to content

Commit 987a9c5

Browse files
committed
Adjust styling
1 parent 8d9ac04 commit 987a9c5

File tree

1 file changed

+48
-35
lines changed

1 file changed

+48
-35
lines changed

docs/assets/extra.css

Lines changed: 48 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,31 @@
1-
/* CSS custom properties replacing Sass variables */
21
:root {
3-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Adjusted",
4-
"Segoe UI", "Liberation Sans", sans-serif;
2+
--md-text-font: -apple-system, BlinkMacSystemFont, "Segoe UI Adjusted",
3+
"Segoe UI", "Liberation Sans", sans-serif !important;
4+
--md-code-font: "SF Mono", SFMono-Regular, ui-monospace, "DejaVu Sans Mono",
5+
Menlo, Consolas, monospace;
56
}
67

7-
.md-content__inner {
8-
margin: 0;
9-
padding: 0;
10-
padding-bottom: 3rem;
8+
/* Fix a horizontal scroll isue */
9+
.md-typeset * {
10+
margin-left: 0 !important;
11+
margin-right: 0 !important;
1112
}
1213

1314
.md-typeset {
15+
margin-left: 0 !important;
16+
margin-right: 0 !important;
17+
1418
p,
15-
ol,
16-
ul,
1719
h1,
1820
h2,
1921
h3,
2022
h4,
2123
h5,
2224
h6 {
23-
padding: 0 20px;
25+
margin: 0;
26+
padding: 0;
27+
padding-left: 20px;
28+
padding-right: 20px;
2429
color: black;
2530
}
2631

@@ -34,52 +39,60 @@
3439

3540
h1 {
3641
font-size: 1.2rem;
37-
margin: 0.5em 0 1em 0;
42+
margin-top: 0.3em;
43+
margin-bottom: 1em;
3844
}
3945

4046
h2 {
4147
font-size: 1rem;
42-
margin: 1.5em 0 1.3em 0;
48+
margin-top: 1.5em;
49+
margin-bottom: 1em;
4350
}
4451

4552
h3 {
4653
font-size: 0.9rem;
47-
margin: 2em 0 1.1em 0;
54+
margin-top: 2em;
55+
margin-bottom: 1.1em;
4856
}
4957

5058
p, ul, ol, pre {
5159
font-size: 17px;
5260
}
5361

54-
pre {
55-
margin: 0;
56-
border: 0;
57-
@media screen and (max-width: 44.9375em) { /* ~719px */
58-
margin-left: 20px;
59-
}
62+
p {
63+
margin-top: 1em;
64+
margin-bottom: 1em;
6065
}
6166

62-
pre > code {
63-
line-height: 140%;
64-
padding-left: 20px;
67+
ul, ol {
68+
margin-left: 3rem;
69+
padding-left: 3rem;
70+
}
6571

66-
@media screen and (max-width: 44.9375em) { /* ~719px */
67-
margin: 0;
68-
border: 0;
69-
padding-left: 20px !important;
70-
}
72+
blockquote {
73+
color: #666;
74+
background-color: #ffd;
75+
border-left: 0 !important;
76+
border-radius: 5px;
77+
margin: 0;
78+
padding: 1px 0 !important;
7179
}
7280

81+
pre {
82+
line-height: 150%;
83+
}
7384
}
7485

75-
/* Target only the page title (first H1 in the article) */
76-
.md-content__inner.md-typeset h1:first-of-type {
77-
padding-left: 20px;
86+
.md-content__inner {
87+
/* Target only the page title (first H1 in the article) */
88+
.md-typeset {
89+
h1:first-of-type {
90+
padding-left: 20px;
91+
}
92+
}
7893
}
7994

80-
.md-content__inner.md-typeset blockquote {
81-
background-color: #ffd;
82-
border-left: 0;
83-
border-radius: 5px;
84-
padding: 1px 0;
95+
article {
96+
padding-bottom: 3rem;
8597
}
98+

0 commit comments

Comments
 (0)