ronds-metadata 1.2.17 → 1.2.19

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,354 +1,354 @@
1
- /* 颜色表 */
2
- @c-primary: #8400ff;
3
- @c-heading: rgba(0, 0, 0, 0.85);
4
- @c-text: #24292f;
5
- @c-secondary: #040405;
6
- @c-link: @c-primary;
7
- @c-border: #f3f4f5;
8
- @c-light-bg: #f9fafb;
9
-
10
- /* 尺寸表 */
11
- @s-nav-height: 64px;
12
- @s-mobile-nav-height: 50px;
13
- @s-menu-width: 260px;
14
- @s-site-menu-width: 320px;
15
- @s-menu-mobile-width: 240px;
16
- @s-content-margin: 20px;
17
- @s-toc-width: 363px;
18
-
19
- @img-logo: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIQAAACCCAMAAACww5CIAAACf1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8YkP8AAAACCxMamv/6+voaGhoXi/YYjv8aoP8cq/8dr/8bo/8cqP8bpv8Ykv8drv8BAwUcrP8Zlf8Xjf/s7OzLy8scp/8anP8ZmP/d3d0BBArg4ODT09O7u7sEGCsKCgoanf8YlP/8/Pz09PTIyMgMTIV1dXUGKEVEREQ0NDQODg4GBgYdsv8dsf8Zl//m5uYVgOXj4+MWgtfW1tYTc87BwcERbLWzs7Ovr6+np6cQX6OgoKCTk5MMSXlwcHBra2tiYmIVFRUetf/39/fp6ekWhOkXi+QVfNvY2NjPz88TdcUSb7u6urq3t7cPYK0NUJGQkJCLi4ttbW0JO2cINFtVVVVRUVEHMFEHLEs6OjoEHDEiIiIcHBwXj/vx8fEWh+4Sb8gRbL+rq6upqakOVZ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JfEl1cpVKbH3uJ2v1QleUqOCI2h9xeeP0aVqLCA4JSLk6s7hu6CbkqOAIGpyB7iRZ5xLvFWlHEkITyjK/41/v9h0AC3lngpCz0PXWf0yDUcmBhFDt0T/flx8CkNL8VLAZjUhvAHSQek5AtyALdqP5e9BdbPCkZsbuFRKVvlRHs/W1AfC902yNgoriWwCeqw1fSL+J2VkWNBF8vckr6mPQ3ZcjtkVBA/3z4Ju6Bs5ANzck2BQFpUMTxlVZQ4ege95vUxRUHoPOe5s01OWBbryf2hEFDX4Fc4Vs4gaYZ3ZEQeXBJPgMcFPnwYzJVmeE6jGsGCNAE/rAlPIBamkMQv9YCLpzxJRjYMr5BLXyg5EvgTlKTOoEkw2LUct6dTz4ojqCNO04mMm4ZE150mhMuQ+jHppwAUxqUM5QK9qkPLIE5jhpygkvmHJYiW45FaL8IwmdZy9pUtc2MK9HtvgloZngJyMVp3tJ846ASb7Q1NYrg1JN+ukDs4e05LwHTO5bUKG0tRBEeXAKzJ3rpEXdB8C9fBIWKW0hhOBIBdy2K6R11zvALY6EFYE21yHF4OdKEkz7ObIlXXvAhV4OquoApaYbpCo9qayA29lLturibhimSgOSFjG1ILRwYnwShn09xArnT8PwdnHML6n+hl+2gD8Wjj+rLMOwq49Y5dZpVKUWS++VcCwdCdT5/Uhck5SH45VpVO3qJFbq2Y5Vvly2VBgQY5KqKWI6HY+n06KiqVJMSQyP/37wB6v29xGrnThyEDWh5dyr+fJscbQw/OjRcGG0OFvO3n+QSqKm7exlYgsvNgolkyFs1HGV2OQgTGsjNjnVBtO8Owj3nwbhgWnttgWxy2PaoWaC+AuAXqWYKHupMgAAAABJRU5ErkJggg==';
20
- @prefix: default;
21
- @mobile: ~'only screen and (max-width: 767px)';
22
- @desktop: ~'only screen and (min-width: 768px)';
23
- @icons: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcwAAAA8CAMAAADc4HoZAAABFFBMVEUAAABGT2VGTmZaYXpCvGtIUGg3tGBGTmU3s2A/t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ACRBjGMNquJ/ODcc9YgQ8NtJVYfLn568vMImtVrmcoiitVmLuFON6bMRfpiOPY/QOD3T16juZ9V6AA10+MhkkE0Ys6yuzXFgTY35fzTw6L03iV8MOMbTt8CpJwWVa02C9PSyUt8NPKtBK0hEHuoYAzAH0G0z0c+IEjIGALDMfdeYCuD88ahmrxJnMuBE77qilLHPkKnOZlhLz9CcNnFu06hg7lLBGRx21DMHkr9+ZJ6HFKya4TC9atIOf6woBIX6SK8AhaM8D0D//ELR3ryLXlV4xV0qElhEiz0PQbcNoOx+CvlJgIT6H4xUTHCMGd1LE4aVTKpa+jyf4y/z5jycE7lXwxxO0gtFu5svECRrz/4NDf7dvxjYQwzAMdGEE8RaWq2ySh/cf6OGoyQCRANLkBHenWqnzxyGU6aVP0zRN0zTtmzUru64ZWZ923kC0n6tT9WnnnL+y5R51pj6L9ahlx7k6UR8kVt2Sh1W35GHVLXlYdUseVt2Sh1W3fK8aDmuSOmyfelyGwpqkjtvnnvMyENYcdeA+fSxaDNYUdeg+TovBmqAO3sdpMVjD1eH7OC0Ga7A6QR+nxWANVafo47QYrIHqJH0eWhDWMHWaPosWhTVInahPHzisIepUffrAYQ1QJ+vTgVgD1IP6/AHM0QJdY511NAAAAABJRU5ErkJggg==';
24
-
25
- .@{prefix}-icon {
26
- background: url(@icons) no-repeat ~'0 0/230px auto';
27
- }
28
-
29
- /* 响应式断点 */
30
- @v-device-show: ~'only screen and (min-width: 961px)';
31
- @v-device-hide: ~'only screen and (max-width: 960px)';
32
-
33
- /* 移动设备尺寸 */
34
- @s-device-gap-top: 0px;
35
- @s-device-border-width: 14px;
36
- @s-device-shell-width: @s-device-border-width + 2px;
37
- @s-device-width: 375px;
38
- @s-device-ratio: 19.5 / 9;
39
-
40
- /* 颜色表 - dark */
41
- @c-bg-dark: #141414;
42
- @c-light-bg-dark: rgba(255, 255, 255, 0.08);
43
- @c-primary-dark: #7395f7;
44
- @c-heading-dark: rgba(255, 255, 255, 0.85);
45
- @c-text-dark: rgba(255, 255, 255, 0.85);
46
- @c-secondary-dark: rgba(255, 255, 255, 0.65);
47
- @c-border-dark: #6b6c6d;
48
- @c-btn-border-dark: #464646;
49
-
50
- .react-mark-down {
51
- flex: 1;
52
- padding: 12px !important;
53
- overflow-y: auto;
54
- ul {
55
- li {
56
- list-style: disc;
57
- }
58
- }
59
- ol {
60
- li {
61
- list-style: auto;
62
- }
63
- }
64
-
65
- color: var(--ronds-metadata-color-text-2);
66
- font-size: 14px;
67
- line-height: 1.60625;
68
- background-color: var(--ronds-metadata-color-bg-4);
69
- border-radius: 8px;
70
- counter-reset: h2-index;
71
-
72
- #api {
73
- position: relative;
74
- margin-top: 49px;
75
- &::after {
76
- position: relative;
77
- top: -48px;
78
- left: -20px;
79
- width: calc(100% + 44px);
80
- height: 1px;
81
- display: block;
82
- content: '';
83
- background: #f3f4f5;
84
- }
85
- }
86
-
87
- & > h2 {
88
- position: relative;
89
- // &::before {
90
- // position: absolute;
91
- // left: -20px;
92
- // display: block;
93
- // counter-increment: h2-index;
94
- // content: counter(h2-index) '.';
95
- // }
96
- & > a {
97
- position: relative;
98
- left: -20px;
99
- }
100
- }
101
-
102
- @media @mobile {
103
- padding: 16px !important;
104
- & > h2 {
105
- &::before {
106
- display: none;
107
- }
108
- }
109
- }
110
-
111
- > *:nth-child(1) {
112
- margin-top: 0;
113
- }
114
-
115
- &:not(:first-child):empty {
116
- min-height: 32px;
117
- }
118
-
119
- // titles
120
- h1,
121
- h2,
122
- h3,
123
- h4,
124
- h5,
125
- h6 {
126
- margin: 42px 0 18px;
127
- color: @c-heading;
128
- font-weight: 600;
129
- line-height: 1.40625;
130
- border-bottom: none !important;
131
-
132
- // anchor link
133
- &:hover > a[aria-hidden] {
134
- float: left;
135
- margin-top: 0.06em;
136
- margin-left: -20px;
137
- width: 20px;
138
- padding-right: 4px;
139
- line-height: 1;
140
- box-sizing: border-box;
141
-
142
- @media @mobile {
143
- width: 14px;
144
- margin-left: -14px;
145
- }
146
-
147
- &::after {
148
- content: '#';
149
- display: inline-block;
150
- vertical-align: middle;
151
- font-size: 20px;
152
- }
153
-
154
- span {
155
- display: none;
156
- }
157
- }
158
-
159
- + h1,
160
- + h2,
161
- + h3,
162
- + h4,
163
- + h5,
164
- + h6 {
165
- margin-top: 16px;
166
- }
167
- }
168
-
169
- h1 {
170
- margin-top: 48px;
171
- margin-bottom: 32px;
172
- font-size: 28px;
173
- }
174
-
175
- h2 {
176
- font-size: 18px;
177
- }
178
-
179
- h3 {
180
- font-size: 16px;
181
- }
182
-
183
- h4 {
184
- font-size: 15px;
185
- }
186
-
187
- h5 {
188
- font-size: 15px;
189
- }
190
-
191
- h6 {
192
- font-size: 15px;
193
- }
194
-
195
- // paragraph
196
- p {
197
- margin: 16px 0;
198
- }
199
-
200
- // horizontal line
201
- hr {
202
- margin: 16px 0;
203
- border: 0;
204
- border-top: 1px solid @c-border;
205
- }
206
-
207
- // blockquote
208
- blockquote {
209
- margin: 16px 0;
210
- padding: 10px 24px;
211
- color: fadeout(@c-text, 30%);
212
- border-left: 4px solid #376ce5;
213
- background-color: #f3f4f5;
214
- overflow: hidden;
215
-
216
- p {
217
- font-size: 14px;
218
- line-height: 20px;
219
- }
220
- }
221
- pre {
222
- padding: 10px !important;
223
- background-color: rgb(250, 250, 250);
224
- code {
225
- font-weight: 300;
226
- background-color: transparent;
227
- }
228
- .self-highlighter {
229
- padding: 0 !important;
230
- margin: 0 !important;
231
- }
232
- }
233
-
234
- // list
235
- ul,
236
- ol {
237
- margin: 8px 0 8px 16px;
238
- padding: 0;
239
-
240
- li {
241
- margin-bottom: 4px;
242
- font-size: 14px;
243
- }
244
- }
245
-
246
- ul {
247
- list-style-type: circle;
248
- }
249
-
250
- // table
251
- table {
252
- width: 100%;
253
-
254
- margin-top: 16px;
255
- border: 1px solid @c-border;
256
- /* 消除单元格之间的空隙 */
257
- border-collapse: collapse;
258
- /* 消除掉外边框 */
259
- border-style: hidden;
260
- /* hack一下加个假边框 */
261
- // box-shadow: 0 0 0 1px @c-border;
262
- // 溢出背景处理
263
- overflow: hidden;
264
- table-layout: fixed;
265
- th,
266
- td {
267
- padding: 10px 20px;
268
- // border: 1px solid @c-border;
269
- font-weight: normal;
270
- }
271
-
272
- @media @mobile {
273
- th,
274
- td {
275
- padding: 4px;
276
- }
277
- }
278
-
279
- th {
280
- background: @c-light-bg;
281
- font-weight: 600;
282
- color: rgba(0, 0, 0, 0.85);
283
- }
284
-
285
- td {
286
- color: rgba(0, 0, 0, 0.85);
287
-
288
- code {
289
- background-color: #f3f4f5;
290
- min-height: 20px;
291
- line-height: 20px;
292
- text-align: center;
293
- padding: 0 6px;
294
- display: inline-block;
295
- border: 1px solid rgba(0, 0, 0, 0.05);
296
- border-radius: 2px;
297
- color: rgba(0, 0, 0, 0.85);
298
- }
299
- }
300
-
301
- .col {
302
- font-size: 12px;
303
- // overflow: auto;
304
- word-break: break-all;
305
- text-align: left;
306
- // div {
307
- // overflow: auto;
308
- // }
309
- }
310
- .col-0 {
311
- width: 25%;
312
- .col();
313
- }
314
- .col-1 {
315
- width: 24%;
316
- .col();
317
- }
318
- .col-2 {
319
- width: 30%;
320
- .col();
321
- }
322
- .col-3 {
323
- .col();
324
- }
325
-
326
- a {
327
- svg {
328
- display: none;
329
- }
330
- }
331
- }
332
-
333
- // links
334
- a {
335
- color: #346ae5;
336
- text-decoration: none;
337
- transition: opacity 0.2s;
338
- outline: none;
339
-
340
- &:hover {
341
- opacity: 0.7;
342
- text-decoration: underline;
343
- }
344
-
345
- &:active {
346
- opacity: 0.9;
347
- }
348
- }
349
-
350
- // images
351
- img {
352
- max-width: 100%;
353
- }
354
- }
1
+ /* 颜色表 */
2
+ @c-primary: #8400ff;
3
+ @c-heading: rgba(0, 0, 0, 0.85);
4
+ @c-text: #24292f;
5
+ @c-secondary: #040405;
6
+ @c-link: @c-primary;
7
+ @c-border: #f3f4f5;
8
+ @c-light-bg: #f9fafb;
9
+
10
+ /* 尺寸表 */
11
+ @s-nav-height: 64px;
12
+ @s-mobile-nav-height: 50px;
13
+ @s-menu-width: 260px;
14
+ @s-site-menu-width: 320px;
15
+ @s-menu-mobile-width: 240px;
16
+ @s-content-margin: 20px;
17
+ @s-toc-width: 363px;
18
+
19
+ @img-logo: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIQAAACCCAMAAACww5CIAAACf1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8YkP8AAAACCxMamv/6+voaGhoXi/YYjv8aoP8cq/8dr/8bo/8cqP8bpv8Ykv8drv8BAwUcrP8Zlf8Xjf/s7OzLy8scp/8anP8ZmP/d3d0BBArg4ODT09O7u7sEGCsKCgoanf8YlP/8/Pz09PTIyMgMTIV1dXUGKEVEREQ0NDQODg4GBgYdsv8dsf8Zl//m5uYVgOXj4+MWgtfW1tYTc87BwcERbLWzs7Ovr6+np6cQX6OgoKCTk5MMSXlwcHBra2tiYmIVFRUetf/39/fp6ekWhOkXi+QVfNvY2NjPz88TdcUSb7u6urq3t7cPYK0NUJGQkJCLi4ttbW0JO2cINFtVVVVRUVEHMFEHLEs6OjoEHDEiIiIcHBwXj/vx8fEWh+4Sb8gRbL+rq6upqakOVZiWlpaJiYmGhoYMSIF9fX15eXkKPnQLRHJMTExHR0c9PT0FHzkqKiomJiYEFyUBBw8bovfu7u4Wht4UedsUeMrFxcW9vb0RZrOkpKSampoPXZqAgIALQmtlZWUJOGJZWVkIMFcFIUExMTEwMDAtLS0DEh8Zl/v4+PgXj/QWhvEWhvAYku8YjuwUfNcUfNAVfc0RaLkSaKsRZ6kPWqENUYlbW1sCEBhkSPCkAAAAOHRSTl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ANzck2BQFpUMTxlVZQ4ege95vUxRUHoPOe5s01OWBbryf2hEFDX4Fc4Vs4gaYZ3ZEQeXBJPgMcFPnwYzJVmeE6jGsGCNAE/rAlPIBamkMQv9YCLpzxJRjYMr5BLXyg5EvgTlKTOoEkw2LUct6dTz4ojqCNO04mMm4ZE150mhMuQ+jHppwAUxqUM5QK9qkPLIE5jhpygkvmHJYiW45FaL8IwmdZy9pUtc2MK9HtvgloZngJyMVp3tJ846ASb7Q1NYrg1JN+ukDs4e05LwHTO5bUKG0tRBEeXAKzJ3rpEXdB8C9fBIWKW0hhOBIBdy2K6R11zvALY6EFYE21yHF4OdKEkz7ObIlXXvAhV4OquoApaYbpCo9qayA29lLturibhimSgOSFjG1ILRwYnwShn09xArnT8PwdnHML6n+hl+2gD8Wjj+rLMOwq49Y5dZpVKUWS++VcCwdCdT5/Uhck5SH45VpVO3qJFbq2Y5Vvly2VBgQY5KqKWI6HY+n06KiqVJMSQyP/37wB6v29xGrnThyEDWh5dyr+fJscbQw/OjRcGG0OFvO3n+QSqKm7exlYgsvNgolkyFs1HGV2OQgTGsjNjnVBtO8Owj3nwbhgWnttgWxy2PaoWaC+AuAXqWYKHupMgAAAABJRU5ErkJggg==';
20
+ @prefix: default;
21
+ @mobile: ~'only screen and (max-width: 767px)';
22
+ @desktop: ~'only screen and (min-width: 768px)';
23
+ @icons: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcwAAAA8CAMAAADc4HoZAAABFFBMVEUAAABGT2VGTmZaYXpCvGtIUGg3tGBGTmU3s2A/tmFKUGxFTmRFTWVQWmxFTWRJUGZFTWRGTmRLWWpFTWRGTmVGTmVLVG1FTmRGTWVHTmVFTWRHUGdFTWRGT2ZFTWVGTmU6t2I7xHA3tF9GTWRIT2dFTmRGTmVFTWQ3s2BFTWRGTmVGTmZKUmVFTWRFTWRGTWRGTmVcXHxFTmVFTmVGTmVFTWRIUGdGTWVNU3FGT2ZGTmVHTmVFTWRFTWVFTmVITWRHUG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HFKya4TC9atIOf6woBIX6SK8AhaM8D0D//ELR3ryLXlV4xV0qElhEiz0PQbcNoOx+CvlJgIT6H4xUTHCMGd1LE4aVTKpa+jyf4y/z5jycE7lXwxxO0gtFu5svECRrz/4NDf7dvxjYQwzAMdGEE8RaWq2ySh/cf6OGoyQCRANLkBHenWqnzxyGU6aVP0zRN0zTtmzUru64ZWZ923kC0n6tT9WnnnL+y5R51pj6L9ahlx7k6UR8kVt2Sh1W35GHVLXlYdUseVt2Sh1W3fK8aDmuSOmyfelyGwpqkjtvnnvMyENYcdeA+fSxaDNYUdeg+TovBmqAO3sdpMVjD1eH7OC0Ga7A6QR+nxWANVafo47QYrIHqJH0eWhDWMHWaPosWhTVInahPHzisIepUffrAYQ1QJ+vTgVgD1IP6/AHM0QJdY511NAAAAABJRU5ErkJggg==';
24
+
25
+ .@{prefix}-icon {
26
+ background: url(@icons) no-repeat ~'0 0/230px auto';
27
+ }
28
+
29
+ /* 响应式断点 */
30
+ @v-device-show: ~'only screen and (min-width: 961px)';
31
+ @v-device-hide: ~'only screen and (max-width: 960px)';
32
+
33
+ /* 移动设备尺寸 */
34
+ @s-device-gap-top: 0px;
35
+ @s-device-border-width: 14px;
36
+ @s-device-shell-width: @s-device-border-width + 2px;
37
+ @s-device-width: 375px;
38
+ @s-device-ratio: 19.5 / 9;
39
+
40
+ /* 颜色表 - dark */
41
+ @c-bg-dark: #141414;
42
+ @c-light-bg-dark: rgba(255, 255, 255, 0.08);
43
+ @c-primary-dark: #7395f7;
44
+ @c-heading-dark: rgba(255, 255, 255, 0.85);
45
+ @c-text-dark: rgba(255, 255, 255, 0.85);
46
+ @c-secondary-dark: rgba(255, 255, 255, 0.65);
47
+ @c-border-dark: #6b6c6d;
48
+ @c-btn-border-dark: #464646;
49
+
50
+ .react-mark-down {
51
+ flex: 1;
52
+ padding: 12px !important;
53
+ overflow-y: auto;
54
+ ul {
55
+ li {
56
+ list-style: disc;
57
+ }
58
+ }
59
+ ol {
60
+ li {
61
+ list-style: auto;
62
+ }
63
+ }
64
+
65
+ color: var(--ronds-metadata-color-text-2);
66
+ font-size: 14px;
67
+ line-height: 1.60625;
68
+ background-color: var(--ronds-metadata-color-bg-4);
69
+ border-radius: 8px;
70
+ counter-reset: h2-index;
71
+
72
+ #api {
73
+ position: relative;
74
+ margin-top: 49px;
75
+ &::after {
76
+ position: relative;
77
+ top: -48px;
78
+ left: -20px;
79
+ width: calc(100% + 44px);
80
+ height: 1px;
81
+ display: block;
82
+ content: '';
83
+ background: #f3f4f5;
84
+ }
85
+ }
86
+
87
+ & > h2 {
88
+ position: relative;
89
+ // &::before {
90
+ // position: absolute;
91
+ // left: -20px;
92
+ // display: block;
93
+ // counter-increment: h2-index;
94
+ // content: counter(h2-index) '.';
95
+ // }
96
+ & > a {
97
+ position: relative;
98
+ left: -20px;
99
+ }
100
+ }
101
+
102
+ @media @mobile {
103
+ padding: 16px !important;
104
+ & > h2 {
105
+ &::before {
106
+ display: none;
107
+ }
108
+ }
109
+ }
110
+
111
+ > *:nth-child(1) {
112
+ margin-top: 0;
113
+ }
114
+
115
+ &:not(:first-child):empty {
116
+ min-height: 32px;
117
+ }
118
+
119
+ // titles
120
+ h1,
121
+ h2,
122
+ h3,
123
+ h4,
124
+ h5,
125
+ h6 {
126
+ margin: 42px 0 18px;
127
+ color: @c-heading;
128
+ font-weight: 600;
129
+ line-height: 1.40625;
130
+ border-bottom: none !important;
131
+
132
+ // anchor link
133
+ &:hover > a[aria-hidden] {
134
+ float: left;
135
+ margin-top: 0.06em;
136
+ margin-left: -20px;
137
+ width: 20px;
138
+ padding-right: 4px;
139
+ line-height: 1;
140
+ box-sizing: border-box;
141
+
142
+ @media @mobile {
143
+ width: 14px;
144
+ margin-left: -14px;
145
+ }
146
+
147
+ &::after {
148
+ content: '#';
149
+ display: inline-block;
150
+ vertical-align: middle;
151
+ font-size: 20px;
152
+ }
153
+
154
+ span {
155
+ display: none;
156
+ }
157
+ }
158
+
159
+ + h1,
160
+ + h2,
161
+ + h3,
162
+ + h4,
163
+ + h5,
164
+ + h6 {
165
+ margin-top: 16px;
166
+ }
167
+ }
168
+
169
+ h1 {
170
+ margin-top: 48px;
171
+ margin-bottom: 32px;
172
+ font-size: 28px;
173
+ }
174
+
175
+ h2 {
176
+ font-size: 18px;
177
+ }
178
+
179
+ h3 {
180
+ font-size: 16px;
181
+ }
182
+
183
+ h4 {
184
+ font-size: 15px;
185
+ }
186
+
187
+ h5 {
188
+ font-size: 15px;
189
+ }
190
+
191
+ h6 {
192
+ font-size: 15px;
193
+ }
194
+
195
+ // paragraph
196
+ p {
197
+ margin: 16px 0;
198
+ }
199
+
200
+ // horizontal line
201
+ hr {
202
+ margin: 16px 0;
203
+ border: 0;
204
+ border-top: 1px solid @c-border;
205
+ }
206
+
207
+ // blockquote
208
+ blockquote {
209
+ margin: 16px 0;
210
+ padding: 10px 24px;
211
+ color: fadeout(@c-text, 30%);
212
+ border-left: 4px solid #376ce5;
213
+ background-color: #f3f4f5;
214
+ overflow: hidden;
215
+
216
+ p {
217
+ font-size: 14px;
218
+ line-height: 20px;
219
+ }
220
+ }
221
+ pre {
222
+ padding: 10px !important;
223
+ background-color: rgb(250, 250, 250);
224
+ code {
225
+ font-weight: 300;
226
+ background-color: transparent;
227
+ }
228
+ .self-highlighter {
229
+ padding: 0 !important;
230
+ margin: 0 !important;
231
+ }
232
+ }
233
+
234
+ // list
235
+ ul,
236
+ ol {
237
+ margin: 8px 0 8px 16px;
238
+ padding: 0;
239
+
240
+ li {
241
+ margin-bottom: 4px;
242
+ font-size: 14px;
243
+ }
244
+ }
245
+
246
+ ul {
247
+ list-style-type: circle;
248
+ }
249
+
250
+ // table
251
+ table {
252
+ width: 100%;
253
+
254
+ margin-top: 16px;
255
+ border: 1px solid @c-border;
256
+ /* 消除单元格之间的空隙 */
257
+ border-collapse: collapse;
258
+ /* 消除掉外边框 */
259
+ border-style: hidden;
260
+ /* hack一下加个假边框 */
261
+ // box-shadow: 0 0 0 1px @c-border;
262
+ // 溢出背景处理
263
+ overflow: hidden;
264
+ table-layout: fixed;
265
+ th,
266
+ td {
267
+ padding: 10px 20px;
268
+ // border: 1px solid @c-border;
269
+ font-weight: normal;
270
+ }
271
+
272
+ @media @mobile {
273
+ th,
274
+ td {
275
+ padding: 4px;
276
+ }
277
+ }
278
+
279
+ th {
280
+ background: @c-light-bg;
281
+ font-weight: 600;
282
+ color: rgba(0, 0, 0, 0.85);
283
+ }
284
+
285
+ td {
286
+ color: rgba(0, 0, 0, 0.85);
287
+
288
+ code {
289
+ background-color: #f3f4f5;
290
+ min-height: 20px;
291
+ line-height: 20px;
292
+ text-align: center;
293
+ padding: 0 6px;
294
+ display: inline-block;
295
+ border: 1px solid rgba(0, 0, 0, 0.05);
296
+ border-radius: 2px;
297
+ color: rgba(0, 0, 0, 0.85);
298
+ }
299
+ }
300
+
301
+ .col {
302
+ font-size: 12px;
303
+ // overflow: auto;
304
+ word-break: break-all;
305
+ text-align: left;
306
+ // div {
307
+ // overflow: auto;
308
+ // }
309
+ }
310
+ .col-0 {
311
+ width: 25%;
312
+ .col();
313
+ }
314
+ .col-1 {
315
+ width: 24%;
316
+ .col();
317
+ }
318
+ .col-2 {
319
+ width: 30%;
320
+ .col();
321
+ }
322
+ .col-3 {
323
+ .col();
324
+ }
325
+
326
+ a {
327
+ svg {
328
+ display: none;
329
+ }
330
+ }
331
+ }
332
+
333
+ // links
334
+ a {
335
+ color: #346ae5;
336
+ text-decoration: none;
337
+ transition: opacity 0.2s;
338
+ outline: none;
339
+
340
+ &:hover {
341
+ opacity: 0.7;
342
+ text-decoration: underline;
343
+ }
344
+
345
+ &:active {
346
+ opacity: 0.9;
347
+ }
348
+ }
349
+
350
+ // images
351
+ img {
352
+ max-width: 100%;
353
+ }
354
+ }