@excalidraw/excalidraw 0.18.0-4e758db → 0.18.0-4f68076
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/CHANGELOG.md +13 -1
- package/dist/dev/{chunk-NSFXTDWY.js → chunk-FEJNYWVA.js} +20 -3
- package/dist/dev/chunk-FEJNYWVA.js.map +7 -0
- package/dist/dev/{chunk-AO643733.js → chunk-KMZYJ2CN.js} +153 -80
- package/dist/dev/chunk-KMZYJ2CN.js.map +7 -0
- package/dist/dev/data/{image-OGAD6TRQ.js → image-GQWXOMCO.js} +2 -2
- package/dist/dev/index.css +469 -167
- package/dist/dev/index.css.map +3 -3
- package/dist/dev/index.js +9683 -7504
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/locales/{en-DACNMKF5.js → en-XCQUEBFE.js} +4 -2
- package/dist/prod/chunk-3UZ67F5C.js +12 -0
- package/dist/prod/chunk-H5A3YXKD.js +4 -0
- package/dist/prod/data/image-6XY3GD3F.js +1 -0
- package/dist/prod/index.css +1 -1
- package/dist/prod/index.js +31 -31
- package/dist/prod/locales/en-APPZPZFQ.js +1 -0
- package/dist/types/common/src/constants.d.ts +10 -0
- package/dist/types/common/src/utils.d.ts +5 -0
- package/dist/types/element/src/binding.d.ts +13 -7
- package/dist/types/element/src/collision.d.ts +14 -5
- package/dist/types/element/src/duplicate.d.ts +60 -0
- package/dist/types/element/src/index.d.ts +1 -0
- package/dist/types/element/src/listMarker.d.ts +34 -0
- package/dist/types/element/src/newElement.d.ts +15 -1
- package/dist/types/element/src/renderElement.d.ts +21 -4
- package/dist/types/element/src/shape.d.ts +15 -1
- package/dist/types/element/src/textElement.d.ts +7 -0
- package/dist/types/element/src/utils.d.ts +8 -1
- package/dist/types/element/src/zindex.d.ts +1 -1
- package/dist/types/excalidraw/actions/actionAddToLibrary.d.ts +30 -3
- package/dist/types/excalidraw/actions/actionBoundText.d.ts +20 -2
- package/dist/types/excalidraw/actions/actionCanvas.d.ts +70 -7
- package/dist/types/excalidraw/actions/actionClipboard.d.ts +20 -2
- package/dist/types/excalidraw/actions/actionCropEditor.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionDeleteSelected.d.ts +30 -3
- package/dist/types/excalidraw/actions/actionDeselect.d.ts +13 -1
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionElementLock.d.ts +20 -2
- package/dist/types/excalidraw/actions/actionExport.d.ts +20 -2
- package/dist/types/excalidraw/actions/actionFrame.d.ts +30 -3
- package/dist/types/excalidraw/actions/actionGroup.d.ts +20 -2
- package/dist/types/excalidraw/actions/actionLinearEditor.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionLink.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionMenu.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionProperties.d.ts +20 -2
- package/dist/types/excalidraw/actions/actionSelectAll.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionStyles.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionToggleArrowBinding.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionToggleGridMode.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionToggleMidpointSnapping.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionToggleObjectsSnapMode.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionToggleSearchMenu.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionToggleShowHints.d.ts +197 -0
- package/dist/types/excalidraw/actions/actionToggleStats.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionToggleViewMode.d.ts +10 -1
- package/dist/types/excalidraw/actions/actionToggleZenMode.d.ts +10 -1
- package/dist/types/excalidraw/actions/index.d.ts +1 -0
- package/dist/types/excalidraw/actions/types.d.ts +1 -1
- package/dist/types/excalidraw/appState.d.ts +2 -0
- package/dist/types/excalidraw/components/App.arrowText.d.ts +5 -39
- package/dist/types/excalidraw/components/App.clipboard.d.ts +31 -0
- package/dist/types/excalidraw/components/App.d.ts +82 -262
- package/dist/types/excalidraw/components/App.duplicate.d.ts +101 -0
- package/dist/types/excalidraw/components/App.modifiers.d.ts +38 -0
- package/dist/types/excalidraw/components/App.pan.d.ts +62 -0
- package/dist/types/excalidraw/components/App.selectionTool.d.ts +57 -0
- package/dist/types/excalidraw/components/App.text.d.ts +146 -0
- package/dist/types/excalidraw/components/App.textTool.d.ts +140 -0
- package/dist/types/excalidraw/components/App.viewport.d.ts +41 -1
- package/dist/types/excalidraw/components/App.wheel.d.ts +3 -10
- package/dist/types/excalidraw/components/ColorPicker/Picker.d.ts +2 -0
- package/dist/types/excalidraw/components/ColorPicker/colorTopPicksDnD.d.ts +11 -0
- package/dist/types/excalidraw/components/FileDropOverlay.d.ts +2 -0
- package/dist/types/excalidraw/components/FontPicker/FontPicker.d.ts +4 -1
- package/dist/types/excalidraw/components/FontPicker/FontPickerList.d.ts +6 -1
- package/dist/types/excalidraw/components/FontPicker/fontTopPicksDnD.d.ts +12 -0
- package/dist/types/excalidraw/components/LibraryMenuSection.d.ts +6 -2
- package/dist/types/excalidraw/components/LibraryUnit.d.ts +7 -2
- package/dist/types/excalidraw/components/Tooltip.d.ts +15 -1
- package/dist/types/excalidraw/components/TopPicksDnD/TopPicksContextMenu.d.ts +14 -0
- package/dist/types/excalidraw/components/TopPicksDnD/TopPicksTip.d.ts +11 -0
- package/dist/types/excalidraw/components/TopPicksDnD/topPicksDnD.d.ts +58 -0
- package/dist/types/excalidraw/components/main-menu/DefaultItems.d.ts +1 -0
- package/dist/types/excalidraw/data/blob.d.ts +20 -2
- package/dist/types/excalidraw/data/json.d.ts +10 -1
- package/dist/types/excalidraw/index.d.ts +1 -1
- package/dist/types/excalidraw/renderOverrides.d.ts +9 -0
- package/dist/types/excalidraw/scene/Renderer.d.ts +14 -1
- package/dist/types/excalidraw/scene/types.d.ts +2 -1
- package/dist/types/excalidraw/types.d.ts +92 -19
- package/dist/types/excalidraw/viewport.d.ts +23 -1
- package/dist/types/excalidraw/wysiwyg/textWysiwyg.d.ts +12 -1
- package/package.json +4 -4
- package/dist/dev/chunk-AO643733.js.map +0 -7
- package/dist/dev/chunk-NSFXTDWY.js.map +0 -7
- package/dist/prod/chunk-ISPTBLVO.js +0 -12
- package/dist/prod/chunk-URQHFSVW.js +0 -4
- package/dist/prod/data/image-ZKZKKFBR.js +0 -1
- package/dist/prod/locales/en-JTHJ2SIP.js +0 -1
- package/dist/types/excalidraw/components/ColorPicker/topPicksDnD.d.ts +0 -31
- /package/dist/dev/data/{image-OGAD6TRQ.js.map → image-GQWXOMCO.js.map} +0 -0
- /package/dist/dev/locales/{en-DACNMKF5.js.map → en-XCQUEBFE.js.map} +0 -0
package/dist/dev/index.css
CHANGED
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
color: var(--color-on-primary-container);
|
|
28
28
|
}
|
|
29
29
|
.excalidraw .ToolIcon .ToolIcon__keybinding {
|
|
30
|
-
bottom:
|
|
31
|
-
right:
|
|
30
|
+
bottom: 2px;
|
|
31
|
+
right: 3px;
|
|
32
32
|
}
|
|
33
33
|
.excalidraw .ToolIcon .ToolIcon__icon:hover {
|
|
34
34
|
background: var(--button-hover-bg);
|
|
@@ -320,33 +320,93 @@
|
|
|
320
320
|
box-shadow: none;
|
|
321
321
|
}
|
|
322
322
|
|
|
323
|
-
/* components/
|
|
324
|
-
.excalidraw {
|
|
325
|
-
|
|
323
|
+
/* components/TopPicksDnD/TopPicksDnD.scss */
|
|
324
|
+
.excalidraw .top-picks-dnd {
|
|
325
|
+
position: relative;
|
|
326
326
|
}
|
|
327
|
-
.excalidraw.
|
|
328
|
-
|
|
327
|
+
.excalidraw .top-picks-dnd__pick {
|
|
328
|
+
touch-action: none;
|
|
329
329
|
}
|
|
330
|
-
.excalidraw .
|
|
331
|
-
|
|
330
|
+
.excalidraw .top-picks-dnd.is-dnd-active .top-picks-dnd__pick {
|
|
331
|
+
pointer-events: none;
|
|
332
|
+
transition:
|
|
333
|
+
transform 0.14s ease,
|
|
334
|
+
opacity 0.14s ease,
|
|
335
|
+
box-shadow 0.14s ease;
|
|
332
336
|
}
|
|
333
|
-
.excalidraw .
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
+
.excalidraw .top-picks-dnd__outline {
|
|
338
|
+
position: absolute;
|
|
339
|
+
top: -5px;
|
|
340
|
+
left: -5px;
|
|
341
|
+
width: calc(100% + 10px);
|
|
342
|
+
height: calc(100% + 10px);
|
|
343
|
+
pointer-events: none;
|
|
344
|
+
overflow: visible;
|
|
337
345
|
}
|
|
338
|
-
.excalidraw .
|
|
346
|
+
.excalidraw .top-picks-dnd__outline rect {
|
|
347
|
+
x: 0.5px;
|
|
348
|
+
y: 0.5px;
|
|
349
|
+
rx: 6px;
|
|
350
|
+
width: calc(100% - 1px);
|
|
351
|
+
height: calc(100% - 1px);
|
|
352
|
+
fill: none;
|
|
353
|
+
stroke: var(--color-primary);
|
|
354
|
+
stroke-width: 1;
|
|
355
|
+
stroke-dasharray: 4 4;
|
|
356
|
+
animation: excalidraw-top-picks-dnd-march 0.8s linear infinite;
|
|
357
|
+
}
|
|
358
|
+
@media (prefers-reduced-motion: reduce) {
|
|
359
|
+
.excalidraw .top-picks-dnd__outline rect {
|
|
360
|
+
animation: none;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
@keyframes excalidraw-top-picks-dnd-march {
|
|
364
|
+
to {
|
|
365
|
+
stroke-dashoffset: -8;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
.excalidraw .top-picks-dnd__pick.is-dnd-source {
|
|
369
|
+
opacity: 0.3;
|
|
370
|
+
}
|
|
371
|
+
.excalidraw .top-picks-dnd__pick.is-dnd-duplicate {
|
|
372
|
+
animation: excalidraw-top-picks-dnd-duplicate 0.45s ease-in-out infinite alternate;
|
|
373
|
+
}
|
|
374
|
+
@keyframes excalidraw-top-picks-dnd-duplicate {
|
|
375
|
+
from {
|
|
376
|
+
box-shadow: 0 0 0 2px var(--color-danger, #e03131);
|
|
377
|
+
transform: scale(1);
|
|
378
|
+
}
|
|
379
|
+
to {
|
|
380
|
+
box-shadow: 0 0 0 3px var(--color-danger, #e03131);
|
|
381
|
+
transform: scale(1.12);
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
.excalidraw .top-picks-dnd__tip {
|
|
339
385
|
padding: 0 0.5rem;
|
|
340
|
-
font-size: 0.
|
|
386
|
+
font-size: 0.6875rem;
|
|
387
|
+
line-height: 1.4;
|
|
341
388
|
text-align: left;
|
|
389
|
+
color: var(--color-gray-60);
|
|
390
|
+
}
|
|
391
|
+
.excalidraw .top-picks-dnd__tip-reset {
|
|
392
|
+
padding: 0;
|
|
393
|
+
margin: 0;
|
|
394
|
+
border: 0;
|
|
395
|
+
background: none;
|
|
396
|
+
font: inherit;
|
|
397
|
+
color: var(--color-primary);
|
|
398
|
+
cursor: pointer;
|
|
399
|
+
}
|
|
400
|
+
.excalidraw .top-picks-dnd__tip-reset:hover {
|
|
401
|
+
text-decoration: underline;
|
|
342
402
|
}
|
|
343
|
-
.excalidraw .
|
|
403
|
+
.excalidraw .top-picks-dnd__context-menu {
|
|
344
404
|
background: var(--popup-bg-color);
|
|
345
405
|
border-radius: var(--border-radius-lg);
|
|
346
406
|
box-shadow: var(--shadow-island);
|
|
347
407
|
padding: 0.25rem;
|
|
348
408
|
}
|
|
349
|
-
.excalidraw .
|
|
409
|
+
.excalidraw .top-picks-dnd__context-menu-item {
|
|
350
410
|
font-size: 0.75rem;
|
|
351
411
|
padding: 0.375rem 0.625rem;
|
|
352
412
|
border-radius: var(--border-radius-md);
|
|
@@ -355,24 +415,90 @@
|
|
|
355
415
|
outline: none;
|
|
356
416
|
user-select: none;
|
|
357
417
|
}
|
|
358
|
-
.excalidraw .
|
|
359
|
-
.excalidraw .
|
|
418
|
+
.excalidraw .top-picks-dnd__context-menu-item[data-highlighted],
|
|
419
|
+
.excalidraw .top-picks-dnd__context-menu-item:not([data-disabled]):hover {
|
|
360
420
|
background: var(--button-hover-bg);
|
|
361
421
|
}
|
|
362
|
-
.excalidraw .
|
|
422
|
+
.excalidraw .top-picks-dnd__context-menu-item[data-disabled] {
|
|
363
423
|
opacity: 0.5;
|
|
364
424
|
pointer-events: none;
|
|
365
425
|
}
|
|
366
|
-
.excalidraw
|
|
426
|
+
.excalidraw-top-picks-dnd-ghost {
|
|
427
|
+
position: fixed;
|
|
428
|
+
top: 0;
|
|
429
|
+
left: 0;
|
|
430
|
+
z-index: 10000;
|
|
431
|
+
pointer-events: none;
|
|
432
|
+
will-change: transform;
|
|
433
|
+
transition: width 0.15s ease, height 0.15s ease;
|
|
434
|
+
}
|
|
435
|
+
.excalidraw-top-picks-dnd-ghost__content {
|
|
436
|
+
width: 100%;
|
|
437
|
+
height: 100%;
|
|
438
|
+
box-sizing: border-box;
|
|
439
|
+
box-shadow: var(--top-picks-dnd-ghost-ring, 0 0 transparent);
|
|
440
|
+
transition:
|
|
441
|
+
transform 0.15s ease,
|
|
442
|
+
opacity 0.15s ease,
|
|
443
|
+
box-shadow 0.15s ease;
|
|
444
|
+
}
|
|
445
|
+
.excalidraw-top-picks-dnd-ghost--lifted .excalidraw-top-picks-dnd-ghost__content {
|
|
446
|
+
transform: scale(1.2);
|
|
447
|
+
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25), var(--top-picks-dnd-ghost-ring, 0 0 transparent);
|
|
448
|
+
}
|
|
449
|
+
.excalidraw-top-picks-dnd-ghost--over .excalidraw-top-picks-dnd-ghost__content {
|
|
450
|
+
transform: scale(1.05);
|
|
451
|
+
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2), var(--top-picks-dnd-ghost-ring, 0 0 transparent);
|
|
452
|
+
}
|
|
453
|
+
.excalidraw-top-picks-dnd-ghost--blocked .excalidraw-top-picks-dnd-ghost__content {
|
|
454
|
+
opacity: 0.4;
|
|
455
|
+
transform: scale(0.85);
|
|
456
|
+
}
|
|
457
|
+
.excalidraw-top-picks-dnd-ghost--dropping {
|
|
458
|
+
transition:
|
|
459
|
+
transform 0.18s cubic-bezier(0.2, 0.8, 0.3, 1),
|
|
460
|
+
width 0.18s ease,
|
|
461
|
+
height 0.18s ease;
|
|
462
|
+
}
|
|
463
|
+
.excalidraw-top-picks-dnd-ghost--dropping .excalidraw-top-picks-dnd-ghost__content {
|
|
464
|
+
transform: scale(1);
|
|
465
|
+
box-shadow: var(--top-picks-dnd-ghost-ring, 0 0 transparent);
|
|
466
|
+
}
|
|
467
|
+
.excalidraw-top-picks-dnd-ghost--fade .excalidraw-top-picks-dnd-ghost__content {
|
|
468
|
+
opacity: 0;
|
|
469
|
+
}
|
|
470
|
+
body.excalidraw-top-picks-dnd-active {
|
|
471
|
+
user-select: none !important;
|
|
472
|
+
-webkit-user-select: none !important;
|
|
473
|
+
}
|
|
474
|
+
body.excalidraw-top-picks-dnd-active,
|
|
475
|
+
body.excalidraw-top-picks-dnd-active * {
|
|
476
|
+
cursor: grabbing !important;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
/* components/ColorPicker/ColorPicker.scss */
|
|
480
|
+
.excalidraw {
|
|
481
|
+
--color-outline: var(--color-gray-20);
|
|
482
|
+
}
|
|
483
|
+
.excalidraw.theme--dark {
|
|
484
|
+
--color-outline: var(--color-gray-80);
|
|
485
|
+
}
|
|
486
|
+
.excalidraw .focus-visible-none:focus-visible {
|
|
487
|
+
outline: none !important;
|
|
488
|
+
}
|
|
489
|
+
.excalidraw .color-picker__title {
|
|
367
490
|
padding: 0 0.5rem;
|
|
368
|
-
font-size: 0.
|
|
369
|
-
|
|
491
|
+
font-size: 0.875rem;
|
|
492
|
+
text-align: left;
|
|
493
|
+
}
|
|
494
|
+
.excalidraw .color-picker__heading {
|
|
495
|
+
padding: 0 0.5rem;
|
|
496
|
+
font-size: 0.75rem;
|
|
370
497
|
text-align: left;
|
|
371
|
-
color: var(--color-gray-60);
|
|
372
498
|
}
|
|
373
499
|
.excalidraw .color-picker-container {
|
|
374
500
|
display: grid;
|
|
375
|
-
grid-template-columns: 1fr
|
|
501
|
+
grid-template-columns: 1fr 15px 1.625rem;
|
|
376
502
|
padding: 0.25rem 0px;
|
|
377
503
|
align-items: center;
|
|
378
504
|
}
|
|
@@ -388,6 +514,7 @@
|
|
|
388
514
|
display: flex;
|
|
389
515
|
justify-content: space-between;
|
|
390
516
|
align-items: center;
|
|
517
|
+
gap: 5px;
|
|
391
518
|
}
|
|
392
519
|
.excalidraw .color-picker__button {
|
|
393
520
|
--radius: 4px;
|
|
@@ -492,7 +619,7 @@
|
|
|
492
619
|
height: var(--mobile-action-button-size);
|
|
493
620
|
}
|
|
494
621
|
.excalidraw .color-picker__button.mobile-border {
|
|
495
|
-
border: 1px solid var(--
|
|
622
|
+
border: 1px solid var(--default-border-color);
|
|
496
623
|
}
|
|
497
624
|
.excalidraw .color-picker__button__hotkey-label {
|
|
498
625
|
position: absolute;
|
|
@@ -685,127 +812,19 @@
|
|
|
685
812
|
.excalidraw .color-picker-input:focus-visible {
|
|
686
813
|
box-shadow: none;
|
|
687
814
|
}
|
|
688
|
-
.excalidraw .color-picker__top-picks {
|
|
689
|
-
position: relative;
|
|
690
|
-
}
|
|
691
|
-
.excalidraw .color-picker__top-picks .color-picker__button {
|
|
692
|
-
touch-action: none;
|
|
693
|
-
}
|
|
694
|
-
.excalidraw .color-picker__top-picks.is-dnd-active .color-picker__button {
|
|
695
|
-
pointer-events: none;
|
|
696
|
-
transition:
|
|
697
|
-
transform 0.14s ease,
|
|
698
|
-
opacity 0.14s ease,
|
|
699
|
-
box-shadow 0.14s ease;
|
|
700
|
-
}
|
|
701
|
-
.excalidraw .color-picker__top-picks__dnd-outline {
|
|
702
|
-
position: absolute;
|
|
703
|
-
top: -5px;
|
|
704
|
-
left: -5px;
|
|
705
|
-
width: calc(100% + 10px);
|
|
706
|
-
height: calc(100% + 10px);
|
|
707
|
-
pointer-events: none;
|
|
708
|
-
overflow: visible;
|
|
709
|
-
}
|
|
710
|
-
.excalidraw .color-picker__top-picks__dnd-outline rect {
|
|
711
|
-
x: 0.5px;
|
|
712
|
-
y: 0.5px;
|
|
713
|
-
rx: 6px;
|
|
714
|
-
width: calc(100% - 1px);
|
|
715
|
-
height: calc(100% - 1px);
|
|
716
|
-
fill: none;
|
|
717
|
-
stroke: var(--color-primary);
|
|
718
|
-
stroke-width: 1;
|
|
719
|
-
stroke-dasharray: 4 4;
|
|
720
|
-
animation: excalidraw-color-dnd-march 0.8s linear infinite;
|
|
721
|
-
}
|
|
722
|
-
@media (prefers-reduced-motion: reduce) {
|
|
723
|
-
.excalidraw .color-picker__top-picks__dnd-outline rect {
|
|
724
|
-
animation: none;
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
|
-
@keyframes excalidraw-color-dnd-march {
|
|
728
|
-
to {
|
|
729
|
-
stroke-dashoffset: -8;
|
|
730
|
-
}
|
|
731
|
-
}
|
|
732
|
-
.excalidraw .color-picker__button.is-dnd-source {
|
|
733
|
-
opacity: 0.3;
|
|
734
|
-
}
|
|
735
815
|
.excalidraw .color-picker__button.is-dnd-target {
|
|
736
816
|
transform: scale(1.2);
|
|
737
817
|
box-shadow: 0 0 0 1px var(--color-primary-darkest);
|
|
738
818
|
}
|
|
739
|
-
.excalidraw
|
|
740
|
-
|
|
741
|
-
}
|
|
742
|
-
@keyframes excalidraw-color-dnd-duplicate {
|
|
743
|
-
from {
|
|
744
|
-
box-shadow: 0 0 0 2px var(--color-danger, #e03131);
|
|
745
|
-
transform: scale(1);
|
|
746
|
-
}
|
|
747
|
-
to {
|
|
748
|
-
box-shadow: 0 0 0 3px var(--color-danger, #e03131);
|
|
749
|
-
transform: scale(1.12);
|
|
750
|
-
}
|
|
751
|
-
}
|
|
752
|
-
.excalidraw-color-dnd-ghost {
|
|
753
|
-
position: fixed;
|
|
754
|
-
top: 0;
|
|
755
|
-
left: 0;
|
|
756
|
-
z-index: 10000;
|
|
757
|
-
pointer-events: none;
|
|
758
|
-
will-change: transform;
|
|
759
|
-
transition: width 0.15s ease, height 0.15s ease;
|
|
760
|
-
}
|
|
761
|
-
.excalidraw-color-dnd-ghost__swatch {
|
|
762
|
-
width: 100%;
|
|
763
|
-
height: 100%;
|
|
819
|
+
.excalidraw-color-dnd-ghost-swatch {
|
|
820
|
+
--top-picks-dnd-ghost-ring: 0 0 0 1px rgba(0, 0, 0, 0.08);
|
|
764
821
|
border-radius: 4px;
|
|
765
|
-
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
|
|
766
|
-
transition:
|
|
767
|
-
transform 0.15s ease,
|
|
768
|
-
opacity 0.15s ease,
|
|
769
|
-
box-shadow 0.15s ease;
|
|
770
822
|
}
|
|
771
|
-
.excalidraw-color-dnd-
|
|
823
|
+
.excalidraw-color-dnd-ghost-swatch.is-transparent {
|
|
772
824
|
background-color: #fff;
|
|
773
825
|
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==);
|
|
774
826
|
background-position: left center;
|
|
775
827
|
}
|
|
776
|
-
.excalidraw-color-dnd-ghost--lifted .excalidraw-color-dnd-ghost__swatch {
|
|
777
|
-
transform: scale(1.2);
|
|
778
|
-
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.08);
|
|
779
|
-
}
|
|
780
|
-
.excalidraw-color-dnd-ghost--over .excalidraw-color-dnd-ghost__swatch {
|
|
781
|
-
transform: scale(1.05);
|
|
782
|
-
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.08);
|
|
783
|
-
}
|
|
784
|
-
.excalidraw-color-dnd-ghost--blocked .excalidraw-color-dnd-ghost__swatch {
|
|
785
|
-
opacity: 0.4;
|
|
786
|
-
transform: scale(0.85);
|
|
787
|
-
}
|
|
788
|
-
.excalidraw-color-dnd-ghost--dropping {
|
|
789
|
-
transition:
|
|
790
|
-
transform 0.18s cubic-bezier(0.2, 0.8, 0.3, 1),
|
|
791
|
-
width 0.18s ease,
|
|
792
|
-
height 0.18s ease;
|
|
793
|
-
}
|
|
794
|
-
.excalidraw-color-dnd-ghost--dropping .excalidraw-color-dnd-ghost__swatch {
|
|
795
|
-
transform: scale(1);
|
|
796
|
-
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
|
|
797
|
-
}
|
|
798
|
-
.excalidraw-color-dnd-ghost--fade .excalidraw-color-dnd-ghost__swatch {
|
|
799
|
-
opacity: 0;
|
|
800
|
-
}
|
|
801
|
-
body.excalidraw-color-dnd-active {
|
|
802
|
-
user-select: none !important;
|
|
803
|
-
-webkit-user-select: none !important;
|
|
804
|
-
}
|
|
805
|
-
body.excalidraw-color-dnd-active,
|
|
806
|
-
body.excalidraw-color-dnd-active * {
|
|
807
|
-
cursor: grabbing !important;
|
|
808
|
-
}
|
|
809
828
|
|
|
810
829
|
/* components/QuickSearch.scss */
|
|
811
830
|
.excalidraw {
|
|
@@ -883,6 +902,26 @@ body.excalidraw-color-dnd-active * {
|
|
|
883
902
|
display: block;
|
|
884
903
|
grid-template-columns: none;
|
|
885
904
|
}
|
|
905
|
+
.excalidraw .FontPicker__top-picks-slots {
|
|
906
|
+
display: flex;
|
|
907
|
+
gap: inherit;
|
|
908
|
+
}
|
|
909
|
+
.excalidraw .FontPicker__top-picks .top-picks-dnd__pick.is-dnd-target {
|
|
910
|
+
transform: scale(1.1);
|
|
911
|
+
border-color: var(--color-primary);
|
|
912
|
+
}
|
|
913
|
+
.excalidraw .FontPicker__top-pick-sample {
|
|
914
|
+
font-size: 1rem;
|
|
915
|
+
line-height: 1;
|
|
916
|
+
}
|
|
917
|
+
.excalidraw .FontPicker__tip {
|
|
918
|
+
margin-top: 0.5rem;
|
|
919
|
+
}
|
|
920
|
+
.excalidraw-font-dnd-ghost-tile {
|
|
921
|
+
display: flex;
|
|
922
|
+
align-items: center;
|
|
923
|
+
justify-content: center;
|
|
924
|
+
}
|
|
886
925
|
|
|
887
926
|
/* components/IconPicker.scss */
|
|
888
927
|
.excalidraw .picker {
|
|
@@ -993,15 +1032,21 @@ body.excalidraw-color-dnd-active * {
|
|
|
993
1032
|
--slider-thumb-size: 16px;
|
|
994
1033
|
}
|
|
995
1034
|
.excalidraw .range-wrapper {
|
|
1035
|
+
--range-progress: 0;
|
|
996
1036
|
position: relative;
|
|
997
1037
|
padding-top: 10px;
|
|
998
1038
|
padding-bottom: 25px;
|
|
999
1039
|
}
|
|
1000
1040
|
.excalidraw .range-input {
|
|
1001
1041
|
width: 100%;
|
|
1042
|
+
margin-inline: 0;
|
|
1002
1043
|
height: 4px;
|
|
1003
1044
|
-webkit-appearance: none;
|
|
1004
|
-
background:
|
|
1045
|
+
background:
|
|
1046
|
+
linear-gradient(
|
|
1047
|
+
to right,
|
|
1048
|
+
var(--color-slider-track) calc(var(--range-progress) * 100%),
|
|
1049
|
+
var(--button-bg) calc(var(--range-progress) * 100%));
|
|
1005
1050
|
border-radius: 2px;
|
|
1006
1051
|
outline: none;
|
|
1007
1052
|
}
|
|
@@ -1026,6 +1071,7 @@ body.excalidraw-color-dnd-active * {
|
|
|
1026
1071
|
.excalidraw .value-bubble {
|
|
1027
1072
|
position: absolute;
|
|
1028
1073
|
bottom: 0;
|
|
1074
|
+
left: calc(var(--slider-thumb-size) / 2 + (100% - var(--slider-thumb-size)) * var(--range-progress));
|
|
1029
1075
|
transform: translateX(-50%);
|
|
1030
1076
|
font-size: 12px;
|
|
1031
1077
|
color: var(--text-primary-color);
|
|
@@ -1667,6 +1713,12 @@ body.excalidraw-color-dnd-active * {
|
|
|
1667
1713
|
.excalidraw .dropdown-menu.fonts .dropdown-menu-item-base {
|
|
1668
1714
|
display: inline-flex;
|
|
1669
1715
|
}
|
|
1716
|
+
.excalidraw .dropdown-menu.fonts .dropdown-menu-item:focus-visible {
|
|
1717
|
+
box-shadow: inset 0 0 0 1px var(--color-brand-hover);
|
|
1718
|
+
}
|
|
1719
|
+
.excalidraw .dropdown-menu.fonts .dropdown-menu-item:active {
|
|
1720
|
+
box-shadow: inset 0 0 0 1px var(--color-brand-active);
|
|
1721
|
+
}
|
|
1670
1722
|
.excalidraw .dropdown-menu.fonts .dropdown-menu-group:not(:first-child) {
|
|
1671
1723
|
margin-top: 1rem;
|
|
1672
1724
|
}
|
|
@@ -1907,6 +1959,42 @@ body.excalidraw-color-dnd-active * {
|
|
|
1907
1959
|
max-height: 100%;
|
|
1908
1960
|
max-width: 100%;
|
|
1909
1961
|
}
|
|
1962
|
+
.excalidraw .library-unit--named {
|
|
1963
|
+
width: 100%;
|
|
1964
|
+
height: auto;
|
|
1965
|
+
aspect-ratio: 1;
|
|
1966
|
+
}
|
|
1967
|
+
.excalidraw .library-unit--named .library-unit__dragger {
|
|
1968
|
+
flex-direction: column;
|
|
1969
|
+
gap: 0.25rem;
|
|
1970
|
+
padding: 0.5rem;
|
|
1971
|
+
box-sizing: border-box;
|
|
1972
|
+
}
|
|
1973
|
+
.excalidraw .library-unit__preview {
|
|
1974
|
+
flex: 1 1 0;
|
|
1975
|
+
min-height: 0;
|
|
1976
|
+
width: 100%;
|
|
1977
|
+
display: flex;
|
|
1978
|
+
align-items: center;
|
|
1979
|
+
justify-content: center;
|
|
1980
|
+
}
|
|
1981
|
+
.excalidraw .library-unit__preview > svg {
|
|
1982
|
+
filter: var(--theme-filter);
|
|
1983
|
+
width: 100%;
|
|
1984
|
+
height: 100%;
|
|
1985
|
+
}
|
|
1986
|
+
.excalidraw .library-unit__name {
|
|
1987
|
+
flex: none;
|
|
1988
|
+
width: 100%;
|
|
1989
|
+
font-size: 0.75rem;
|
|
1990
|
+
line-height: 1rem;
|
|
1991
|
+
height: 1rem;
|
|
1992
|
+
text-align: center;
|
|
1993
|
+
white-space: nowrap;
|
|
1994
|
+
overflow: hidden;
|
|
1995
|
+
text-overflow: ellipsis;
|
|
1996
|
+
color: var(--text-primary-color);
|
|
1997
|
+
}
|
|
1910
1998
|
.excalidraw .library-unit__checkbox-container,
|
|
1911
1999
|
.excalidraw .library-unit__checkbox-container:hover,
|
|
1912
2000
|
.excalidraw .library-unit__checkbox-container:active {
|
|
@@ -2070,6 +2158,7 @@ body.excalidraw-color-dnd-active * {
|
|
|
2070
2158
|
flex: 1;
|
|
2071
2159
|
overflow-y: auto;
|
|
2072
2160
|
overflow-x: hidden;
|
|
2161
|
+
scrollbar-gutter: stable;
|
|
2073
2162
|
}
|
|
2074
2163
|
.excalidraw .library-menu-items-container__header {
|
|
2075
2164
|
display: flex;
|
|
@@ -2102,6 +2191,11 @@ body.excalidraw-color-dnd-active * {
|
|
|
2102
2191
|
grid-template-columns: 1fr 1fr 1fr 1fr;
|
|
2103
2192
|
grid-gap: 1rem;
|
|
2104
2193
|
}
|
|
2194
|
+
.excalidraw .library-menu-items-container__grid--named {
|
|
2195
|
+
width: 100%;
|
|
2196
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
2197
|
+
grid-gap: 0.5rem;
|
|
2198
|
+
}
|
|
2105
2199
|
.excalidraw .library-menu-items-container__search {
|
|
2106
2200
|
flex: 1 1 auto;
|
|
2107
2201
|
margin: 0;
|
|
@@ -2140,7 +2234,6 @@ body.excalidraw-color-dnd-active * {
|
|
|
2140
2234
|
--button-gray-2: #ced4da;
|
|
2141
2235
|
--button-gray-3: #adb5bd;
|
|
2142
2236
|
--mobile-action-button-bg: rgba(255, 255, 255, 0.35);
|
|
2143
|
-
--mobile-color-border: var(--default-border-color);
|
|
2144
2237
|
--button-special-active-bg-color: #ebfbee;
|
|
2145
2238
|
--dialog-border-color: var(--color-gray-20);
|
|
2146
2239
|
--dropdown-icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="292.4" height="292.4" viewBox="0 0 292 292"><path d="M287 197L159 69c-4-3-8-5-13-5s-9 2-13 5L5 197c-3 4-5 8-5 13s2 9 5 13c4 4 8 5 13 5h256c5 0 9-1 13-5s5-8 5-13-1-9-5-13z"/></svg>');
|
|
@@ -2158,7 +2251,7 @@ body.excalidraw-color-dnd-active * {
|
|
|
2158
2251
|
--link-color: #1c7ed6;
|
|
2159
2252
|
--link-color-hover: #1971c2;
|
|
2160
2253
|
--link-color-active: #a5d8ff;
|
|
2161
|
-
--overlay-bg-color: rgba(
|
|
2254
|
+
--overlay-bg-color: rgba(12, 12, 14, 0.35);
|
|
2162
2255
|
--popup-bg-color: var(--island-bg-color);
|
|
2163
2256
|
--popup-secondary-bg-color: #f1f3f5;
|
|
2164
2257
|
--popup-text-color: #000;
|
|
@@ -2287,7 +2380,7 @@ body.excalidraw-color-dnd-active * {
|
|
|
2287
2380
|
}
|
|
2288
2381
|
@media screen and (min-device-width: 1921px) {
|
|
2289
2382
|
.excalidraw {
|
|
2290
|
-
--lg-button-size: 2.
|
|
2383
|
+
--lg-button-size: 2.375rem;
|
|
2291
2384
|
--lg-icon-size: 1.25rem;
|
|
2292
2385
|
--default-button-size: 2.25rem;
|
|
2293
2386
|
--default-icon-size: 1.25rem;
|
|
@@ -2304,7 +2397,6 @@ body.excalidraw-color-dnd-active * {
|
|
|
2304
2397
|
--button-gray-2: #272727;
|
|
2305
2398
|
--button-gray-3: #222;
|
|
2306
2399
|
--mobile-action-button-bg: var(--island-bg-color);
|
|
2307
|
-
--mobile-color-border: rgba(255, 255, 255, 0.85);
|
|
2308
2400
|
--button-special-active-bg-color: #204624;
|
|
2309
2401
|
--dialog-border-color: var(--color-gray-80);
|
|
2310
2402
|
--dropdown-icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="292.4" height="292.4" viewBox="0 0 292 292"><path fill="%23ced4da" d="M287 197L159 69c-4-3-8-5-13-5s-9 2-13 5L5 197c-3 4-5 8-5 13s2 9 5 13c4 4 8 5 13 5h256c5 0 9-1 13-5s5-8 5-13-1-9-5-13z"/></svg>');
|
|
@@ -2319,7 +2411,7 @@ body.excalidraw-color-dnd-active * {
|
|
|
2319
2411
|
--island-bg-color-alt: hsl(240, 12%, 12%);
|
|
2320
2412
|
--keybinding-color: var(--color-gray-60);
|
|
2321
2413
|
--link-color: #4dabf7;
|
|
2322
|
-
--overlay-bg-color: rgba(
|
|
2414
|
+
--overlay-bg-color: rgba(12, 12, 14, 0.65);
|
|
2323
2415
|
--popup-secondary-bg-color: #222;
|
|
2324
2416
|
--popup-text-color: #ced4da;
|
|
2325
2417
|
--popup-text-inverted-color: #2c2c2c;
|
|
@@ -2681,7 +2773,7 @@ body.excalidraw-color-dnd-active * {
|
|
|
2681
2773
|
right: 0;
|
|
2682
2774
|
bottom: 0;
|
|
2683
2775
|
z-index: 1;
|
|
2684
|
-
background-color:
|
|
2776
|
+
background-color: var(--overlay-bg-color);
|
|
2685
2777
|
animation: Modal__background__fade-in 0.1s linear forwards;
|
|
2686
2778
|
}
|
|
2687
2779
|
.excalidraw .Modal__content {
|
|
@@ -2799,14 +2891,13 @@ body.excalidraw-color-dnd-active * {
|
|
|
2799
2891
|
/* components/Actions.scss */
|
|
2800
2892
|
.zoom-actions,
|
|
2801
2893
|
.undo-redo-buttons {
|
|
2802
|
-
background-color: var(--
|
|
2894
|
+
background-color: var(--color-surface-low);
|
|
2803
2895
|
border-radius: var(--border-radius-lg);
|
|
2804
2896
|
box-shadow: 0 0 0 1px var(--color-surface-lowest);
|
|
2805
2897
|
}
|
|
2806
2898
|
.zoom-button,
|
|
2807
2899
|
.undo-redo-buttons button {
|
|
2808
2900
|
border-radius: 0 !important;
|
|
2809
|
-
background-color: var(--color-surface-low) !important;
|
|
2810
2901
|
font-size: 0.875rem !important;
|
|
2811
2902
|
width: var(--lg-button-size);
|
|
2812
2903
|
height: var(--lg-button-size);
|
|
@@ -2829,6 +2920,16 @@ body.excalidraw-color-dnd-active * {
|
|
|
2829
2920
|
justify-content: center;
|
|
2830
2921
|
color: var(--text-primary-color);
|
|
2831
2922
|
}
|
|
2923
|
+
.zoom-actions .reset-zoom-button:hover:not(:active) {
|
|
2924
|
+
background-color: var(--button-hover-bg);
|
|
2925
|
+
}
|
|
2926
|
+
.reset-zoom-button-wrapper {
|
|
2927
|
+
transition: transform var(--zen-mode-transition-duration) ease-in-out;
|
|
2928
|
+
}
|
|
2929
|
+
.zoom-out-button-wrapper,
|
|
2930
|
+
.zoom-in-button-wrapper {
|
|
2931
|
+
transition: opacity var(--zen-mode-transition-duration) ease-in-out, visibility var(--zen-mode-transition-duration);
|
|
2932
|
+
}
|
|
2832
2933
|
.zoom-out-button {
|
|
2833
2934
|
border-top-left-radius: var(--border-radius-lg) !important;
|
|
2834
2935
|
border-bottom-left-radius: var(--border-radius-lg) !important;
|
|
@@ -2874,6 +2975,16 @@ body.excalidraw-color-dnd-active * {
|
|
|
2874
2975
|
border-top-left-radius: 0 !important;
|
|
2875
2976
|
border-bottom-left-radius: 0 !important;
|
|
2876
2977
|
}
|
|
2978
|
+
.align-buttons {
|
|
2979
|
+
display: flex;
|
|
2980
|
+
flex-direction: column;
|
|
2981
|
+
gap: 0.5rem;
|
|
2982
|
+
}
|
|
2983
|
+
.align-buttons__row {
|
|
2984
|
+
display: flex;
|
|
2985
|
+
flex-wrap: wrap;
|
|
2986
|
+
gap: 0.5rem;
|
|
2987
|
+
}
|
|
2877
2988
|
.compact-shape-actions {
|
|
2878
2989
|
display: flex;
|
|
2879
2990
|
flex-direction: column;
|
|
@@ -3198,6 +3309,144 @@ body.excalidraw-color-dnd-active * {
|
|
|
3198
3309
|
border-top: 1px solid #adb5bd;
|
|
3199
3310
|
}
|
|
3200
3311
|
|
|
3312
|
+
/* components/FileDropOverlay.scss */
|
|
3313
|
+
.excalidraw .file-drop-overlay {
|
|
3314
|
+
position: absolute;
|
|
3315
|
+
inset: 0;
|
|
3316
|
+
z-index: var(--zIndex-fileDropOverlay);
|
|
3317
|
+
display: flex;
|
|
3318
|
+
align-items: center;
|
|
3319
|
+
justify-content: center;
|
|
3320
|
+
padding: 1rem;
|
|
3321
|
+
box-sizing: border-box;
|
|
3322
|
+
pointer-events: none;
|
|
3323
|
+
background: var(--overlay-bg-color);
|
|
3324
|
+
animation: file-drop-overlay-appear 120ms ease-out;
|
|
3325
|
+
}
|
|
3326
|
+
.excalidraw .file-drop-overlay__card {
|
|
3327
|
+
width: 30rem;
|
|
3328
|
+
max-width: 100%;
|
|
3329
|
+
box-sizing: border-box;
|
|
3330
|
+
padding: 2rem 1.5rem 1.5rem;
|
|
3331
|
+
border: 1px solid var(--color-primary-light-darker);
|
|
3332
|
+
border-radius: 1.5rem;
|
|
3333
|
+
background: var(--island-bg-color);
|
|
3334
|
+
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
|
|
3335
|
+
text-align: center;
|
|
3336
|
+
}
|
|
3337
|
+
.excalidraw .file-drop-overlay__title {
|
|
3338
|
+
color: var(--text-primary-color);
|
|
3339
|
+
font-size: 1.5rem;
|
|
3340
|
+
font-weight: 700;
|
|
3341
|
+
line-height: 1.3;
|
|
3342
|
+
}
|
|
3343
|
+
.excalidraw .file-drop-overlay__hint {
|
|
3344
|
+
margin-top: 0.5rem;
|
|
3345
|
+
color: var(--text-primary-color);
|
|
3346
|
+
opacity: 0.7;
|
|
3347
|
+
font-size: 0.875rem;
|
|
3348
|
+
line-height: 1.75;
|
|
3349
|
+
}
|
|
3350
|
+
.excalidraw .file-drop-overlay__hint kbd {
|
|
3351
|
+
padding: 0.125rem 0.375rem;
|
|
3352
|
+
border: 1px solid var(--default-border-color);
|
|
3353
|
+
border-radius: 0.25rem;
|
|
3354
|
+
background: var(--color-surface-low);
|
|
3355
|
+
font: inherit;
|
|
3356
|
+
}
|
|
3357
|
+
.excalidraw .file-drop-overlay__hint--secondary {
|
|
3358
|
+
margin-top: 0;
|
|
3359
|
+
opacity: 0.45;
|
|
3360
|
+
font-size: 0.75rem;
|
|
3361
|
+
}
|
|
3362
|
+
.excalidraw .file-drop-overlay__illustration {
|
|
3363
|
+
position: relative;
|
|
3364
|
+
height: 10rem;
|
|
3365
|
+
margin-top: 1.75rem;
|
|
3366
|
+
color: var(--color-primary);
|
|
3367
|
+
}
|
|
3368
|
+
.excalidraw .file-drop-overlay__file {
|
|
3369
|
+
position: absolute;
|
|
3370
|
+
top: 0.5rem;
|
|
3371
|
+
left: calc(50% - 3rem);
|
|
3372
|
+
width: 6rem;
|
|
3373
|
+
height: 8rem;
|
|
3374
|
+
overflow: visible;
|
|
3375
|
+
stroke: currentColor;
|
|
3376
|
+
stroke-width: 2.5;
|
|
3377
|
+
stroke-linecap: round;
|
|
3378
|
+
stroke-linejoin: round;
|
|
3379
|
+
animation: file-drop-overlay-float 3.6s ease-in-out infinite;
|
|
3380
|
+
}
|
|
3381
|
+
.excalidraw .file-drop-overlay__file--back {
|
|
3382
|
+
--file-x: -1.5rem;
|
|
3383
|
+
--file-angle: -18deg;
|
|
3384
|
+
top: 1rem;
|
|
3385
|
+
color: var(--color-primary-light-darker);
|
|
3386
|
+
}
|
|
3387
|
+
.excalidraw .file-drop-overlay__file--front {
|
|
3388
|
+
--file-x: 1.5rem;
|
|
3389
|
+
--file-angle: 12deg;
|
|
3390
|
+
animation-delay: -1.8s;
|
|
3391
|
+
}
|
|
3392
|
+
.excalidraw .file-drop-overlay__paper {
|
|
3393
|
+
fill: var(--island-bg-color);
|
|
3394
|
+
}
|
|
3395
|
+
.excalidraw .file-drop-overlay__lines {
|
|
3396
|
+
opacity: 0.35;
|
|
3397
|
+
}
|
|
3398
|
+
.excalidraw .file-drop-overlay__cross {
|
|
3399
|
+
stroke-width: 4;
|
|
3400
|
+
}
|
|
3401
|
+
.excalidraw .file-drop-overlay:not(.file-drop-overlay--keep) .file-drop-overlay__file--back .file-drop-overlay__lines {
|
|
3402
|
+
opacity: 0;
|
|
3403
|
+
}
|
|
3404
|
+
.excalidraw .file-drop-overlay--keep .file-drop-overlay__file--back {
|
|
3405
|
+
color: var(--color-primary);
|
|
3406
|
+
}
|
|
3407
|
+
.excalidraw .file-drop-overlay--keep .file-drop-overlay__cross {
|
|
3408
|
+
opacity: 0;
|
|
3409
|
+
}
|
|
3410
|
+
@keyframes file-drop-overlay-appear {
|
|
3411
|
+
from {
|
|
3412
|
+
opacity: 0;
|
|
3413
|
+
}
|
|
3414
|
+
to {
|
|
3415
|
+
opacity: 1;
|
|
3416
|
+
}
|
|
3417
|
+
}
|
|
3418
|
+
@keyframes file-drop-overlay-float {
|
|
3419
|
+
0%, 100% {
|
|
3420
|
+
transform: translate(var(--file-x), 0) rotate(var(--file-angle));
|
|
3421
|
+
}
|
|
3422
|
+
50% {
|
|
3423
|
+
transform: translate(var(--file-x), -0.375rem) rotate(calc(var(--file-angle) + 3deg));
|
|
3424
|
+
}
|
|
3425
|
+
}
|
|
3426
|
+
@media (prefers-reduced-motion: reduce) {
|
|
3427
|
+
.excalidraw .file-drop-overlay,
|
|
3428
|
+
.excalidraw .file-drop-overlay__file {
|
|
3429
|
+
animation: none;
|
|
3430
|
+
}
|
|
3431
|
+
.excalidraw .file-drop-overlay__file {
|
|
3432
|
+
transform: translate(var(--file-x), 0) rotate(var(--file-angle));
|
|
3433
|
+
}
|
|
3434
|
+
}
|
|
3435
|
+
@media (max-height: 420px) {
|
|
3436
|
+
.excalidraw .file-drop-overlay__card {
|
|
3437
|
+
padding: 1.25rem;
|
|
3438
|
+
}
|
|
3439
|
+
.excalidraw .file-drop-overlay__illustration {
|
|
3440
|
+
height: 7rem;
|
|
3441
|
+
margin-top: 0.75rem;
|
|
3442
|
+
}
|
|
3443
|
+
.excalidraw .file-drop-overlay__file {
|
|
3444
|
+
width: 4.5rem;
|
|
3445
|
+
height: 6rem;
|
|
3446
|
+
left: calc(50% - 2.25rem);
|
|
3447
|
+
}
|
|
3448
|
+
}
|
|
3449
|
+
|
|
3201
3450
|
/* components/ViewportStatusFrame/ViewportStatusFrame.scss */
|
|
3202
3451
|
.excalidraw .viewport-status-frame__border {
|
|
3203
3452
|
position: absolute;
|
|
@@ -6197,22 +6446,21 @@ body.excalidraw-color-dnd-active * {
|
|
|
6197
6446
|
display: flex;
|
|
6198
6447
|
}
|
|
6199
6448
|
.excalidraw .layer-ui__wrapper .zen-mode-transition {
|
|
6200
|
-
transition:
|
|
6201
|
-
}
|
|
6202
|
-
:root[dir=ltr] .excalidraw .layer-ui__wrapper .zen-mode-transition.transition-left {
|
|
6203
|
-
transform: translate(-999px, 0);
|
|
6204
|
-
}
|
|
6205
|
-
:root[dir=ltr] .excalidraw .layer-ui__wrapper .zen-mode-transition.transition-right {
|
|
6206
|
-
transform: translate(999px, 0);
|
|
6207
|
-
}
|
|
6208
|
-
:root[dir=rtl] .excalidraw .layer-ui__wrapper .zen-mode-transition.transition-left {
|
|
6209
|
-
transform: translate(999px, 0);
|
|
6210
|
-
}
|
|
6211
|
-
:root[dir=rtl] .excalidraw .layer-ui__wrapper .zen-mode-transition.transition-right {
|
|
6212
|
-
transform: translate(-999px, 0);
|
|
6449
|
+
transition: opacity var(--zen-mode-transition-duration) ease-in-out, visibility var(--zen-mode-transition-duration);
|
|
6213
6450
|
}
|
|
6451
|
+
.excalidraw .layer-ui__wrapper .zen-mode-transition.transition-left,
|
|
6452
|
+
.excalidraw .layer-ui__wrapper .zen-mode-transition.transition-right,
|
|
6214
6453
|
.excalidraw .layer-ui__wrapper .zen-mode-transition.layer-ui__wrapper__footer-left--transition-bottom {
|
|
6215
|
-
|
|
6454
|
+
opacity: 0;
|
|
6455
|
+
visibility: hidden;
|
|
6456
|
+
}
|
|
6457
|
+
.excalidraw .layer-ui__wrapper .zen-mode-transition.transition-left,
|
|
6458
|
+
.excalidraw .layer-ui__wrapper .zen-mode-transition.transition-left *,
|
|
6459
|
+
.excalidraw .layer-ui__wrapper .zen-mode-transition.transition-right,
|
|
6460
|
+
.excalidraw .layer-ui__wrapper .zen-mode-transition.transition-right *,
|
|
6461
|
+
.excalidraw .layer-ui__wrapper .zen-mode-transition.layer-ui__wrapper__footer-left--transition-bottom,
|
|
6462
|
+
.excalidraw .layer-ui__wrapper .zen-mode-transition.layer-ui__wrapper__footer-left--transition-bottom * {
|
|
6463
|
+
pointer-events: none !important;
|
|
6216
6464
|
}
|
|
6217
6465
|
.excalidraw .layer-ui__wrapper .disable-zen-mode {
|
|
6218
6466
|
padding: 10px;
|
|
@@ -6800,7 +7048,6 @@ body.excalidraw-color-dnd-active * {
|
|
|
6800
7048
|
--button-gray-2: #ced4da;
|
|
6801
7049
|
--button-gray-3: #adb5bd;
|
|
6802
7050
|
--mobile-action-button-bg: rgba(255, 255, 255, 0.35);
|
|
6803
|
-
--mobile-color-border: var(--default-border-color);
|
|
6804
7051
|
--button-special-active-bg-color: #ebfbee;
|
|
6805
7052
|
--dialog-border-color: var(--color-gray-20);
|
|
6806
7053
|
--dropdown-icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="292.4" height="292.4" viewBox="0 0 292 292"><path d="M287 197L159 69c-4-3-8-5-13-5s-9 2-13 5L5 197c-3 4-5 8-5 13s2 9 5 13c4 4 8 5 13 5h256c5 0 9-1 13-5s5-8 5-13-1-9-5-13z"/></svg>');
|
|
@@ -6818,7 +7065,7 @@ body.excalidraw-color-dnd-active * {
|
|
|
6818
7065
|
--link-color: #1c7ed6;
|
|
6819
7066
|
--link-color-hover: #1971c2;
|
|
6820
7067
|
--link-color-active: #a5d8ff;
|
|
6821
|
-
--overlay-bg-color: rgba(
|
|
7068
|
+
--overlay-bg-color: rgba(12, 12, 14, 0.35);
|
|
6822
7069
|
--popup-bg-color: var(--island-bg-color);
|
|
6823
7070
|
--popup-secondary-bg-color: #f1f3f5;
|
|
6824
7071
|
--popup-text-color: #000;
|
|
@@ -6947,7 +7194,7 @@ body.excalidraw-color-dnd-active * {
|
|
|
6947
7194
|
}
|
|
6948
7195
|
@media screen and (min-device-width: 1921px) {
|
|
6949
7196
|
.excalidraw {
|
|
6950
|
-
--lg-button-size: 2.
|
|
7197
|
+
--lg-button-size: 2.375rem;
|
|
6951
7198
|
--lg-icon-size: 1.25rem;
|
|
6952
7199
|
--default-button-size: 2.25rem;
|
|
6953
7200
|
--default-icon-size: 1.25rem;
|
|
@@ -6964,7 +7211,6 @@ body.excalidraw-color-dnd-active * {
|
|
|
6964
7211
|
--button-gray-2: #272727;
|
|
6965
7212
|
--button-gray-3: #222;
|
|
6966
7213
|
--mobile-action-button-bg: var(--island-bg-color);
|
|
6967
|
-
--mobile-color-border: rgba(255, 255, 255, 0.85);
|
|
6968
7214
|
--button-special-active-bg-color: #204624;
|
|
6969
7215
|
--dialog-border-color: var(--color-gray-80);
|
|
6970
7216
|
--dropdown-icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="292.4" height="292.4" viewBox="0 0 292 292"><path fill="%23ced4da" d="M287 197L159 69c-4-3-8-5-13-5s-9 2-13 5L5 197c-3 4-5 8-5 13s2 9 5 13c4 4 8 5 13 5h256c5 0 9-1 13-5s5-8 5-13-1-9-5-13z"/></svg>');
|
|
@@ -6979,7 +7225,7 @@ body.excalidraw-color-dnd-active * {
|
|
|
6979
7225
|
--island-bg-color-alt: hsl(240, 12%, 12%);
|
|
6980
7226
|
--keybinding-color: var(--color-gray-60);
|
|
6981
7227
|
--link-color: #4dabf7;
|
|
6982
|
-
--overlay-bg-color: rgba(
|
|
7228
|
+
--overlay-bg-color: rgba(12, 12, 14, 0.65);
|
|
6983
7229
|
--popup-secondary-bg-color: #222;
|
|
6984
7230
|
--popup-text-color: #ced4da;
|
|
6985
7231
|
--popup-text-inverted-color: #2c2c2c;
|
|
@@ -7055,6 +7301,7 @@ body.excalidraw-color-dnd-active * {
|
|
|
7055
7301
|
--zIndex-ui-top: 100;
|
|
7056
7302
|
--zIndex-ui-main-menu: 110;
|
|
7057
7303
|
--zIndex-ui-library: 120;
|
|
7304
|
+
--zIndex-fileDropOverlay: 130;
|
|
7058
7305
|
--zIndex-modal: 1000;
|
|
7059
7306
|
--zIndex-popup: 1001;
|
|
7060
7307
|
--zIndex-toast: 999999;
|
|
@@ -7144,6 +7391,18 @@ body.excalidraw-cursor-resize * {
|
|
|
7144
7391
|
.excalidraw__canvas {
|
|
7145
7392
|
position: absolute;
|
|
7146
7393
|
}
|
|
7394
|
+
.excalidraw .excalidraw-textEditorContainer {
|
|
7395
|
+
position: absolute;
|
|
7396
|
+
top: 0;
|
|
7397
|
+
right: 0;
|
|
7398
|
+
bottom: 0;
|
|
7399
|
+
left: 0;
|
|
7400
|
+
overflow: hidden;
|
|
7401
|
+
pointer-events: none;
|
|
7402
|
+
}
|
|
7403
|
+
.excalidraw .excalidraw-textEditorContainer > textarea {
|
|
7404
|
+
pointer-events: auto;
|
|
7405
|
+
}
|
|
7147
7406
|
.excalidraw__embeddable {
|
|
7148
7407
|
width: 100%;
|
|
7149
7408
|
height: 100%;
|
|
@@ -7168,7 +7427,8 @@ body.excalidraw-cursor-resize * {
|
|
|
7168
7427
|
.excalidraw .selected-shape-actions {
|
|
7169
7428
|
display: flex;
|
|
7170
7429
|
flex-direction: column;
|
|
7171
|
-
row-gap: 0.
|
|
7430
|
+
row-gap: 0.5rem;
|
|
7431
|
+
--default-button-size: 2rem;
|
|
7172
7432
|
}
|
|
7173
7433
|
.excalidraw .selected-shape-actions h3,
|
|
7174
7434
|
.excalidraw .selected-shape-actions legend,
|
|
@@ -7541,7 +7801,7 @@ body.excalidraw-cursor-resize * {
|
|
|
7541
7801
|
.excalidraw .App-menu__left {
|
|
7542
7802
|
overflow-y: auto;
|
|
7543
7803
|
padding: 0.75rem;
|
|
7544
|
-
width: 12.5rem;
|
|
7804
|
+
max-width: 12.5rem;
|
|
7545
7805
|
box-sizing: border-box;
|
|
7546
7806
|
position: absolute;
|
|
7547
7807
|
}
|
|
@@ -7737,6 +7997,48 @@ body.excalidraw-cursor-resize * {
|
|
|
7737
7997
|
width: 0;
|
|
7738
7998
|
transition: opacity 0.5s;
|
|
7739
7999
|
}
|
|
8000
|
+
.excalidraw.excalidraw--zen-mode .App-toolbar,
|
|
8001
|
+
.excalidraw.excalidraw--zen-mode .zoom-actions {
|
|
8002
|
+
background-color: transparent;
|
|
8003
|
+
box-shadow: none;
|
|
8004
|
+
}
|
|
8005
|
+
.excalidraw.excalidraw--zen-mode .main-menu-trigger:not(:active, :focus-visible),
|
|
8006
|
+
.excalidraw.excalidraw--zen-mode .scroll-back-to-content:not(:active, :focus-visible),
|
|
8007
|
+
.excalidraw.excalidraw--zen-mode .disable-zen-mode:not(:active, :focus-visible) {
|
|
8008
|
+
border-color: transparent;
|
|
8009
|
+
box-shadow: none;
|
|
8010
|
+
}
|
|
8011
|
+
.excalidraw.excalidraw--zen-mode .main-menu-trigger:not(:hover, :active),
|
|
8012
|
+
.excalidraw.excalidraw--zen-mode .scroll-back-to-content:not(:hover, :active),
|
|
8013
|
+
.excalidraw.excalidraw--zen-mode .disable-zen-mode:not(:hover, :active) {
|
|
8014
|
+
background-color: transparent !important;
|
|
8015
|
+
}
|
|
8016
|
+
.excalidraw.excalidraw--zen-mode .zoom-out-button-wrapper,
|
|
8017
|
+
.excalidraw.excalidraw--zen-mode .zoom-in-button-wrapper {
|
|
8018
|
+
opacity: 0;
|
|
8019
|
+
visibility: hidden;
|
|
8020
|
+
pointer-events: none;
|
|
8021
|
+
}
|
|
8022
|
+
.excalidraw.excalidraw--zen-mode .reset-zoom-button {
|
|
8023
|
+
border-radius: var(--border-radius-lg) !important;
|
|
8024
|
+
}
|
|
8025
|
+
.excalidraw.excalidraw--zen-mode .reset-zoom-button-wrapper {
|
|
8026
|
+
transform: translateX(calc(-1 * var(--lg-button-size)));
|
|
8027
|
+
}
|
|
8028
|
+
:root[dir=rtl] .excalidraw.excalidraw--zen-mode .reset-zoom-button-wrapper {
|
|
8029
|
+
transform: translateX(var(--lg-button-size));
|
|
8030
|
+
}
|
|
8031
|
+
.excalidraw[data-zen-mode-transition] .App-toolbar,
|
|
8032
|
+
.excalidraw[data-zen-mode-transition] .zoom-actions,
|
|
8033
|
+
.excalidraw[data-zen-mode-transition] .main-menu-trigger,
|
|
8034
|
+
.excalidraw[data-zen-mode-transition] .scroll-back-to-content {
|
|
8035
|
+
transition:
|
|
8036
|
+
background-color var(--zen-mode-transition-duration) ease-in-out,
|
|
8037
|
+
border-color var(--zen-mode-transition-duration) ease-in-out,
|
|
8038
|
+
box-shadow var(--zen-mode-transition-duration) ease-in-out,
|
|
8039
|
+
opacity var(--zen-mode-transition-duration) ease-in-out,
|
|
8040
|
+
visibility var(--zen-mode-transition-duration);
|
|
8041
|
+
}
|
|
7740
8042
|
.excalidraw .disable-pointerEvents {
|
|
7741
8043
|
pointer-events: none !important;
|
|
7742
8044
|
}
|