lakelib 0.2.6 → 0.3.1

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.
Files changed (126) hide show
  1. package/README.md +6 -6
  2. package/dist/lake.css +377 -363
  3. package/dist/lake.min.js +40 -40
  4. package/dist/lake.min.js.map +1 -1
  5. package/lib/css/index.d.ts +0 -11
  6. package/lib/editor.d.ts +19 -19
  7. package/lib/i18n/en-US/index.d.ts +24 -0
  8. package/lib/i18n/ja/index.d.ts +24 -0
  9. package/lib/i18n/ko/index.d.ts +24 -0
  10. package/lib/i18n/types.d.ts +182 -2
  11. package/lib/i18n/zh-CN/index.d.ts +24 -0
  12. package/lib/index.d.ts +8 -8
  13. package/lib/lake.css +126 -112
  14. package/lib/lake.js +5709 -4679
  15. package/lib/lake.js.map +1 -1
  16. package/lib/managers/command.d.ts +4 -4
  17. package/lib/managers/selection.d.ts +6 -10
  18. package/lib/operations/insert-block.d.ts +3 -0
  19. package/lib/operations/insert-contents.d.ts +4 -0
  20. package/lib/operations/split-block.d.ts +1 -1
  21. package/lib/operations/split-marks.d.ts +1 -1
  22. package/lib/plugins/align.d.ts +1 -1
  23. package/lib/plugins/arrow-keys.d.ts +1 -1
  24. package/lib/plugins/backspace-key.d.ts +1 -1
  25. package/lib/plugins/block-quote.d.ts +1 -1
  26. package/lib/plugins/bold.d.ts +1 -1
  27. package/lib/plugins/code-block/code-block-box.d.ts +4 -0
  28. package/lib/plugins/code-block/index.d.ts +5 -0
  29. package/lib/plugins/code.d.ts +1 -1
  30. package/lib/plugins/copy.d.ts +1 -1
  31. package/lib/plugins/cut.d.ts +1 -1
  32. package/lib/plugins/delete-key.d.ts +1 -1
  33. package/lib/plugins/drop.d.ts +1 -1
  34. package/lib/plugins/emoji/emoji-box.d.ts +4 -0
  35. package/lib/plugins/emoji/index.d.ts +5 -0
  36. package/lib/plugins/enter-key.d.ts +1 -1
  37. package/lib/plugins/equation/equation-box.d.ts +4 -0
  38. package/lib/plugins/equation/index.d.ts +5 -0
  39. package/lib/plugins/escape-key.d.ts +1 -1
  40. package/lib/plugins/file/file-box.d.ts +4 -0
  41. package/lib/plugins/file/index.d.ts +5 -0
  42. package/lib/plugins/font-color.d.ts +1 -1
  43. package/lib/plugins/font-family.d.ts +1 -1
  44. package/lib/plugins/font-size.d.ts +1 -1
  45. package/lib/plugins/format-painter.d.ts +1 -1
  46. package/lib/plugins/heading.d.ts +1 -1
  47. package/lib/plugins/highlight.d.ts +1 -1
  48. package/lib/plugins/hr/hr-box.d.ts +4 -0
  49. package/lib/plugins/hr/index.d.ts +5 -0
  50. package/lib/{boxes/image.d.ts → plugins/image/image-box.d.ts} +2 -1
  51. package/lib/plugins/image/index.d.ts +5 -0
  52. package/lib/plugins/indent.d.ts +1 -1
  53. package/lib/plugins/italic.d.ts +1 -1
  54. package/lib/plugins/{link.d.ts → link/index.d.ts} +1 -1
  55. package/lib/plugins/link/insert-link.d.ts +3 -0
  56. package/lib/{ui → plugins/link}/link-popup.d.ts +3 -2
  57. package/lib/plugins/list.d.ts +1 -1
  58. package/lib/plugins/markdown.d.ts +1 -1
  59. package/lib/plugins/mention/index.d.ts +5 -0
  60. package/lib/plugins/mention/mention-box.d.ts +4 -0
  61. package/lib/{ui → plugins/mention}/mention-menu.d.ts +4 -3
  62. package/lib/plugins/paste.d.ts +1 -1
  63. package/lib/plugins/redo.d.ts +1 -1
  64. package/lib/plugins/remove-format.d.ts +1 -1
  65. package/lib/plugins/select-all.d.ts +1 -1
  66. package/lib/plugins/shift-enter-key.d.ts +1 -1
  67. package/lib/plugins/{mention.d.ts → slash/index.d.ts} +1 -1
  68. package/lib/{config → plugins/slash}/slash-items.d.ts +1 -1
  69. package/lib/{ui → plugins/slash}/slash-menu.d.ts +5 -4
  70. package/lib/{types/slash.d.ts → plugins/slash/types.d.ts} +2 -2
  71. package/lib/plugins/special-character.d.ts +1 -1
  72. package/lib/plugins/strikethrough.d.ts +1 -1
  73. package/lib/plugins/subscript.d.ts +1 -1
  74. package/lib/plugins/superscript.d.ts +1 -1
  75. package/lib/plugins/tab-key.d.ts +1 -1
  76. package/lib/plugins/table/delete-column.d.ts +2 -0
  77. package/lib/plugins/table/delete-row.d.ts +2 -0
  78. package/lib/plugins/table/delete-table.d.ts +2 -0
  79. package/lib/plugins/{slash.d.ts → table/index.d.ts} +2 -1
  80. package/lib/plugins/table/insert-column.d.ts +4 -0
  81. package/lib/plugins/table/insert-row.d.ts +4 -0
  82. package/lib/plugins/table/insert-table.d.ts +3 -0
  83. package/lib/plugins/table/merge-cells.d.ts +3 -0
  84. package/lib/plugins/table/split-cell.d.ts +3 -0
  85. package/lib/plugins/table/utils.d.ts +6 -0
  86. package/lib/plugins/underline.d.ts +1 -1
  87. package/lib/plugins/undo.d.ts +1 -1
  88. package/lib/plugins/unlink.d.ts +1 -1
  89. package/lib/plugins/video/index.d.ts +5 -0
  90. package/lib/plugins/video/video-box.d.ts +4 -0
  91. package/lib/storage/editors.d.ts +1 -1
  92. package/lib/types/dropdown.d.ts +1 -0
  93. package/lib/types/native.d.ts +0 -8
  94. package/lib/types/node.d.ts +12 -0
  95. package/lib/types/object.d.ts +0 -24
  96. package/lib/types/selection.d.ts +14 -0
  97. package/lib/types/toolbar.d.ts +5 -5
  98. package/lib/ui/toolbar.d.ts +2 -2
  99. package/lib/utils/indent-block.d.ts +2 -0
  100. package/lib/utils/remove-empty-marks.d.ts +2 -0
  101. package/lib/utils/unsafe-template.d.ts +1 -0
  102. package/lib/utils/visible-info.d.ts +10 -0
  103. package/package.json +19 -18
  104. package/lib/boxes/code-block.d.ts +0 -3
  105. package/lib/boxes/emoji.d.ts +0 -3
  106. package/lib/boxes/equation.d.ts +0 -3
  107. package/lib/boxes/file.d.ts +0 -3
  108. package/lib/boxes/hr.d.ts +0 -3
  109. package/lib/boxes/mention.d.ts +0 -3
  110. package/lib/boxes/video.d.ts +0 -3
  111. package/lib/operations/fix-list.d.ts +0 -2
  112. package/lib/operations/insert-fragment.d.ts +0 -3
  113. package/lib/operations/insert-link.d.ts +0 -3
  114. package/lib/operations/insert-node.d.ts +0 -3
  115. package/lib/plugins/code-block.d.ts +0 -3
  116. package/lib/plugins/emoji.d.ts +0 -3
  117. package/lib/plugins/equation.d.ts +0 -3
  118. package/lib/plugins/file.d.ts +0 -3
  119. package/lib/plugins/hr.d.ts +0 -3
  120. package/lib/plugins/image.d.ts +0 -3
  121. package/lib/plugins/video.d.ts +0 -3
  122. package/lib/utils/index.d.ts +0 -33
  123. package/lib/utils/is-visible.d.ts +0 -8
  124. package/lib/utils/safe-template.d.ts +0 -1
  125. package/lib/utils/set-block-indent.d.ts +0 -2
  126. /package/lib/{types/mention.d.ts → plugins/mention/types.d.ts} +0 -0
