vditor 3.9.9 → 3.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,605 +1,609 @@
1
1
  .vditor {
2
- &-reset {
3
- &--anchor {
4
- padding-left: 20px;
5
- }
2
+ &-reset {
3
+ &--anchor {
4
+ padding-left: 20px;
5
+ }
6
6
 
7
- &--error {
8
- color: @errorColor;
9
- font-size: 12px;
10
- display: block;
11
- line-height: 16px;
12
- }
7
+ &--error {
8
+ color: @errorColor;
9
+ font-size: 12px;
10
+ display: block;
11
+ line-height: 16px;
12
+ }
13
13
 
14
- color: #24292e;
15
- font-variant-ligatures: no-common-ligatures;
16
- font-family: @font-family-base;
17
- word-wrap: break-word;
18
- overflow: auto;
19
- line-height: 1.5;
20
- font-size: 16px;
21
- word-break: break-word;
22
-
23
- ul ul ul {
24
- list-style-type: square;
25
- }
14
+ color: #24292e;
15
+ font-variant-ligatures: no-common-ligatures;
16
+ font-family: @font-family-base;
17
+ word-wrap: break-word;
18
+ overflow: auto;
19
+ line-height: 1.5;
20
+ font-size: 16px;
21
+ word-break: break-word;
26
22
 
27
- ul ul {
28
- list-style-type: circle;
29
- }
23
+ ul ul ul {
24
+ list-style-type: square;
25
+ }
30
26
 
31
- ul {
32
- list-style-type: disc;
33
- }
27
+ ul ul {
28
+ list-style-type: circle;
29
+ }
34
30
 
35
- ul,
36
- ol {
37
- padding-left: 2em;
38
- margin-top: 0;
39
- margin-bottom: 16px;
40
- }
31
+ ul {
32
+ list-style-type: disc;
33
+ }
41
34
 
42
- li + li {
43
- margin-top: 0.25em;
44
- }
35
+ ul,
36
+ ol {
37
+ padding-left: 2em;
38
+ margin-top: 0;
39
+ margin-bottom: 16px;
40
+ }
45
41
 
46
- audio {
47
- max-width: 100%;
42
+ li + li {
43
+ margin-top: 0.25em;
44
+ }
48
45
 
49
- &:focus {
50
- outline: none;
51
- }
52
- }
46
+ li p {
47
+ margin-top: 16px;
48
+ }
53
49
 
54
- video {
55
- max-height: 90vh;
56
- max-width: 100%;
57
- }
50
+ audio {
51
+ max-width: 100%;
58
52
 
59
- img {
60
- max-width: 100%;
61
- }
53
+ &:focus {
54
+ outline: none;
55
+ }
56
+ }
62
57
 
63
- img.emoji {
64
- cursor: auto;
65
- max-width: 20px;
66
- vertical-align: sub;
67
- }
58
+ video {
59
+ max-height: 90vh;
60
+ max-width: 100%;
61
+ }
68
62
 
69
- h1,
70
- h2,
71
- h3,
72
- h4,
73
- h5,
74
- h6 {
75
- margin-top: 24px;
76
- margin-bottom: 16px;
77
- font-weight: 600;
78
- line-height: 1.25;
79
-
80
- &:hover .vditor-anchor svg {
81
- visibility: visible;
82
- }
83
- }
63
+ img {
64
+ max-width: 100%;
65
+ }
84
66
 
85
- h1 {
86
- font-size: 1.75em;
87
- }
67
+ img.emoji {
68
+ cursor: auto;
69
+ max-width: 20px;
70
+ vertical-align: sub;
71
+ }
88
72
 
89
- h2 {
90
- font-size: 1.55em;
91
- }
73
+ h1,
74
+ h2,
75
+ h3,
76
+ h4,
77
+ h5,
78
+ h6 {
79
+ margin-top: 24px;
80
+ margin-bottom: 16px;
81
+ font-weight: 600;
82
+ line-height: 1.25;
83
+
84
+ &:hover .vditor-anchor svg {
85
+ visibility: visible;
86
+ }
87
+ }
92
88
 
93
- h3 {
94
- font-size: 1.38em;
95
- }
89
+ h1 {
90
+ font-size: 1.75em;
91
+ }
96
92
 
97
- h4 {
98
- font-size: 1.25em;
99
- }
93
+ h2 {
94
+ font-size: 1.55em;
95
+ }
100
96
 
101
- h5 {
102
- font-size: 1.13em;
103
- }
97
+ h3 {
98
+ font-size: 1.38em;
99
+ }
104
100
 
105
- h6 {
106
- font-size: 1em;
107
- }
101
+ h4 {
102
+ font-size: 1.25em;
103
+ }
108
104
 
109
- hr {
110
- height: 2px;
111
- padding: 0;
112
- margin: 24px 0;
113
- background-color: #eaecef;
114
- border: 0;
115
- }
105
+ h5 {
106
+ font-size: 1.13em;
107
+ }
116
108
 
117
- p {
118
- margin-top: 0;
119
- margin-bottom: 16px;
120
- }
109
+ h6 {
110
+ font-size: 1em;
111
+ }
121
112
 
122
- blockquote {
123
- padding: 0 1em;
124
- color: #6a737d;
125
- border-left: 0.25em solid #eaecef;
126
- margin: 0 0 16px 0;
113
+ hr {
114
+ height: 2px;
115
+ padding: 0;
116
+ margin: 24px 0;
117
+ background-color: #eaecef;
118
+ border: 0;
119
+ }
127
120
 
128
- & > :first-child {
129
- margin-top: 0;
130
- }
121
+ p {
122
+ margin-top: 0;
123
+ margin-bottom: 16px;
124
+ }
131
125
 
132
- & > :last-child {
133
- margin-bottom: 0;
134
- }
135
- }
126
+ blockquote {
127
+ padding: 0 1em;
128
+ color: #6a737d;
129
+ border-left: 0.25em solid #eaecef;
130
+ margin: 0 0 16px 0;
136
131
 
137
- ins > iframe {
138
- border: 0;
139
- }
132
+ & > :first-child {
133
+ margin-top: 0;
134
+ }
140
135
 
141
- iframe {
142
- border: 1px solid #d1d5da;
143
- max-width: 100%;
144
- box-sizing: border-box;
136
+ & > :last-child {
137
+ margin-bottom: 0;
138
+ }
139
+ }
145
140
 
146
- &.iframe__video {
147
- min-width: 80%;
148
- min-height: 36vh;
149
- }
150
- }
141
+ ins > iframe {
142
+ border: 0;
143
+ }
151
144
 
152
- table {
153
- border-collapse: collapse;
154
- empty-cells: show;
155
- margin-bottom: 16px;
156
- overflow: auto;
157
- border-spacing: 0;
158
- display: block;
159
- word-break: keep-all;
160
- width: 100%;
161
-
162
- tr {
163
- background-color: #fafbfc;
164
- border-top: 1px solid #c6cbd1;
165
- }
166
-
167
- td,
168
- th {
169
- padding: 6px 13px;
170
- border: 1px solid #dfe2e5;
171
- word-break: normal;
172
- white-space: nowrap;
173
-
174
- &:first-child::after {
175
- content: "";
176
- display: inline-block;
177
- vertical-align: top;
178
- min-height: 24px;
179
- }
180
- }
181
-
182
- th {
183
- font-weight: 600;
184
- }
185
-
186
- tbody tr:nth-child(2n) {
187
- background-color: #fff;
188
- }
189
- }
145
+ iframe {
146
+ border: 1px solid #d1d5da;
147
+ max-width: 100%;
148
+ box-sizing: border-box;
190
149
 
191
- code:not(.hljs):not(.highlight-chroma) {
192
- padding: 0.2em 0.4em;
193
- margin: 0;
194
- font-size: 85%;
195
- border-radius: 3px;
196
- font-family: @font-family-code;
197
- word-break: break-word;
198
- background-size: 20px 20px;
199
- white-space: pre-wrap;
200
- }
150
+ &.iframe__video {
151
+ min-width: 80%;
152
+ min-height: 36vh;
153
+ }
154
+ }
201
155
 
202
- pre {
203
- margin: 1em 0;
156
+ table {
157
+ border-collapse: collapse;
158
+ empty-cells: show;
159
+ margin-bottom: 16px;
160
+ overflow: auto;
161
+ border-spacing: 0;
162
+ display: block;
163
+ word-break: keep-all;
164
+ width: 100%;
165
+
166
+ tr {
167
+ background-color: #fafbfc;
168
+ border-top: 1px solid #c6cbd1;
169
+ }
170
+
171
+ td,
172
+ th {
173
+ padding: 6px 13px;
174
+ border: 1px solid #dfe2e5;
175
+ word-break: normal;
176
+ white-space: nowrap;
177
+
178
+ &:first-child::after {
179
+ content: "";
180
+ display: inline-block;
181
+ vertical-align: top;
182
+ min-height: 24px;
183
+ }
184
+ }
185
+
186
+ th {
187
+ font-weight: 600;
188
+ }
189
+
190
+ tbody tr:nth-child(2n) {
191
+ background-color: #fff;
192
+ }
193
+ }
204
194
 
205
- & > code {
206
- margin: 0;
207
- font-size: 85%;
208
- padding: 0.5em;
209
- border-radius: 5px;
210
- display: block;
211
- overflow: auto;
212
- white-space: pre;
213
- font-family: @font-family-code;
214
- background-size: 20px 20px;
215
- background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8AgMAAABHkjHhAAAACVBMVEWAgIBaWlo+Pj7rTFvWAAAAA3RSTlMHCAw+VhR4AAAA+klEQVQoz4WSMW7EQAhFPxKWNh2FCx+HkaZI6RRb5DYbyVfIJXLKDCFoMbaTKSw/8ZnPAPjaH2xgZcUNUDADD7D9LtDBCLZ45fbkvo/30K8yeI64pPwl6znd/3n/Oe93P3ho9qeh72btTFzqkz0rsJle8Zr81OLEwZ1dv/713uWqvu2pl+k0fy7MWtj9r/tN5q/02z89qa/L4Dc2LvM93kezPfXlME/O86EbY/V9GB9ePX8G1/6W+/9h1dq/HGfTfzT3j/xNo7522Bfnqe5jO/fvhVthlfk434v3iO9zG/UOphyPeinPl1J8Gtaa7xPTa/Dk+RIs4deMvwGvcGsmsCvJ0AAAAABJRU5ErkJggg==);
216
- word-break: initial;
217
- word-wrap: normal;
218
- }
219
-
220
- &:hover div.vditor-copy {
221
- display: block;
222
- }
223
- }
195
+ code:not(.hljs):not(.highlight-chroma) {
196
+ padding: 0.2em 0.4em;
197
+ margin: 0;
198
+ font-size: 85%;
199
+ border-radius: 3px;
200
+ font-family: @font-family-code;
201
+ word-break: break-word;
202
+ background-size: 20px 20px;
203
+ white-space: pre-wrap;
204
+ }
224
205
 
225
- .language-math,
226
- .language-echarts,
227
- .language-mindmap,
228
- .language-plantuml,
229
- .language-mermaid,
230
- .language-markmap,
231
- .language-abc,
232
- .language-flowchart,
233
- .language-graphviz {
234
- margin-bottom: 16px;
235
- }
206
+ pre {
207
+ margin: 1em 0;
208
+
209
+ & > code {
210
+ margin: 0;
211
+ font-size: 85%;
212
+ padding: 0.5em;
213
+ border-radius: 5px;
214
+ display: block;
215
+ overflow: auto;
216
+ white-space: pre;
217
+ font-family: @font-family-code;
218
+ background-size: 20px 20px;
219
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8AgMAAABHkjHhAAAACVBMVEWAgIBaWlo+Pj7rTFvWAAAAA3RSTlMHCAw+VhR4AAAA+klEQVQoz4WSMW7EQAhFPxKWNh2FCx+HkaZI6RRb5DYbyVfIJXLKDCFoMbaTKSw/8ZnPAPjaH2xgZcUNUDADD7D9LtDBCLZ45fbkvo/30K8yeI64pPwl6znd/3n/Oe93P3ho9qeh72btTFzqkz0rsJle8Zr81OLEwZ1dv/713uWqvu2pl+k0fy7MWtj9r/tN5q/02z89qa/L4Dc2LvM93kezPfXlME/O86EbY/V9GB9ePX8G1/6W+/9h1dq/HGfTfzT3j/xNo7522Bfnqe5jO/fvhVthlfk434v3iO9zG/UOphyPeinPl1J8Gtaa7xPTa/Dk+RIs4deMvwGvcGsmsCvJ0AAAAABJRU5ErkJggg==);
220
+ word-break: initial;
221
+ word-wrap: normal;
222
+ }
223
+
224
+ &:hover div.vditor-copy {
225
+ display: block;
226
+ }
227
+ }
236
228
 
237
- .language-math mjx-container:focus {
238
- outline: none;
239
- cursor: context-menu;
240
- }
229
+ .language-math,
230
+ .language-echarts,
231
+ .language-mindmap,
232
+ .language-plantuml,
233
+ .language-mermaid,
234
+ .language-markmap,
235
+ .language-abc,
236
+ .language-flowchart,
237
+ .language-graphviz {
238
+ margin-bottom: 16px;
239
+ }
241
240
 
242
- .language-echarts,
243
- .language-mindmap {
244
- overflow: hidden;
245
- height: 420px;
246
- }
241
+ .language-math mjx-container:focus {
242
+ outline: none;
243
+ cursor: context-menu;
244
+ }
247
245
 
248
- .language-mermaid,
249
- .language-markmap,
250
- .language-flowchart,
251
- .language-graphviz {
252
- text-align: center;
253
- }
246
+ .language-echarts,
247
+ .language-mindmap {
248
+ overflow: hidden;
249
+ height: 420px;
250
+ }
254
251
 
255
- .language-graphviz parsererror {
256
- overflow: auto;
257
- }
252
+ .language-mermaid,
253
+ .language-markmap,
254
+ .language-flowchart,
255
+ .language-graphviz {
256
+ text-align: center;
257
+ }
258
258
 
259
- kbd {
260
- display: inline-block;
261
- padding: 3px 5px;
262
- font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
263
- line-height: 10px;
264
- color: #24292e;
265
- vertical-align: middle;
266
- background-color: #fafbfc;
267
- border: solid 1px #d1d5da;
268
- border-radius: 3px;
269
- box-shadow: inset 0 -1px 0 #d1d5da;
270
- }
259
+ .language-graphviz parsererror {
260
+ overflow: auto;
261
+ }
271
262
 
272
- summary {
273
- cursor: pointer;
263
+ kbd {
264
+ display: inline-block;
265
+ padding: 3px 5px;
266
+ font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
267
+ line-height: 10px;
268
+ color: #24292e;
269
+ vertical-align: middle;
270
+ background-color: #fafbfc;
271
+ border: solid 1px #d1d5da;
272
+ border-radius: 3px;
273
+ box-shadow: inset 0 -1px 0 #d1d5da;
274
+ }
274
275
 
275
- &:focus {
276
- outline: none;
277
- }
278
- }
276
+ summary {
277
+ cursor: pointer;
279
278
 
280
- svg {
281
- height: auto;
282
- width: auto;
283
- stroke-width: initial;
284
- }
279
+ &:focus {
280
+ outline: none;
281
+ }
282
+ }
285
283
 
286
- p:last-child,
287
- blockquote:last-child,
288
- pre:last-child,
289
- ul:last-child,
290
- ol:last-child,
291
- hr:last-child {
292
- margin-bottom: 0;
284
+ svg {
285
+ height: auto;
286
+ width: auto;
287
+ stroke-width: initial;
288
+ }
289
+
290
+ p:last-child,
291
+ blockquote:last-child,
292
+ pre:last-child,
293
+ ul:last-child,
294
+ ol:last-child,
295
+ hr:last-child {
296
+ margin-bottom: 0;
297
+ }
293
298
  }
294
- }
295
299
 
