|
1 | | -.post-content { |
| 1 | +.md-content { |
2 | 2 | color: var(--content); |
3 | 3 | margin: 30px 0; |
4 | 4 | } |
5 | 5 |
|
6 | | -.post-content h3, |
7 | | -.post-content h4, |
8 | | -.post-content h5, |
9 | | -.post-content h6 { |
| 6 | +.md-content h3, |
| 7 | +.md-content h4, |
| 8 | +.md-content h5, |
| 9 | +.md-content h6 { |
10 | 10 | margin: 24px 0 16px; |
11 | 11 | } |
12 | 12 |
|
13 | | -.post-content h1 { |
| 13 | +.md-content h1 { |
14 | 14 | margin: 40px auto 32px; |
15 | 15 | font-size: 40px; |
16 | 16 | } |
17 | 17 |
|
18 | | -.post-content h2 { |
| 18 | +.md-content h2 { |
19 | 19 | margin: 32px auto 24px; |
20 | 20 | font-size: 32px; |
21 | 21 | } |
22 | 22 |
|
23 | | -.post-content h3 { |
| 23 | +.md-content h3 { |
24 | 24 | font-size: 24px; |
25 | 25 | } |
26 | 26 |
|
27 | | -.post-content h4 { |
| 27 | +.md-content h4 { |
28 | 28 | font-size: 16px; |
29 | 29 | } |
30 | 30 |
|
31 | | -.post-content h5 { |
| 31 | +.md-content h5 { |
32 | 32 | font-size: 14px; |
33 | 33 | } |
34 | 34 |
|
35 | | -.post-content h6 { |
| 35 | +.md-content h6 { |
36 | 36 | font-size: 12px; |
37 | 37 | } |
38 | 38 |
|
39 | | -.post-content a { |
| 39 | +.md-content a { |
40 | 40 | box-shadow: 0 1px 0; |
41 | 41 | box-decoration-break: clone; |
42 | 42 | -webkit-box-decoration-break: clone; |
43 | 43 | } |
44 | 44 |
|
45 | | -.post-content a code { |
| 45 | +.md-content a code { |
46 | 46 | margin: auto 0; |
47 | 47 | border-radius: 0; |
48 | 48 | box-shadow: 0 -1px 0 var(--primary) inset; |
49 | 49 | } |
50 | 50 |
|
51 | | -.post-content del { |
| 51 | +.md-content del { |
52 | 52 | text-decoration: line-through; |
53 | 53 | } |
54 | 54 |
|
55 | | -.post-content dl, |
56 | | -.post-content ol, |
57 | | -.post-content p, |
58 | | -.post-content figure, |
59 | | -.post-content ul { |
| 55 | +.md-content dl, |
| 56 | +.md-content ol, |
| 57 | +.md-content p, |
| 58 | +.md-content figure, |
| 59 | +.md-content ul { |
60 | 60 | margin-bottom: var(--content-gap); |
61 | 61 | } |
62 | 62 |
|
63 | | -.post-content ol, |
64 | | -.post-content ul { |
| 63 | +.md-content ol, |
| 64 | +.md-content ul { |
65 | 65 | padding-inline-start: 20px; |
66 | 66 | } |
67 | 67 |
|
68 | | -.post-content li { |
| 68 | +.md-content li { |
69 | 69 | margin-top: 5px; |
70 | 70 | } |
71 | 71 |
|
72 | | -.post-content li p { |
| 72 | +.md-content li p { |
73 | 73 | margin-bottom: 0; |
74 | 74 | } |
75 | 75 |
|
76 | | -.post-content dl { |
| 76 | +.md-content dl { |
77 | 77 | display: flex; |
78 | 78 | flex-wrap: wrap; |
79 | 79 | margin: 0; |
80 | 80 | } |
81 | 81 |
|
82 | | -.post-content dt { |
| 82 | +.md-content dt { |
83 | 83 | width: 25%; |
84 | 84 | font-weight: 700; |
85 | 85 | } |
86 | 86 |
|
87 | | -.post-content dd { |
| 87 | +.md-content dd { |
88 | 88 | width: 75%; |
89 | 89 | margin-inline-start: 0; |
90 | 90 | padding-inline-start: 10px; |
91 | 91 | } |
92 | 92 |
|
93 | | -.post-content dd~dd, |
94 | | -.post-content dt~dt { |
| 93 | +.md-content dd~dd, |
| 94 | +.md-content dt~dt { |
95 | 95 | margin-top: 10px; |
96 | 96 | } |
97 | 97 |
|
98 | | -.post-content table { |
| 98 | +.md-content table { |
99 | 99 | margin-bottom: var(--content-gap); |
100 | 100 | } |
101 | 101 |
|
102 | | -.post-content table th, |
103 | | -.post-content table:not(.highlighttable, .highlight table, .gist .highlight) td { |
| 102 | +.md-content table th, |
| 103 | +.md-content table:not(.highlighttable, .highlight table, .gist .highlight) td { |
104 | 104 | min-width: 80px; |
105 | 105 | padding: 8px 5px; |
106 | 106 | line-height: 1.5; |
107 | 107 | border-bottom: 1px solid var(--border); |
108 | 108 | } |
109 | 109 |
|
110 | | -.post-content table th { |
| 110 | +.md-content table th { |
111 | 111 | text-align: start; |
112 | 112 | } |
113 | 113 |
|
114 | | -.post-content table:not(.highlighttable) td code:only-child { |
| 114 | +.md-content table:not(.highlighttable) td code:only-child { |
115 | 115 | margin: auto 0; |
116 | 116 | } |
117 | 117 |
|
118 | | -.post-content .highlight table { |
| 118 | +.md-content .highlight table { |
119 | 119 | border-radius: var(--radius); |
120 | 120 | } |
121 | 121 |
|
122 | | -.post-content .highlight:not(table) { |
| 122 | +.md-content .highlight:not(table) { |
123 | 123 | margin: 10px auto; |
124 | 124 | background: var(--code-block-bg) !important; |
125 | 125 | border-radius: var(--radius); |
126 | 126 | direction: ltr; |
127 | 127 | } |
128 | 128 |
|
129 | | -.post-content li>.highlight { |
| 129 | +.md-content li>.highlight { |
130 | 130 | margin-inline-end: 0; |
131 | 131 | } |
132 | 132 |
|
133 | | -.post-content ul pre { |
| 133 | +.md-content ul pre { |
134 | 134 | margin-inline-start: calc(var(--gap) * -2); |
135 | 135 | } |
136 | 136 |
|
137 | | -.post-content .highlight pre { |
| 137 | +.md-content .highlight pre { |
138 | 138 | margin: 0; |
139 | 139 | } |
140 | 140 |
|
141 | | -.post-content .highlighttable { |
| 141 | +.md-content .highlighttable { |
142 | 142 | table-layout: fixed; |
143 | 143 | } |
144 | 144 |
|
145 | | -.post-content .highlighttable td:first-child { |
| 145 | +.md-content .highlighttable td:first-child { |
146 | 146 | width: 40px; |
147 | 147 | } |
148 | 148 |
|
149 | | -.post-content .highlighttable td .linenodiv { |
| 149 | +.md-content .highlighttable td .linenodiv { |
150 | 150 | padding-inline-end: 0 !important; |
151 | 151 | } |
152 | 152 |
|
153 | | -.post-content .highlighttable td .highlight, |
154 | | -.post-content .highlighttable td .linenodiv pre { |
| 153 | +.md-content .highlighttable td .highlight, |
| 154 | +.md-content .highlighttable td .linenodiv pre { |
155 | 155 | margin-bottom: 0; |
156 | 156 | } |
157 | 157 |
|
158 | | -.post-content code { |
| 158 | +.md-content code { |
159 | 159 | margin: auto 4px; |
160 | 160 | padding: 4px 6px; |
161 | 161 | font-size: 0.78em; |
|
164 | 164 | border-radius: 2px; |
165 | 165 | } |
166 | 166 |
|
167 | | -.post-content pre code { |
| 167 | +.md-content pre code { |
168 | 168 | display: grid; |
169 | 169 | margin: auto 0; |
170 | 170 | padding: 10px; |
|
175 | 175 | word-break: break-all; |
176 | 176 | } |
177 | 177 |
|
178 | | -.post-content blockquote { |
| 178 | +.md-content blockquote { |
179 | 179 | margin: 20px 0; |
180 | 180 | padding: 0 14px; |
181 | 181 | border-inline-start: 3px solid var(--primary); |
182 | 182 | } |
183 | 183 |
|
184 | | -.post-content hr { |
| 184 | +.md-content hr { |
185 | 185 | margin: 30px 0; |
186 | 186 | height: 2px; |
187 | 187 | background: var(--tertiary); |
188 | 188 | border: 0; |
189 | 189 | } |
190 | 190 |
|
191 | | -.post-content iframe { |
| 191 | +.md-content iframe { |
192 | 192 | max-width: 100%; |
193 | 193 | } |
194 | 194 |
|
195 | | -.post-content img { |
| 195 | +.md-content img { |
196 | 196 | border-radius: 4px; |
197 | 197 | margin: 1rem 0; |
198 | 198 | } |
199 | 199 |
|
200 | | -.post-content img[src*="#center"] { |
| 200 | +.md-content img[src*="#center"] { |
201 | 201 | margin: 1rem auto; |
202 | 202 | } |
203 | 203 |
|
204 | | -.post-content figure.align-center { |
| 204 | +.md-content figure.align-center { |
205 | 205 | text-align: center; |
206 | 206 | } |
207 | 207 |
|
208 | | -.post-content figure>figcaption { |
| 208 | +.md-content figure>figcaption { |
209 | 209 | color: var(--primary); |
210 | 210 | font-size: 16px; |
211 | 211 | font-weight: bold; |
212 | 212 | margin: 8px 0 16px; |
213 | 213 | } |
214 | 214 |
|
215 | | -.post-content figure>figcaption>p { |
| 215 | +.md-content figure>figcaption>p { |
216 | 216 | color: var(--secondary); |
217 | 217 | font-size: 14px; |
218 | 218 | font-weight: normal; |
|
0 commit comments