package/dist/lake.css CHANGED
@@ -83,6 +83,14 @@
83
83
  padding: 0;
84
84
  margin-bottom: 8px;
85
85
  }
86
+ .lake-container a {
87
+ color: var(--lake-link-color);
88
+ text-decoration: none;
89
+ }
90
+ .lake-container a:hover {
91
+ color: var(--lake-link-hover-color);
92
+ text-decoration: underline;
93
+ }
86
94
  .lake-drop-indication {
87
95
  position: absolute;
88
96
  height: 2px;
@@ -682,53 +690,6 @@ button.lake-primary-button.lake-button-hovered {
682
690
  margin-bottom: 8px;
683
691
  }
684
692
 
685
- .lake-container a {
686
- color: var(--lake-link-color);
687
- text-decoration: none;
688
- }
689
- .lake-container a:hover {
690
- color: var(--lake-link-hover-color);
691
- text-decoration: underline;
692
- }
693
- .lake-link-popup {
694
- position: absolute;
695
- top: 0;
696
- left: 0;
697
- z-index: var(--lake-popup-z-index);
698
- border: 1px solid var(--lake-popup-border-color);
699
- border-radius: 5px;
700
- padding: 16px;
701
- width: fit-content;
702
- background-color: #fff;
703
- box-shadow: var(--lake-popup-shadow);
704
- display: none;
705
- }
706
- .lake-link-popup .lake-url-row {
707
- display: flex;
708
- align-items: center;
709
- }
710
- .lake-link-popup .lake-button-row {
711
- padding-top: 16px;
712
- display: flex;
713
- align-items: center;
714
- justify-content: space-between;
715
- }
716
- .lake-link-popup input[type="text"] {
717
- width: 220px;
718
- margin-right: 4px;
719
- }
720
- .lake-link-popup button[name="copy"] svg:first-child {
721
- display: inline;
722
- }
723
- .lake-link-popup button[name="copy"] svg:nth-child(2) {
724
- display: none;
725
- fill: var(--lake-success-color);
726
- }
727
- .lake-link-popup button[name="copy"] svg:last-child {
728
- display: none;
729
- fill: var(--lake-error-color);
730
- }
731
-
732
693
  .lake-container ol,
733
694
  .lake-container ul {
734
695
  list-style: none;
@@ -886,17 +847,120 @@ button.lake-primary-button.lake-button-hovered {
886
847
  background-color: #f43f5e24;
887
848
  }
888
849
 
850
+ .lake-toolbar {
851
+ box-sizing: border-box;
852
+ font-family: var(--lake-font-family);
853
+ font-size: 14px;
854
+ font-weight: normal;
855
+ line-height: normal;
856
+ padding: 4px;
857
+ display: flex;
858
+ flex-wrap: wrap;
859
+ align-items: center;
860
+ }
861
+ .lake-toolbar *,
862
+ .lake-toolbar ::before,
863
+ .lake-toolbar ::after {
864
+ box-sizing: border-box;
865
+ }
866
+ .lake-toolbar .lake-toolbar-divider {
867
+ width: 1px;
868
+ height: 20px;
869
+ margin: 0 4px;
870
+ border-left: 1px solid var(--lake-border-color);
871
+ user-select: none;
872
+ }
873
+ .lake-toolbar .lake-upload {
874
+ line-height: 0;
875
+ }
876
+ .lake-toolbar .lake-upload input[type="file"] {
877
+ display: none;
878
+ }
879
+
880
+ .lake-floating-toolbar {
881
+ position: absolute;
882
+ top: 0;
883
+ left: 0;
884
+ z-index: var(--lake-popup-z-index);
885
+ border: 1px solid var(--lake-border-color);
886
+ border-radius: 5px;
887
+ background-color: #fff;
888
+ box-shadow: var(--lake-button-shadow);
889
+ padding: 4px;
890
+ display: flex;
891
+ align-items: center;
892
+ }
893
+ .lake-floating-toolbar .lake-toolbar-divider {
894
+ width: 1px;
895
+ height: 20px;
896
+ margin: 0 4px;
897
+ border-left: 1px solid var(--lake-border-color);
898
+ user-select: none;
899
+ }
900
+
889
901
  .lake-container table {
890
- display: block;
902
+ display: table;
891
903
  border-collapse: collapse;
892
904
  border: 0;
893
905
  margin: 20px 0;
894
- overflow-x: auto;
906
+ overflow: visible;
907
+ }
908
+ .lake-container table tr,
909
+ .lake-container table tr:nth-child(n) {
910
+ border: 0;
911
+ background-color: transparent;
895
912
  }
896
913
  .lake-container table td {
914
+ font-size: var(--lake-font-size);
897
915
  padding: 8px 16px;
916
+ min-width: 33px;
898
917
  border: 1px solid var(--lake-border-color);
899
918
  }
919
+ .lake-container table td p {
920
+ margin-bottom: 0;
921
+ }
922
+ .lake-container table td.lake-td-focused {
923
+ outline: var(--lake-input-outline);
924
+ }
925
+
926
+ .lake-link-popup {
927
+ position: absolute;
928
+ top: 0;
929
+ left: 0;
930
+ z-index: var(--lake-popup-z-index);
931
+ border: 1px solid var(--lake-popup-border-color);
932
+ border-radius: 5px;
933
+ padding: 16px;
934
+ width: fit-content;
935
+ background-color: #fff;
936
+ box-shadow: var(--lake-popup-shadow);
937
+ display: none;
938
+ }
939
+ .lake-link-popup .lake-url-row {
940
+ display: flex;
941
+ align-items: center;
942
+ }
943
+ .lake-link-popup .lake-button-row {
944
+ padding-top: 16px;
945
+ display: flex;
946
+ align-items: center;
947
+ justify-content: space-between;
948
+ }
949
+ .lake-link-popup input[type="text"] {
950
+ width: 220px;
951
+ margin-right: 4px;
952
+ }
953
+ .lake-link-popup button[name="copy"] svg:first-child {
954
+ display: inline;
955
+ }
956
+ .lake-link-popup button[name="copy"] svg:nth-child(2) {
957
+ display: none;
958
+ fill: var(--lake-success-color);
959
+ }
960
+ .lake-link-popup button[name="copy"] svg:last-child {
961
+ display: none;
962
+ fill: var(--lake-error-color);
963
+ }
900
964
 
901
965
  lake-box[name="hr"] {
902
966
  margin-bottom: 8px;
@@ -1113,320 +1177,6 @@ lake-box[name="image"] .lake-box-selected .lake-image-error {
1113
1177
  cursor: pointer;
1114
1178
  }
1115
1179
 
1116
- .lake-video {
1117
- position: relative;
1118
- font-size: 14px;
1119
- font-weight: normal;
1120
- line-height: 0;
1121
- border: 1px solid transparent;
1122
- }
1123
- lake-box[name="video"] .lake-box-hovered .lake-resizer {
1124
- display: block;
1125
- }
1126
- .lake-video .lake-video-form {
1127
- padding: 16px;
1128
- line-height: normal;
1129
- border: 1px solid var(--lake-box-border-color);
1130
- border-radius: 4px;
1131
- }
1132
- .lake-video input[type="text"] {
1133
- font-family: var(--lake-font-family);
1134
- font-size: 14px;
1135
- color: var(--lake-text-color);
1136
- border-radius: 5px;
1137
- border: 1px solid var(--lake-input-border-color);
1138
- padding: 4px 10px;
1139
- width: 100%;
1140
- }
1141
- .lake-video input[type="text"]:hover {
1142
- border: 1px solid var(--lake-input-border-hover-color);
1143
- }
1144
- .lake-video input[type="text"]:focus-visible {
1145
- outline: var(--lake-input-outline);
1146
- outline-offset: -2px;
1147
- }
1148
- .lake-video .lake-row {
1149
- padding-bottom: 8px;
1150
- }
1151
- .lake-video .lake-desc-row {
1152
- padding-top: 8px;
1153
- padding-bottom: 16px;
1154
- color: var(--lake-secondary-text-color);
1155
- }
1156
- .lake-video .lake-button-row {
1157
- padding-top: 16px;
1158
- }
1159
- .lake-video .lake-button-row button {
1160
- width: 100%;
1161
- }
1162
-
1163
- .lake-file {
1164
- position: relative;
1165
- font-size: var(--lake-font-size);
1166
- font-weight: normal;
1167
- line-height: 0;
1168
- border: 1px solid transparent;
1169
- border-radius: 4px;
1170
- }
1171
- .lake-container[contenteditable="true"] .lake-file {
1172
- cursor: default;
1173
- user-select: none;
1174
- }
1175
- .lake-container[contenteditable="false"] .lake-file {
1176
- cursor: pointer;
1177
- user-select: auto;
1178
- }
1179
- lake-box[name="file"] .lake-box-strip {
1180
- align-self: center;
1181
- }
1182
- .lake-file .lake-file-info {
1183
- display: flex;
1184
- align-items: center;
1185
- }
1186
- .lake-file .lake-file-type svg {
1187
- width: 16px;
1188
- height: 16px;
1189
- margin: 4px;
1190
- }
1191
- .lake-file .lake-file-name {
1192
- line-height: 24px;
1193
- margin-right: 6px;
1194
- color: var(--lake-link-color);
1195
- }
1196
- lake-box[name="file"] .lake-box-hovered .lake-file {
1197
- background-color: var(--lake-box-background-color);
1198
- }
1199
- lake-box[name="file"] .lake-box-selected .lake-file {
1200
- background-color: var(--lake-selection-background-color);
1201
- }
1202
- lake-box[name="file"] .lake-box-focused .lake-file {
1203
- background-color: var(--lake-selection-background-color);
1204
- }
1205
- /* uploading status */
1206
- .lake-file-uploading .lake-progress {
1207
- display: flex;
1208
- align-items: center;
1209
- margin-right: 6px;
1210
- }
1211
- .lake-file-uploading .lake-progress svg {
1212
- width: 16px;
1213
- height: 16px;
1214
- margin: 4px;
1215
- animation: lakerotate 1s linear 0s infinite normal none;
1216
- }
1217
- .lake-file-uploading .lake-progress .lake-percent {
1218
- line-height: 24px;
1219
- margin-left: 4px;
1220
- white-space: nowrap;
1221
- }
1222
- /* error status */
1223
- .lake-file-error .lake-file-type svg {
1224
- fill: var(--lake-error-color);
1225
- }
1226
- .lake-file-error .lake-file-name {
1227
- color: var(--lake-error-color);
1228
- }
1229
-
1230
- .lake-emoji {
1231
- line-height: 0;
1232
- border: 1px solid transparent;
1233
- border-radius: 2px;
1234
- }
1235
- .lake-emoji img {
1236
- border: 0;
1237
- border-radius: 2px;
1238
- width: 32px;
1239
- height: 32px;
1240
- }
1241
- lake-box[name="emoji"] .lake-box-focused .lake-emoji {
1242
- border-color: var(--lake-selection-background-color);
1243
- background-color: var(--lake-selection-background-color);
1244
- }
1245
-
1246
- .lake-equation {
1247
- position: relative;
1248
- font-weight: normal;
1249
- border: 1px solid transparent;
1250
- border-radius: 4px;
1251
- }
1252
- .lake-container[contenteditable="true"] .lake-equation {
1253
- user-select: none;
1254
- }
1255
- lake-box[name="equation"] .lake-box-strip {
1256
- align-self: center;
1257
- }
1258
- lake-box[name="equation"] .lake-box-selected .lake-equation {
1259
- background-color: var(--lake-selection-background-color);
1260
- }
1261
- lake-box[name="equation"] .lake-box-focused .lake-equation {
1262
- background-color: var(--lake-selection-background-color);
1263
- }
1264
- .lake-equation .lake-equation-view {
1265
- padding: 0 6px;
1266
- }
1267
- .lake-equation .lake-equation-form {
1268
- position: absolute;
1269
- top: 28px;
1270
- left: 0;
1271
- z-index: 1;
1272
- border: 1px solid var(--lake-border-color);
1273
- border-radius: 5px;
1274
- padding: 16px;
1275
- width: fit-content;
1276
- background-color: #fff;
1277
- box-shadow: var(--lake-popup-shadow);
1278
- display: none;
1279
- }
1280
- lake-box[name="equation"] .lake-box-focused .lake-equation-form,
1281
- lake-box[name="equation"] .lake-box-activated .lake-equation-form {
1282
- display: flex;
1283
- }
1284
- .lake-equation .lake-equation-form textarea {
1285
- border: 0;
1286
- font-family: Consolas, Courier, monospace;
1287
- font-size: 14px;
1288
- color: var(--lake-text-color);
1289
- padding: 0;
1290
- margin-right: 8px;
1291
- width: 300px;
1292
- height: 80px;
1293
- resize: none;
1294
- scrollbar-width: thin;
1295
- }
1296
- .lake-equation .lake-equation-form textarea:focus-visible {
1297
- outline: 0;
1298
- }
1299
- .lake-equation .lake-equation-form .lake-button-row {
1300
- display: flex;
1301
- flex-direction: column;
1302
- justify-content: space-between;
1303
- align-items: flex-end;
1304
- }
1305
- /* error status */
1306
- .lake-equation-error {
1307
- padding: 0 6px;
1308
- font-size: 14px;
1309
- color: var(--lake-error-color);
1310
- background-color: var(--lake-box-background-color);
1311
- }
1312
-
1313
- .lake-mention {
1314
- border: 1px solid transparent;
1315
- border-radius: 2px;
1316
- }
1317
- .lake-container[readonly="false"] .lake-mention a:hover {
1318
- color: var(--lake-link-color);
1319
- text-decoration: none;
1320
- }
1321
- lake-box[name="mention"] .lake-box-focused .lake-mention {
1322
- border-color: var(--lake-selection-background-color);
1323
- background-color: var(--lake-selection-background-color);
1324
- }
1325
- .lake-mention-menu {
1326
- max-height: 208px;
1327
- }
1328
- .lake-mention-menu .lake-mention-avatar {
1329
- margin-inline-end: 8px;
1330
- line-height: 0;
1331
- }
1332
- .lake-mention-menu .lake-mention-avatar img {
1333
- border-radius: 100%;
1334
- width: 32px;
1335
- height: 32px;
1336
- }
1337
- .lake-mention-menu .lake-mention-nickname {
1338
- margin-inline-end: 4px;
1339
- font-weight: 500;
1340
- color: var(--lake-text-color);
1341
- white-space: nowrap;
1342
- }
1343
- .lake-mention-menu .lake-mention-name {
1344
- color: #8c8c8c;
1345
- }
1346
-
1347
- .lake-slash-menu {
1348
- max-height: 330px;
1349
- }
1350
- .lake-slash-menu .lake-menu-item input[type="file"] {
1351
- display: none;
1352
- }
1353
- .lake-slash-menu .lake-slash-icon {
1354
- margin-inline-end: 8px;
1355
- border-radius: 5px;
1356
- border: 1px solid var(--lake-border-color);
1357
- background-color: #fff;
1358
- line-height: 0;
1359
- }
1360
- .lake-slash-menu .lake-slash-icon svg,
1361
- .lake-slash-menu .lake-slash-icon img {
1362
- width: 32px;
1363
- height: 32px;
1364
- margin: 6px;
1365
- }
1366
- .lake-slash-menu .lake-slash-text {
1367
- display: flex;
1368
- flex-direction: column;
1369
- justify-content: center;
1370
- }
1371
- .lake-slash-menu .lake-slash-title {
1372
- font-weight: 500;
1373
- color: var(--lake-text-color);
1374
- }
1375
- .lake-slash-menu .lake-slash-description {
1376
- color: #8c8c8c;
1377
- }
1378
-
1379
- .lake-toolbar {
1380
- box-sizing: border-box;
1381
- font-family: var(--lake-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(--lake-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
- }
1408
-
1409
- .lake-floating-toolbar {
1410
- position: absolute;
1411
- top: 0;
1412
- left: 0;
1413
- z-index: var(--lake-popup-z-index);
1414
- border: 1px solid var(--lake-border-color);
1415
- border-radius: 5px;
1416
- background-color: #fff;
1417
- box-shadow: 0 2px 0 #00000005;
1418
- padding: 4px;
1419
- display: flex;
1420
- align-items: center;
1421
- }
1422
- .lake-floating-toolbar .lake-toolbar-divider {
1423
- width: 1px;
1424
- height: 20px;
1425
- margin: 0 4px;
1426
- border-left: 1px solid var(--lake-border-color);
1427
- user-select: none;
1428
- }
1429
-
1430
1180
  /*! PhotoSwipe main CSS by Dmytro Semenov | photoswipe.com */
1431
1181
 
1432
1182
  .pswp {
@@ -1847,3 +1597,267 @@ div.pswp__img--placeholder,
1847
1597
  .pswp--one-slide .pswp__counter {
1848
1598
  display: none;
1849
1599
  }
1600
+
1601
+ .lake-video {
1602
+ position: relative;
1603
+ font-size: 14px;
1604
+ font-weight: normal;
1605
+ line-height: 0;
1606
+ border: 1px solid transparent;
1607
+ }
1608
+ lake-box[name="video"] .lake-box-hovered .lake-resizer {
1609
+ display: block;
1610
+ }
1611
+ .lake-video .lake-video-form {
1612
+ padding: 16px;
1613
+ line-height: normal;
1614
+ border: 1px solid var(--lake-box-border-color);
1615
+ border-radius: 4px;
1616
+ }
1617
+ .lake-video input[type="text"] {
1618
+ font-family: var(--lake-font-family);
1619
+ font-size: 14px;
1620
+ color: var(--lake-text-color);
1621
+ border-radius: 5px;
1622
+ border: 1px solid var(--lake-input-border-color);
1623
+ padding: 4px 10px;
1624
+ width: 100%;
1625
+ }
1626
+ .lake-video input[type="text"]:hover {
1627
+ border: 1px solid var(--lake-input-border-hover-color);
1628
+ }
1629
+ .lake-video input[type="text"]:focus-visible {
1630
+ outline: var(--lake-input-outline);
1631
+ outline-offset: -2px;
1632
+ }
1633
+ .lake-video .lake-row {
1634
+ padding-bottom: 8px;
1635
+ }
1636
+ .lake-video .lake-desc-row {
1637
+ padding-top: 8px;
1638
+ padding-bottom: 16px;
1639
+ color: var(--lake-secondary-text-color);
1640
+ }
1641
+ .lake-video .lake-button-row {
1642
+ padding-top: 16px;
1643
+ }
1644
+ .lake-video .lake-button-row button {
1645
+ width: 100%;
1646
+ }
1647
+
1648
+ .lake-file {
1649
+ position: relative;
1650
+ font-size: var(--lake-font-size);
1651
+ font-weight: normal;
1652
+ line-height: 0;
1653
+ border: 1px solid transparent;
1654
+ border-radius: 4px;
1655
+ }
1656
+ .lake-container[contenteditable="true"] .lake-file {
1657
+ cursor: default;
1658
+ user-select: none;
1659
+ }
1660
+ .lake-container[contenteditable="false"] .lake-file {
1661
+ cursor: pointer;
1662
+ user-select: auto;
1663
+ }
1664
+ lake-box[name="file"] .lake-box-strip {
1665
+ align-self: center;
1666
+ }
1667
+ .lake-file .lake-file-info {
1668
+ display: flex;
1669
+ align-items: center;
1670
+ }
1671
+ .lake-file .lake-file-type svg {
1672
+ width: 16px;
1673
+ height: 16px;
1674
+ margin: 4px;
1675
+ }
1676
+ .lake-file .lake-file-name {
1677
+ line-height: 24px;
1678
+ margin-right: 6px;
1679
+ color: var(--lake-link-color);
1680
+ }
1681
+ lake-box[name="file"] .lake-box-hovered .lake-file {
1682
+ background-color: var(--lake-box-background-color);
1683
+ }
1684
+ lake-box[name="file"] .lake-box-selected .lake-file {
1685
+ background-color: var(--lake-selection-background-color);
1686
+ }
1687
+ lake-box[name="file"] .lake-box-focused .lake-file {
1688
+ background-color: var(--lake-selection-background-color);
1689
+ }
1690
+ /* uploading status */
1691
+ .lake-file-uploading .lake-progress {
1692
+ display: flex;
1693
+ align-items: center;
1694
+ margin-right: 6px;
1695
+ }
1696
+ .lake-file-uploading .lake-progress svg {
1697
+ width: 16px;
1698
+ height: 16px;
1699
+ margin: 4px;
1700
+ animation: lakerotate 1s linear 0s infinite normal none;
1701
+ }
1702
+ .lake-file-uploading .lake-progress .lake-percent {
1703
+ line-height: 24px;
1704
+ margin-left: 4px;
1705
+ white-space: nowrap;
1706
+ }
1707
+ /* error status */
1708
+ .lake-file-error .lake-file-type svg {
1709
+ fill: var(--lake-error-color);
1710
+ }
1711
+ .lake-file-error .lake-file-name {
1712
+ color: var(--lake-error-color);
1713
+ }
1714
+
1715
+ .lake-emoji {
1716
+ line-height: 0;
1717
+ border: 1px solid transparent;
1718
+ border-radius: 2px;
1719
+ }
1720
+ .lake-emoji img {
1721
+ border: 0;
1722
+ border-radius: 2px;
1723
+ width: 32px;
1724
+ height: 32px;
1725
+ }
1726
+ lake-box[name="emoji"] .lake-box-focused .lake-emoji {
1727
+ border-color: var(--lake-selection-background-color);
1728
+ background-color: var(--lake-selection-background-color);
1729
+ }
1730
+
1731
+ .lake-equation {
1732
+ position: relative;
1733
+ font-weight: normal;
1734
+ border: 1px solid transparent;
1735
+ border-radius: 4px;
1736
+ }
1737
+ .lake-container[contenteditable="true"] .lake-equation {
1738
+ user-select: none;
1739
+ }
1740
+ lake-box[name="equation"] .lake-box-strip {
1741
+ align-self: center;
1742
+ }
1743
+ lake-box[name="equation"] .lake-box-selected .lake-equation {
1744
+ background-color: var(--lake-selection-background-color);
1745
+ }
1746
+ lake-box[name="equation"] .lake-box-focused .lake-equation {
1747
+ background-color: var(--lake-selection-background-color);
1748
+ }
1749
+ .lake-equation .lake-equation-view {
1750
+ padding: 0 6px;
1751
+ }
1752
+ .lake-equation .lake-equation-form {
1753
+ position: absolute;
1754
+ top: 28px;
1755
+ left: 0;
1756
+ z-index: 1;
1757
+ border: 1px solid var(--lake-border-color);
1758
+ border-radius: 5px;
1759
+ padding: 16px;
1760
+ width: fit-content;
1761
+ background-color: #fff;
1762
+ box-shadow: var(--lake-popup-shadow);
1763
+ display: none;
1764
+ }
1765
+ lake-box[name="equation"] .lake-box-focused .lake-equation-form,
1766
+ lake-box[name="equation"] .lake-box-activated .lake-equation-form {
1767
+ display: flex;
1768
+ }
1769
+ .lake-equation .lake-equation-form textarea {
1770
+ border: 0;
1771
+ font-family: Consolas, Courier, monospace;
1772
+ font-size: 14px;
1773
+ color: var(--lake-text-color);
1774
+ padding: 0;
1775
+ margin-right: 8px;
1776
+ width: 300px;
1777
+ height: 80px;
1778
+ resize: none;
1779
+ scrollbar-width: thin;
1780
+ }
1781
+ .lake-equation .lake-equation-form textarea:focus-visible {
1782
+ outline: 0;
1783
+ }
1784
+ .lake-equation .lake-equation-form .lake-button-row {
1785
+ display: flex;
1786
+ flex-direction: column;
1787
+ justify-content: space-between;
1788
+ align-items: flex-end;
1789
+ }
1790
+ /* error status */
1791
+ .lake-equation-error {
1792
+ padding: 0 6px;
1793
+ font-size: 14px;
1794
+ color: var(--lake-error-color);
1795
+ background-color: var(--lake-box-background-color);
1796
+ }
1797
+
1798
+ .lake-mention-menu {
1799
+ max-height: 208px;
1800
+ }
1801
+ .lake-mention-menu .lake-mention-avatar {
1802
+ margin-inline-end: 8px;
1803
+ line-height: 0;
1804
+ }
1805
+ .lake-mention-menu .lake-mention-avatar img {
1806
+ border-radius: 100%;
1807
+ width: 32px;
1808
+ height: 32px;
1809
+ }
1810
+ .lake-mention-menu .lake-mention-nickname {
1811
+ margin-inline-end: 4px;
1812
+ font-weight: 500;
1813
+ color: var(--lake-text-color);
1814
+ white-space: nowrap;
1815
+ }
1816
+ .lake-mention-menu .lake-mention-name {
1817
+ color: #8c8c8c;
1818
+ }
1819
+
1820
+ .lake-mention {
1821
+ border: 1px solid transparent;
1822
+ border-radius: 2px;
1823
+ }
1824
+ .lake-container[readonly="false"] .lake-mention a:hover {
1825
+ color: var(--lake-link-color);
1826
+ text-decoration: none;
1827
+ }
1828
+ lake-box[name="mention"] .lake-box-focused .lake-mention {
1829
+ border-color: var(--lake-selection-background-color);
1830
+ background-color: var(--lake-selection-background-color);
1831
+ }
1832
+
1833
+ .lake-slash-menu {
1834
+ max-height: 330px;
1835
+ }
1836
+ .lake-slash-menu .lake-menu-item input[type="file"] {
1837
+ display: none;
1838
+ }
1839
+ .lake-slash-menu .lake-slash-icon {
1840
+ margin-inline-end: 8px;
1841
+ border-radius: 5px;
1842
+ border: 1px solid var(--lake-border-color);
1843
+ background-color: #fff;
1844
+ line-height: 0;
1845
+ }
1846
+ .lake-slash-menu .lake-slash-icon svg,
1847
+ .lake-slash-menu .lake-slash-icon img {
1848
+ width: 32px;
1849
+ height: 32px;
1850
+ margin: 6px;
1851
+ }
1852
+ .lake-slash-menu .lake-slash-text {
1853
+ display: flex;
1854
+ flex-direction: column;
1855
+ justify-content: center;
1856
+ }
1857
+ .lake-slash-menu .lake-slash-title {
1858
+ font-weight: 500;
1859
+ color: var(--lake-text-color);
1860
+ }
1861
+ .lake-slash-menu .lake-slash-description {
1862
+ color: #8c8c8c;
1863
+ }