ronds-metadata 1.2.64 → 1.2.66

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@ import React from "react";
5
5
  /*
6
6
  * @Author: wangxian
7
7
  * @Date: 2022-09-02 16:17:38
8
- * @LastEditTime: 2022-11-23 09:09:46
8
+ * @LastEditTime: 2023-06-08 15:31:01
9
9
  */
10
10
  import ReactMarkdown from 'react-markdown';
11
11
  import remarkGfm from 'remark-gfm';
@@ -23,6 +23,7 @@ var MdView = function MdView(props) {
23
23
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
24
24
  className: "react-mark-down",
25
25
  style: {
26
+ width: '100%',
26
27
  height: '100%',
27
28
  display: 'flex'
28
29
  }
@@ -1,353 +1,376 @@
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/8cqP8bpv8Ykv8drv8B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5KqKWI6HY+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/tmFKUGxFTmRFTWVQWmxFTWRJUGZFTWRGTmRLWWpFTWRGTmVGTmVLVG1FTmRGTWVHTmVFTWRHUGdFTWRGT2ZFTWVGTmU6t2I7xHA3tF9GTWRIT2dFTmRGTmVFTWQ3s2BFTWRGTmVGTmZKUmVFTWRFTWRGTWRGTmVcXHxFTmVFTmVGTmVFTWRIUGdGTWVNU3FGT2ZGTmVHTmVFTWRFTWVFTmVITWRHUGZFTWVFTmRGTmZGTmVFTWVLU2g4tF83tGBFTWQ3s1/LzdT09faoq7Zwdoieoq58gpLj5OeCh5fq6+2/wsmTmKWQlKJfZnpIUGfU1tu0t8BOVWynlyFSAAAASXRSTlMAkoAHEkDQ/dgYFuf0C8gj+KQQmm1oEuyNWNg53kSXfCYI5tEtzq7ivbOgTBy924R1BfHUibcpYw1JcU7v+7E3Nav6XVPDGraPqQuKawAACh1JREFUeNrsm2lT6kgUhg9QFFUkgWDYZfnAVsi+KQJeQdGqt1xm7jZ3lv//PyYdhe7QWQw1zP0w83xQsY9Um4fTp7vToeBczmaX5MN5rXZO/+NGJzGuLejnkw3dADehLHkQyceAWD5C/0my9XqWPLlCK9WHQScirUMk18g7J9ZosYLFajFyT8siLIpuyQkHKBDw4NgYsnDr0Xybaii60rjYzsmdbrqnw0TvpbvkhjYuzinygDXJXLewR2/O/f73w1cWCUj0LkmiU8SeYsc9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7httJd3Hwlpo12WeUZUv0PaVWaCuTSVqxgGkznPYTYiP/w32lfAr0+/fAF+++2PV6ApyvSK8ZcpL034LbAWclm2kEU/4i8z8C0wf5mcENQIcTxkJnuTOMV1ZBxkniceqYkmnRmtR4ooQWVSJwbD16b/LbAGTEffnvD705NpC3lZphxzrEwbYVZg2Dd+c9pZZpCb08FltrChj8nsAGpiDD0py9RWUIvAkFWOuwcFuA0ok4bALCuKswQFvTk9gMnL85fvz99h0ttsmp8+tdt9LlOKuXC5OS1fOa42c3jUUrW6sIGetB8bwVCUuUCgYyPBZa6B+w/KpHsVgOq4adBhTQ8RonIOwE3ACRBjGMNquJ/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
- overflow-y: auto;
53
- ul {
54
- li {
55
- list-style: disc;
56
- }
57
- }
58
- ol {
59
- li {
60
- list-style: auto;
61
- }
62
- }
63
-
64
- color: var(--ronds-metadata-color-text-2);
65
- font-size: 14px;
66
- line-height: 1.60625;
67
- background-color: var(--ronds-metadata-color-bg-5);
68
- border-radius: 8px;
69
- counter-reset: h2-index;
70
-
71
- #api {
72
- position: relative;
73
- margin-top: 49px;
74
- &::after {
75
- position: relative;
76
- top: -48px;
77
- left: -20px;
78
- width: calc(100% + 44px);
79
- height: 1px;
80
- display: block;
81
- content: '';
82
- background: #f3f4f5;
83
- }
84
- }
85
-
86
- & > h2 {
87
- position: relative;
88
- // &::before {
89
- // position: absolute;
90
- // left: -20px;
91
- // display: block;
92
- // counter-increment: h2-index;
93
- // content: counter(h2-index) '.';
94
- // }
95
- & > a {
96
- position: relative;
97
- left: -20px;
98
- }
99
- }
100
-
101
- @media @mobile {
102
- padding: 16px !important;
103
- & > h2 {
104
- &::before {
105
- display: none;
106
- }
107
- }
108
- }
109
-
110
- > *:nth-child(1) {
111
- margin-top: 0;
112
- }
113
-
114
- &:not(:first-child):empty {
115
- min-height: 32px;
116
- }
117
-
118
- // titles
119
- h1,
120
- h2,
121
- h3,
122
- h4,
123
- h5,
124
- h6 {
125
- margin: 42px 0 18px;
126
- color: @c-heading;
127
- font-weight: 600;
128
- line-height: 1.40625;
129
- border-bottom: none !important;
130
-
131
- // anchor link
132
- &:hover > a[aria-hidden] {
133
- float: left;
134
- margin-top: 0.06em;
135
- margin-left: -20px;
136
- width: 20px;
137
- padding-right: 4px;
138
- line-height: 1;
139
- box-sizing: border-box;
140
-
141
- @media @mobile {
142
- width: 14px;
143
- margin-left: -14px;
144
- }
145
-
146
- &::after {
147
- content: '#';
148
- display: inline-block;
149
- vertical-align: middle;
150
- font-size: 20px;
151
- }
152
-
153
- span {
154
- display: none;
155
- }
156
- }
157
-
158
- + h1,
159
- + h2,
160
- + h3,
161
- + h4,
162
- + h5,
163
- + h6 {
164
- margin-top: 16px;
165
- }
166
- }
167
-
168
- h1 {
169
- margin-top: 48px;
170
- margin-bottom: 32px;
171
- font-size: 28px;
172
- }
173
-
174
- h2 {
175
- font-size: 18px;
176
- }
177
-
178
- h3 {
179
- font-size: 16px;
180
- }
181
-
182
- h4 {
183
- font-size: 15px;
184
- }
185
-
186
- h5 {
187
- font-size: 15px;
188
- }
189
-
190
- h6 {
191
- font-size: 15px;
192
- }
193
-
194
- // paragraph
195
- p {
196
- margin: 16px 0;
197
- }
198
-
199
- // horizontal line
200
- hr {
201
- margin: 16px 0;
202
- border: 0;
203
- border-top: 1px solid @c-border;
204
- }
205
-
206
- // blockquote
207
- blockquote {
208
- margin: 16px 0;
209
- padding: 10px 24px;
210
- color: fadeout(@c-text, 30%);
211
- border-left: 4px solid #376ce5;
212
- background-color: #f3f4f5;
213
- overflow: hidden;
214
-
215
- p {
216
- font-size: 14px;
217
- line-height: 20px;
218
- }
219
- }
220
- pre {
221
- padding: 10px !important;
222
- background-color: rgb(250, 250, 250);
223
- code {
224
- font-weight: 300;
225
- background-color: transparent;
226
- }
227
- .self-highlighter {
228
- padding: 0 !important;
229
- margin: 0 !important;
230
- }
231
- }
232
-
233
- // list
234
- ul,
235
- ol {
236
- margin: 8px 0 8px 16px;
237
- padding: 0;
238
-
239
- li {
240
- margin-bottom: 4px;
241
- font-size: 14px;
242
- }
243
- }
244
-
245
- ul {
246
- list-style-type: circle;
247
- }
248
-
249
- // table
250
- table {
251
- width: 100%;
252
-
253
- margin-top: 16px;
254
- border: 1px solid @c-border;
255
- /* 消除单元格之间的空隙 */
256
- border-collapse: collapse;
257
- /* 消除掉外边框 */
258
- border-style: hidden;
259
- /* hack一下加个假边框 */
260
- // box-shadow: 0 0 0 1px @c-border;
261
- // 溢出背景处理
262
- overflow: hidden;
263
- table-layout: fixed;
264
- th,
265
- td {
266
- padding: 10px 20px;
267
- // border: 1px solid @c-border;
268
- font-weight: normal;
269
- }
270
-
271
- @media @mobile {
272
- th,
273
- td {
274
- padding: 4px;
275
- }
276
- }
277
-
278
- th {
279
- background: @c-light-bg;
280
- font-weight: 600;
281
- color: rgba(0, 0, 0, 0.85);
282
- }
283
-
284
- td {
285
- color: rgba(0, 0, 0, 0.85);
286
-
287
- code {
288
- background-color: #f3f4f5;
289
- min-height: 20px;
290
- line-height: 20px;
291
- text-align: center;
292
- padding: 0 6px;
293
- display: inline-block;
294
- border: 1px solid rgba(0, 0, 0, 0.05);
295
- border-radius: 2px;
296
- color: rgba(0, 0, 0, 0.85);
297
- }
298
- }
299
-
300
- .col {
301
- font-size: 12px;
302
- // overflow: auto;
303
- word-break: break-all;
304
- text-align: left;
305
- // div {
306
- // overflow: auto;
307
- // }
308
- }
309
- .col-0 {
310
- width: 25%;
311
- .col();
312
- }
313
- .col-1 {
314
- width: 24%;
315
- .col();
316
- }
317
- .col-2 {
318
- width: 30%;
319
- .col();
320
- }
321
- .col-3 {
322
- .col();
323
- }
324
-
325
- a {
326
- svg {
327
- display: none;
328
- }
329
- }
330
- }
331
-
332
- // links
333
- a {
334
- color: #346ae5;
335
- text-decoration: none;
336
- transition: opacity 0.2s;
337
- outline: none;
338
-
339
- &:hover {
340
- opacity: 0.7;
341
- text-decoration: underline;
342
- }
343
-
344
- &:active {
345
- opacity: 0.9;
346
- }
347
- }
348
-
349
- // images
350
- img {
351
- max-width: 100%;
352
- }
353
- }
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+QVfNvY2NjPz88TdcUSb7u6urq3t7cPYK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WIH6G7Qjijc8/LDueDyvd4z151EYBvwOF+lRFTAK6TGi+ACWdLk0ozANqvkpojAFJKRnCSlFt3m8pLc9bJTylVn64ty9rJfEl1cpVKbH3uJ2v1QleUqOCI2h9xeeP0aVqLCA4JSLk6s7hu6CbkqOAIGpyB7iRZ5xLvFWlHEkITyjK/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;base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85fvz99h0ttsmp8+tdt9LlOKuXC5OS1fOa42c3jUUrW6sIGetB8bwVCUuUCgYyPBZa6B+w/KpHsVgOq4adBhTQ8RonIOwE3ACRBjGMNquJ/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
+ width: 100%;
52
+ flex: 1;
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-5);
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
+
265
+ thead {
266
+ width: 100%;
267
+ }
268
+ th,
269
+ td {
270
+ padding: 10px 20px;
271
+ // border: 1px solid @c-border;
272
+ font-weight: normal;
273
+ }
274
+
275
+ @media @mobile {
276
+ th,
277
+ td {
278
+ padding: 4px;
279
+ }
280
+ }
281
+
282
+ th {
283
+ background: @c-light-bg;
284
+ font-weight: 600;
285
+ color: rgba(0, 0, 0, 0.85);
286
+ }
287
+
288
+ td {
289
+ color: rgba(0, 0, 0, 0.85);
290
+
291
+ code {
292
+ background-color: #f3f4f5;
293
+ min-height: 20px;
294
+ line-height: 20px;
295
+ text-align: center;
296
+ padding: 0 6px;
297
+ display: inline-block;
298
+ border: 1px solid rgba(0, 0, 0, 0.05);
299
+ border-radius: 2px;
300
+ color: rgba(0, 0, 0, 0.85);
301
+ }
302
+ }
303
+
304
+ .col {
305
+ font-size: 12px;
306
+ // overflow: auto;
307
+ word-break: break-all;
308
+ text-align: left;
309
+ // div {
310
+ // overflow: auto;
311
+ // }
312
+ }
313
+ .col-0 {
314
+ width: 25%;
315
+ .col();
316
+ }
317
+ .col-1 {
318
+ width: 24%;
319
+ .col();
320
+ }
321
+ .col-2 {
322
+ width: 30%;
323
+ .col();
324
+ }
325
+ .col-3 {
326
+ .col();
327
+ }
328
+
329
+ a {
330
+ svg {
331
+ display: none;
332
+ }
333
+ }
334
+ }
335
+
336
+ // links
337
+ a {
338
+ color: #346ae5;
339
+ text-decoration: none;
340
+ transition: opacity 0.2s;
341
+ outline: none;
342
+
343
+ &:hover {
344
+ opacity: 0.7;
345
+ text-decoration: underline;
346
+ }
347
+
348
+ &:active {
349
+ opacity: 0.9;
350
+ }
351
+ }
352
+
353
+ // images
354
+ img {
355
+ max-width: 100%;
356
+ }
357
+ }
358
+
359
+ .ronds-metadata-dark {
360
+ .react-mark-down {
361
+ table {
362
+ width: 100%;
363
+ }
364
+ th {
365
+ background-color: #0d1f40 !important;
366
+ }
367
+ table td,
368
+ table th {
369
+ color: #9b9fa8 !important;
370
+ border: 1px solid var(--ronds-metadata-color-border-1) !important;
371
+ }
372
+ table tr {
373
+ background: #13264e !important;
374
+ }
375
+ }
376
+ }
package/es/config.js CHANGED
@@ -2,7 +2,7 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
2
  /*
3
3
  * @Author: wangxian
4
4
  * @Date: 2021-09-18 14:15:04
5
- * @LastEditTime: 2023-05-05 11:25:35
5
+ * @LastEditTime: 2023-06-08 15:39:28
6
6
  */
7
7
  import { BehaviorSubject, map, distinctUntilChanged } from 'rxjs';
8
8
  import { setLocale } from './comps/locales/index';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "public": true,
3
3
  "name": "ronds-metadata",
4
- "version": "1.2.64",
4
+ "version": "1.2.66",
5
5
  "scripts": {
6
6
  "start": "dumi dev",
7
7
  "docs:build": "dumi build",