lakelib 0.3.4 → 0.3.6

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.
package/lib/lake.css CHANGED
@@ -5,16 +5,20 @@
5
5
  --lake-text-color: #000000e0;
6
6
  --lake-secondary-text-color: #000000a6;
7
7
  --lake-border-color: #d9d9d9;
8
- --lake-background-hover-color: #0000000a;
9
- --lake-background-active-color: #0000000d;
8
+ --lake-background-color: #fff;
10
9
  --lake-success-color: #52c41a;
11
10
  --lake-warning-color: #faad14;
12
11
  --lake-error-color: #ff4d4f;
13
12
  /* selection */
14
13
  --lake-selection-background-color: #1ba2e333;
14
+ /* mark */
15
+ --lake-code-background-color: #8e96aa24;
15
16
  /* link */
16
17
  --lake-link-color: #1677ff;
17
18
  --lake-link-hover-color: #69b1ff;
19
+ /* block quotation */
20
+ --lake-blockquote-text-color: #000000a6;
21
+ --lake-blockquote-border: 4px solid #0505050f;
18
22
  /* box */
19
23
  --lake-box-border-color: #d9d9d9;
20
24
  --lake-box-border-focus-color: #1677ff;
@@ -23,17 +27,56 @@
23
27
  --lake-popup-z-index: 822;
24
28
  --lake-popup-font-size: 14px;
25
29
  --lake-popup-border-color: #d9d9d9;
30
+ --lake-popup-background-color: #fff;
26
31
  --lake-popup-shadow: 0 6px 16px 0 #00000014, 0 3px 6px -4px #0000001f, 0 9px 28px 8px #0000000d;
27
32
  /* button */
28
33
  --lake-button-font-size: 14px;
34
+ --lake-button-border-color: #d9d9d9;
35
+ --lake-button-background-hover-color: #0000000a;
36
+ --lake-button-background-active-color: #0000000d;
29
37
  --lake-button-shadow: 0 2px 0 #00000005;
30
38
  --lake-button-outline: 2px solid #69b1ff;
31
- /* input element, text field */
39
+ /* text field */
32
40
  --lake-input-border-color: #d9d9d9;
33
41
  --lake-input-border-hover-color: #69b1ff;
34
42
  --lake-input-outline: 2px solid #69b1ff;
35
43
  }
36
44
 
