lakelib 0.0.2 → 0.0.3

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
@@ -20,14 +20,16 @@
20
20
  --box-border-color: #d9d9d9;
21
21
  --box-border-focus-color: #1677ff;
22
22
  --box-border-active-color: #faad14;
23
+ --box-background-color: #f6f8fa;
23
24
  /* button */
24
25
  --button-shadow: 0 2px 0 #00000005;
26
+ --button-outline: 2px solid #69b1ff;
25
27
  /* popup */
26
28
  --popup-shadow: 0 6px 16px 0 #00000014, 0 3px 6px -4px #0000001f, 0 9px 28px 8px #0000000d;
27
29
  /* input form */
28
30
  --input-border-color: #d9d9d9;
29
31
  --input-border-hover-color: #69b1ff;
30
- --input-border-active-color: #1677ff;
32
+ --input-outline: 2px solid #69b1ff;
31
33
  }
32
34
 
33
35
  .lake-container {
@@ -55,7 +57,6 @@
55
57
  .lake-container a {
56
58
  color: var(--link-color);
57
59
  text-decoration: none;
58
- outline: none;
59
60
  }
60
61
  .lake-container a:hover {
61
62
  color: var(--link-hover-color);
@@ -90,6 +91,265 @@
90
91
  background-color: #0000000a;
91
92
  }
92
93
 
94
+ .lake-button {
95
+ border-radius: 5px;
96
+ border: 0;
97
+ font-family: var(--font-family);
98
+ font-size: 14px;
99
+ color: var(--text-color);
100
+ background-color: #fff;
101
+ padding: 0;
102
+ margin: 0 1px;
103
+ line-height: 0;
104
+ cursor: pointer;
105
+ user-select: none;
106
+ }
107
+ .lake-button:focus-visible {
108
+ outline: var(--button-outline);
109
+ }
110
+ .lake-button[disabled] {
111
+ opacity: 0.25;
112
+ cursor: default;
113
+ }
114
+ .lake-button svg {
115
+ width: 16px;
116
+ height: 16px;
117
+ margin: 6px;
118
+ }
119
+ .lake-icon-button.lake-button-hovered {
120
+ background-color: var(--background-hover-color);
121
+ }
122
+ .lake-icon-button.lake-button-selected {
123
+ background-color: var(--background-active-color);
124
+ }
125
+ .lake-text-button {
126
+ background-color: transparent;
127
+ border: 1px solid var(--border-color);
128
+ padding: 8px 16px;
129
+ }
130
+ .lake-text-button.lake-button-hovered {
131
+ background-color: var(--background-hover-color);
132
+ }
133
+ .lake-text-button.lake-button-selected {
134
+ background-color: var(--background-active-color);
135
+ }
136
+ .lake-text-button svg {
137
+ background-color: transparent;
138
+ margin: 0 6px 0 0;
139
+ vertical-align: middle;
140
+ }
141
+ .lake-text-button span {
142
+ display: inline-block;
143
+ line-height: 16px;
144
+ vertical-align: middle;
145
+ }
146
+
147
+ .lake-dropdown {
148
+ position: relative;
149
+ font-family: var(--font-family);
150
+ color: var(--text-color);
151
+ font-size: 14px;
152
+ user-select: none;
153
+ }
154
+ .lake-dropdown .lake-dropdown-title {
155
+ display: flex;
156
+ align-items: center;
157
+ justify-content: space-between;
158
+ padding: 0;
159
+ margin-right: 4px;
160
+ border-radius: 5px;
161
+ border: 0;
162
+ font-size: 14px;
163
+ background-color: #fff;
164
+ cursor: pointer;
165
+ }
166
+ .lake-dropdown[disabled] .lake-dropdown-title {
167
+ opacity: 0.25;
168
+ cursor: default;
169
+ }
170
+ .lake-dropdown.lake-list-dropdown .lake-dropdown-title-hovered {
171
+ background-color: var(--background-hover-color);
172
+ }
173
+ .lake-dropdown .lake-dropdown-title.lake-dropdown-title-no-down {
174
+ margin-right: 0;
175
+ }
176
+ .lake-dropdown .lake-dropdown-text {
177
+ height: 16px;
178
+ margin: 6px;
179
+ overflow: hidden;
180
+ white-space: nowrap;
181
+ color: var(--text-color);
182
+ }
183
+ .lake-dropdown .lake-dropdown-icon {
184
+ position: relative;
185
+ line-height: 0;
186
+ border-radius: 5px 0 0 5px;
187
+ }
188
+ .lake-dropdown .lake-dropdown-icon-hovered {
189
+ background-color: var(--background-hover-color);
190
+ }
191
+ .lake-dropdown .lake-dropdown-icon svg,
192
+ .lake-dropdown .lake-dropdown-icon img {
193
+ width: 16px;
194
+ height: 16px;
195
+ margin: 6px 2px 6px 4px;
196
+ }
197
+ .lake-dropdown.lake-color-dropdown .lake-dropdown-icon svg:last-child {
198
+ position: absolute;
199
+ left: 0;
200
+ bottom: 0;
201
+ }
202
+ .lake-dropdown .lake-dropdown-title-no-down .lake-dropdown-icon svg,
203
+ .lake-dropdown .lake-dropdown-title-no-down .lake-dropdown-icon img {
204
+ margin: 6px;
205
+ }
206
+ .lake-dropdown .lake-dropdown-down-icon {
207
+ line-height: 0;
208
+ border-radius: 0 5px 5px 0;
209
+ }
210
+ .lake-dropdown .lake-dropdown-down-icon-hovered {
211
+ background-color: var(--background-hover-color);
212
+ }
213
+ .lake-dropdown .lake-dropdown-down-icon svg {
214
+ width: 12px;
215
+ height: 12px;
216
+ margin: 8px 2px;
217
+ fill: var(--secondary-text-color);
218
+ }
219
+ .lake-dropdown .lake-dropdown-menu {
220
+ position: absolute;
221
+ top: 30px;
222
+ left: 0;
223
+ z-index: 1;
224
+ list-style: none;
225
+ margin: 0;
226
+ padding: 6px 0;
227
+ border: 1px solid var(--border-color);
228
+ border-radius: 5px;
229
+ color: var(--text-color);
230
+ background-color: #fff;
231
+ box-shadow: var(--popup-shadow);
232
+ display: none;
233
+ }
234
+ .lake-dropdown .lake-dropdown-menu li {
235
+ display: flex;
236
+ align-items: center;
237
+ cursor: pointer;
238
+ }
239
+ .lake-dropdown .lake-list-dropdown-menu li {
240
+ margin: 0;
241
+ padding: 6px 24px 6px 10px;
242
+ }
243
+ .lake-dropdown .lake-list-dropdown-menu li.lake-dropdown-item-hovered {
244
+ background-color: var(--background-hover-color);
245
+ }
246
+ .lake-dropdown .lake-list-dropdown-menu li.lake-dropdown-item-selected {
247
+ background-color: var(--background-active-color);
248
+ }
249
+ .lake-dropdown .lake-list-dropdown-menu li .lake-dropdown-menu-check {
250
+ line-height: 0;
251
+ visibility: hidden;
252
+ }
253
+ .lake-dropdown .lake-list-dropdown-menu li .lake-dropdown-menu-check svg {
254
+ width: 12px;
255
+ height: 12px;
256
+ }
257
+ .lake-dropdown .lake-list-dropdown-menu li .lake-dropdown-menu-icon {
258
+ line-height: 0;
259
+ margin-left: 10px;
260
+ }
261
+ .lake-dropdown .lake-list-dropdown-menu li .lake-dropdown-menu-icon svg {
262
+ width: 16px;
263
+ height: 16px;
264
+ }
265
+ .lake-dropdown .lake-list-dropdown-menu li .lake-dropdown-menu-text {
266
+ margin-left: 10px;
267
+ white-space: nowrap;
268
+ }
269
+ .lake-dropdown .lake-color-dropdown-menu {
270
+ flex-wrap: wrap;
271
+ justify-content: center;
272
+ width: 296px;
273
+ }
274
+ .lake-dropdown .lake-color-dropdown-menu li {
275
+ position: relative;
276
+ padding: 0;
277
+ }
278
+ .lake-dropdown .lake-color-dropdown-menu li.lake-dropdown-item-hovered {
279
+ background-color: var(--background-hover-color);
280
+ }
281
+ .lake-dropdown .lake-color-dropdown-menu li.lake-dropdown-item-selected {
282
+ background-color: var(--background-active-color);
283
+ }
284
+ .lake-dropdown .lake-color-dropdown-menu li .lake-dropdown-menu-check {
285
+ position: absolute;
286
+ top: 6px;
287
+ left: 6px;
288
+ z-index: 1;
289
+ line-height: 0;
290
+ visibility: hidden;
291
+ }
292
+ .lake-dropdown .lake-color-dropdown-menu li .lake-dropdown-menu-check svg {
293
+ width: 12px;
294
+ height: 12px;
295
+ fill: #fff;
296
+ }
297
+ .lake-dropdown .lake-color-dropdown-menu li[value^="#f" i] .lake-dropdown-menu-check svg,
298
+ .lake-dropdown .lake-color-dropdown-menu li[value^="#e6" i] .lake-dropdown-menu-check svg {
299
+ fill: #000;
300
+ }
301
+ .lake-dropdown .lake-color-dropdown-menu li .lake-dropdown-menu-icon {
302
+ line-height: 0;
303
+ }
304
+ .lake-dropdown .lake-color-dropdown-menu li .lake-dropdown-menu-icon svg {
305
+ width: 16px;
306
+ height: 16px;
307
+ margin: 3px 4px;
308
+ }
309
+ .lake-dropdown .lake-color-dropdown-menu li .lake-dropdown-menu-text {
310
+ font-size: 0;
311
+ border: 1px solid var(--background-hover-color);
312
+ border-radius: 2px;
313
+ width: 16px;
314
+ height: 16px;
315
+ margin: 3px;
316
+ }
317
+ .lake-dropdown .lake-color-dropdown-menu li:first-child {
318
+ width: 100%;
319
+ margin-left: 10px;
320
+ margin-right: 10px;
321
+ margin-bottom: 4px;
322
+ }
323
+ .lake-dropdown .lake-color-dropdown-menu li:first-child .lake-dropdown-menu-check {
324
+ display: none;
325
+ }
326
+ .lake-dropdown .lake-color-dropdown-menu li:first-child .lake-dropdown-menu-text {
327
+ width: 100%;
328
+ font-size: 14px;
329
+ border: 1px solid transparent;
330
+ height: auto;
331
+ }
332
+
333
+ .lake-popup input[type="text"] {
334
+ font-family: var(--font-family);
335
+ font-size: 14px;
336
+ color: var(--text-color);
337
+ width: 200px;
338
+ border-radius: 5px;
339
+ border: 1px solid var(--input-border-color);
340
+ padding: 4px 10px;
341
+ }
342
+ .lake-popup input[type="text"]:hover {
343
+ border: 1px solid var(--input-border-hover-color);
344
+ }
345
+ .lake-popup input[type="text"]:focus-visible {
346
+ outline: var(--input-outline);
347
+ outline-offset: -2px;
348
+ }
349
+ .lake-popup .lake-row {
350
+ padding-bottom: 8px;
351
+ }
352
+
93
353
  .lake-container.lake-format-painter {
94
354
  /* file: ../svg/format-painter-cursor.svg */
95
355
  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;
@@ -225,7 +485,6 @@
225
485
  width: 16px;
226
486
  height: 16px;
227
487
  border-radius: 4px;
228
- cursor: pointer;
229
488
  }
230
489
  .lake-container ul[type="checklist"] li[value="true"]::before {
231
490
  border: 1px solid #1890ff;
@@ -248,6 +507,11 @@
248
507
  border-right: 2px solid #fff;
249
508
  border-radius: 1px;
250
509
  transform: rotate(45deg) scale(1) translate(-50%,-50%);
510
+ }
511
+ .lake-container[contenteditable="true"] ul[type="checklist"] li::before {
512
+ cursor: pointer;
513
+ }
514
+ .lake-container[contenteditable="true"] ul[type="checklist"] li::after {
251
515
  cursor: pointer;
252
516
  }
253
517
 
@@ -324,10 +588,15 @@ lake-box[name="hr"] {
324
588
  height: 21px;
325
589
  display: flex;
326
590
  align-items: center;
591
+ }
592
+ .lake-container[contenteditable="true"] .lake-hr {
327
593
  cursor: pointer;
328
594
  }
329
- lake-box[name="hr"] .lake-box-hovered .lake-hr {
330
- background-color: var(--background-hover-color);
595
+ .lake-container[contenteditable="false"] .lake-hr {
596
+ cursor: default;
597
+ }
598
+ .lake-container[contenteditable="true"] lake-box[name="hr"] .lake-box-hovered .lake-hr {
599
+ background-color: var(--box-background-color);
331
600
  }
332
601
  lake-box[name="hr"] .lake-box-selected .lake-hr,
333
602
  lake-box[name="hr"] .lake-box-focused .lake-hr {
@@ -410,7 +679,6 @@ lake-box[name="image"] .lake-box-focused .lake-button-group {
410
679
  line-height: 0;
411
680
  cursor: pointer;
412
681
  user-select: none;
413
- outline: none;
414
682
  }
415
683
  .lake-image .lake-button-group button svg {
416
684
  fill: #fff;
@@ -544,6 +812,8 @@ lake-box[name="image"] .lake-box-selected .lake-image-error {
544
812
  /* CodeMirror */
545
813
  .cm-editor {
546
814
  font-size: 14px;
815
+ border-radius: 5px;
816
+ background-color: var(--box-background-color);
547
817
  }
548
818
  .cm-editor.cm-focused {
549
819
  outline: none;
@@ -551,81 +821,64 @@ lake-box[name="image"] .lake-box-selected .lake-image-error {
551
821
  .cm-editor .cm-content {
552
822
  font-family: Consolas, Courier, monospace;
553
823
  }
554
- .cm-editor .cm-gutters {
555
- color: var(--disabled-text-color);
556
- border-right: 1px solid var(--border-color);
557
- }
558
- .cm-editor .cm-activeLineGutter {
559
- color: var(--text-color);
560
- background-color: transparent;
561
- }
562
- .cm-editor .cm-activeLine {
563
- background-color: transparent;
564
- }
565
- .cm-editor .cm-selectionBackground {
566
- background-color: transparent;
567
- }
568
- .cm-editor.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground {
569
- background-color: var(--selection-background-color);
570
- }
571
824
 
572
825
  /* code block */
573
826
  lake-box[name="codeBlock"] {
574
- margin-bottom: 8px;
575
- }
576
- .lake-code-block {
577
- box-sizing: border-box;
578
- border: 1px solid var(--border-color);
579
- }
580
- lake-box[name="codeBlock"] .lake-box-selected .lake-code-block {
581
- background-color: var(--selection-background-color);
827
+ margin: 16px 0;
582
828
  }
583
829
  lake-box[name="codeBlock"] .lake-box-focused .lake-code-block {
584
- border-color: var(--box-border-focus-color);
830
+ border-color: var(--box-border-color);
585
831
  }
586
832
  lake-box[name="codeBlock"] .lake-box-activated .lake-code-block {
587
- border-color: var(--box-border-active-color);
833
+ border-color: var(--box-border-color);
588
834
  }
589
-
590
- .lake-popup button {
835
+ .lake-code-block {
836
+ position: relative;
837
+ box-sizing: border-box;
838
+ border: 1px solid transparent;
591
839
  border-radius: 5px;
592
- border: 0;
593
- color: var(--text-color);
594
- background-color: #fff;
595
- padding: 0;
840
+ }
841
+ .lake-code-block .lake-dropdown {
842
+ position: absolute;
843
+ top: 2px;
844
+ right: 2px;
845
+ display: none;
846
+ }
847
+ lake-box[name="codeBlock"] .lake-box-activated .lake-code-block .lake-dropdown {
848
+ display: block;
849
+ }
850
+ .lake-code-block .lake-dropdown .lake-dropdown-title {
596
851
  margin: 0;
597
- line-height: 0;
598
- cursor: pointer;
599
- user-select: none;
600
- outline: none;
852
+ padding-right: 4px;
853
+ background-color: var(--box-background-color);
601
854
  }
602
- .lake-popup button svg {
603
- width: 16px;
604
- height: 16px;
605
- margin: 6px;
855
+ .lake-code-block .lake-dropdown.lake-list-dropdown .lake-dropdown-title-hovered {
856
+ background-color: var(--background-active-color);
606
857
  }
607
- .lake-popup input {
608
- font-family: var(--font-family);
609
- font-size: 14px;
610
- color: var(--text-color);
611
- width: 200px;
612
- border-radius: 5px;
613
- border: 1px solid var(--input-border-color);
614
- padding: 4px 10px;
858
+ .lake-code-block .lake-dropdown .lake-dropdown-text {
859
+ margin: 3px 6px;
615
860
  }
616
- .lake-popup input:hover {
617
- border: 1px solid var(--input-border-hover-color);
861
+ .lake-code-block .lake-dropdown .lake-dropdown-down-icon svg {
862
+ margin: 5px 2px;
618
863
  }
619
- .lake-popup input:focus {
620
- border: 1px solid var(--input-border-active-color);
621
- outline: none;
864
+ .lake-code-block .lake-dropdown .lake-dropdown-menu {
865
+ top: 24px;
866
+ overflow-y: scroll;
867
+ scrollbar-width: thin;
868
+ height: 200px;
622
869
  }
623
- .lake-popup .lake-row {
624
- padding-bottom: 8px;
870
+ .lake-code-block-error {
871
+ font-size: 14px;
872
+ color: var(--error-color);
873
+ border-radius: 5px;
874
+ background-color: var(--box-background-color);
875
+ padding: 8px 16px;
625
876
  }
626
877
 
627
878
  .lake-link-popup {
628
879
  position: absolute;
880
+ top: 0;
881
+ left: 0;
629
882
  z-index: 1;
630
883
  border: 1px solid var(--border-color);
631
884
  border-radius: 5px;
@@ -638,89 +891,39 @@ lake-box[name="codeBlock"] .lake-box-activated .lake-code-block {
638
891
  box-shadow: var(--popup-shadow);
639
892
  display: none;
640
893
  }
641
- .lake-link-popup input {
642
- width: 200px;
643
- margin-right: 4px;
644
- }
645
894
  .lake-link-popup .lake-url-row {
646
895
  display: flex;
647
896
  align-items: center;
648
897
  }
649
- .lake-link-popup .lake-url-row button:hover {
650
- background-color: var(--background-hover-color);
651
- }
652
- .lake-link-popup .lake-button-copy svg:first-child {
653
- display: inline;
654
- }
655
- .lake-link-popup .lake-button-copy svg:nth-child(2) {
656
- display: none;
657
- fill: var(--success-color);
658
- }
659
- .lake-link-popup .lake-button-copy svg:last-child {
660
- display: none;
661
- fill: var(--error-color);
662
- }
663
- .lake-link-popup .lake-row:last-child {
898
+ .lake-link-popup .lake-button-row {
664
899
  padding-top: 16px;
665
900
  display: flex;
666
901
  align-items: center;
667
902
  justify-content: space-between;
668
903
  }
669
- .lake-link-popup .lake-row:last-child button {
670
- background-color: transparent;
671
- border: 1px solid var(--border-color);
672
- padding: 8px 16px;
904
+ .lake-link-popup input[type="text"] {
905
+ width: 200px;
906
+ margin-right: 4px;
673
907
  }
674
- .lake-link-popup .lake-row:last-child button:hover {
675
- background-color: var(--background-hover-color);
908
+ .lake-link-popup button[name="copy"] svg:first-child {
909
+ display: inline;
676
910
  }
677
- .lake-link-popup .lake-row:last-child button svg {
678
- background-color: transparent;
679
- margin: 0 6px 0 0;
680
- vertical-align: middle;
911
+ .lake-link-popup button[name="copy"] svg:nth-child(2) {
912
+ display: none;
913
+ fill: var(--success-color);
681
914
  }
682
- .lake-link-popup .lake-row:last-child button span {
683
- display: inline-block;
684
- line-height: 16px;
685
- vertical-align: middle;
915
+ .lake-link-popup button[name="copy"] svg:last-child {
916
+ display: none;
917
+ fill: var(--error-color);
686
918
  }
687
919
 
688
920
  .lake-toolbar {
689
- font-family: var(--font-family);
690
- color: var(--text-color);
691
921
  background-color: #fff;
692
922
  padding: 4px;
693
923
  display: flex;
694
924
  flex-wrap: wrap;
695
925
  align-items: center;
696
926
  }
697
- .lake-toolbar .lake-toolbar-button {
698
- border-radius: 5px;
699
- border: 0;
700
- color: var(--text-color);
701
- background-color: #fff;
702
- padding: 0;
703
- margin: 0 1px;
704
- line-height: 0;
705
- cursor: pointer;
706
- user-select: none;
707
- outline: none;
708
- }
709
- .lake-toolbar .lake-toolbar-button[disabled] {
710
- opacity: 0.25;
711
- cursor: default;
712
- }
713
- .lake-toolbar .lake-toolbar-button-hovered {
714
- background-color: var(--background-hover-color);
715
- }
716
- .lake-toolbar .lake-toolbar-button-selected {
717
- background-color: var(--background-active-color);
718
- }
719
- .lake-toolbar .lake-toolbar-button svg {
720
- width: 16px;
721
- height: 16px;
722
- margin: 6px;
723
- }
724
927
  .lake-toolbar .lake-toolbar-divider {
725
928
  width: 1px;
726
929
  height: 20px;
@@ -728,180 +931,6 @@ lake-box[name="codeBlock"] .lake-box-activated .lake-code-block {
728
931
  border-left: 1px solid var(--border-color);
729
932
  user-select: none;
730
933
  }
731
- .lake-toolbar .lake-dropdown {
732
- position: relative;
733
- font-size: 14px;
734
- user-select: none;
735
- }
736
- .lake-toolbar .lake-dropdown-title {
737
- display: flex;
738
- align-items: center;
739
- justify-content: space-between;
740
- padding: 0;
741
- margin-right: 4px;
742
- border-radius: 5px;
743
- border: 0;
744
- background-color: #fff;
745
- cursor: pointer;
746
- outline: none;
747
- }
748
- .lake-toolbar .lake-dropdown[disabled] .lake-dropdown-title {
749
- opacity: 0.25;
750
- cursor: default;
751
- }
752
- .lake-toolbar .lake-dropdown-list .lake-dropdown-title-hovered {
753
- background-color: var(--background-hover-color);
754
- }
755
- .lake-toolbar .lake-dropdown-title.lake-dropdown-title-no-down {
756
- margin-right: 0;
757
- }
758
- .lake-toolbar .lake-dropdown-text {
759
- height: 16px;
760
- margin: 6px;
761
- overflow: hidden;
762
- white-space: nowrap;
763
- color: var(--text-color);
764
- }
765
- .lake-toolbar .lake-dropdown-icon {
766
- position: relative;
767
- line-height: 0;
768
- border-radius: 5px 0 0 5px;
769
- }
770
- .lake-toolbar .lake-dropdown-icon-hovered {
771
- background-color: var(--background-hover-color);
772
- }
773
- .lake-toolbar .lake-dropdown-icon svg {
774
- width: 16px;
775
- height: 16px;
776
- margin: 6px 2px 6px 4px;
777
- }
778
- .lake-toolbar .lake-dropdown-color .lake-dropdown-icon svg:last-child {
779
- position: absolute;
780
- left: 0;
781
- bottom: 0;
782
- }
783
- .lake-toolbar .lake-dropdown-title-no-down .lake-dropdown-icon svg {
784
- margin: 6px;
785
- }
786
- .lake-toolbar .lake-dropdown-down-icon {
787
- line-height: 0;
788
- border-radius: 0 5px 5px 0;
789
- }
790
- .lake-toolbar .lake-dropdown-down-icon-hovered {
791
- background-color: var(--background-hover-color);
792
- }
793
- .lake-toolbar .lake-dropdown-down-icon svg {
794
- width: 12px;
795
- height: 12px;
796
- margin: 8px 2px;
797
- fill: var(--secondary-text-color);
798
- }
799
- .lake-toolbar .lake-dropdown-menu {
800
- position: absolute;
801
- top: 30px;
802
- left: 0;
803
- z-index: 1;
804
- list-style: none;
805
- margin: 0;
806
- padding: 6px 0;
807
- border: 1px solid var(--border-color);
808
- border-radius: 5px;
809
- color: var(--text-color);
810
- background-color: #fff;
811
- box-shadow: var(--popup-shadow);
812
- display: none;
813
- }
814
- .lake-toolbar .lake-dropdown-menu li {
815
- display: flex;
816
- align-items: center;
817
- cursor: pointer;
818
- }
819
- .lake-toolbar .lake-dropdown-list-menu li {
820
- padding: 6px 24px 6px 10px;
821
- }
822
- .lake-toolbar .lake-dropdown-list-menu li:hover {
823
- background-color: var(--background-hover-color);
824
- }
825
- .lake-toolbar .lake-dropdown-list-menu li .lake-dropdown-menu-check {
826
- line-height: 0;
827
- visibility: hidden;
828
- }
829
- .lake-toolbar .lake-dropdown-list-menu li .lake-dropdown-menu-check svg {
830
- width: 12px;
831
- height: 12px;
832
- }
833
- .lake-toolbar .lake-dropdown-list-menu li .lake-dropdown-menu-icon {
834
- line-height: 0;
835
- margin-left: 10px;
836
- }
837
- .lake-toolbar .lake-dropdown-list-menu li .lake-dropdown-menu-icon svg {
838
- width: 16px;
839
- height: 16px;
840
- }
841
- .lake-toolbar .lake-dropdown-list-menu li .lake-dropdown-menu-text {
842
- margin-left: 10px;
843
- white-space: nowrap;
844
- }
845
- .lake-toolbar .lake-dropdown-color-menu {
846
- flex-wrap: wrap;
847
- justify-content: center;
848
- width: 296px;
849
- }
850
- .lake-toolbar .lake-dropdown-color-menu li {
851
- position: relative;
852
- padding: 0;
853
- }
854
- .lake-toolbar .lake-dropdown-color-menu li:hover {
855
- background-color: var(--background-hover-color);
856
- }
857
- .lake-toolbar .lake-dropdown-color-menu li .lake-dropdown-menu-check {
858
- position: absolute;
859
- top: 6px;
860
- left: 6px;
861
- z-index: 1;
862
- line-height: 0;
863
- visibility: hidden;
864
- }
865
- .lake-toolbar .lake-dropdown-color-menu li .lake-dropdown-menu-check svg {
866
- width: 12px;
867
- height: 12px;
868
- fill: #fff;
869
- }
870
- .lake-toolbar .lake-dropdown-color-menu li[value^="#f" i] .lake-dropdown-menu-check svg,
871
- .lake-toolbar .lake-dropdown-color-menu li[value^="#e6" i] .lake-dropdown-menu-check svg {
872
- fill: #000;
873
- }
874
- .lake-toolbar .lake-dropdown-color-menu li .lake-dropdown-menu-icon {
875
- line-height: 0;
876
- }
877
- .lake-toolbar .lake-dropdown-color-menu li .lake-dropdown-menu-icon svg {
878
- width: 16px;
879
- height: 16px;
880
- margin: 3px 4px;
881
- }
882
- .lake-toolbar .lake-dropdown-color-menu li .lake-dropdown-menu-text {
883
- font-size: 0;
884
- border: 1px solid var(--background-hover-color);
885
- border-radius: 2px;
886
- width: 16px;
887
- height: 16px;
888
- margin: 3px;
889
- }
890
- .lake-toolbar .lake-dropdown-color-menu li:first-child {
891
- width: 100%;
892
- margin-left: 10px;
893
- margin-right: 10px;
894
- margin-bottom: 4px;
895
- }
896
- .lake-toolbar .lake-dropdown-color-menu li:first-child .lake-dropdown-menu-check {
897
- display: none;
898
- }
899
- .lake-toolbar .lake-dropdown-color-menu li:first-child .lake-dropdown-menu-text {
900
- width: 100%;
901
- font-size: 14px;
902
- border: 1px solid transparent;
903
- height: auto;
904
- }
905
934
  .lake-toolbar .lake-upload {
906
935
  line-height: 0;
907
936
  }