lakelib 0.1.13 → 0.1.15

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/README.md CHANGED
@@ -6,13 +6,13 @@
6
6
 
7
7
  ---
8
8
 
9
- Lake is a rich text editor for the web. It has a good user experience and provides easy-to-use programming interface to allow further extension.
9
+ Lake is a rich text editor for the web. It aims to be a user-friendly editor, and provides an easy-to-use programming interface to allow further extension.
10
10
 
11
11
  [Examples](https://lakejs.org/examples/) · [Getting started](https://lakejs.org/guide/) · [Reference](https://lakejs.org/reference/)
12
12
 
13
13
  ## Development
14
14
 
15
- To build Lake or change source code, you need to download the repository and start a development server that contains an HTTP service and real-time bundling.
15
+ To build Lake or modify its source code, you need to download the repository and start a development server that includes an HTTP service and real-time bundling.
16
16
 
17
17
  ``` bash
18
18
  # Clone the repository
@@ -23,11 +23,11 @@ pnpm install
23
23
  pnpm dev
24
24
  ```
25
25
 
26
- You can now view all demos by visiting `http://localhost:8080/examples/`.
26
+ You can now view all the demos by visiting `http://localhost:8080/examples/`.
27
27
 
28
28
  ## Running tests
29
29
 
30
- Lake uses a lot of browser APIs and therefore it requires a real browser environment to run the tests. You can open `http://localhost:8080/tests/` to run all test cases visibly, or execute `pnpm test` command in your console to run the tests in headless mode.
30
+ Lake depends on a lot of browser APIs and ao needs a real browser environment for running the test cases. You can run all tests visibly by visiting `http://localhost:8080/tests/`, or execute `pnpm test` command to run the tests in headless mode.
31
31
 
32
32
  ## License
33
33
 
package/dist/lake.css CHANGED
@@ -32,7 +32,7 @@
32
32
  --input-outline: 2px solid #69b1ff;
33
33
  }
34
34
 
