|
1 |
| -/* CSS custom properties replacing Sass variables */ |
2 | 1 | :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; |
5 | 6 | }
|
6 | 7 |
|
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; |
11 | 12 | }
|
12 | 13 |
|
13 | 14 | .md-typeset {
|
| 15 | + margin-left: 0 !important; |
| 16 | + margin-right: 0 !important; |
| 17 | + |
14 | 18 | p,
|
15 |
| - ol, |
16 |
| - ul, |
17 | 19 | h1,
|
18 | 20 | h2,
|
19 | 21 | h3,
|
20 | 22 | h4,
|
21 | 23 | h5,
|
22 | 24 | h6 {
|
23 |
| - padding: 0 20px; |
| 25 | + margin: 0; |
| 26 | + padding: 0; |
| 27 | + padding-left: 20px; |
| 28 | + padding-right: 20px; |
24 | 29 | color: black;
|
25 | 30 | }
|
26 | 31 |
|
|
34 | 39 |
|
35 | 40 | h1 {
|
36 | 41 | font-size: 1.2rem;
|
37 |
| - margin: 0.5em 0 1em 0; |
| 42 | + margin-top: 0.3em; |
| 43 | + margin-bottom: 1em; |
38 | 44 | }
|
39 | 45 |
|
40 | 46 | h2 {
|
41 | 47 | font-size: 1rem;
|
42 |
| - margin: 1.5em 0 1.3em 0; |
| 48 | + margin-top: 1.5em; |
| 49 | + margin-bottom: 1em; |
43 | 50 | }
|
44 | 51 |
|
45 | 52 | h3 {
|
46 | 53 | font-size: 0.9rem;
|
47 |
| - margin: 2em 0 1.1em 0; |
| 54 | + margin-top: 2em; |
| 55 | + margin-bottom: 1.1em; |
48 | 56 | }
|
49 | 57 |
|
50 | 58 | p, ul, ol, pre {
|
51 | 59 | font-size: 17px;
|
52 | 60 | }
|
53 | 61 |
|
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; |
60 | 65 | }
|
61 | 66 |
|
62 |
| - pre > code { |
63 |
| - line-height: 140%; |
64 |
| - padding-left: 20px; |
| 67 | + ul, ol { |
| 68 | + margin-left: 3rem; |
| 69 | + padding-left: 3rem; |
| 70 | + } |
65 | 71 |
|
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; |
71 | 79 | }
|
72 | 80 |
|
| 81 | + pre { |
| 82 | + line-height: 150%; |
| 83 | + } |
73 | 84 | }
|
74 | 85 |
|
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 | + } |
78 | 93 | }
|
79 | 94 |
|
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; |
85 | 97 | }
|
| 98 | + |
0 commit comments