lakelib 0.2.0 → 0.2.2

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