@tldraw/tldraw 5.7.0-canary.ccf6cccc22cd → 5.7.0-canary.cd237d7ba6e3
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/dist-cjs/index.js +1 -1
- package/dist-esm/index.mjs +1 -1
- package/package.json +2 -2
- package/tldraw.css +300 -74
package/dist-cjs/index.js
CHANGED
|
@@ -19,7 +19,7 @@ var import_tldraw = require("tldraw");
|
|
|
19
19
|
__reExport(index_exports, require("tldraw"), module.exports);
|
|
20
20
|
(0, import_tldraw.registerTldrawLibraryVersion)(
|
|
21
21
|
"@tldraw/tldraw",
|
|
22
|
-
"5.7.0-canary.
|
|
22
|
+
"5.7.0-canary.cd237d7ba6e3",
|
|
23
23
|
"cjs"
|
|
24
24
|
);
|
|
25
25
|
//# sourceMappingURL=index.js.map
|
package/dist-esm/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tldraw/tldraw",
|
|
3
3
|
"description": "A tiny little drawing editor.",
|
|
4
|
-
"version": "5.7.0-canary.
|
|
4
|
+
"version": "5.7.0-canary.cd237d7ba6e3",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "tldraw Inc.",
|
|
7
7
|
"email": "hello@tldraw.com"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"src"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"tldraw": "5.7.0-canary.
|
|
42
|
+
"tldraw": "5.7.0-canary.cd237d7ba6e3"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": "^18.2.0 || ^19.2.1",
|
package/tldraw.css
CHANGED
|
@@ -141,6 +141,9 @@
|
|
|
141
141
|
--tl-font-sans: 'tldraw_sans', sans-serif;
|
|
142
142
|
--tl-font-serif: 'tldraw_serif', serif;
|
|
143
143
|
--tl-font-mono: 'tldraw_mono', monospace;
|
|
144
|
+
/* checkboxes, for fonts whose theme entry doesn't draw its own */
|
|
145
|
+
--tl-checkbox-box: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect x='6.2' y='27.2' width='66' height='66' rx='14.4' fill='none' stroke='%23000' stroke-width='8.3'/%3E%3C/svg%3E");
|
|
146
|
+
--tl-checkbox-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M24.13 62.63L33.11 73.14L56.02 46.3' fill='none' stroke='%23000' stroke-width='8.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
|
144
147
|
/* text outline */
|
|
145
148
|
--tl-text-outline-a: calc(min(0.5, 1 / var(--tl-zoom)) * 2px);
|
|
146
149
|
--tl-text-outline-b: calc(min(0.5, 1 / var(--tl-zoom)) * -2px);
|
|
@@ -270,6 +273,33 @@
|
|
|
270
273
|
inset 0px 0px 0px 1px var(--tl-color-panel-contrast);
|
|
271
274
|
}
|
|
272
275
|
|
|
276
|
+
/* The wash an open menu trigger shows: clear at one edge, muted-2 at the other, named for the
|
|
277
|
+
direction it fades in. Declared on the theme element, after both themes' colours, so each stop
|
|
278
|
+
resolves to the current theme's value. */
|
|
279
|
+
.tl-theme__light,
|
|
280
|
+
.tl-theme__dark {
|
|
281
|
+
--tl-muted-gradient-to-bottom: linear-gradient(
|
|
282
|
+
180deg,
|
|
283
|
+
var(--tl-color-muted-none) 0%,
|
|
284
|
+
var(--tl-color-muted-2) 100%
|
|
285
|
+
);
|
|
286
|
+
--tl-muted-gradient-to-top: linear-gradient(
|
|
287
|
+
0deg,
|
|
288
|
+
var(--tl-color-muted-none) 0%,
|
|
289
|
+
var(--tl-color-muted-2) 100%
|
|
290
|
+
);
|
|
291
|
+
--tl-muted-gradient-to-right: linear-gradient(
|
|
292
|
+
90deg,
|
|
293
|
+
var(--tl-color-muted-none) 0%,
|
|
294
|
+
var(--tl-color-muted-2) 100%
|
|
295
|
+
);
|
|
296
|
+
--tl-muted-gradient-to-left: linear-gradient(
|
|
297
|
+
270deg,
|
|
298
|
+
var(--tl-color-muted-none) 0%,
|
|
299
|
+
var(--tl-color-muted-2) 100%
|
|
300
|
+
);
|
|
301
|
+
}
|
|
302
|
+
|
|
273
303
|
.tl-counter-scaled {
|
|
274
304
|
transform: scale(var(--tl-scale));
|
|
275
305
|
transform-origin: top left;
|
|
@@ -825,6 +855,130 @@ input,
|
|
|
825
855
|
padding-left: 3.625ch;
|
|
826
856
|
}
|
|
827
857
|
|
|
858
|
+
/**
|
|
859
|
+
* Task lists. TipTap's TaskItem renders each item as
|
|
860
|
+
* `<li><label><input type="checkbox"><span></span></label><div>…</div></li>`.
|
|
861
|
+
*
|
|
862
|
+
* The `<input>` is the hit target only — it's laid over the label at zero opacity, and the visible
|
|
863
|
+
* box is the `<span>` beside it. Form controls aren't rendered when an SVG is loaded as an image,
|
|
864
|
+
* so an exported PNG would otherwise come back with the checkboxes missing. Everything is sized in
|
|
865
|
+
* `em` and drawn in `currentColor` so a checkbox tracks the font size and color of the shape it
|
|
866
|
+
* lives in.
|
|
867
|
+
*/
|
|
868
|
+
.tl-rich-text ul[data-type='taskList'] {
|
|
869
|
+
padding-left: 0;
|
|
870
|
+
list-style: none;
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
.tl-rich-text ul[data-type='taskList'] > li {
|
|
874
|
+
display: flex;
|
|
875
|
+
align-items: flex-start;
|
|
876
|
+
gap: 0.6ch;
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
.tl-rich-text ul[data-type='taskList'] > li > label {
|
|
880
|
+
/* Center the box on the first line of the item rather than on the whole item. */
|
|
881
|
+
display: flex;
|
|
882
|
+
align-items: center;
|
|
883
|
+
height: 1lh;
|
|
884
|
+
position: relative;
|
|
885
|
+
flex: 0 0 auto;
|
|
886
|
+
user-select: none;
|
|
887
|
+
/**
|
|
888
|
+
* Outside of edit mode the rich text is static HTML with no ProseMirror node view behind it, so
|
|
889
|
+
* a checkbox click would toggle the input without ever reaching the shape and then snap back on
|
|
890
|
+
* the next render. Only the editing copy takes clicks; elsewhere RichTextLabel hit-tests the
|
|
891
|
+
* label's rect itself and writes the toggle to the shape.
|
|
892
|
+
*/
|
|
893
|
+
pointer-events: none;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
.tl-rich-text .ProseMirror ul[data-type='taskList'] > li > label {
|
|
897
|
+
pointer-events: auto;
|
|
898
|
+
/* On the label, not the input: the span paints over the input, so it's what the pointer hits. */
|
|
899
|
+
cursor: pointer;
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
.tl-rich-text ul[data-type='taskList'] > li > label > input[type='checkbox'] {
|
|
903
|
+
position: absolute;
|
|
904
|
+
inset: 0;
|
|
905
|
+
margin: 0;
|
|
906
|
+
opacity: 0;
|
|
907
|
+
/* The UA sheet gives form controls their own cursor, and this one is the pointer's target. */
|
|
908
|
+
cursor: inherit;
|
|
909
|
+
/**
|
|
910
|
+
* Above the span, so the pointer lands on the input rather than on the box drawn over it.
|
|
911
|
+
* TaskItem's node view cancels mousedown on the input to stop a click starting a text
|
|
912
|
+
* selection; letting the span take the hit instead defeats that, and a multi-click then
|
|
913
|
+
* selects the whole item and pops the rich text toolbar up over a checkbox.
|
|
914
|
+
*/
|
|
915
|
+
z-index: 1;
|
|
916
|
+
/**
|
|
917
|
+
* In the static copy the input is otherwise still focusable: Tab reaches it inside an
|
|
918
|
+
* aria-hidden label, and Space ticks it on screen without writing to the shape. The box and tick
|
|
919
|
+
* are drawn on the span, so hiding the input doesn't change how it looks.
|
|
920
|
+
*/
|
|
921
|
+
visibility: hidden;
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
.tl-rich-text .ProseMirror ul[data-type='taskList'] > li > label > input[type='checkbox'] {
|
|
925
|
+
visibility: visible;
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
.tl-rich-text ul[data-type='taskList'] > li > label > span {
|
|
929
|
+
position: relative;
|
|
930
|
+
display: block;
|
|
931
|
+
width: 1.08em;
|
|
932
|
+
height: 1.08em;
|
|
933
|
+
/* The box art is centered at 60% of the span, leaving room above for a tick to break out of it;
|
|
934
|
+
lift it so the box itself, not the span, is centered on the line. */
|
|
935
|
+
translate: 0 -10%;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
/**
|
|
939
|
+
* The box and the tick take a pseudo-element each: a mask clips everything its element paints,
|
|
940
|
+
* pseudo-elements included, so masking the span with the box would erase the tick inside it.
|
|
941
|
+
*
|
|
942
|
+
* The numbered box slots and the tick come from the font's theme entry (see getFontCheckboxStyle).
|
|
943
|
+
*/
|
|
944
|
+
.tl-rich-text ul[data-type='taskList'] > li > label > span::before,
|
|
945
|
+
.tl-rich-text ul[data-type='taskList'] > li > label > input:checked + span::after {
|
|
946
|
+
content: '';
|
|
947
|
+
position: absolute;
|
|
948
|
+
inset: 0;
|
|
949
|
+
background-color: currentColor;
|
|
950
|
+
mask-size: 100% 100%;
|
|
951
|
+
mask-repeat: no-repeat;
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
.tl-rich-text ul[data-type='taskList'] > li:nth-child(6n + 1) > label > span::before {
|
|
955
|
+
mask-image: var(--tl-checkbox-box-1, var(--tl-checkbox-box));
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
.tl-rich-text ul[data-type='taskList'] > li:nth-child(6n + 2) > label > span::before {
|
|
959
|
+
mask-image: var(--tl-checkbox-box-2, var(--tl-checkbox-box));
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
.tl-rich-text ul[data-type='taskList'] > li:nth-child(6n + 3) > label > span::before {
|
|
963
|
+
mask-image: var(--tl-checkbox-box-3, var(--tl-checkbox-box));
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
.tl-rich-text ul[data-type='taskList'] > li:nth-child(6n + 4) > label > span::before {
|
|
967
|
+
mask-image: var(--tl-checkbox-box-4, var(--tl-checkbox-box));
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
.tl-rich-text ul[data-type='taskList'] > li:nth-child(6n + 5) > label > span::before {
|
|
971
|
+
mask-image: var(--tl-checkbox-box-5, var(--tl-checkbox-box));
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
.tl-rich-text ul[data-type='taskList'] > li:nth-child(6n) > label > span::before {
|
|
975
|
+
mask-image: var(--tl-checkbox-box-6, var(--tl-checkbox-box));
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
.tl-rich-text ul[data-type='taskList'] > li > label > input:checked + span::after {
|
|
979
|
+
mask-image: var(--tl-checkbox-tick);
|
|
980
|
+
}
|
|
981
|
+
|
|
828
982
|
.tl-rich-text h1,
|
|
829
983
|
.tl-rich-text h2,
|
|
830
984
|
.tl-rich-text h3,
|
|
@@ -1462,40 +1616,47 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1462
1616
|
}
|
|
1463
1617
|
|
|
1464
1618
|
.tl-error-boundary__content {
|
|
1465
|
-
width: fit-content;
|
|
1466
|
-
height: fit-content;
|
|
1467
|
-
max-width: 100%;
|
|
1468
1619
|
width: 400px;
|
|
1620
|
+
max-width: 100%;
|
|
1469
1621
|
max-height: 100%;
|
|
1470
1622
|
background-color: var(--tl-color-panel);
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
font-size: 14px;
|
|
1623
|
+
border-radius: var(--tl-radius-3);
|
|
1624
|
+
box-shadow: var(--tl-shadow-3);
|
|
1625
|
+
font-size: 12px;
|
|
1475
1626
|
font-weight: 400;
|
|
1476
1627
|
display: flex;
|
|
1477
1628
|
flex-direction: column;
|
|
1478
|
-
overflow:
|
|
1629
|
+
overflow: hidden;
|
|
1479
1630
|
z-index: var(--tl-layer-error-content);
|
|
1480
|
-
gap: 12px;
|
|
1481
1631
|
}
|
|
1482
1632
|
|
|
1483
1633
|
.tl-error-boundary__content__expanded {
|
|
1484
1634
|
width: 600px;
|
|
1485
1635
|
}
|
|
1486
1636
|
|
|
1487
|
-
.tl-error-
|
|
1488
|
-
|
|
1637
|
+
.tl-error-boundary__title {
|
|
1638
|
+
flex: 0 0 auto;
|
|
1639
|
+
display: flex;
|
|
1640
|
+
align-items: center;
|
|
1641
|
+
height: 40px;
|
|
1489
1642
|
margin: 0px;
|
|
1643
|
+
padding-inline: var(--tl-space-4);
|
|
1644
|
+
font-size: 12px;
|
|
1490
1645
|
font-weight: 500;
|
|
1646
|
+
color: var(--tl-color-text-1);
|
|
1491
1647
|
}
|
|
1492
1648
|
|
|
1493
|
-
.tl-error-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1649
|
+
.tl-error-boundary__body {
|
|
1650
|
+
flex: 0 1 auto;
|
|
1651
|
+
min-height: 0;
|
|
1652
|
+
display: flex;
|
|
1653
|
+
flex-direction: column;
|
|
1654
|
+
gap: var(--tl-space-4);
|
|
1655
|
+
padding: var(--tl-space-4) var(--tl-space-4);
|
|
1656
|
+
overflow-y: auto;
|
|
1657
|
+
overflow-x: hidden;
|
|
1658
|
+
overflow-wrap: anywhere;
|
|
1659
|
+
color: var(--tl-color-text-1);
|
|
1499
1660
|
}
|
|
1500
1661
|
|
|
1501
1662
|
.tl-error-boundary__content p {
|
|
@@ -1503,27 +1664,28 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1503
1664
|
margin: 0px;
|
|
1504
1665
|
}
|
|
1505
1666
|
|
|
1667
|
+
.tl-error-boundary__content strong {
|
|
1668
|
+
font-weight: 600;
|
|
1669
|
+
}
|
|
1670
|
+
|
|
1506
1671
|
.tl-error-boundary__content pre {
|
|
1672
|
+
margin: 0px;
|
|
1673
|
+
padding: var(--tl-space-3) var(--tl-space-4);
|
|
1507
1674
|
background-color: var(--tl-color-muted-2);
|
|
1508
|
-
margin-top: 0;
|
|
1509
|
-
padding: var(--tl-space-5);
|
|
1510
1675
|
border-radius: var(--tl-radius-2);
|
|
1511
|
-
|
|
1512
|
-
font-size:
|
|
1513
|
-
|
|
1676
|
+
font-family: var(--tl-font-mono);
|
|
1677
|
+
font-size: 11px;
|
|
1678
|
+
line-height: 1.6;
|
|
1514
1679
|
}
|
|
1515
1680
|
|
|
1516
|
-
.tl-error-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
cursor: var(--tl-cursor-pointer);
|
|
1525
|
-
color: inherit;
|
|
1526
|
-
background-color: transparent;
|
|
1681
|
+
.tl-error-boundary__stack {
|
|
1682
|
+
position: relative;
|
|
1683
|
+
}
|
|
1684
|
+
|
|
1685
|
+
.tl-error-boundary__stack pre {
|
|
1686
|
+
overflow: auto;
|
|
1687
|
+
max-height: 240px;
|
|
1688
|
+
overflow-wrap: normal;
|
|
1527
1689
|
}
|
|
1528
1690
|
|
|
1529
1691
|
.tl-error-boundary__content a {
|
|
@@ -1532,43 +1694,93 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1532
1694
|
text-decoration: none;
|
|
1533
1695
|
}
|
|
1534
1696
|
|
|
1535
|
-
.
|
|
1697
|
+
/* Mirrors .tlui-button so the fallback looks the same when only editor.css is loaded. */
|
|
1698
|
+
.tl-error-boundary__button {
|
|
1536
1699
|
position: relative;
|
|
1537
|
-
|
|
1700
|
+
isolation: isolate;
|
|
1701
|
+
height: 40px;
|
|
1702
|
+
min-width: 40px;
|
|
1703
|
+
padding: 0px 12px;
|
|
1704
|
+
display: flex;
|
|
1705
|
+
align-items: center;
|
|
1706
|
+
justify-content: center;
|
|
1707
|
+
background: none;
|
|
1708
|
+
border: none;
|
|
1709
|
+
font-family: inherit;
|
|
1710
|
+
font-size: 12px;
|
|
1711
|
+
font-weight: inherit;
|
|
1712
|
+
color: var(--tl-color-text-1);
|
|
1713
|
+
cursor: var(--tl-cursor-pointer);
|
|
1538
1714
|
}
|
|
1539
1715
|
|
|
1540
|
-
.tl-error-
|
|
1716
|
+
.tl-error-boundary__button::after {
|
|
1717
|
+
content: '';
|
|
1718
|
+
position: absolute;
|
|
1719
|
+
inset: 4px;
|
|
1720
|
+
z-index: -1;
|
|
1721
|
+
border-radius: var(--tl-radius-2);
|
|
1722
|
+
background: var(--tl-color-muted-2);
|
|
1723
|
+
opacity: 0;
|
|
1724
|
+
}
|
|
1725
|
+
|
|
1726
|
+
.tl-error-boundary__content .tl-error-boundary__copy {
|
|
1541
1727
|
position: absolute;
|
|
1542
1728
|
top: var(--tl-space-2);
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1729
|
+
inset-inline-end: var(--tl-space-2);
|
|
1730
|
+
height: 32px;
|
|
1731
|
+
min-width: 32px;
|
|
1732
|
+
padding: 0px;
|
|
1733
|
+
color: var(--tl-color-text-3);
|
|
1546
1734
|
background-color: var(--tl-color-panel);
|
|
1547
|
-
border-radius: var(--tl-radius-
|
|
1735
|
+
border-radius: var(--tl-radius-2);
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
.tl-error-boundary__content .tl-error-boundary__copy::after {
|
|
1739
|
+
inset: 0px;
|
|
1740
|
+
}
|
|
1741
|
+
|
|
1742
|
+
/* Touch screens can't hover, so the button stays visible there. */
|
|
1743
|
+
@media (hover: hover) {
|
|
1744
|
+
.tl-error-boundary__content .tl-error-boundary__copy {
|
|
1745
|
+
opacity: 0;
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1748
|
+
.tl-error-boundary__stack:hover .tl-error-boundary__copy,
|
|
1749
|
+
.tl-error-boundary__stack:focus-within .tl-error-boundary__copy,
|
|
1750
|
+
.tl-error-boundary__stack[data-copied='true'] .tl-error-boundary__copy {
|
|
1751
|
+
opacity: 1;
|
|
1752
|
+
}
|
|
1548
1753
|
}
|
|
1549
1754
|
|
|
1550
1755
|
.tl-error-boundary__content__actions {
|
|
1756
|
+
flex: 0 0 auto;
|
|
1551
1757
|
display: flex;
|
|
1758
|
+
align-items: center;
|
|
1552
1759
|
justify-content: space-between;
|
|
1553
|
-
|
|
1554
|
-
margin: 0px;
|
|
1555
|
-
margin-left: -4px;
|
|
1760
|
+
height: 40px;
|
|
1556
1761
|
}
|
|
1762
|
+
|
|
1557
1763
|
.tl-error-boundary__content__actions__group {
|
|
1558
1764
|
display: flex;
|
|
1559
|
-
|
|
1765
|
+
align-items: center;
|
|
1560
1766
|
}
|
|
1561
|
-
|
|
1562
|
-
|
|
1767
|
+
|
|
1768
|
+
.tl-error-boundary__content__actions__group > .tl-error-boundary__button:nth-last-child(n + 2) {
|
|
1769
|
+
margin-inline-end: -4px;
|
|
1563
1770
|
}
|
|
1771
|
+
|
|
1564
1772
|
.tl-error-boundary__content .tl-error-boundary__refresh {
|
|
1565
|
-
|
|
1566
|
-
color: var(--tl-color-selected-contrast);
|
|
1773
|
+
color: var(--tl-color-primary);
|
|
1567
1774
|
}
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1775
|
+
|
|
1776
|
+
.tl-error-boundary__content .tl-error-boundary__reset {
|
|
1777
|
+
color: var(--tl-color-danger);
|
|
1778
|
+
}
|
|
1779
|
+
|
|
1780
|
+
.tl-container__focused:not(.tl-container__no-focus-ring) .tl-error-boundary__button:focus-visible {
|
|
1781
|
+
border-radius: 10px;
|
|
1782
|
+
outline: 2px solid var(--tl-color-focus);
|
|
1783
|
+
outline-offset: -5px;
|
|
1572
1784
|
}
|
|
1573
1785
|
|
|
1574
1786
|
/* ---------------- Hit test blocker ---------------- */
|
|
@@ -1606,16 +1818,12 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1606
1818
|
color: var(--tl-color-selected);
|
|
1607
1819
|
}
|
|
1608
1820
|
|
|
1609
|
-
.tl-error-
|
|
1610
|
-
|
|
1821
|
+
.tl-error-boundary__button:hover::after {
|
|
1822
|
+
opacity: 1;
|
|
1611
1823
|
}
|
|
1612
1824
|
.tl-error-boundary__content a:hover {
|
|
1613
1825
|
color: var(--tl-color-text-1);
|
|
1614
1826
|
}
|
|
1615
|
-
.tl-error-boundary__content .tl-error-boundary__refresh:hover {
|
|
1616
|
-
background-color: var(--tl-color-primary);
|
|
1617
|
-
opacity: 0.9;
|
|
1618
|
-
}
|
|
1619
1827
|
|
|
1620
1828
|
/* These three rules help preserve clicking into specific points in text areas *while*
|
|
1621
1829
|
* already in edit mode when jumping from shape to shape. */
|
|
@@ -1744,13 +1952,13 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1744
1952
|
}
|
|
1745
1953
|
|
|
1746
1954
|
.tlui-button[aria-expanded='true'][data-direction='left'] {
|
|
1747
|
-
background:
|
|
1955
|
+
background: var(--tl-muted-gradient-to-left);
|
|
1748
1956
|
opacity: 1;
|
|
1749
1957
|
}
|
|
1750
1958
|
|
|
1751
1959
|
@media (hover: hover) {
|
|
1752
1960
|
.tlui-button[aria-expanded='true'][data-direction='left']:not(:hover)::after {
|
|
1753
|
-
background:
|
|
1961
|
+
background: var(--tl-muted-gradient-to-left);
|
|
1754
1962
|
opacity: 1;
|
|
1755
1963
|
}
|
|
1756
1964
|
|
|
@@ -1840,6 +2048,11 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1840
2048
|
padding-left: 8px;
|
|
1841
2049
|
}
|
|
1842
2050
|
|
|
2051
|
+
/* Switches sit at the trailing edge, so the label keeps the standard menu inset. */
|
|
2052
|
+
.tlui-button__toggle {
|
|
2053
|
+
padding-left: 12px;
|
|
2054
|
+
}
|
|
2055
|
+
|
|
1843
2056
|
.tlui-button__checkbox__indicator {
|
|
1844
2057
|
width: 15px;
|
|
1845
2058
|
height: 15px;
|
|
@@ -1954,7 +2167,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
1954
2167
|
}
|
|
1955
2168
|
|
|
1956
2169
|
.tlui-zoom-menu__button[data-state='open']::after {
|
|
1957
|
-
background:
|
|
2170
|
+
background: var(--tl-muted-gradient-to-top);
|
|
1958
2171
|
opacity: 1;
|
|
1959
2172
|
}
|
|
1960
2173
|
|
|
@@ -2205,7 +2418,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2205
2418
|
|
|
2206
2419
|
.tlui-select__chevron {
|
|
2207
2420
|
flex-shrink: 0;
|
|
2208
|
-
color: var(--tl-color-text-
|
|
2421
|
+
color: var(--tl-color-text-1);
|
|
2209
2422
|
}
|
|
2210
2423
|
|
|
2211
2424
|
/* Content extends .tlui-menu with Radix-aware sizing */
|
|
@@ -2419,13 +2632,13 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2419
2632
|
}
|
|
2420
2633
|
|
|
2421
2634
|
.tlui-menu-zone *[data-state='open']::after {
|
|
2422
|
-
background:
|
|
2635
|
+
background: var(--tl-muted-gradient-to-bottom);
|
|
2423
2636
|
opacity: 1;
|
|
2424
2637
|
}
|
|
2425
2638
|
|
|
2426
2639
|
@media (hover: hover) {
|
|
2427
2640
|
.tlui-menu-zone *[data-state='open']:not(:hover)::after {
|
|
2428
|
-
background:
|
|
2641
|
+
background: var(--tl-muted-gradient-to-bottom);
|
|
2429
2642
|
opacity: 1;
|
|
2430
2643
|
}
|
|
2431
2644
|
}
|
|
@@ -2440,10 +2653,12 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2440
2653
|
|
|
2441
2654
|
.tlui-page-menu__trigger {
|
|
2442
2655
|
width: auto;
|
|
2656
|
+
/* Long page names truncate in the label rather than stretching the menu zone across the top. */
|
|
2657
|
+
max-width: 320px;
|
|
2443
2658
|
}
|
|
2444
2659
|
|
|
2445
2660
|
.tlui-page-menu__trigger[data-state='open']::after {
|
|
2446
|
-
background:
|
|
2661
|
+
background: var(--tl-muted-gradient-to-bottom);
|
|
2447
2662
|
opacity: 1;
|
|
2448
2663
|
}
|
|
2449
2664
|
|
|
@@ -2633,6 +2848,10 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2633
2848
|
opacity: 1;
|
|
2634
2849
|
}
|
|
2635
2850
|
|
|
2851
|
+
.tlui-page-menu__item__submenu > .tlui-button[data-state='open'] {
|
|
2852
|
+
color: var(--tl-color-text-1);
|
|
2853
|
+
}
|
|
2854
|
+
|
|
2636
2855
|
/* Hide the kebab while any row is being dragged: :hover sticks during pointer */
|
|
2637
2856
|
/* capture, which would otherwise leave the kebab visible mid-drag. */
|
|
2638
2857
|
.tlui-page-menu__list__content[data-dragging='true']
|
|
@@ -2674,7 +2893,7 @@ it from receiving any pointer events or affecting the cursor. */
|
|
|
2674
2893
|
}
|
|
2675
2894
|
|
|
2676
2895
|
.tlui-page-menu__item__submenu > .tlui-button:hover {
|
|
2677
|
-
color: var(--tl-color-text);
|
|
2896
|
+
color: var(--tl-color-text-1);
|
|
2678
2897
|
}
|
|
2679
2898
|
}
|
|
2680
2899
|
/* -------------- Skip to main content -------------- */
|
|
@@ -2838,7 +3057,7 @@ tldraw? probably.
|
|
|
2838
3057
|
|
|
2839
3058
|
.tlui-style-panel .tlui-button[data-state='open']::after {
|
|
2840
3059
|
opacity: 1;
|
|
2841
|
-
background:
|
|
3060
|
+
background: var(--tl-muted-gradient-to-left);
|
|
2842
3061
|
}
|
|
2843
3062
|
|
|
2844
3063
|
@media (hover: hover) {
|
|
@@ -2847,7 +3066,7 @@ tldraw? probably.
|
|
|
2847
3066
|
}
|
|
2848
3067
|
.tlui-style-panel .tlui-button[data-state='open']:not(:hover)::after {
|
|
2849
3068
|
opacity: 1;
|
|
2850
|
-
background:
|
|
3069
|
+
background: var(--tl-muted-gradient-to-left);
|
|
2851
3070
|
}
|
|
2852
3071
|
}
|
|
2853
3072
|
|
|
@@ -3074,11 +3293,11 @@ tldraw? probably.
|
|
|
3074
3293
|
}
|
|
3075
3294
|
|
|
3076
3295
|
.tlui-main-toolbar--horizontal *[data-state='open']::after {
|
|
3077
|
-
background:
|
|
3296
|
+
background: var(--tl-muted-gradient-to-top);
|
|
3078
3297
|
opacity: 1;
|
|
3079
3298
|
}
|
|
3080
3299
|
.tlui-main-toolbar--vertical *[data-state='open']::after {
|
|
3081
|
-
background:
|
|
3300
|
+
background: var(--tl-muted-gradient-to-right);
|
|
3082
3301
|
opacity: 1;
|
|
3083
3302
|
}
|
|
3084
3303
|
|
|
@@ -3114,11 +3333,11 @@ tldraw? probably.
|
|
|
3114
3333
|
|
|
3115
3334
|
@media (hover: hover) {
|
|
3116
3335
|
.tlui-main-toolbar--horizontal *[data-state='open']:not(:hover)::after {
|
|
3117
|
-
background:
|
|
3336
|
+
background: var(--tl-muted-gradient-to-top);
|
|
3118
3337
|
opacity: 1;
|
|
3119
3338
|
}
|
|
3120
3339
|
.tlui-main-toolbar--vertical *[data-state='open']:not(:hover)::after {
|
|
3121
|
-
background:
|
|
3340
|
+
background: var(--tl-muted-gradient-to-right);
|
|
3122
3341
|
opacity: 1;
|
|
3123
3342
|
}
|
|
3124
3343
|
}
|
|
@@ -3886,12 +4105,19 @@ tldraw? probably.
|
|
|
3886
4105
|
}
|
|
3887
4106
|
|
|
3888
4107
|
.tlui-rich-text__toolbar-link-input {
|
|
3889
|
-
margin
|
|
4108
|
+
/* Padding rather than margin, so the invalid outline runs to the toolbar's left edge. */
|
|
4109
|
+
padding-left: 12px;
|
|
3890
4110
|
/*
|
|
3891
4111
|
* Nice touch tweak: keep the link editor toolbar the same as the default toolbar.
|
|
3892
4112
|
* This is so the toolbar size stays stable going in and out of the link editor.
|
|
3893
4113
|
*/
|
|
3894
|
-
width:
|
|
4114
|
+
width: 160px;
|
|
4115
|
+
}
|
|
4116
|
+
|
|
4117
|
+
.tlui-rich-text__toolbar-link-input--invalid {
|
|
4118
|
+
/* An inset shadow rather than a border, so the input doesn't change size. */
|
|
4119
|
+
box-shadow: inset 0 0 0 1px var(--tl-color-danger);
|
|
4120
|
+
border-radius: var(--tl-radius-3) var(--tl-radius-2) var(--tl-radius-2) var(--tl-radius-3);
|
|
3895
4121
|
}
|
|
3896
4122
|
|
|
3897
4123
|
.tlui-media__toolbar-alt-text-input {
|