45
+ .lake-dark {
46
+ /* common */
47
+ --lake-text-color: #f0f6fc;
48
+ --lake-secondary-text-color: #9198a1;
49
+ --lake-border-color: #3d444d;
50
+ --lake-background-color: #1b1b1f;
51
+ /* selection */
52
+ --lake-selection-background-color: #184c9d;
53
+ /* mark */
54
+ --lake-code-background-color: #65758529;
55
+ /* link */
56
+ --lake-link-color: #4493f8;
57
+ --lake-link-hover-color: #58a6ff;
58
+ /* block quotation */
59
+ --lake-blockquote-text-color: #9e9e9e;
60
+ --lake-blockquote-border: 4px solid #3d444d;
61
+ /* box */
62
+ --lake-box-border-color: #3d444d;
63
+ --lake-box-border-focus-color: #4493f8;
64
+ --lake-box-background-color: #3d444d;
65
+ /* popup */
66
+ --lake-popup-border-color: #3d444d;
67
+ --lake-popup-background-color: #252525;
68
+ --lake-popup-shadow: #0000001f 0px 8px 4px, #0000003d 0px 8px 16px;
69
+ /* button */
70
+ --lake-button-border-color: #3d444d;
71
+ --lake-button-background-hover-color: #343434;
72
+ --lake-button-background-active-color: #343434;
73
+ --lake-button-outline: 2px solid #58a6ff;
74
+ /* text field */
75
+ --lake-input-border-color: #3d444d;
76
+ --lake-input-border-hover-color: #58a6ff;
77
+ --lake-input-outline: 2px solid #58a6ff;
78
+ }
79
+
37
80
  @keyframes lakerotate {
38
81
  0% {
39
82
  transform: rotate(0);
@@ -46,6 +89,7 @@
46
89
  .lake-container-wrapper {
47
90
  position: relative;
48
91
  }
92
+
49
93
  .lake-container {
50
94
  box-sizing: border-box;
51
95
  font-family: var(--lake-font-family);
@@ -54,19 +98,23 @@
54
98
  line-height: 1.45;
55
99
  padding: 16px 24px;
56
100
  }
101
+
57
102
  .lake-container:focus {
58
103
  outline: none;
59
104
  }
105
+
60
106
  .lake-container::selection,
61
107
  .lake-container ::selection {
62
108
  color: inherit;
63
109
  background: var(--lake-selection-background-color);
64
110
  }
111
+
65
112
  .lake-container *,
66
113
  .lake-container ::before,
67
114
  .lake-container ::after {
68
115
  box-sizing: border-box;
69
116
  }
117
+
70
118
  .lake-container.lake-placeholder::before {
71
119
  position: absolute;
72
120
  top: 8px;
@@ -75,22 +123,28 @@
75
123
  content: attr(placeholder);
76
124
  pointer-events: none;
77
125
  }
126
+
78
127
  .lake-container bookmark {
79
128
  display: inline;
80
129
  }
130
+
81
131
  .lake-container p {
82
132
  margin: 0;
83
133
  padding: 0;
84
134
  margin-bottom: 8px;
85
135
  }
136
+
86
137
  .lake-container a {
138
+ font-weight: normal;
87
139
  color: var(--lake-link-color);
88
140
  text-decoration: none;
89
141
  }
142
+
90
143
  .lake-container a:hover {
91
144
  color: var(--lake-link-hover-color);
92
145
  text-decoration: underline;
93
146
  }
147
+
94
148
  .lake-drop-indication {
95
149
  position: absolute;
96
150
  height: 2px;
@@ -99,6 +153,7 @@
99
153
  pointer-events: none;
100
154
  display: none;
101
155
  }
156
+
102
157
  .lake-drop-indication svg {
103
158
  position: absolute;
104
159
  top: -7.5px;
@@ -109,32 +164,42 @@
109
164
  pointer-events: none;
110
165
  }
111
166
 
167
+ .lake-dark {
168
+ color-scheme: dark;
169
+ }
170
+
112
171
  .lake-container strong {
113
172
  font-weight: 600;
114
173
  }
174
+
115
175
  .lake-container i {
116
176
  font-style: italic;
117
177
  }
178
+
118
179
  .lake-container u {
119
180
  text-decoration: underline;
120
181
  }
182
+
121
183
  .lake-container s {
122
184
  text-decoration: line-through;
123
185
  }
186
+
124
187
  .lake-container sub {
125
188
  vertical-align: sub;
126
189
  font-size: 0.85em;
127
190
  }
191
+
128
192
  .lake-container sup {
129
193
  vertical-align: super;
130
194
  font-size: 0.85em;
131
195
  }
196
+
132
197
  .lake-container code {
133
198
  font-family: Consolas, Courier, monospace;
134
199
  font-size: 0.9em;
135
200
  border-radius: 3px;
136
201
  padding: 0.2em 0.4em;
137
- background-color: #0000000a;
202
+ background-color: var(--lake-code-background-color);
138
203
  }
139
204
 
140
205
  lake-box {
@@ -142,35 +207,44 @@ lake-box {
142
207
  padding: 0;
143
208
  text-indent: 0;
144
209
  }
210
+
145
211
  lake-box[type="inline"] {
146
212
  display: inline flex;
147
213
  }
214
+
148
215
  lake-box[type="block"] {
149
216
  display: block grid;
150
217
  grid-template-columns: 1px calc(100% - 2px) 1px;
151
218
  }
219
+
152
220
  lake-box .lake-box-strip {
153
221
  display: block;
154
222
  min-width: 1px;
155
223
  }
224
+
156
225
  lake-box[type="inline"] .lake-box-strip {
157
226
  align-self: flex-end;
158
227
  }
228
+
159
229
  lake-box[type="block"] .lake-box-strip {
160
230
  align-self: stretch;
161
231
  }
232
+
162
233
  lake-box .lake-box-strip ::selection {
163
234
  background: transparent;
164
235
  }
236
+
165
237
  lake-box .lake-box-container {
166
238
  display: block;
167
239
  align-self: center;
168
240
  }
241
+
169
242
  lake-box .lake-box-hovered .lake-corner-toolbar,
170
243
  lake-box .lake-box-focused .lake-corner-toolbar,
171
244
  lake-box .lake-box-activated .lake-corner-toolbar {
172
245
  display: flex;
173
246
  }
247
+
174
248
  lake-box .lake-box-focused .lake-resizer {
175
249
  display: block;
176
250
  }
@@ -181,7 +255,7 @@ button.lake-button {
181
255
  font-family: Arial;
182
256
  font-size: var(--lake-button-font-size);
183
257
  color: var(--lake-text-color);
184
- background-color: #fff;
258
+ background-color: transparent;
185
259
  padding: 0;
186
260
  margin: 0 1px;
187
261
  line-height: 0;
@@ -189,13 +263,16 @@ button.lake-button {
189
263
  cursor: pointer;
190
264
  user-select: none;
191
265
  }
266
+
192
267
  button.lake-button:focus-visible {
193
268
  outline: var(--lake-button-outline);
194
269
  }
270
+
195
271
  button.lake-button[disabled] {
196
272
  opacity: 0.25;
197
273
  cursor: default;
198
274
  }
275
+
199
276
  button.lake-button svg,
200
277
  button.lake-button img {
201
278
  display: inline-block;
@@ -203,39 +280,52 @@ button.lake-button img {
203
280
  height: 16px;
204
281
  margin: 6px;
205
282
  }
283
+
284
+ button.lake-button svg {
285
+ fill: var(--lake-text-color);
286
+ }
287
+
206
288
  button.lake-icon-button.lake-button-hovered {
207
- background-color: var(--lake-background-hover-color);
289
+ background-color: var(--lake-button-background-hover-color);
208
290
  }
291
+
209
292
  button.lake-icon-button.lake-button-selected {
210
- background-color: var(--lake-background-active-color);
293
+ background-color: var(--lake-button-background-active-color);
211
294
  }
295
+
212
296
  button.lake-text-button {
213
297
  background-color: transparent;
214
- border: 1px solid var(--lake-border-color);
298
+ border: 1px solid var(--lake-button-border-color);
215
299
  padding: 8px 16px;
216
300
  line-height: normal;
217
301
  }
302
+
218
303
  button.lake-text-button.lake-button-hovered {
219
- background-color: var(--lake-background-hover-color);
304
+ background-color: var(--lake-button-background-hover-color);
220
305
  }
306
+
221
307
  button.lake-text-button.lake-button-selected {
222
- background-color: var(--lake-background-active-color);
308
+ background-color: var(--lake-button-background-active-color);
223
309
  }
310
+
224
311
  button.lake-text-button svg {
225
312
  background-color: transparent;
226
313
  margin: 0 6px 0 0;
227
314
  vertical-align: middle;
228
315
  }
316
+
229
317
  button.lake-text-button span {
230
318
  display: inline-block;
231
319
  line-height: 16px;
232
320
  vertical-align: middle;
233
321
  }
322
+
234
323
  button.lake-primary-button {
235
324
  color: #fff;
236
325
  border-color: transparent;
237
326
  background-color: #5672cd;
238
327
  }
328
+
239
329
  button.lake-primary-button.lake-button-hovered {
240
330
  background-color: #3a5ccc;
241
331
  }
@@ -247,13 +337,14 @@ button.lake-primary-button.lake-button-hovered {
247
337
  font-size: var(--lake-button-font-size);
248
338
  user-select: none;
249
339
  }
340
+
250
341
  .lake-dropdown button.lake-dropdown-title {
251
342
  border-radius: 5px;
252
343
  border: 0;
253
344
  font-family: Arial;
254
345
  font-size: var(--lake-button-font-size);
255
346
  color: var(--lake-text-color);
256
- background-color: #fff;
347
+ background-color: transparent;
257
348
  padding: 0;
258
349
  display: flex;
259
350
  align-items: center;
@@ -261,18 +352,22 @@ button.lake-primary-button.lake-button-hovered {
261
352
  margin-right: 4px;
262
353
  cursor: pointer;
263
354
  }
355
+
264
356
  .lake-dropdown[disabled] button.lake-dropdown-title {
265
357
  opacity: 0.25;
266
358
  cursor: default;
267
359
  }
360
+
268
361
  .lake-dropdown.lake-list-dropdown button.lake-dropdown-title-hovered,
269
362
  .lake-dropdown.lake-icon-dropdown button.lake-dropdown-title-hovered,
270
363
  .lake-dropdown.lake-character-dropdown button.lake-dropdown-title-hovered {
271
- background-color: var(--lake-background-hover-color);
364
+ background-color: var(--lake-button-background-hover-color);
272
365
  }
366
+
273
367
  .lake-dropdown button.lake-dropdown-title.lake-dropdown-title-no-down {
274
368
  margin-right: 0;
275
369
  }
370
+
276
371
  .lake-dropdown .lake-dropdown-text {
277
372
  height: 16px;
278
373
  line-height: normal;
@@ -281,42 +376,60 @@ button.lake-primary-button.lake-button-hovered {
281
376
  white-space: nowrap;
282
377
  color: var(--lake-text-color);
283
378
  }
379
+
284
380
  .lake-dropdown .lake-dropdown-icon {
285
381
  position: relative;
286
382
  line-height: 0;
287
383
  border-radius: 5px 0 0 5px;
288
384
  }
385
+
289
386
  .lake-dropdown .lake-dropdown-icon-hovered {
290
- background-color: var(--lake-background-hover-color);
387
+ background-color: var(--lake-button-background-hover-color);
291
388
  }
389
+
292
390
  .lake-dropdown .lake-dropdown-icon svg,
293
391
  .lake-dropdown .lake-dropdown-icon img {
294
392
  width: 16px;
295
393
  height: 16px;
296
394
  margin: 6px 2px 6px 4px;
297
395
  }
396
+
397
+ .lake-dropdown .lake-dropdown-icon svg {
398
+ fill: var(--lake-text-color);
399
+ }
400
+
298
401
  .lake-dropdown.lake-color-dropdown .lake-dropdown-icon svg:last-child {
299
402
  position: absolute;
300
403
  left: 0;
301
404
  bottom: 0;
405
+ fill: none;
302
406
  }
407
+
303
408
  .lake-dropdown button.lake-dropdown-title-no-down .lake-dropdown-icon svg,
304
409
  .lake-dropdown button.lake-dropdown-title-no-down .lake-dropdown-icon img {
305
410
  margin: 6px;
306
411
  }
412
+
413
+ .lake-dropdown button.lake-dropdown-title-no-down .lake-dropdown-icon svg {
414
+ fill: var(--lake-text-color);
415
+ }
416
+
307
417
  .lake-dropdown .lake-dropdown-down-icon {
308
418
  line-height: 0;
309
419
  border-radius: 0 5px 5px 0;
310
420
  }
421
+
311
422
  .lake-dropdown .lake-dropdown-down-icon-hovered {
312
- background-color: var(--lake-background-hover-color);
423
+ background-color: var(--lake-button-background-hover-color);
313
424
  }
425
+
314
426
  .lake-dropdown .lake-dropdown-down-icon svg {
315
427
  width: 12px;
316
428
  height: 12px;
317
429
  margin: 8px 2px;
318
430
  fill: var(--lake-secondary-text-color);
319
431
  }
432
+
320
433
  /* menu */
321
434
  .lake-dropdown .lake-dropdown-menu,
322
435
  .lake-dropdown-menu {
@@ -329,15 +442,17 @@ button.lake-primary-button.lake-button-hovered {
329
442
  padding: 6px 0;
330
443
  border: 1px solid var(--lake-popup-border-color);
331
444
  border-radius: 5px;
332
- background-color: #fff;
445
+ background-color: var(--lake-popup-background-color);
333
446
  box-shadow: var(--lake-popup-shadow);
334
447
  user-select: none;
335
448
  display: none;
336
449
  }
450
+
337
451
  .lake-dropdown-menu.lake-dropdown-menu-with-scroll {
338
452
  overflow-y: scroll;
339
453
  scrollbar-width: thin;
340
454
  }
455
+
341
456
  .lake-dropdown .lake-dropdown-menu li,
342
457
  .lake-dropdown-menu li {
343
458
  display: flex;
@@ -345,87 +460,112 @@ button.lake-primary-button.lake-button-hovered {
345
460
  cursor: pointer;
346
461
  margin: 0;
347
462
  }
463
+
348
464
  /* list type */
349
465
  .lake-list-dropdown-menu li {
350
466
  padding: 6px 24px 6px 10px;
351
467
  }
468
+
352
469
  .lake-list-dropdown-menu li.lake-dropdown-item-hovered {
353
- background-color: var(--lake-background-hover-color);
470
+ background-color: var(--lake-button-background-hover-color);
354
471
  }
472
+
355
473
  .lake-list-dropdown-menu li.lake-dropdown-item-selected {
356
- background-color: var(--lake-background-active-color);
474
+ background-color: var(--lake-button-background-hover-color);
357
475
  }
476
+
358
477
  .lake-list-dropdown-menu li .lake-dropdown-menu-check {
359
478
  line-height: 0;
360
479
  visibility: hidden;
361
480
  }
481
+
362
482
  .lake-list-dropdown-menu li .lake-dropdown-menu-check svg {
363
483
  width: 12px;
364
484
  height: 12px;
485
+ fill: var(--lake-text-color);
365
486
  }
487
+
366
488
  .lake-list-dropdown-menu li .lake-dropdown-menu-icon {
367
489
  line-height: 0;
368
490
  margin-left: 10px;
369
491
  }
492
+
370
493
  .lake-list-dropdown-menu li .lake-dropdown-menu-icon svg {
371
494
  width: 16px;
372
495
  height: 16px;
496
+ fill: var(--lake-text-color);
373
497
  }
498
+
374
499
  .lake-list-dropdown-menu li .lake-dropdown-menu-text {
375
500
  margin-left: 10px;
376
501
  white-space: nowrap;
377
502
  }
503
+
378
504
  /* icon type */
379
505
  .lake-icon-dropdown-menu {
380
506
  flex-wrap: wrap;
381
507
  justify-content: center;
382
508
  }
509
+
383
510
  .lake-icon-dropdown-menu li {
384
511
  padding: 0;
385
512
  border-radius: 2px;
386
513
  }
514
+
387
515
  .lake-icon-dropdown-menu li.lake-dropdown-item-hovered {
388
- background-color: var(--lake-background-hover-color);
516
+ background-color: var(--lake-button-background-hover-color);
389
517
  }
518
+
390
519
  .lake-icon-dropdown-menu li.lake-dropdown-item-selected {
391
- background-color: var(--lake-background-active-color);
520
+ background-color: var(--lake-button-background-hover-color);
392
521
  }
522
+
393
523
  .lake-icon-dropdown-menu li .lake-dropdown-menu-check {
394
524
  display: none;
395
525
  }
526
+
396
527
  .lake-icon-dropdown-menu li .lake-dropdown-menu-icon {
397
528
  line-height: 0;
398
529
  margin: 5px;
399
530
  }
531
+
400
532
  .lake-icon-dropdown-menu li .lake-dropdown-menu-icon svg,
401
533
  .lake-icon-dropdown-menu li .lake-dropdown-menu-icon img {
402
534
  width: 32px;
403
535
  height: 32px;
404
536
  }
537
+
405
538
  .lake-icon-dropdown-menu li .lake-dropdown-menu-text {
406
539
  display: none;
407
540
  }
541
+
408
542
  /* character type */
409
543
  .lake-character-dropdown-menu {
410
544
  flex-wrap: wrap;
411
545
  justify-content: center;
412
546
  }
547
+
413
548
  .lake-character-dropdown-menu li {
414
549
  padding: 0;
415
550
  border-radius: 2px;
416
551
  }
552
+
417
553
  .lake-character-dropdown-menu li.lake-dropdown-item-hovered {
418
- background-color: var(--lake-background-hover-color);
554
+ background-color: var(--lake-button-background-hover-color);
419
555
  }
556
+
420
557
  .lake-character-dropdown-menu li.lake-dropdown-item-selected {
421
- background-color: var(--lake-background-active-color);
558
+ background-color: var(--lake-button-background-active-color);
422
559
  }
560
+
423
561
  .lake-character-dropdown-menu li .lake-dropdown-menu-check {
424
562
  display: none;
425
563
  }
564
+
426
565
  .lake-character-dropdown-menu li .lake-dropdown-menu-icon {
427
566
  display: none;
428
567
  }
568
+
429
569
  .lake-character-dropdown-menu li .lake-dropdown-menu-text {
430
570
  text-align: center;
431
571
  font-size: 24px;
@@ -433,21 +573,26 @@ button.lake-primary-button.lake-button-hovered {
433
573
  height: 42px;
434
574
  line-height: 42px;
435
575
  }
576
+
436
577
  /* color type */
437
578
  .lake-color-dropdown-menu {
438
579
  flex-wrap: wrap;
439
580
  justify-content: center;
440
581
  }
582
+
441
583
  .lake-color-dropdown-menu li {
442
584
  position: relative;
443
585
  padding: 0;
444
586
  }
587
+
445
588
  .lake-color-dropdown-menu li.lake-dropdown-item-hovered {
446
- background-color: var(--lake-background-hover-color);
589
+ background-color: var(--lake-button-background-hover-color);
447
590
  }
591
+
448
592
  .lake-color-dropdown-menu li.lake-dropdown-item-selected {
449
- background-color: var(--lake-background-active-color);
593
+ background-color: var(--lake-button-background-active-color);
450
594
  }
595
+
451
596
  .lake-color-dropdown-menu li .lake-dropdown-menu-check {
452
597
  position: absolute;
453
598
  top: 6px;
@@ -456,41 +601,50 @@ button.lake-primary-button.lake-button-hovered {
456
601
  line-height: 0;
457
602
  visibility: hidden;
458
603
  }
604
+
459
605
  .lake-color-dropdown-menu li .lake-dropdown-menu-check svg {
460
606
  width: 12px;
461
607
  height: 12px;
462
608
  fill: #fff;
463
609
  }
610
+
464
611
  .lake-color-dropdown-menu li[value^="#f" i] .lake-dropdown-menu-check svg,
465
612
  .lake-color-dropdown-menu li[value^="#e6" i] .lake-dropdown-menu-check svg {
466
613
  fill: #000;
467
614
  }
615
+
468
616
  .lake-color-dropdown-menu li .lake-dropdown-menu-icon {
469
617
  line-height: 0;
470
618
  }
619
+
471
620
  .lake-color-dropdown-menu li .lake-dropdown-menu-icon svg {
472
621
  width: 16px;
473
622
  height: 16px;
474
623
  margin: 3px 4px;
624
+ fill: var(--lake-text-color);
475
625
  }
626
+
476
627
  .lake-color-dropdown-menu li .lake-dropdown-menu-text {
477
628
  font-size: 0;
478
629
  box-sizing: content-box;
479
- border: 1px solid var(--lake-background-hover-color);
630
+ border: 1px solid var(--lake-button-background-hover-color);
480
631
  border-radius: 2px;
481
632
  width: 16px;
482
633
  height: 16px;
483
634
  margin: 3px;
484
635
  }
636
+
485
637
  .lake-color-dropdown-menu li:first-child {
486
638
  width: 100%;
487
639
  margin-left: 10px;
488
640
  margin-right: 10px;
489
641
  margin-bottom: 4px;
490
642
  }
643
+
491
644
  .lake-color-dropdown-menu li:first-child .lake-dropdown-menu-check {
492
645
  display: none;
493
646
  }
647
+
494
648
  .lake-color-dropdown-menu li:first-child .lake-dropdown-menu-text {
495
649
  width: 100%;
496
650
  font-size: var(--lake-button-font-size);
@@ -506,14 +660,17 @@ button.lake-primary-button.lake-button-hovered {
506
660
  line-height: normal;
507
661
  color: var(--lake-text-color);
508
662
  }
663
+
509
664
  .lake-popup *,
510
665
  .lake-popup ::before,
511
666
  .lake-popup ::after {
512
667
  box-sizing: border-box;
513
668
  }
669
+
514
670
  .lake-popup .lake-text-button {
515
671
  box-shadow: var(--lake-button-shadow);
516
672
  }
673
+
517
674
  .lake-popup input[type="text"] {
518
675
  font-family: var(--lake-font-family);
519
676
  font-size: var(--lake-popup-font-size);
@@ -522,13 +679,16 @@ button.lake-primary-button.lake-button-hovered {
522
679
  border: 1px solid var(--lake-input-border-color);
523
680
  padding: 4px 10px;
524
681
  }
682
+
525
683
  .lake-popup input[type="text"]:hover {
526
684
  border: 1px solid var(--lake-input-border-hover-color);
527
685
  }
686
+
528
687
  .lake-popup input[type="text"]:focus-visible {
529
688
  outline: var(--lake-input-outline);
530
689
  outline-offset: -2px;
531
690
  }
691
+
532
692
  .lake-popup .lake-row {
533
693
  padding-bottom: 8px;
534
694
  }
@@ -544,7 +704,7 @@ button.lake-primary-button.lake-button-hovered {
544
704
  margin: 0;
545
705
  padding: 4px 8px;
546
706
  width: fit-content;
547
- background-color: #fff;
707
+ background-color: var(--lake-popup-background-color);
548
708
  box-shadow: var(--lake-popup-shadow);
549
709
  display: none;
550
710
  max-height: 180px;
@@ -552,6 +712,7 @@ button.lake-primary-button.lake-button-hovered {
552
712
  scrollbar-width: thin;
553
713
  user-select: none;
554
714
  }
715
+
555
716
  .lake-menu .lake-menu-item {
556
717
  display: flex;
557
718
  align-items: center;
@@ -561,14 +722,16 @@ button.lake-primary-button.lake-button-hovered {
561
722
  border-radius: 5px;
562
723
  scroll-margin: 4px 0;
563
724
  }
725
+
564
726
  .lake-menu .lake-menu-item-selected {
565
- background-color: var(--lake-background-active-color);
727
+ background-color: var(--lake-button-background-active-color);
566
728
  }
567
729
 
568
730
  .lake-resizer {
569
731
  user-select: none;
570
732
  display: none;
571
733
  }
734
+
572
735
  .lake-resizer-top-left,
573
736
  .lake-resizer-top-right,
574
737
  .lake-resizer-bottom-left,
@@ -582,26 +745,31 @@ button.lake-primary-button.lake-button-hovered {
582
745
  border-radius: 6px;
583
746
  background-color: var(--lake-box-border-focus-color);
584
747
  }
748
+
585
749
  .lake-resizer-top-left {
586
750
  top: -5px;
587
751
  left: -5px;
588
752
  cursor: nwse-resize;
589
753
  }
754
+
590
755
  .lake-resizer-top-right {
591
756
  top: -5px;
592
757
  right: -5px;
593
758
  cursor: nesw-resize;
594
759
  }
760
+
595
761
  .lake-resizer-bottom-left {
596
762
  bottom: -5px;
597
763
  left: -5px;
598
764
  cursor: nesw-resize;
599
765
  }
766
+
600
767
  .lake-resizer-bottom-right {
601
768
  bottom: -5px;
602
769
  right: -5px;
603
770
  cursor: nwse-resize;
604
771
  }
772
+
605
773
  .lake-resizer-info {
606
774
  position: absolute;
607
775
  bottom: 8px;
@@ -630,6 +798,7 @@ button.lake-primary-button.lake-button-hovered {
630
798
  padding: 0 6px;
631
799
  display: none;
632
800
  }
801
+
633
802
  .lake-corner-toolbar button {
634
803
  border-radius: 5px;
635
804
  border: 0;
@@ -641,6 +810,7 @@ button.lake-primary-button.lake-button-hovered {
641
810
  cursor: pointer;
642
811
  user-select: none;
643
812
  }
813
+
644
814
  .lake-corner-toolbar button svg {
645
815
  fill: #fff;
646
816
  width: 16px;
@@ -665,26 +835,32 @@ button.lake-primary-button.lake-button-hovered {
665
835
  margin: 0;
666
836
  padding: 0;
667
837
  }
838
+
668
839
  .lake-container h1 {
669
840
  font-size: 36px;
670
841
  margin-bottom: 16px;
671
842
  }
843
+
672
844
  .lake-container h2 {
673
845
  font-size: 30px;
674
846
  margin-bottom: 14px;
675
847
  }
848
+
676
849
  .lake-container h3 {
677
850
  font-size: 24px;
678
851
  margin-bottom: 14px;
679
852
  }
853
+
680
854
  .lake-container h4 {
681
855
  font-size: 20px;
682
856
  margin-bottom: 12px;
683
857
  }
858
+
684
859
  .lake-container h5 {
685
860
  font-size: 18px;
686
861
  margin-bottom: 10px;
687
862
  }
863
+
688
864
  .lake-container h6 {
689
865
  font-size: 16px;
690
866
  margin-bottom: 8px;
@@ -697,89 +873,109 @@ button.lake-primary-button.lake-button-hovered {
697
873
  margin-bottom: 4px;
698
874
  padding: 0;
699
875
  }
876
+
700
877
  .lake-container ol lake-box[name="emoji"],
701
878
  .lake-container ul lake-box[name="emoji"] {
702
879
  vertical-align: middle;
703
880
  }
881
+
704
882
  .lake-container ol[indent="1"],
705
883
  .lake-container ul[indent="1"] {
706
884
  padding-left: 2em;
707
885
  }
886
+
708
887
  .lake-container ol[indent="2"],
709
888
  .lake-container ul[indent="2"] {
710
889
  padding-left: 4em;
711
890
  }
891
+
712
892
  .lake-container ol[indent="3"],
713
893
  .lake-container ul[indent="3"] {
714
894
  padding-left: 6em;
715
895
  }
896
+
716
897
  .lake-container ol[indent="4"],
717
898
  .lake-container ul[indent="4"] {
718
899
  padding-left: 8em;
719
900
  }
901
+
720
902
  .lake-container ol[indent="5"],
721
903
  .lake-container ul[indent="5"] {
722
904
  padding-left: 10em;
723
905
  }
906
+
724
907
  .lake-container ol[indent="6"],
725
908
  .lake-container ul[indent="6"] {
726
909
  padding-left: 12em;
727
910
  }
911
+
728
912
  .lake-container ol[indent="7"],
729
913
  .lake-container ul[indent="7"] {
730
914
  padding-left: 14em;
731
915
  }
916
+
732
917
  .lake-container ol[indent="8"],
733
918
  .lake-container ul[indent="8"] {
734
919
  padding-left: 16em;
735
920
  }
921
+
736
922
  .lake-container ol[indent="9"],
737
923
  .lake-container ul[indent="9"] {
738
924
  padding-left: 18em;
739
925
  }
926
+
740
927
  .lake-container ol[indent="10"],
741
928
  .lake-container ul[indent="10"] {
742
929
  padding-left: 20em;
743
930
  }
931
+
744
932
  .lake-container ol li,
745
933
  .lake-container ul li {
746
934
  margin-left: 20px;
747
935
  padding-left: 4px;
748
936
  }
937
+
749
938
  .lake-container ol li {
750
939
  list-style: decimal;
751
940
  }
941
+
752
942
  .lake-container ul li {
753
943
  list-style: disc;
754
944
  }
945
+
755
946
  .lake-container ol[indent="1"] li,
756
947
  .lake-container ol[indent="4"] li,
757
948
  .lake-container ol[indent="7"] li,
758
949
  .lake-container ol[indent="10"] li {
759
950
  list-style-type: lower-alpha;
760
951
  }
952
+
761
953
  .lake-container ol[indent="2"] li,
762
954
  .lake-container ol[indent="5"] li,
763
955
  .lake-container ol[indent="8"] li {
764
956
  list-style-type: lower-roman;
765
957
  }
958
+
766
959
  .lake-container ul[indent="1"] li,
767
960
  .lake-container ul[indent="4"] li,
768
961
  .lake-container ul[indent="7"] li,
769
962
  .lake-container ul[indent="10"] li {
770
963
  list-style-type: circle;
771
964
  }
965
+
772
966
  .lake-container ul[indent="2"] li,
773
967
  .lake-container ul[indent="5"] li,
774
968
  .lake-container ul[indent="8"] li {
775
969
  list-style-type: square;
776
970
  }
971
+
777
972
  .lake-container ul[type="checklist"] li {
778
973
  list-style: none;
779
974
  position: relative;
780
975
  margin-left: 0;
781
976
  padding-left: 24px;
782
977
  }
978
+
783
979
  .lake-container ul[type="checklist"] li::before {
784
980
  box-sizing: content-box;
785
981
  content: '';
@@ -790,14 +986,17 @@ button.lake-primary-button.lake-button-hovered {
790
986
  height: 16px;
791
987
  border-radius: 4px;
792
988
  }
989
+
793
990
  .lake-container ul[type="checklist"] li[value="true"]::before {
794
991
  border: 1px solid #1890ff;
795
992
  background-color: #1890ff;
796
993
  }
994
+
797
995
  .lake-container ul[type="checklist"] li[value="false"]::before {
798
996
  border: 1px solid var(--lake-border-color);
799
997
  background-color: #fff;
800
998
  }
999
+
801
1000
  .lake-container ul[type="checklist"] li::after {
802
1001
  box-sizing: content-box;
803
1002
  content: '';
@@ -813,9 +1012,11 @@ button.lake-primary-button.lake-button-hovered {
813
1012
  border-radius: 1px;
814
1013
  transform: rotate(45deg) scale(1) translate(-50%,-50%);
815
1014
  }
1015
+
816
1016
  .lake-container[contenteditable="true"] ul[type="checklist"] li::before {
817
1017
  cursor: pointer;
818
1018
  }
1019
+
819
1020
  .lake-container[contenteditable="true"] ul[type="checklist"] li::after {
820
1021
  cursor: pointer;
821
1022
  }
@@ -824,9 +1025,10 @@ button.lake-primary-button.lake-button-hovered {
824
1025
  margin: 0;
825
1026
  margin-bottom: 8px;
826
1027
  padding: 8px 12px;
827
- color: var(--lake-secondary-text-color);
828
- border-left: 4px solid #0505050f;
1028
+ color: var(--lake-blockquote-text-color);
1029
+ border-left: var(--lake-blockquote-border);
829
1030
  }
1031
+
830
1032
  .lake-container blockquote[type] {
831
1033
  margin: 16px 0;
832
1034
  padding: 16px 20px;
@@ -834,15 +1036,19 @@ button.lake-primary-button.lake-button-hovered {
834
1036
  border: 1px solid transparent;
835
1037
  border-radius: 8px;
836
1038
  }
1039
+
837
1040
  .lake-container blockquote[type="info"] {
838
1041
  background-color: #8e96aa24;
839
1042
  }
1043
+
840
1044
  .lake-container blockquote[type="tip"] {
841
1045
  background-color: #646cff24;
842
1046
  }
1047
+
843
1048
  .lake-container blockquote[type="warning"] {
844
1049
  background-color: #eab30824;
845
1050
  }
1051
+
846
1052
  .lake-container blockquote[type="danger"] {
847
1053
  background-color: #f43f5e24;
848
1054
  }
@@ -858,11 +1064,13 @@ button.lake-primary-button.lake-button-hovered {
858
1064
  flex-wrap: wrap;
859
1065
  align-items: center;
860
1066
  }
1067
+
861
1068
  .lake-toolbar *,
862
1069
  .lake-toolbar ::before,
863
1070
  .lake-toolbar ::after {
864
1071
  box-sizing: border-box;
865
1072
  }
1073
+
866
1074
  .lake-toolbar .lake-toolbar-divider {
867
1075
  width: 1px;
868
1076
  height: 20px;
@@ -870,9 +1078,11 @@ button.lake-primary-button.lake-button-hovered {
870
1078
  border-left: 1px solid var(--lake-border-color);
871
1079
  user-select: none;
872
1080
  }
1081
+
873
1082
  .lake-toolbar .lake-upload {
874
1083
  line-height: 0;
875
1084
  }
1085
+
876
1086
  .lake-toolbar .lake-upload input[type="file"] {
877
1087
  display: none;
878
1088
  }
@@ -882,14 +1092,15 @@ button.lake-primary-button.lake-button-hovered {
882
1092
  top: 0;
883
1093
  left: 0;
884
1094
  z-index: var(--lake-popup-z-index);
885
- border: 1px solid var(--lake-border-color);
1095
+ border: 1px solid var(--lake-popup-border-color);
886
1096
  border-radius: 5px;
887
- background-color: #fff;
1097
+ background-color: var(--lake-popup-background-color);
888
1098
  box-shadow: var(--lake-button-shadow);
889
1099
  padding: 4px;
890
1100
  display: flex;
891
1101
  align-items: center;
892
1102
  }
1103
+
893
1104
  .lake-floating-toolbar .lake-toolbar-divider {
894
1105
  width: 1px;
895
1106
  height: 20px;
@@ -905,20 +1116,24 @@ button.lake-primary-button.lake-button-hovered {
905
1116
  margin: 20px 0;
906
1117
  overflow: visible;
907
1118
  }
1119
+
908
1120
  .lake-container table tr,
909
1121
  .lake-container table tr:nth-child(n) {
910
1122
  border: 0;
911
1123
  background-color: transparent;
912
1124
  }
1125
+
913
1126
  .lake-container table td {
914
1127
  font-size: var(--lake-font-size);
915
1128
  padding: 8px 16px;
916
1129
  min-width: 33px;
917
1130
  border: 1px solid var(--lake-border-color);
918
1131
  }
1132
+
919
1133
  .lake-container table td p {
920
1134
  margin-bottom: 0;
921
1135
  }
1136
+
922
1137
  .lake-container table td.lake-td-focused {
923
1138
  outline: var(--lake-input-outline);
924
1139
  }
@@ -932,31 +1147,37 @@ button.lake-primary-button.lake-button-hovered {
932
1147
  border-radius: 5px;
933
1148
  padding: 16px;
934
1149
  width: fit-content;
935
- background-color: #fff;
1150
+ background-color: var(--lake-popup-background-color);
936
1151
  box-shadow: var(--lake-popup-shadow);
937
1152
  display: none;
938
1153
  }
1154
+
939
1155
  .lake-link-popup .lake-url-row {
940
1156
  display: flex;
941
1157
  align-items: center;
942
1158
  }
1159
+
943
1160
  .lake-link-popup .lake-button-row {
944
1161
  padding-top: 16px;
945
1162
  display: flex;
946
1163
  align-items: center;
947
1164
  justify-content: space-between;
948
1165
  }
1166
+
949
1167
  .lake-link-popup input[type="text"] {
950
1168
  width: 220px;
951
1169
  margin-right: 4px;
952
1170
  }
1171
+
953
1172
  .lake-link-popup button[name="copy"] svg:first-child {
954
1173
  display: inline;
955
1174
  }
1175
+
956
1176
  .lake-link-popup button[name="copy"] svg:nth-child(2) {
957
1177
  display: none;
958
1178
  fill: var(--lake-success-color);
959
1179
  }
1180
+
960
1181
  .lake-link-popup button[name="copy"] svg:last-child {
961
1182
  display: none;
962
1183
  fill: var(--lake-error-color);
@@ -965,24 +1186,30 @@ button.lake-primary-button.lake-button-hovered {
965
1186
  lake-box[name="hr"] {
966
1187
  margin-bottom: 8px;
967
1188
  }
1189
+
968
1190
  .lake-hr {
969
1191
  height: 21px;
970
1192
  display: flex;
971
1193
  align-items: center;
972
1194
  }
1195
+
973
1196
  .lake-container[contenteditable="true"] .lake-hr {
974
1197
  cursor: pointer;
975
1198
  }
1199
+
976
1200
  .lake-container[contenteditable="false"] .lake-hr {
977
1201
  cursor: default;
978
1202
  }
1203
+
979
1204
  .lake-container[contenteditable="true"] lake-box[name="hr"] .lake-box-hovered .lake-hr {
980
1205
  background-color: var(--lake-box-background-color);
981
1206
  }
1207
+
982
1208
  lake-box[name="hr"] .lake-box-selected .lake-hr,
983
1209
  lake-box[name="hr"] .lake-box-focused .lake-hr {
984
1210
  background-color: var(--lake-selection-background-color);
985
1211
  }
1212
+
986
1213
  .lake-hr hr {
987
1214
  width: 100%;
988
1215
  margin: 0;
@@ -991,62 +1218,109 @@ lake-box[name="hr"] .lake-box-focused .lake-hr {
991
1218
  border-top: 1px solid var(--lake-border-color);
992
1219
  }
993
1220
 
1221
+ /* custom properties */
1222
+ :root {
1223
+ --lake-code-highlight-keyword: #af00db;
1224
+ --lake-code-highlight-name: #444d56;
1225
+ --lake-code-highlight-function: #005cc5;
1226
+ --lake-code-highlight-constant: #0550ae;
1227
+ --lake-code-highlight-definition: #444d56;
1228
+ --lake-code-highlight-type: #0550ae;
1229
+ --lake-code-highlight-operator: #444d56;
1230
+ --lake-code-highlight-comment: #008000;
1231
+ --lake-code-highlight-heading: #000080;
1232
+ --lake-code-highlight-boolean: #0550ae;
1233
+ --lake-code-highlight-string: #a31515;
1234
+ --lake-code-highlight-number: #098658;
1235
+ --lake-code-highlight-invalid: #cd3131;
1236
+ }
1237
+
1238
+ .lake-dark {
1239
+ --lake-code-highlight-keyword: #b392f0;
1240
+ --lake-code-highlight-name: #e1e4e8;
1241
+ --lake-code-highlight-function: #61afef;
1242
+ --lake-code-highlight-constant: #9ecBff;
1243
+ --lake-code-highlight-definition: #e1e4e8;
1244
+ --lake-code-highlight-type: #9ecBff;
1245
+ --lake-code-highlight-operator: #e1e4e8;
1246
+ --lake-code-highlight-comment: #6a9955;
1247
+ --lake-code-highlight-heading: #569cd6;
1248
+ --lake-code-highlight-boolean: #9ecBff;
1249
+ --lake-code-highlight-string: #ce9178;
1250
+ --lake-code-highlight-number: #b5cea8;
1251
+ --lake-code-highlight-invalid: #f44747;
1252
+ }
1253
+
994
1254
  /* CodeMirror */
995
1255
  .cm-editor {
996
1256
  font-size: 14px;
997
1257
  border-radius: 5px;
1258
+ color: var(--lake-text-color);
998
1259
  background-color: var(--lake-box-background-color);
999
1260
  }
1261
+
1000
1262
  .cm-editor.cm-focused {
1001
1263
  outline: none;
1002
1264
  }
1265
+
1003
1266
  .cm-editor .cm-content {
1004
1267
  font-family: Consolas, Courier, monospace;
1005
1268
  margin: 16px 20px;
1269
+ caret-color: var(--lake-text-color);
1006
1270
  }
1007
1271
 
1008
1272
  /* code block */
1009
1273
  lake-box[name="codeBlock"] {
1010
1274
  margin-bottom: 16px;
1011
1275
  }
1276
+
1012
1277
  lake-box[name="codeBlock"] .lake-box-focused .lake-code-block,
1013
1278
  lake-box[name="codeBlock"] .lake-box-activated .lake-code-block {
1014
1279
  border-color: var(--lake-box-border-color);
1015
1280
  }
1281
+
1016
1282
  .lake-code-block {
1017
1283
  position: relative;
1018
1284
  border: 1px solid transparent;
1019
1285
  border-radius: 5px;
1020
1286
  }
1287
+
1021
1288
  .lake-code-block .lake-dropdown {
1022
1289
  position: absolute;
1023
1290
  top: 2px;
1024
1291
  inset-inline-end: 2px;
1025
1292
  display: none;
1026
1293
  }
1294
+
1027
1295
  lake-box[name="codeBlock"] .lake-box-focused .lake-code-block .lake-dropdown,
1028
1296
  lake-box[name="codeBlock"] .lake-box-activated .lake-code-block .lake-dropdown {
1029
1297
  display: block;
1030
1298
  }
1299
+
1031
1300
  .lake-code-block .lake-dropdown .lake-dropdown-title {
1032
1301
  margin: 0;
1033
1302
  padding-right: 4px;
1034
1303
  background-color: var(--lake-box-background-color);
1035
1304
  }
1305
+
1036
1306
  .lake-code-block .lake-dropdown.lake-list-dropdown .lake-dropdown-title-hovered {
1037
- background-color: var(--lake-background-active-color);
1307
+ background-color: var(--lake-button-background-active-color);
1038
1308
  }
1309
+
1039
1310
  .lake-code-block .lake-dropdown .lake-dropdown-text {
1040
1311
  margin: 3px 6px;
1041
1312
  }
1313
+
1042
1314
  .lake-code-block .lake-dropdown .lake-dropdown-down-icon svg {
1043
1315
  margin: 5px 2px;
1044
1316
  }
1317
+
1045
1318
  .lake-code-block .lake-dropdown .lake-dropdown-menu {
1046
1319
  top: 24px;
1047
1320
  left: auto;
1048
1321
  right: 0;
1049
1322
  }
1323
+
1050
1324
  .lake-code-block-error {
1051
1325
  font-size: 14px;
1052
1326
  color: var(--lake-error-color);
@@ -1055,38 +1329,51 @@ lake-box[name="codeBlock"] .lake-box-activated .lake-code-block .lake-dropdown {
1055
1329
  padding: 16px 20px;
1056
1330
  }
1057
1331
 
1332
+ :root {
1333
+ --lake-image-placeholder-background-color: #fafafa;
1334
+ }
1335
+
1336
+ .lake-dark {
1337
+ --lake-image-placeholder-background-color: #343434;
1338
+ }
1339
+
1058
1340
  .lake-image-placeholder {
1059
1341
  display: flex;
1060
1342
  align-items: center;
1061
1343
  justify-content: center;
1062
1344
  border: 1px solid transparent;
1063
- background-color: #fafafa;
1345
+ background-color: var(--lake-image-placeholder-background-color);
1064
1346
  border-radius: 4px;
1065
1347
  width: 100%;
1066
1348
  height: 100%;
1067
1349
  }
1350
+
1068
1351
  .lake-image-placeholder svg {
1069
- fill: #d9d9d9;
1070
1352
  width: 50%;
1071
1353
  max-width: 64px;
1072
1354
  height: 50%;
1073
1355
  max-height: 64px;
1356
+ fill: #d9d9d9;
1074
1357
  }
1358
+
1075
1359
  .lake-image {
1076
1360
  position: relative;
1077
1361
  line-height: 0;
1078
1362
  border: 1px solid transparent;
1079
1363
  border-radius: 4px;
1080
1364
  }
1365
+
1081
1366
  .lake-image .lake-image-img {
1082
1367
  border: 0;
1083
1368
  border-radius: 4px;
1084
1369
  width: 100%;
1085
1370
  height: 100%;
1086
1371
  }
1372
+
1087
1373
  lake-box[name="image"] .lake-box-focused .lake-image {
1088
1374
  border-color: var(--lake-box-border-focus-color);
1089
1375
  }
1376
+
1090
1377
  .lake-image-caption {
1091
1378
  -webkit-user-modify: read-write-plaintext-only;
1092
1379
  position: relative;
@@ -1098,9 +1385,11 @@ lake-box[name="image"] .lake-box-focused .lake-image {
1098
1385
  padding-bottom: 8px;
1099
1386
  display: none;
1100
1387
  }
1388
+
1101
1389
  .lake-image-caption:focus {
1102
1390
  outline: 0;
1103
1391
  }
1392
+
1104
1393
  .lake-image-caption.lake-placeholder::before {
1105
1394
  position: absolute;
1106
1395
  top: 2px;
@@ -1109,10 +1398,12 @@ lake-box[name="image"] .lake-box-focused .lake-image {
1109
1398
  content: attr(placeholder);
1110
1399
  pointer-events: none;
1111
1400
  }
1401
+
1112
1402
  /* uploading status */
1113
1403
  .lake-image-uploading .lake-image-img {
1114
1404
  opacity: 0.5;
1115
1405
  }
1406
+
1116
1407
  .lake-image .lake-progress {
1117
1408
  position: absolute;
1118
1409
  bottom: 8px;
@@ -1125,6 +1416,7 @@ lake-box[name="image"] .lake-box-focused .lake-image {
1125
1416
  align-items: center;
1126
1417
  padding: 0 6px;
1127
1418
  }
1419
+
1128
1420
  .lake-image .lake-progress svg {
1129
1421
  fill: #fff;
1130
1422
  width: 16px;
@@ -1132,45 +1424,55 @@ lake-box[name="image"] .lake-box-focused .lake-image {
1132
1424
  margin: 6px;
1133
1425
  animation: lakerotate 1s linear 0s infinite normal none;
1134
1426
  }
1427
+
1135
1428
  .lake-image .lake-progress .lake-percent {
1136
1429
  font-size: 14px;
1137
1430
  color: #fff;
1138
1431
  margin: 6px;
1139
1432
  white-space: nowrap;
1140
1433
  }
1434
+
1141
1435
  /* error status */
1142
1436
  .lake-image .lake-error {
1143
1437
  padding: 16px;
1144
1438
  }
1439
+
1145
1440
  .lake-image.lake-image-error {
1146
1441
  border: 1px solid var(--lake-box-border-color);
1147
1442
  }
1443
+
1148
1444
  .lake-image.lake-image-error ::selection {
1149
1445
  background-color: transparent;
1150
1446
  }
1447
+
1151
1448
  lake-box[name="image"] .lake-box-selected .lake-image-error {
1152
1449
  background-color: var(--lake-selection-background-color);
1153
1450
  }
1451
+
1154
1452
  .lake-image .lake-error-icon {
1155
1453
  line-height: 0;
1156
1454
  text-align: center;
1157
1455
  margin-bottom: 8px;
1158
1456
  }
1457
+
1159
1458
  .lake-image .lake-error-icon svg {
1160
1459
  fill: var(--lake-error-color);
1161
1460
  width: 64px;
1162
1461
  height: 64px;
1163
1462
  }
1463
+
1164
1464
  .lake-image .lake-error-name {
1165
1465
  color: var(--lake-error-color);
1166
1466
  line-height: normal;
1167
1467
  }
1468
+
1168
1469
  /* full screen */
1169
1470
  .lake-pswp .pswp__button svg {
1170
1471
  fill: #fff;
1171
1472
  width: 24px;
1172
1473
  height: 24px;
1173
1474
  }
1475
+
1174
1476
  .lake-pswp .pswp__img,
1175
1477
  .lake-pswp.pswp--click-to-zoom.pswp--zoom-allowed .pswp__img,
1176
1478
  .lake-pswp.pswp--click-to-zoom.pswp--zoomed-in .pswp__img:active {
@@ -1184,15 +1486,20 @@ lake-box[name="image"] .lake-box-selected .lake-image-error {
1184
1486
  line-height: 0;
1185
1487
  border: 1px solid transparent;
1186
1488
  }
1489
+
1187
1490
  lake-box[name="video"] .lake-box-hovered .lake-resizer {
1188
1491
  display: block;
1189
1492
  }
1493
+
1190
1494
  .lake-video .lake-video-form {
1191
1495
  padding: 16px;
1192
1496
  line-height: normal;
1497
+ color: var(--lake-text-color);
1193
1498
  border: 1px solid var(--lake-box-border-color);
1499
+ background-color: var(--lake-box-background-color);
1194
1500
  border-radius: 4px;
1195
1501
  }
1502
+
1196
1503
  .lake-video input[type="text"] {
1197
1504
  font-family: var(--lake-font-family);
1198
1505
  font-size: 14px;
@@ -1202,24 +1509,30 @@ lake-box[name="video"] .lake-box-hovered .lake-resizer {
1202
1509
  padding: 4px 10px;
1203
1510
  width: 100%;
1204
1511
  }
1512
+
1205
1513
  .lake-video input[type="text"]:hover {
1206
1514
  border: 1px solid var(--lake-input-border-hover-color);
1207
1515
  }
1516
+
1208
1517
  .lake-video input[type="text"]:focus-visible {
1209
1518
  outline: var(--lake-input-outline);
1210
1519
  outline-offset: -2px;
1211
1520
  }
1521
+
1212
1522
  .lake-video .lake-row {
1213
1523
  padding-bottom: 8px;
1214
1524
  }
1525
+
1215
1526
  .lake-video .lake-desc-row {
1216
1527
  padding-top: 8px;
1217
1528
  padding-bottom: 16px;
1218
1529
  color: var(--lake-secondary-text-color);
1219
1530
  }
1531
+
1220
1532
  .lake-video .lake-button-row {
1221
1533
  padding-top: 16px;
1222
1534
  }
1535
+
1223
1536
  .lake-video .lake-button-row button {
1224
1537
  width: 100%;
1225
1538
  }
@@ -1232,61 +1545,77 @@ lake-box[name="video"] .lake-box-hovered .lake-resizer {
1232
1545
  border: 1px solid transparent;
1233
1546
  border-radius: 4px;
1234
1547
  }
1548
+
1235
1549
  .lake-container[contenteditable="true"] .lake-file {
1236
1550
  cursor: default;
1237
1551
  user-select: none;
1238
1552
  }
1553
+
1239
1554
  .lake-container[contenteditable="false"] .lake-file {
1240
1555
  cursor: pointer;
1241
1556
  user-select: auto;
1242
1557
  }
1558
+
1243
1559
  lake-box[name="file"] .lake-box-strip {
1244
1560
  align-self: center;
1245
1561
  }
1562
+
1246
1563
  .lake-file .lake-file-info {
1247
1564
  display: flex;
1248
1565
  align-items: center;
1249
1566
  }
1567
+
1250
1568
  .lake-file .lake-file-type svg {
1251
1569
  width: 16px;
1252
1570
  height: 16px;
1253
1571
  margin: 4px;
1572
+ fill: var(--lake-text-color);
1254
1573
  }
1574
+
1255
1575
  .lake-file .lake-file-name {
1256
1576
  line-height: 24px;
1257
1577
  margin-right: 6px;
1258
1578
  color: var(--lake-link-color);
1259
1579
  }
1580
+
1260
1581
  lake-box[name="file"] .lake-box-hovered .lake-file {
1261
1582
  background-color: var(--lake-box-background-color);
1262
1583
  }
1584
+
1263
1585
  lake-box[name="file"] .lake-box-selected .lake-file {
1264
1586
  background-color: var(--lake-selection-background-color);
1265
1587
  }
1588
+
1266
1589
  lake-box[name="file"] .lake-box-focused .lake-file {
1267
1590
  background-color: var(--lake-selection-background-color);
1268
1591
  }
1592
+
1269
1593
  /* uploading status */
1270
1594
  .lake-file-uploading .lake-progress {
1271
1595
  display: flex;
1272
1596
  align-items: center;
1273
1597
  margin-right: 6px;
1274
1598
  }
1599
+
1275
1600
  .lake-file-uploading .lake-progress svg {
1276
1601
  width: 16px;
1277
1602
  height: 16px;
1278
1603
  margin: 4px;
1279
1604
  animation: lakerotate 1s linear 0s infinite normal none;
1605
+ fill: var(--lake-text-color);
1280
1606
  }
1607
+
1281
1608
  .lake-file-uploading .lake-progress .lake-percent {
1282
1609
  line-height: 24px;
1283
1610
  margin-left: 4px;
1284
1611
  white-space: nowrap;
1285
1612
  }
1613
+
1286
1614
  /* error status */
1287
1615
  .lake-file-error .lake-file-type svg {
1288
1616
  fill: var(--lake-error-color);
1289
1617
  }
1618
+
1290
1619
  .lake-file-error .lake-file-name {
1291
1620
  color: var(--lake-error-color);
1292
1621
  }
@@ -1296,12 +1625,14 @@ lake-box[name="file"] .lake-box-focused .lake-file {
1296
1625
  border: 1px solid transparent;
1297
1626
  border-radius: 2px;
1298
1627
  }
1628
+
1299
1629
  .lake-emoji img {
1300
1630
  border: 0;
1301
1631
  border-radius: 2px;
1302
1632
  width: 32px;
1303
1633
  height: 32px;
1304
1634
  }
1635
+
1305
1636
  lake-box[name="emoji"] .lake-box-focused .lake-emoji {
1306
1637
  border-color: var(--lake-selection-background-color);
1307
1638
  background-color: var(--lake-selection-background-color);
@@ -1313,40 +1644,49 @@ lake-box[name="emoji"] .lake-box-focused .lake-emoji {
1313
1644
  border: 1px solid transparent;
1314
1645
  border-radius: 4px;
1315
1646
  }
1647
+
1316
1648
  .lake-container[contenteditable="true"] .lake-equation {
1317
1649
  user-select: none;
1318
1650
  }
1651
+
1319
1652
  lake-box[name="equation"] .lake-box-strip {
1320
1653
  align-self: center;
1321
1654
  }
1655
+
1322
1656
  lake-box[name="equation"] .lake-box-selected .lake-equation {
1323
1657
  background-color: var(--lake-selection-background-color);
1324
1658
  }
1659
+
1325
1660
  lake-box[name="equation"] .lake-box-focused .lake-equation {
1326
1661
  background-color: var(--lake-selection-background-color);
1327
1662
  }
1663
+
1328
1664
  .lake-equation .lake-equation-view {
1329
1665
  padding: 0 6px;
1330
1666
  }
1667
+
1331
1668
  .lake-equation .lake-equation-form {
1332
1669
  position: absolute;
1333
1670
  top: 28px;
1334
1671
  left: 0;
1335
1672
  z-index: 1;
1336
- border: 1px solid var(--lake-border-color);
1673
+ border: 1px solid var(--lake-popup-border-color);
1337
1674
  border-radius: 5px;
1338
1675
  padding: 16px;
1339
1676
  width: fit-content;
1340
- background-color: #fff;
1677
+ background-color: var(--lake-popup-background-color);
1341
1678
  box-shadow: var(--lake-popup-shadow);
1342
1679
  display: none;
1343
1680
  }
1681
+
1344
1682
  lake-box[name="equation"] .lake-box-focused .lake-equation-form,
1345
1683
  lake-box[name="equation"] .lake-box-activated .lake-equation-form {
1346
1684
  display: flex;
1347
1685
  }
1686
+
1348
1687
  .lake-equation .lake-equation-form textarea {
1349
1688
  border: 0;
1689
+ background-color: var(--lake-popup-background-color);
1350
1690
  font-family: Consolas, Courier, monospace;
1351
1691
  font-size: 14px;
1352
1692
  color: var(--lake-text-color);
@@ -1357,15 +1697,18 @@ lake-box[name="equation"] .lake-box-activated .lake-equation-form {
1357
1697
  resize: none;
1358
1698
  scrollbar-width: thin;
1359
1699
  }
1700
+
1360
1701
  .lake-equation .lake-equation-form textarea:focus-visible {
1361
1702
  outline: 0;
1362
1703
  }
1704
+
1363
1705
  .lake-equation .lake-equation-form .lake-button-row {
1364
1706
  display: flex;
1365
1707
  flex-direction: column;
1366
1708
  justify-content: space-between;
1367
1709
  align-items: flex-end;
1368
1710
  }
1711
+
1369
1712
  /* error status */
1370
1713
  .lake-equation-error {
1371
1714
  padding: 0 6px;
@@ -1377,21 +1720,25 @@ lake-box[name="equation"] .lake-box-activated .lake-equation-form {
1377
1720
  .lake-mention-menu {
1378
1721
  max-height: 208px;
1379
1722
  }
1723
+
1380
1724
  .lake-mention-menu .lake-mention-avatar {
1381
1725
  margin-inline-end: 8px;
1382
1726
  line-height: 0;
1383
1727
  }
1728
+
1384
1729
  .lake-mention-menu .lake-mention-avatar img {
1385
1730
  border-radius: 100%;
1386
1731
  width: 32px;
1387
1732
  height: 32px;
1388
1733
  }
1734
+
1389
1735
  .lake-mention-menu .lake-mention-nickname {
1390
1736
  margin-inline-end: 4px;
1391
1737
  font-weight: 500;
1392
1738
  color: var(--lake-text-color);
1393
1739
  white-space: nowrap;
1394
1740
  }
1741
+
1395
1742
  .lake-mention-menu .lake-mention-name {
1396
1743
  color: #8c8c8c;
1397
1744
  }
@@ -1400,46 +1747,69 @@ lake-box[name="equation"] .lake-box-activated .lake-equation-form {
1400
1747
  border: 1px solid transparent;
1401
1748
  border-radius: 2px;
1402
1749
  }
1750
+
1403
1751
  .lake-container[readonly="false"] .lake-mention a:hover {
1404
1752
  color: var(--lake-link-color);
1405
1753
  text-decoration: none;
1406
1754
  }
1755
+
1407
1756
  lake-box[name="mention"] .lake-box-focused .lake-mention {
1408
1757
  border-color: var(--lake-selection-background-color);
1409
1758
  background-color: var(--lake-selection-background-color);
1410
1759
  }
1411
1760
 
1761
+ :root {
1762
+ --lake-slash-icon-border-color: #d9d9d9;
1763
+ --lake-slash-icon-background-color: #fff;
1764
+ }
1765
+
1766
+ .lake-dark {
1767
+ --lake-slash-icon-border-color: #3d444d;
1768
+ --lake-slash-icon-background-color: #252525;
1769
+ }
1770
+
1412
1771
  .lake-slash-menu {
1413
1772
  max-height: 332px;
1414
1773
  }
1774
+
1415
1775
  .lake-slash-menu .lake-menu-item {
1416
1776
  height: 54px;
1417
1777
  }
1778
+
1418
1779
  .lake-slash-menu .lake-menu-item input[type="file"] {
1419
1780
  display: none;
1420
1781
  }
1782
+
1421
1783
  .lake-slash-menu .lake-slash-icon {
1422
1784
  margin-inline-end: 8px;
1423
1785
  border-radius: 5px;
1424
- border: 1px solid var(--lake-border-color);
1425
- background-color: #fff;
1786
+ border: 1px solid var(--lake-slash-icon-border-color);
1787
+ background-color: var(--lake-slash-icon-background-color);
1426
1788
  line-height: 0;
1427
1789
  }
1790
+
1428
1791
  .lake-slash-menu .lake-slash-icon svg,
1429
1792
  .lake-slash-menu .lake-slash-icon img {
1430
1793
  width: 32px;
1431
1794
  height: 32px;
1432
1795
  margin: 6px;
1433
1796
  }
1797
+
1798
+ .lake-slash-menu .lake-slash-icon svg {
1799
+ fill: var(--lake-text-color);
1800
+ }
1801
+
1434
1802
  .lake-slash-menu .lake-slash-text {
1435
1803
  display: flex;
1436
1804
  flex-direction: column;
1437
1805
  justify-content: center;
1438
1806
  }
1807
+
1439
1808
  .lake-slash-menu .lake-slash-title {
1440
1809
  font-weight: 500;
1441
1810
  color: var(--lake-text-color);
1442
1811
  }
1812
+
1443
1813
  .lake-slash-menu .lake-slash-description {
1444
1814
  color: #8c8c8c;
1445
1815
  }