296
- &-comment {
297
- border-bottom: 2px solid rgb(248, 230, 171);
300
+ &-comment {
301
+ border-bottom: 2px solid rgb(248, 230, 171);
298
302
 
299
- &--focus,
300
- &--hover {
301
- background-color: rgb(250, 241, 209);
302
- border-bottom: 2px solid rgb(255, 198, 10);
303
+ &--focus,
304
+ &--hover {
305
+ background-color: rgb(250, 241, 209);
306
+ border-bottom: 2px solid rgb(255, 198, 10);
303
307
 
304
- .vditor-comment {
305
- border-bottom: 2px solid rgb(255, 198, 10);
306
- }
308
+ .vditor-comment {
309
+ border-bottom: 2px solid rgb(255, 198, 10);
310
+ }
311
+ }
307
312
  }
308
- }
309
313
 
310
- &-task {
311
- list-style: none !important;
312
- word-break: break-all;
314
+ &-task {
315
+ list-style: none !important;
316
+ word-break: break-all;
313
317
 
314
- input {
315
- margin: 0 0.2em 0.25em -1.6em;
316
- font-size: 12px;
317
- vertical-align: middle;
318
+ input {
319
+ margin: 0 0.2em 0.25em -1.6em;
320
+ font-size: 12px;
321
+ vertical-align: middle;
322
+ }
318
323
  }
319
- }
320
324
 
321
- &-copy {
322
- position: relative;
323
- display: none;
324
- z-index: 1;
325
+ &-copy {
326
+ position: relative;
327
+ display: none;
328
+ z-index: 1;
325
329
 
326
- textarea {
327
- position: absolute;
328
- left: -100000px;
329
- height: 10px;
330
- }
330
+ textarea {
331
+ position: absolute;
332
+ left: -100000px;
333
+ height: 10px;
334
+ }
331
335
 
332
- span {
333
- cursor: pointer;
334
- position: absolute;
335
- right: 15px;
336
- top: 0.5em;
337
- }
336
+ span {
337
+ cursor: pointer;
338
+ position: absolute;
339
+ right: 15px;
340
+ top: 0.5em;
341
+ }
338
342
 
339
- svg {
340
- color: #586069;
341
- height: 14px;
342
- width: 14px !important;
343
- display: block;
344
- fill: currentColor;
345
- }
346
- }
347
-
348
- &-linenumber {
349
- padding-left: 4em !important;
350
- position: relative;
351
-
352
- &__rows {
353
- position: absolute;
354
- pointer-events: none;
355
- top: 0.5em;
356
- left: 0;
357
- width: 3em; /* works for line-numbers below 1000 lines */
358
- user-select: none;
359
- counter-reset: linenumber;
360
-
361
- & > span {
362
- pointer-events: none;
363
- display: block;
364
-
365
- &::before {
366
- counter-increment: linenumber;
367
- content: counter(linenumber);
368
- color: rgba(158, 150, 150, 0.38);
369
- display: block;
370
- padding-right: 1em;
371
- text-align: right;
372
- }
373
- }
374
- }
375
- }
376
-
377
- &-speech {
378
- position: absolute;
379
- display: none;
380
- background-color: #f6f8fa;
381
- border: 1px solid #d1d5da;
382
- border-radius: 3px;
383
- padding: 3px;
384
- cursor: pointer;
385
- color: #586069;
386
-
387
- &:hover,
388
- &--current {
389
- color: #4285f4;
343
+ svg {
344
+ color: #586069;
345
+ height: 14px;
346
+ width: 14px !important;
347
+ display: block;
348
+ fill: currentColor;
349
+ }
390
350
  }
391
351
 
392
- svg {
393
- height: 14px;
394
- width: 14px;
395
- fill: currentColor;
396
- display: block;
397
- stroke-width: 0;
398
- stroke: currentColor;
352
+ &-linenumber {
353
+ padding-left: 4em !important;
354
+ position: relative;
355
+
356
+ &__rows {
357
+ position: absolute;
358
+ pointer-events: none;
359
+ top: 0.5em;
360
+ left: 0;
361
+ width: 3em; /* works for line-numbers below 1000 lines */
362
+ user-select: none;
363
+ counter-reset: linenumber;
364
+
365
+ & > span {
366
+ pointer-events: none;
367
+ display: block;
368
+
369
+ &::before {
370
+ counter-increment: linenumber;
371
+ content: counter(linenumber);
372
+ color: rgba(158, 150, 150, 0.38);
373
+ display: block;
374
+ padding-right: 1em;
375
+ text-align: right;
376
+ }
377
+ }
378
+ }
399
379
  }
400
- }
401
380
 
402
- &-anchor {
403
- margin-left: 5px;
381
+ &-speech {
382
+ position: absolute;
383
+ display: none;
384
+ background-color: #f6f8fa;
385
+ border: 1px solid #d1d5da;
386
+ border-radius: 3px;
387
+ padding: 3px;
388
+ cursor: pointer;
389
+ color: #586069;
390
+
391
+ &:hover,
392
+ &--current {
393
+ color: #4285f4;
394
+ }
404
395
 
405
- &--left {
406
- float: left;
407
- padding-right: 4px;
408
- margin-left: -20px;
396
+ svg {
397
+ height: 14px;
398
+ width: 14px;
399
+ fill: currentColor;
400
+ display: block;
401
+ stroke-width: 0;
402
+ stroke: currentColor;
403
+ }
409
404
  }
410
405
 
411
- svg {
412
- visibility: hidden;
413
- }
406
+ &-anchor {
407
+ margin-left: 5px;
414
408
 
415
- &:hover {
416
- svg {
417
- visibility: visible;
418
- }
419
- }
409
+ &--left {
410
+ float: left;
411
+ padding-right: 4px;
412
+ margin-left: -20px;
413
+ }
420
414
 
421
- &:focus {
422
- outline: none;
423
- }
424
- }
425
-
426
- &-linkcard {
427
- margin: 31px auto 16px;
428
- transition: @transition;
429
- cursor: pointer;
430
- max-width: 768px;
431
- padding: 0 10px;
432
-
433
- a {
434
- border-radius: 3px;
435
- background-color: #f6f8fa;
436
- overflow: hidden;
437
- max-height: 250px;
438
- display: flex;
439
- text-decoration: none;
440
- flex-wrap: wrap-reverse;
441
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
442
-
443
- &:hover {
444
- box-shadow: 0 0 3px rgba(0, 0, 0, 0.13), 0 3px 6px rgba(0, 0, 0, 0.26);
445
- text-decoration: none;
446
- }
415
+ svg {
416
+ visibility: hidden;
417
+ }
447
418
 
448
- &:visited .vditor-linkcard__abstract {
449
- color: rgba(88, 96, 105, 0.36);
450
- }
451
- }
419
+ &:hover {
420
+ svg {
421
+ visibility: visible;
422
+ }
423
+ }
452
424
 
453
- &__info {
454
- padding: 10px;
455
- min-width: 200px;
456
- box-sizing: border-box;
457
- flex: 1;
425
+ &:focus {
426
+ outline: none;
427
+ }
458
428
  }
459
429
 
460
- &__title {
461
- font-size: 14px;
462
- font-weight: 400;
463
- color: #24292e;
464
- display: flex;
465
- align-items: center;
466
-
467
- img {
430
+ &-linkcard {
431
+ margin: 31px auto 16px;
432
+ transition: @transition;
468
433
  cursor: pointer;
469
- height: 20px;
470
- width: 20px;
471
- border-radius: 3px;
472
- flex-shrink: 0;
473
- margin-right: 5px;
474
- }
475
- }
434
+ max-width: 768px;
435
+ padding: 0 10px;
436
+
437
+ a {
438
+ border-radius: 3px;
439
+ background-color: #f6f8fa;
440
+ overflow: hidden;
441
+ max-height: 250px;
442
+ display: flex;
443
+ text-decoration: none;
444
+ flex-wrap: wrap-reverse;
445
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
446
+
447
+ &:hover {
448
+ box-shadow: 0 0 3px rgba(0, 0, 0, 0.13), 0 3px 6px rgba(0, 0, 0, 0.26);
449
+ text-decoration: none;
450
+ }
451
+
452
+ &:visited .vditor-linkcard__abstract {
453
+ color: rgba(88, 96, 105, 0.36);
454
+ }
455
+ }
476
456
 
477
- &__abstract {
478
- word-wrap: break-word;
479
- word-break: break-all;
480
- -webkit-line-clamp: 2;
481
- overflow: hidden;
482
- text-overflow: ellipsis;
483
- -webkit-box-orient: vertical;
484
- display: -webkit-box;
485
- font-size: 13px;
486
- color: #586069;
487
- margin: 5px 0;
488
- }
457
+ &__info {
458
+ padding: 10px;
459
+ min-width: 200px;
460
+ box-sizing: border-box;
461
+ flex: 1;
462
+ }
463
+
464
+ &__title {
465
+ font-size: 14px;
466
+ font-weight: 400;
467
+ color: #24292e;
468
+ display: flex;
469
+ align-items: center;
470
+
471
+ img {
472
+ cursor: pointer;
473
+ height: 20px;
474
+ width: 20px;
475
+ border-radius: 3px;
476
+ flex-shrink: 0;
477
+ margin-right: 5px;
478
+ }
479
+ }
480
+
481
+ &__abstract {
482
+ word-wrap: break-word;
483
+ word-break: break-all;
484
+ -webkit-line-clamp: 2;
485
+ overflow: hidden;
486
+ text-overflow: ellipsis;
487
+ -webkit-box-orient: vertical;
488
+ display: -webkit-box;
489
+ font-size: 13px;
490
+ color: #586069;
491
+ margin: 5px 0;
492
+ }
489
493
 
490
- &__site {
491
- font-size: 12px;
492
- color: #4285f4;
494
+ &__site {
495
+ font-size: 12px;
496
+ color: #4285f4;
497
+ }
498
+
499
+ &__image {
500
+ background-size: cover;
501
+ background-repeat: no-repeat;
502
+ background-position: center center;
503
+ max-width: 250px;
504
+ min-width: 126px;
505
+ cursor: pointer;
506
+ background-color: rgba(88, 96, 105, 0.36);
507
+ }
493
508
  }
494
509
 
495
- &__image {
496
- background-size: cover;
497
- background-repeat: no-repeat;
498
- background-position: center center;
499
- max-width: 250px;
500
- min-width: 126px;
501
- cursor: pointer;
502
- background-color: rgba(88, 96, 105, 0.36);
510
+ &-footnotes__goto-ref {
511
+ text-decoration: none;
503
512
  }
504
- }
505
513
 
506
- &-footnotes__goto-ref {
507
- text-decoration: none;
508
- }
514
+ &-toc {
515
+ margin-bottom: 16px;
516
+ user-select: text;
517
+ color: @blurColor;
509
518
 
510
- &-toc {
511
- margin-bottom: 16px;
512
- user-select: text;
513
- color: @blurColor;
519
+ .vditor-outline__action {
520
+ display: none;
521
+ }
514
522
 
515
- .vditor-outline__action {
516
- display: none;
517
- }
523
+ ul {
524
+ list-style: none !important;
525
+ padding-left: 1em;
526
+ }
518
527
 
519
- ul {
520
- list-style: none !important;
521
- padding-left: 1em;
522
- }
528
+ & > ul {
529
+ padding-left: 0;
530
+ }
523
531
 
524
- & > ul {
525
- padding-left: 0;
526
- }
532
+ span {
533
+ cursor: pointer;
534
+ }
527
535
 
528
- span {
529
- cursor: pointer;
536
+ li > span > svg {
537
+ width: 0;
538
+ height: 0;
539
+ }
530
540
  }
531
541
 
532
- li > span > svg {
533
- width: 0;
534
- height: 0;
535
- }
536
- }
537
-
538
- &-outline {
539
- width: 250px;
540
- border-right: 1px solid var(--border-color);
541
- background-color: var(--panel-background-color);
542
- display: none;
543
- overflow: auto;
544
-
545
- &--right {
546
- border-right: 0;
547
- border-left: 1px solid var(--border-color);
548
- }
542
+ &-outline {
543
+ width: 250px;
544
+ border-right: 1px solid var(--border-color);
545
+ background-color: var(--panel-background-color);
546
+ display: none;
547
+ overflow: auto;
549
548
 
550
- &::-webkit-scrollbar {
551
- display: none;
552
- }
549
+ &--right {
550
+ border-right: 0;
551
+ border-left: 1px solid var(--border-color);
552
+ }
553
553
 
554
- ul {
555
- list-style: none !important;
556
- padding-left: 1em;
557
- margin: 0;
558
- }
554
+ &::-webkit-scrollbar {
555
+ display: none;
556
+ }
559
557
 
560
- &__content > ul {
561
- padding-left: 0;
562
- }
558
+ ul {
559
+ list-style: none !important;
560
+ padding-left: 1em;
561
+ margin: 0;
562
+ }
563
563
 
564
- li > span {
565
- display: flex;
566
- align-items: center;
567
- padding: 5px 10px;
568
- cursor: pointer;
569
- color: var(--textarea-text-color);
570
-
571
- & > svg {
572
- height: 10px;
573
- width: 10px;
574
- }
575
-
576
- &:hover {
577
- color: var(--toolbar-icon-hover-color);
578
- }
579
-
580
- & > span {
581
- white-space: nowrap;
582
- overflow: hidden;
583
- text-overflow: ellipsis;
584
- }
585
- }
564
+ &__content > ul {
565
+ padding-left: 0;
566
+ }
586
567
 
587
- &__title {
588
- border-bottom: 1px dashed var(--border-color);
589
- padding: 5px 10px;
590
- color: var(--toolbar-icon-color);
591
- font-size: 12px;
592
- }
568
+ li > span {
569
+ display: flex;
570
+ align-items: center;
571
+ padding: 5px 10px;
572
+ cursor: pointer;
573
+ color: var(--textarea-text-color);
574
+
575
+ & > svg {
576
+ height: 10px;
577
+ width: 10px;
578
+ }
579
+
580
+ &:hover {
581
+ color: var(--toolbar-icon-hover-color);
582
+ }
583
+
584
+ & > span {
585
+ white-space: nowrap;
586
+ overflow: hidden;
587
+ text-overflow: ellipsis;
588
+ }
589
+ }
590
+
591
+ &__title {
592
+ border-bottom: 1px dashed var(--border-color);
593
+ padding: 5px 10px;
594
+ color: var(--toolbar-icon-color);
595
+ font-size: 12px;
596
+ }
593
597
 
594
- &__action {
595
- transition: @transition;
596
- fill: currentColor;
597
- margin-right: 5px;
598
- flex-shrink: 0;
598
+ &__action {
599
+ transition: @transition;
600
+ fill: currentColor;
601
+ margin-right: 5px;
602
+ flex-shrink: 0;
599
603
 
600
- &--close {
601
- transform: rotate(-90deg);
602
- }
604
+ &--close {
605
+ transform: rotate(-90deg);
606
+ }
607
+ }
603
608
  }
604
- }
605
609
  }