lakelib 0.2.1 → 0.2.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
@@ -137,7 +137,7 @@ lake-box[type="inline"] {
137
137
  }
138
138
  lake-box[type="block"] {
139
139
  display: block grid;
140
- grid-template-columns: 1px 1fr 1px;
140
+ grid-template-columns: 1px calc(100% - 2px) 1px;
141
141
  }
142
142
  lake-box .lake-box-strip {
143
143
  display: block;
@@ -203,11 +203,6 @@ lake-box .lake-button-group button svg {
203
203
  z-index: 1;
204
204
  border: 1px solid var(--border-color);
205
205
  border-radius: 5px;
206
- font-family: var(--font-family);
207
- font-size: 14px;
208
- font-weight: normal;
209
- line-height: normal;
210
- color: var(--text-color);
211
206
  background-color: #fff;
212
207
  box-shadow: 0 2px 0 #00000005;
213
208
  padding: 4px;
@@ -365,7 +360,15 @@ button.lake-primary-button.lake-button-hovered {
365
360
  margin: 8px 2px;
366
361
  fill: var(--secondary-text-color);
367
362
  }
368
- .lake-dropdown .lake-dropdown-menu {
363
+ /* menu */
364
+ .lake-dropdown .lake-dropdown-menu,
365
+ .lake-dropdown-menu {
366
+ font-family: var(--font-family);
367
+ font-size: 14px;
368
+ font-weight: normal;
369
+ line-height: normal;
370
+ color: var(--text-color);
371
+ user-select: none;
369
372
  box-sizing: content-box;
370
373
  position: absolute;
371
374
  top: 30px;
@@ -376,107 +379,103 @@ button.lake-primary-button.lake-button-hovered {
376
379
  padding: 6px 0;
377
380
  border: 1px solid var(--border-color);
378
381
  border-radius: 5px;
379
- color: var(--text-color);
380
382
  background-color: #fff;
381
383
  box-shadow: var(--popup-shadow);
382
384
  display: none;
383
385
  }
384
- .lake-dropdown[placement="top"] .lake-dropdown-menu {
385
- top: auto;
386
- bottom: 30px;
387
- }
388
- .lake-dropdown .lake-dropdown-menu.lake-dropdown-menu-with-scroll {
386
+ .lake-dropdown-menu.lake-dropdown-menu-with-scroll {
389
387
  overflow-y: scroll;
390
388
  scrollbar-width: thin;
391
389
  }
392
- .lake-dropdown .lake-dropdown-menu li {
390
+ .lake-dropdown .lake-dropdown-menu li,
391
+ .lake-dropdown-menu li {
393
392
  display: flex;
394
393
  align-items: center;
395
394
  cursor: pointer;
396
395
  margin: 0;
397
396
  }
398
397
  /* list type */
399
- .lake-dropdown .lake-list-dropdown-menu li {
398
+ .lake-list-dropdown-menu li {
400
399
  padding: 6px 24px 6px 10px;
401
400
  }
402
- .lake-dropdown .lake-list-dropdown-menu li.lake-dropdown-item-hovered {
401
+ .lake-list-dropdown-menu li.lake-dropdown-item-hovered {
403
402
  background-color: var(--background-hover-color);
404
403
  }
405
- .lake-dropdown .lake-list-dropdown-menu li.lake-dropdown-item-selected {
404
+ .lake-list-dropdown-menu li.lake-dropdown-item-selected {
406
405
  background-color: var(--background-active-color);
407
406
  }
408
- .lake-dropdown .lake-list-dropdown-menu li .lake-dropdown-menu-check {
407
+ .lake-list-dropdown-menu li .lake-dropdown-menu-check {
409
408
  line-height: 0;
410
409
  visibility: hidden;
411
410
  }
412
- .lake-dropdown .lake-list-dropdown-menu li .lake-dropdown-menu-check svg {
411
+ .lake-list-dropdown-menu li .lake-dropdown-menu-check svg {
413
412
  width: 12px;
414
413
  height: 12px;
415
414
  }
416
- .lake-dropdown .lake-list-dropdown-menu li .lake-dropdown-menu-icon {
415
+ .lake-list-dropdown-menu li .lake-dropdown-menu-icon {
417
416
  line-height: 0;
418
417
  margin-left: 10px;
419
418
  }
420
- .lake-dropdown .lake-list-dropdown-menu li .lake-dropdown-menu-icon svg {
419
+ .lake-list-dropdown-menu li .lake-dropdown-menu-icon svg {
421
420
  width: 16px;
422
421
  height: 16px;
423
422
  }
424
- .lake-dropdown .lake-list-dropdown-menu li .lake-dropdown-menu-text {
423
+ .lake-list-dropdown-menu li .lake-dropdown-menu-text {
425
424
  margin-left: 10px;
426
425
  white-space: nowrap;
427
426
  }
428
427
  /* icon type */
429
- .lake-dropdown .lake-icon-dropdown-menu {
428
+ .lake-icon-dropdown-menu {
430
429
  flex-wrap: wrap;
431
430
  justify-content: center;
432
431
  }
433
- .lake-dropdown .lake-icon-dropdown-menu li {
432
+ .lake-icon-dropdown-menu li {
434
433
  padding: 0;
435
434
  border-radius: 2px;
436
435
  }
437
- .lake-dropdown .lake-icon-dropdown-menu li.lake-dropdown-item-hovered {
436
+ .lake-icon-dropdown-menu li.lake-dropdown-item-hovered {
438
437
  background-color: var(--background-hover-color);
439
438
  }
440
- .lake-dropdown .lake-icon-dropdown-menu li.lake-dropdown-item-selected {
439
+ .lake-icon-dropdown-menu li.lake-dropdown-item-selected {
441
440
  background-color: var(--background-active-color);
442
441
  }
443
- .lake-dropdown .lake-icon-dropdown-menu li .lake-dropdown-menu-check {
442
+ .lake-icon-dropdown-menu li .lake-dropdown-menu-check {
444
443
  display: none;
445
444
  }
446
- .lake-dropdown .lake-icon-dropdown-menu li .lake-dropdown-menu-icon {
445
+ .lake-icon-dropdown-menu li .lake-dropdown-menu-icon {
447
446
  line-height: 0;
448
447
  margin: 5px;
449
448
  }
450
- .lake-dropdown .lake-icon-dropdown-menu li .lake-dropdown-menu-icon svg,
451
- .lake-dropdown .lake-icon-dropdown-menu li .lake-dropdown-menu-icon img {
449
+ .lake-icon-dropdown-menu li .lake-dropdown-menu-icon svg,
450
+ .lake-icon-dropdown-menu li .lake-dropdown-menu-icon img {
452
451
  width: 32px;
453
452
  height: 32px;
454
453
  }
455
- .lake-dropdown .lake-icon-dropdown-menu li .lake-dropdown-menu-text {
454
+ .lake-icon-dropdown-menu li .lake-dropdown-menu-text {
456
455
  display: none;
457
456
  }
458
457
  /* character type */
459
- .lake-dropdown .lake-character-dropdown-menu {
458
+ .lake-character-dropdown-menu {
460
459
  flex-wrap: wrap;
461
460
  justify-content: center;
462
461
  }
463
- .lake-dropdown .lake-character-dropdown-menu li {
462
+ .lake-character-dropdown-menu li {
464
463
  padding: 0;
465
464
  border-radius: 2px;
466
465
  }
467
- .lake-dropdown .lake-character-dropdown-menu li.lake-dropdown-item-hovered {
466
+ .lake-character-dropdown-menu li.lake-dropdown-item-hovered {
468
467
  background-color: var(--background-hover-color);
469
468
  }
470
- .lake-dropdown .lake-character-dropdown-menu li.lake-dropdown-item-selected {
469
+ .lake-character-dropdown-menu li.lake-dropdown-item-selected {
471
470
  background-color: var(--background-active-color);
472
471
  }
473
- .lake-dropdown .lake-character-dropdown-menu li .lake-dropdown-menu-check {
472
+ .lake-character-dropdown-menu li .lake-dropdown-menu-check {
474
473
  display: none;
475
474
  }
476
- .lake-dropdown .lake-character-dropdown-menu li .lake-dropdown-menu-icon {
475
+ .lake-character-dropdown-menu li .lake-dropdown-menu-icon {
477
476
  display: none;
478
477
  }
479
- .lake-dropdown .lake-character-dropdown-menu li .lake-dropdown-menu-text {
478
+ .lake-character-dropdown-menu li .lake-dropdown-menu-text {
480
479
  text-align: center;
481
480
  font-size: 24px;
482
481
  width: 42px;
@@ -484,21 +483,21 @@ button.lake-primary-button.lake-button-hovered {
484
483
  line-height: 42px;
485
484
  }
486
485
  /* color type */
487
- .lake-dropdown .lake-color-dropdown-menu {
486
+ .lake-color-dropdown-menu {
488
487
  flex-wrap: wrap;
489
488
  justify-content: center;
490
489
  }
491
- .lake-dropdown .lake-color-dropdown-menu li {
490
+ .lake-color-dropdown-menu li {
492
491
  position: relative;
493
492
  padding: 0;
494
493
  }
495
- .lake-dropdown .lake-color-dropdown-menu li.lake-dropdown-item-hovered {
494
+ .lake-color-dropdown-menu li.lake-dropdown-item-hovered {
496
495
  background-color: var(--background-hover-color);
497
496
  }
498
- .lake-dropdown .lake-color-dropdown-menu li.lake-dropdown-item-selected {
497
+ .lake-color-dropdown-menu li.lake-dropdown-item-selected {
499
498
  background-color: var(--background-active-color);
500
499
  }
501
- .lake-dropdown .lake-color-dropdown-menu li .lake-dropdown-menu-check {
500
+ .lake-color-dropdown-menu li .lake-dropdown-menu-check {
502
501
  position: absolute;
503
502
  top: 6px;
504
503
  left: 6px;
@@ -506,24 +505,24 @@ button.lake-primary-button.lake-button-hovered {
506
505
  line-height: 0;
507
506
  visibility: hidden;
508
507
  }
509
- .lake-dropdown .lake-color-dropdown-menu li .lake-dropdown-menu-check svg {
508
+ .lake-color-dropdown-menu li .lake-dropdown-menu-check svg {
510
509
  width: 12px;
511
510
  height: 12px;
512
511
  fill: #fff;
513
512
  }
514
- .lake-dropdown .lake-color-dropdown-menu li[value^="#f" i] .lake-dropdown-menu-check svg,
515
- .lake-dropdown .lake-color-dropdown-menu li[value^="#e6" i] .lake-dropdown-menu-check svg {
513
+ .lake-color-dropdown-menu li[value^="#f" i] .lake-dropdown-menu-check svg,
514
+ .lake-color-dropdown-menu li[value^="#e6" i] .lake-dropdown-menu-check svg {
516
515
  fill: #000;
517
516
  }
518
- .lake-dropdown .lake-color-dropdown-menu li .lake-dropdown-menu-icon {
517
+ .lake-color-dropdown-menu li .lake-dropdown-menu-icon {
519
518
  line-height: 0;
520
519
  }
521
- .lake-dropdown .lake-color-dropdown-menu li .lake-dropdown-menu-icon svg {
520
+ .lake-color-dropdown-menu li .lake-dropdown-menu-icon svg {
522
521
  width: 16px;
523
522
  height: 16px;
524
523
  margin: 3px 4px;
525
524
  }
526
- .lake-dropdown .lake-color-dropdown-menu li .lake-dropdown-menu-text {
525
+ .lake-color-dropdown-menu li .lake-dropdown-menu-text {
527
526
  font-size: 0;
528
527
  box-sizing: content-box;
529
528
  border: 1px solid var(--background-hover-color);
@@ -532,16 +531,16 @@ button.lake-primary-button.lake-button-hovered {
532
531
  height: 16px;
533
532
  margin: 3px;
534
533
  }
535
- .lake-dropdown .lake-color-dropdown-menu li:first-child {
534
+ .lake-color-dropdown-menu li:first-child {
536
535
  width: 100%;
537
536
  margin-left: 10px;
538
537
  margin-right: 10px;
539
538
  margin-bottom: 4px;
540
539
  }
541
- .lake-dropdown .lake-color-dropdown-menu li:first-child .lake-dropdown-menu-check {
540
+ .lake-color-dropdown-menu li:first-child .lake-dropdown-menu-check {
542
541
  display: none;
543
542
  }
544
- .lake-dropdown .lake-color-dropdown-menu li:first-child .lake-dropdown-menu-text {
543
+ .lake-color-dropdown-menu li:first-child .lake-dropdown-menu-text {
545
544
  width: 100%;
546
545
  font-size: 14px;
547
546
  border: 1px solid transparent;
@@ -582,6 +581,38 @@ button.lake-primary-button.lake-button-hovered {
582
581
  padding-bottom: 8px;
583
582
  }
584
583
 
584
+ .lake-menu {
585
+ position: absolute;
586
+ top: 0;
587
+ left: 0;
588
+ z-index: 1;
589
+ list-style: none;
590
+ border: 1px solid var(--border-color);
591
+ border-radius: 5px;
592
+ margin: 0;
593
+ padding: 4px 8px;
594
+ width: fit-content;
595
+ background-color: #fff;
596
+ box-shadow: var(--popup-shadow);
597
+ display: none;
598
+ max-height: 180px;
599
+ overflow-y: scroll;
600
+ scrollbar-width: thin;
601
+ user-select: none;
602
+ }
603
+ .lake-menu .lake-menu-item {
604
+ display: flex;
605
+ align-items: center;
606
+ cursor: pointer;
607
+ margin: 0;
608
+ padding: 4px 8px;
609
+ border-radius: 5px;
610
+ scroll-margin: 4px 0;
611
+ }
612
+ .lake-menu .lake-menu-item-selected {
613
+ background-color: var(--background-active-color);
614
+ }
615
+
585
616
  .lake-resizer {
586
617
  user-select: none;
587
618
  display: none;
@@ -693,9 +724,6 @@ button.lake-primary-button.lake-button-hovered {
693
724
  border-radius: 5px;
694
725
  padding: 16px;
695
726
  width: fit-content;
696
- font-family: var(--font-family);
697
- font-size: 14px;
698
- color: var(--text-color);
699
727
  background-color: #fff;
700
728
  box-shadow: var(--popup-shadow);
701
729
  display: none;
@@ -733,8 +761,8 @@ button.lake-primary-button.lake-button-hovered {
733
761
  margin-bottom: 4px;
734
762
  padding: 0;
735
763
  }
736
- .lake-container ol lake-box[type="inline"],
737
- .lake-container ul lake-box[type="inline"] {
764
+ .lake-container ol lake-box[name="emoji"],
765
+ .lake-container ul lake-box[name="emoji"] {
738
766
  vertical-align: middle;
739
767
  }
740
768
  .lake-container ol[indent="1"],
@@ -1285,93 +1313,97 @@ lake-box[name="equation"] .lake-box-activated .lake-equation-form {
1285
1313
  background-color: var(--box-background-color);
1286
1314
  }
1287
1315
 
1288
- .lake-toolbar {
1289
- box-sizing: border-box;
1290
- font-family: var(--font-family);
1291
- font-size: 14px;
1292
- font-weight: normal;
1293
- line-height: normal;
1294
- padding: 4px;
1295
- display: flex;
1296
- flex-wrap: wrap;
1297
- align-items: center;
1316
+ .lake-mention {
1317
+ border: 1px solid transparent;
1318
+ border-radius: 2px;
1298
1319
  }
1299
- .lake-toolbar *,
1300
- .lake-toolbar ::before,
1301
- .lake-toolbar ::after {
1302
- box-sizing: border-box;
1320
+ .lake-container[data-readonly="false"] .lake-mention a:hover {
1321
+ color: var(--link-color);
1322
+ text-decoration: none;
1303
1323
  }
1304
- .lake-toolbar .lake-toolbar-divider {
1305
- width: 1px;
1306
- height: 20px;
1307
- margin: 0 4px;
1308
- border-left: 1px solid var(--border-color);
1309
- user-select: none;
1324
+ lake-box[name="mention"] .lake-box-focused .lake-mention {
1325
+ border-color: var(--selection-background-color);
1326
+ background-color: var(--selection-background-color);
1310
1327
  }
1311
- .lake-toolbar .lake-upload {
1328
+ .lake-mention-menu {
1329
+ max-height: 180px;
1330
+ }
1331
+ .lake-mention-menu .lake-mention-avatar {
1332
+ margin-inline-end: 8px;
1312
1333
  line-height: 0;
1313
1334
  }
1314
- .lake-toolbar .lake-upload input[type="file"] {
1315
- display: none;
1335
+ .lake-mention-menu .lake-mention-avatar img {
1336
+ border-radius: 100%;
1337
+ width: 32px;
1338
+ height: 32px;
1316
1339
  }
1317
-
1318
- .lake-slash-popup {
1319
- position: absolute;
1320
- top: 0;
1321
- left: 0;
1322
- z-index: 1;
1323
- list-style: none;
1324
- border: 1px solid var(--border-color);
1325
- border-radius: 5px;
1326
- margin: 0;
1327
- padding: 4px 8px;
1328
- width: fit-content;
1329
- font-family: var(--font-family);
1330
- font-size: 14px;
1340
+ .lake-mention-menu .lake-mention-nickname {
1341
+ margin-inline-end: 4px;
1342
+ font-weight: 500;
1331
1343
  color: var(--text-color);
1332
- background-color: #fff;
1333
- box-shadow: var(--popup-shadow);
1334
- display: none;
1335
- max-height: 380px;
1336
- overflow-y: scroll;
1337
- scrollbar-width: thin;
1338
- user-select: none;
1344
+ white-space: nowrap;
1339
1345
  }
1340
- .lake-slash-popup .lake-slash-item {
1341
- display: flex;
1342
- cursor: pointer;
1343
- padding: 4px 8px;
1344
- margin: 0;
1345
- border-radius: 5px;
1346
- scroll-margin: 4px 0;
1346
+ .lake-mention-menu .lake-mention-name {
1347
+ color: #8c8c8c;
1347
1348
  }
1348
- .lake-slash-popup .lake-slash-item-selected {
1349
- background-color: var(--background-active-color);
1349
+
1350
+ .lake-slash-menu {
1351
+ max-height: 380px;
1350
1352
  }
1351
- .lake-slash-popup .lake-slash-item input[type="file"] {
1353
+ .lake-slash-menu .lake-menu-item input[type="file"] {
1352
1354
  display: none;
1353
1355
  }
1354
- .lake-slash-popup .lake-slash-icon {
1356
+ .lake-slash-menu .lake-slash-icon {
1355
1357
  margin-inline-end: 8px;
1356
1358
  border-radius: 5px;
1357
1359
  border: 1px solid var(--border-color);
1358
1360
  background-color: #fff;
1359
1361
  }
1360
- .lake-slash-popup .lake-slash-icon svg,
1361
- .lake-slash-popup .lake-slash-icon img {
1362
+ .lake-slash-menu .lake-slash-icon svg,
1363
+ .lake-slash-menu .lake-slash-icon img {
1362
1364
  width: 32px;
1363
1365
  height: 32px;
1364
1366
  margin: 6px;
1365
1367
  }
1366
- .lake-slash-popup .lake-slash-text {
1368
+ .lake-slash-menu .lake-slash-text {
1367
1369
  display: flex;
1368
1370
  flex-direction: column;
1369
1371
  justify-content: center;
1370
1372
  }
1371
- .lake-slash-popup .lake-slash-title {
1373
+ .lake-slash-menu .lake-slash-title {
1372
1374
  font-weight: 500;
1373
1375
  color: var(--text-color);
1374
1376
  }
1375
- .lake-slash-popup .lake-slash-description {
1377
+ .lake-slash-menu .lake-slash-description {
1376
1378
  color: #8c8c8c;
1377
1379
  }
1380
+
1381
+ .lake-toolbar {
1382
+ box-sizing: border-box;
1383
+ font-family: var(--font-family);
1384
+ font-size: 14px;
1385
+ font-weight: normal;
1386
+ line-height: normal;
1387
+ padding: 4px;
1388
+ display: flex;
1389
+ flex-wrap: wrap;
1390
+ align-items: center;
1391
+ }
1392
+ .lake-toolbar *,
1393
+ .lake-toolbar ::before,
1394
+ .lake-toolbar ::after {
1395
+ box-sizing: border-box;
1396
+ }
1397
+ .lake-toolbar .lake-toolbar-divider {
1398
+ width: 1px;
1399
+ height: 20px;
1400
+ margin: 0 4px;
1401
+ border-left: 1px solid var(--border-color);
1402
+ user-select: none;
1403
+ }
1404
+ .lake-toolbar .lake-upload {
1405
+ line-height: 0;
1406
+ }
1407
+ .lake-toolbar .lake-upload input[type="file"] {
1408
+ display: none;
1409
+ }