35
- @keyframes lakeRotate {
35
+ @keyframes lakerotate {
36
36
  0% {
37
37
  transform: rotate(0);
38
38
  }
@@ -76,14 +76,6 @@
76
76
  padding: 0;
77
77
  margin-bottom: 8px;
78
78
  }
79
- .lake-container a {
80
- color: var(--link-color);
81
- text-decoration: none;
82
- }
83
- .lake-container a:hover {
84
- color: var(--link-hover-color);
85
- text-decoration: underline;
86
- }
87
79
  .lake-drop-indication {
88
80
  position: absolute;
89
81
  height: 2px;
@@ -130,6 +122,104 @@
130
122
  background-color: #0000000a;
131
123
  }
132
124
 
125
+ lake-box {
126
+ margin: 0;
127
+ padding: 0;
128
+ text-indent: 0;
129
+ grid-template-columns: 1px 1fr 1px;
130
+ }
131
+ lake-box[type="inline"] {
132
+ display: inline grid;
133
+ }
134
+ lake-box[type="block"] {
135
+ display: block grid;
136
+ }
137
+ lake-box .lake-box-strip {
138
+ display: block;
139
+ min-width: 1px;
140
+ }
141
+ lake-box[type="inline"] .lake-box-strip {
142
+ align-self: flex-end;
143
+ }
144
+ lake-box[type="block"] .lake-box-strip {
145
+ align-self: stretch;
146
+ }
147
+ lake-box .lake-box-strip ::selection {
148
+ background: transparent;
149
+ }
150
+ lake-box .lake-box-container {
151
+ display: block;
152
+ align-self: center;
153
+ }
154
+ /* box button group */
155
+ lake-box .lake-box-hovered .lake-button-group,
156
+ lake-box .lake-box-focused .lake-button-group,
157
+ lake-box .lake-box-activated .lake-button-group {
158
+ display: flex;
159
+ }
160
+ lake-box .lake-box-focused .lake-resizer {
161
+ display: block;
162
+ }
163
+ lake-box .lake-button-group {
164
+ position: absolute;
165
+ top: 8px;
166
+ right: 8px;
167
+ z-index: 2;
168
+ border-radius: 4px;
169
+ background-color: rgba(0, 0, 0, .4);
170
+ line-height: 0;
171
+ display: flex;
172
+ align-items: center;
173
+ padding: 0 6px;
174
+ display: none;
175
+ }
176
+ lake-box .lake-button-group button {
177
+ border-radius: 5px;
178
+ border: 0;
179
+ color: var(--text-color);
180
+ background-color: transparent;
181
+ padding: 0;
182
+ margin: 0;
183
+ line-height: 0;
184
+ cursor: pointer;
185
+ user-select: none;
186
+ }
187
+ lake-box .lake-button-group button svg {
188
+ fill: #fff;
189
+ width: 16px;
190
+ height: 16px;
191
+ margin: 6px;
192
+ }
193
+ /* box toolbar */
194
+ .lake-box-toolbar {
195
+ position: absolute;
196
+ top: 0;
197
+ left: 0;
198
+ z-index: 1;
199
+ box-sizing: content-box;
200
+ border: 1px solid var(--border-color);
201
+ border-radius: 5px;
202
+ font-family: var(--font-family);
203
+ font-size: 14px;
204
+ font-weight: normal;
205
+ line-height: normal;
206
+ color: var(--text-color);
207
+ background-color: #fff;
208
+ box-shadow: 0 2px 0 #00000005;
209
+ padding: 4px;
210
+ display: flex;
211
+ flex-wrap: wrap;
212
+ align-items: center;
213
+ }
214
+ .lake-box-toolbar .lake-toolbar-divider {
215
+ box-sizing: content-box;
216
+ width: 1px;
217
+ height: 20px;
218
+ margin: 0 4px;
219
+ border-left: 1px solid var(--border-color);
220
+ user-select: none;
221
+ }
222
+
133
223
  button.lake-button {
134
224
  box-sizing: content-box;
135
225
  border-radius: 5px;
@@ -219,7 +309,8 @@ button.lake-primary-button.lake-button-hovered {
219
309
  opacity: 0.25;
220
310
  cursor: default;
221
311
  }
222
- .lake-dropdown.lake-list-dropdown button.lake-dropdown-title-hovered {
312
+ .lake-dropdown.lake-list-dropdown button.lake-dropdown-title-hovered,
313
+ .lake-dropdown.lake-icon-dropdown button.lake-dropdown-title-hovered {
223
314
  background-color: var(--background-hover-color);
224
315
  }
225
316
  .lake-dropdown button.lake-dropdown-title.lake-dropdown-title-no-down {
@@ -295,6 +386,7 @@ button.lake-primary-button.lake-button-hovered {
295
386
  cursor: pointer;
296
387
  margin: 0;
297
388
  }
389
+ /* list type */
298
390
  .lake-dropdown .lake-list-dropdown-menu li {
299
391
  padding: 6px 24px 6px 10px;
300
392
  }
@@ -324,10 +416,40 @@ button.lake-primary-button.lake-button-hovered {
324
416
  margin-left: 10px;
325
417
  white-space: nowrap;
326
418
  }
419
+ /* icon type */
420
+ .lake-dropdown .lake-icon-dropdown-menu {
421
+ flex-wrap: wrap;
422
+ justify-content: center;
423
+ }
424
+ .lake-dropdown .lake-icon-dropdown-menu li {
425
+ padding: 0;
426
+ border-radius: 2px;
427
+ }
428
+ .lake-dropdown .lake-icon-dropdown-menu li.lake-dropdown-item-hovered {
429
+ background-color: var(--background-hover-color);
430
+ }
431
+ .lake-dropdown .lake-icon-dropdown-menu li.lake-dropdown-item-selected {
432
+ background-color: var(--background-active-color);
433
+ }
434
+ .lake-dropdown .lake-icon-dropdown-menu li .lake-dropdown-menu-check {
435
+ display: none;
436
+ }
437
+ .lake-dropdown .lake-icon-dropdown-menu li .lake-dropdown-menu-icon {
438
+ line-height: 0;
439
+ margin: 5px;
440
+ }
441
+ .lake-dropdown .lake-icon-dropdown-menu li .lake-dropdown-menu-icon svg,
442
+ .lake-dropdown .lake-icon-dropdown-menu li .lake-dropdown-menu-icon img {
443
+ width: 32px;
444
+ height: 32px;
445
+ }
446
+ .lake-dropdown .lake-icon-dropdown-menu li .lake-dropdown-menu-text {
447
+ display: none;
448
+ }
449
+ /* color type */
327
450
  .lake-dropdown .lake-color-dropdown-menu {
328
451
  flex-wrap: wrap;
329
452
  justify-content: center;
330
- width: 296px;
331
453
  }
332
454
  .lake-dropdown .lake-color-dropdown-menu li {
333
455
  position: relative;
@@ -472,60 +594,6 @@ button.lake-primary-button.lake-button-hovered {
472
594
  display: none;
473
595
  }
474
596
 
475
- .lake-toolbar {
476
- font-family: var(--font-family);
477
- font-size: 14px;
478
- font-weight: normal;
479
- line-height: normal;
480
- padding: 4px;
481
- display: flex;
482
- flex-wrap: wrap;
483
- align-items: center;
484
- }
485
- .lake-toolbar .lake-toolbar-divider {
486
- box-sizing: content-box;
487
- width: 1px;
488
- height: 20px;
489
- margin: 0 4px;
490
- border-left: 1px solid var(--border-color);
491
- user-select: none;
492
- }
493
- .lake-toolbar .lake-upload {
494
- line-height: 0;
495
- }
496
- .lake-toolbar .lake-upload input[type="file"] {
497
- display: none;
498
- }
499
-
500
- .lake-box-toolbar {
501
- position: absolute;
502
- top: 0;
503
- left: 0;
504
- z-index: 1;
505
- box-sizing: content-box;
506
- border: 1px solid var(--border-color);
507
- border-radius: 5px;
508
- font-family: var(--font-family);
509
- font-size: 14px;
510
- font-weight: normal;
511
- line-height: normal;
512
- color: var(--text-color);
513
- background-color: #fff;
514
- box-shadow: 0 2px 0 #00000005;
515
- padding: 4px;
516
- display: flex;
517
- flex-wrap: wrap;
518
- align-items: center;
519
- }
520
- .lake-box-toolbar .lake-toolbar-divider {
521
- box-sizing: content-box;
522
- width: 1px;
523
- height: 20px;
524
- margin: 0 4px;
525
- border-left: 1px solid var(--border-color);
526
- user-select: none;
527
- }
528
-
529
597
  .lake-container.lake-format-painter {
530
598
  /* file: ../svg/format-painter-cursor.svg */
531
599
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='20' viewBox='0 0 600 400'%3E%3Cpath fill='none' d='M397 401H1V1h600v400H397m27.39-160.456v-37.606h5.963c41.821 0 83.642.024 125.463-.016 10.848-.01 17.325-6 17.358-16.286.096-30.823.1-61.648 0-92.471-.034-10.554-5.94-16.103-16.674-16.16-6.45-.035-12.899-.007-19.657-.007 0-8.783.063-17.08-.018-25.374-.079-7.94-3.319-11.204-11.29-11.207-73.81-.03-147.621-.034-221.432.004-8.106.004-11.091 3.142-11.096 11.293-.02 32.99-.02 65.98-.003 98.97.005 8.202 3.26 11.461 11.504 11.463 73.644.015 147.289.016 220.933-.002 8.157-.002 11.373-3.312 11.393-11.649.036-14.662.003-29.324.02-43.986.002-1.608.14-3.216.215-4.84h11.502v75.804h-5.843c-41.487 0-82.975-.005-124.462.003-12.796.002-18.147 5.394-18.162 18.306-.017 14.662.002 29.324-.015 43.987-.002 1.432-.153 2.865-.249 4.53-5.076 0-9.73.089-14.38-.027-3.776-.095-5.384 1.436-5.371 5.34.099 29.489-.097 58.98.155 88.468.142 16.617 14.312 30.632 30.552 30.954 17.736.352 32.858-12.285 33.16-29.098.542-30.313.202-60.641.302-90.963.011-3.525-1.706-4.728-4.922-4.686-3.832.05-7.676-.172-11.493.067-3.036.19-3.824-1.148-3.452-4.81M98.997 123.5v81.255H76.999v22.088h21.982c0 2.045.005 3.674 0 5.303-.087 25.83-.49 51.664-.091 77.487.143 9.23-2.38 16.953-7.836 24.049-.913 1.187-1.723 2.452-2.59 3.675-9.838 13.893-23.103 21.722-40.24 22.51-4.767.218-9.553.032-14.914.032v22.282c32.478 3.01 58.566-8.283 76.789-36.428 17.756 26.721 48.899 40.773 78.248 36.027l-1.083-21.66c-2.256 0-3.75-.08-5.232.012-21.104 1.302-37.87-6.871-50.84-23.287-6.506-8.233-10.772-16.802-10.401-28.137.833-25.47.26-50.985.26-76.482v-5.482h21.96v-22.25h-21.96v-5.966c0-32.329.294-64.663-.185-96.985-.141-9.484 1.949-17.494 7.541-25.066 12.268-16.61 27.766-26.975 49.095-26.868 3.12.015 6.24.002 10.04.002V27.314c-15.008-.802-29.72-.048-43.6 7.157-13.625 7.073-25.309 16.192-33.954 29.838-8.595-13.434-19.139-23.646-33.21-30.154-14.041-6.495-28.642-7.867-43.307-6.781V49.62c4.253 0 7.742.003 11.23 0 7.756-.006 14.966 1.724 22.189 4.873 10.95 4.774 18.144 12.992 24.784 22.4 5.426 7.69 8.207 15.646 7.43 25.118-.555 6.787-.107 13.657-.107 21.489z'/%3E%3Cpath fill='%23020202' d='M424.39 241.051c-.371 3.156.417 4.494 3.453 4.304 3.817-.239 7.661-.017 11.493-.067 3.216-.042 4.933 1.161 4.922 4.686-.1 30.322.24 60.65-.303 90.963-.3 16.813-15.423 29.45-33.159 29.098-16.24-.322-30.41-14.337-30.552-30.954-.252-29.488-.056-58.98-.155-88.469-.013-3.903 1.595-5.434 5.371-5.34 4.65.117 9.304.028 14.38.028.096-1.665.247-3.098.249-4.53.017-14.663-.002-29.325.015-43.987.015-12.912 5.366-18.304 18.162-18.306 41.487-.008 82.975-.003 124.462-.003h5.843V102.67H537.07c-.075 1.624-.213 3.232-.215 4.84-.017 14.662.016 29.324-.02 43.986-.02 8.337-3.236 11.647-11.393 11.649-73.644.018-147.289.017-220.933.002-8.244-.002-11.5-3.261-11.504-11.462-.016-32.99-.017-65.98.003-98.97.005-8.152 2.99-11.29 11.096-11.294 73.81-.038 147.622-.034 221.433-.004 7.97.003 11.21 3.266 11.289 11.207.081 8.295.018 16.59.018 25.374 6.758 0 13.208-.028 19.657.006 10.734.058 16.64 5.607 16.674 16.16.1 30.824.096 61.649 0 92.472-.033 10.286-6.51 16.275-17.358 16.286-41.821.04-83.642.016-125.463.016h-5.962v38.113z'/%3E%3Cpath fill='%23040404' d='M98.997 123c0-7.332-.448-14.202.108-20.989.776-9.472-2.005-17.429-7.431-25.118-6.64-9.408-13.834-17.626-24.784-22.4-7.223-3.15-14.433-4.879-22.189-4.873-3.488.003-6.977 0-11.23 0V27.374c14.665-1.086 29.266.286 43.307 6.78 14.071 6.51 24.615 16.72 33.21 30.155 8.645-13.646 20.33-22.765 33.954-29.838 13.88-7.205 28.592-7.959 43.6-7.157V49.61c-3.8 0-6.92.013-10.04-.002-21.329-.107-36.827 10.259-49.095 26.868-5.592 7.572-7.682 15.582-7.541 25.066.479 32.322.185 64.656.186 96.985v5.966h21.958v22.25h-21.958v5.482c0 25.497.572 51.013-.261 76.482-.37 11.335 3.895 19.904 10.4 28.137 12.97 16.416 29.737 24.589 50.84 23.287 1.483-.092 2.977-.012 5.233-.012l1.083 21.66c-29.349 4.746-60.492-9.306-78.248-36.027-18.223 28.145-44.31 39.438-76.79 36.428v-22.282c5.362 0 10.148.186 14.914-.033 17.138-.787 30.403-8.616 40.242-22.509.866-1.223 1.676-2.488 2.589-3.675 5.455-7.096 7.979-14.82 7.836-24.05-.4-25.822.004-51.656.09-77.486.006-1.63 0-3.258 0-5.303H77v-22.088h21.997V123z'/%3E%3C/svg%3E") 2 2, text;
@@ -568,6 +636,57 @@ button.lake-primary-button.lake-button-hovered {
568
636
  margin-bottom: 8px;
569
637
  }
570
638
 
639
+ .lake-container a {
640
+ color: var(--link-color);
641
+ text-decoration: none;
642
+ }
643
+ .lake-container a:hover {
644
+ color: var(--link-hover-color);
645
+ text-decoration: underline;
646
+ }
647
+ .lake-link-popup {
648
+ position: absolute;
649
+ top: 0;
650
+ left: 0;
651
+ z-index: 1;
652
+ box-sizing: content-box;
653
+ border: 1px solid var(--border-color);
654
+ border-radius: 5px;
655
+ padding: 16px;
656
+ width: fit-content;
657
+ font-family: var(--font-family);
658
+ font-size: 14px;
659
+ color: var(--text-color);
660
+ background-color: #fff;
661
+ box-shadow: var(--popup-shadow);
662
+ display: none;
663
+ }
664
+ .lake-link-popup .lake-url-row {
665
+ display: flex;
666
+ align-items: center;
667
+ }
668
+ .lake-link-popup .lake-button-row {
669
+ padding-top: 16px;
670
+ display: flex;
671
+ align-items: center;
672
+ justify-content: space-between;
673
+ }
674
+ .lake-link-popup input[type="text"] {
675
+ width: 200px;
676
+ margin-right: 4px;
677
+ }
678
+ .lake-link-popup button[name="copy"] svg:first-child {
679
+ display: inline;
680
+ }
681
+ .lake-link-popup button[name="copy"] svg:nth-child(2) {
682
+ display: none;
683
+ fill: var(--success-color);
684
+ }
685
+ .lake-link-popup button[name="copy"] svg:last-child {
686
+ display: none;
687
+ fill: var(--error-color);
688
+ }
689
+
571
690
  .lake-container ol,
572
691
  .lake-container ul {
573
692
  list-style: none;
@@ -735,74 +854,6 @@ button.lake-primary-button.lake-button-hovered {
735
854
  border: 1px solid var(--border-color);
736
855
  }
737
856
 
738
- lake-box {
739
- margin: 0;
740
- padding: 0;
741
- text-indent: 0;
742
- grid-template-columns: 1px 1fr 1px;
743
- }
744
- lake-box[type="inline"] {
745
- display: inline grid;
746
- }
747
- lake-box[type="block"] {
748
- display: block grid;
749
- }
750
- lake-box .lake-box-strip {
751
- display: block;
752
- min-width: 1px;
753
- }
754
- lake-box[type="inline"] .lake-box-strip {
755
- align-self: flex-end;
756
- }
757
- lake-box[type="block"] .lake-box-strip {
758
- align-self: stretch;
759
- }
760
- lake-box .lake-box-strip ::selection {
761
- background: transparent;
762
- }
763
- lake-box .lake-box-container {
764
- display: block;
765
- align-self: center;
766
- }
767
- lake-box .lake-box-hovered .lake-button-group,
768
- lake-box .lake-box-focused .lake-button-group,
769
- lake-box .lake-box-activated .lake-button-group {
770
- display: flex;
771
- }
772
- lake-box .lake-box-focused .lake-resizer {
773
- display: block;
774
- }
775
- lake-box .lake-button-group {
776
- position: absolute;
777
- top: 8px;
778
- right: 8px;
779
- z-index: 2;
780
- border-radius: 4px;
781
- background-color: rgba(0, 0, 0, .4);
782
- line-height: 0;
783
- display: flex;
784
- align-items: center;
785
- padding: 0 6px;
786
- display: none;
787
- }
788
- lake-box .lake-button-group button {
789
- border-radius: 5px;
790
- border: 0;
791
- color: var(--text-color);
792
- background-color: transparent;
793
- padding: 0;
794
- margin: 0;
795
- line-height: 0;
796
- cursor: pointer;
797
- user-select: none;
798
- }
799
- lake-box .lake-button-group button svg {
800
- fill: #fff;
801
- width: 16px;
802
- height: 16px;
803
- margin: 6px;
804
- }
805
-
806
857
  lake-box[name="hr"] {
807
858
  margin-bottom: 8px;
808
859
  }
@@ -832,57 +883,6 @@ lake-box[name="hr"] .lake-box-focused .lake-hr {
832
883
  border-top: 1px solid var(--border-color);
833
884
  }
834
885
 
835
- .lake-video {
836
- position: relative;
837
- font-size: 14px;
838
- font-weight: normal;
839
- line-height: 0;
840
- box-sizing: content-box;
841
- border: 1px solid transparent;
842
- }
843
- lake-box[name="video"] .lake-box-hovered .lake-resizer {
844
- display: block;
845
- }
846
- .lake-video .lake-video-form {
847
- box-sizing: content-box;
848
- padding: 16px;
849
- line-height: normal;
850
- border: 1px solid var(--box-border-color);
851
- border-radius: 4px;
852
- }
853
- .lake-video input[type="text"] {
854
- box-sizing: border-box;
855
- font-family: var(--font-family);
856
- font-size: 14px;
857
- color: var(--text-color);
858
- border-radius: 5px;
859
- border: 1px solid var(--input-border-color);
860
- padding: 4px 10px;
861
- width: 100%;
862
- }
863
- .lake-video input[type="text"]:hover {
864
- border: 1px solid var(--input-border-hover-color);
865
- }
866
- .lake-video input[type="text"]:focus-visible {
867
- outline: var(--input-outline);
868
- outline-offset: -2px;
869
- }
870
- .lake-video .lake-row {
871
- padding-bottom: 8px;
872
- }
873
- .lake-video .lake-desc-row {
874
- padding-top: 8px;
875
- padding-bottom: 16px;
876
- color: var(--secondary-text-color);
877
- }
878
- .lake-video .lake-button-row {
879
- padding-top: 16px;
880
- }
881
- .lake-video .lake-button-row button {
882
- box-sizing: border-box;
883
- width: 100%;
884
- }
885
-
886
886
  /* CodeMirror */
887
887
  .cm-editor {
888
888
  font-size: 14px;
@@ -1006,7 +1006,7 @@ lake-box[name="image"] .lake-box-focused .lake-image {
1006
1006
  width: 16px;
1007
1007
  height: 16px;
1008
1008
  margin: 6px;
1009
- animation: lakeRotate 1s linear 0s infinite normal none;
1009
+ animation: lakerotate 1s linear 0s infinite normal none;
1010
1010
  }
1011
1011
  .lake-image .lake-progress .lake-percent {
1012
1012
  font-size: 14px;
@@ -1053,6 +1053,57 @@ lake-box[name="image"] .lake-box-selected .lake-image-error {
1053
1053
  cursor: pointer;
1054
1054
  }
1055
1055
 
1056
+ .lake-video {
1057
+ position: relative;
1058
+ font-size: 14px;
1059
+ font-weight: normal;
1060
+ line-height: 0;
1061
+ box-sizing: content-box;
1062
+ border: 1px solid transparent;
1063
+ }
1064
+ lake-box[name="video"] .lake-box-hovered .lake-resizer {
1065
+ display: block;
1066
+ }
1067
+ .lake-video .lake-video-form {
1068
+ box-sizing: content-box;
1069
+ padding: 16px;
1070
+ line-height: normal;
1071
+ border: 1px solid var(--box-border-color);
1072
+ border-radius: 4px;
1073
+ }
1074
+ .lake-video input[type="text"] {
1075
+ box-sizing: border-box;
1076
+ font-family: var(--font-family);
1077
+ font-size: 14px;
1078
+ color: var(--text-color);
1079
+ border-radius: 5px;
1080
+ border: 1px solid var(--input-border-color);
1081
+ padding: 4px 10px;
1082
+ width: 100%;
1083
+ }
1084
+ .lake-video input[type="text"]:hover {
1085
+ border: 1px solid var(--input-border-hover-color);
1086
+ }
1087
+ .lake-video input[type="text"]:focus-visible {
1088
+ outline: var(--input-outline);
1089
+ outline-offset: -2px;
1090
+ }
1091
+ .lake-video .lake-row {
1092
+ padding-bottom: 8px;
1093
+ }
1094
+ .lake-video .lake-desc-row {
1095
+ padding-top: 8px;
1096
+ padding-bottom: 16px;
1097
+ color: var(--secondary-text-color);
1098
+ }
1099
+ .lake-video .lake-button-row {
1100
+ padding-top: 16px;
1101
+ }
1102
+ .lake-video .lake-button-row button {
1103
+ box-sizing: border-box;
1104
+ width: 100%;
1105
+ }
1106
+
1056
1107
  .lake-file {
1057
1108
  position: relative;
1058
1109
  font-size: 16px;
@@ -1103,7 +1154,7 @@ lake-box[name="file"] .lake-box-focused .lake-file {
1103
1154
  width: 16px;
1104
1155
  height: 16px;
1105
1156
  margin: 4px;
1106
- animation: lakeRotate 1s linear 0s infinite normal none;
1157
+ animation: lakerotate 1s linear 0s infinite normal none;
1107
1158
  }
1108
1159
  .lake-file-uploading .lake-progress .lake-percent {
1109
1160
  line-height: 24px;
@@ -1118,47 +1169,46 @@ lake-box[name="file"] .lake-box-focused .lake-file {
1118
1169
  color: var(--error-color);
1119
1170
  }
1120
1171
 
1121
- .lake-link-popup {
1122
- position: absolute;
1123
- top: 0;
1124
- left: 0;
1125
- z-index: 1;
1172
+ .lake-emoji {
1173
+ line-height: 0;
1126
1174
  box-sizing: content-box;
1127
- border: 1px solid var(--border-color);
1128
- border-radius: 5px;
1129
- padding: 16px;
1130
- width: fit-content;
1131
- font-family: var(--font-family);
1132
- font-size: 14px;
1133
- color: var(--text-color);
1134
- background-color: #fff;
1135
- box-shadow: var(--popup-shadow);
1136
- display: none;
1175
+ border: 1px solid transparent;
1176
+ border-radius: 2px;
1137
1177
  }
1138
- .lake-link-popup .lake-url-row {
1139
- display: flex;
1140
- align-items: center;
1178
+ .lake-emoji img {
1179
+ border: 0;
1180
+ border-radius: 2px;
1181
+ width: 32px;
1182
+ height: 32px;
1141
1183
  }
1142
- .lake-link-popup .lake-button-row {
1143
- padding-top: 16px;
1184
+ lake-box[name="emoji"] .lake-box-focused .lake-emoji {
1185
+ border-color: var(--selection-background-color);
1186
+ background-color: var(--selection-background-color);
1187
+ }
1188
+
1189
+ .lake-toolbar {
1190
+ font-family: var(--font-family);
1191
+ font-size: 14px;
1192
+ font-weight: normal;
1193
+ line-height: normal;
1194
+ padding: 4px;
1144
1195
  display: flex;
1196
+ flex-wrap: wrap;
1145
1197
  align-items: center;
1146
- justify-content: space-between;
1147
1198
  }
1148
- .lake-link-popup input[type="text"] {
1149
- width: 200px;
1150
- margin-right: 4px;
1151
- }
1152
- .lake-link-popup button[name="copy"] svg:first-child {
1153
- display: inline;
1199
+ .lake-toolbar .lake-toolbar-divider {
1200
+ box-sizing: content-box;
1201
+ width: 1px;
1202
+ height: 20px;
1203
+ margin: 0 4px;
1204
+ border-left: 1px solid var(--border-color);
1205
+ user-select: none;
1154
1206
  }
1155
- .lake-link-popup button[name="copy"] svg:nth-child(2) {
1156
- display: none;
1157
- fill: var(--success-color);
1207
+ .lake-toolbar .lake-upload {
1208
+ line-height: 0;
1158
1209
  }
1159
- .lake-link-popup button[name="copy"] svg:last-child {
1210
+ .lake-toolbar .lake-upload input[type="file"] {
1160
1211
  display: none;
1161
- fill: var(--error-color);
1162
1212
  }
1163
1213
 
1164
1214
  /*! PhotoSwipe main CSS by Dmytro Semenov | photoswipe.com */