@zuilib/text-editor 0.7.1 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/DRAWING_FORMAT.md +3 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2088 -2111
- package/dist/styles.css +17 -29
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -378,19 +378,14 @@
|
|
|
378
378
|
display: flex;
|
|
379
379
|
gap: 0.125rem;
|
|
380
380
|
padding: 0.125rem;
|
|
381
|
-
border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
|
|
382
|
-
border-radius: 0.5rem;
|
|
383
|
-
background: #ffffff;
|
|
384
|
-
|
|
381
|
+
border: 1px solid var(--border, color-mix(in srgb, currentColor 12%, transparent));
|
|
382
|
+
border-radius: var(--radius-md, 0.5rem);
|
|
383
|
+
background: var(--popover, #ffffff);
|
|
384
|
+
color: var(--popover-foreground, inherit);
|
|
385
|
+
box-shadow: var(--shadow-medium, 0 1px 4px rgba(0, 0, 0, 0.08));
|
|
385
386
|
transform: translateY(-70%);
|
|
386
387
|
}
|
|
387
388
|
|
|
388
|
-
.dark .zui-table-settings {
|
|
389
|
-
background: #232329;
|
|
390
|
-
border-color: rgba(255, 255, 255, 0.1);
|
|
391
|
-
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
|
|
392
|
-
}
|
|
393
|
-
|
|
394
389
|
/*
|
|
395
390
|
* Drawing canvas.
|
|
396
391
|
*
|
|
@@ -654,23 +649,26 @@
|
|
|
654
649
|
}
|
|
655
650
|
|
|
656
651
|
/*
|
|
657
|
-
* Properties
|
|
658
|
-
* nothing is selected) plus contextual connector options.
|
|
659
|
-
*
|
|
660
|
-
*
|
|
652
|
+
* Properties: the color for the selection (or for the next shape when
|
|
653
|
+
* nothing is selected) plus contextual connector options. Inline in the
|
|
654
|
+
* tools row, so showing them never changes the row height, and only
|
|
655
|
+
* visible while the canvas is active (focused).
|
|
661
656
|
*/
|
|
662
657
|
.zui-drawing-props-host {
|
|
663
|
-
|
|
658
|
+
display: none;
|
|
659
|
+
align-items: center;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
.zui-drawing-canvas:focus-within .zui-drawing-props-host {
|
|
664
663
|
display: flex;
|
|
665
664
|
}
|
|
666
665
|
|
|
667
666
|
.zui-drawing-props {
|
|
668
667
|
display: flex;
|
|
669
|
-
flex-wrap: wrap;
|
|
670
668
|
align-items: center;
|
|
671
669
|
gap: 0.25rem;
|
|
672
|
-
|
|
673
|
-
|
|
670
|
+
padding-left: 0.5rem;
|
|
671
|
+
border-left: 1px solid color-mix(in srgb, currentColor 15%, transparent);
|
|
674
672
|
}
|
|
675
673
|
|
|
676
674
|
.zui-drawing-props-group {
|
|
@@ -697,7 +695,7 @@
|
|
|
697
695
|
height: 1rem;
|
|
698
696
|
margin: 0 0.125rem;
|
|
699
697
|
padding: 0;
|
|
700
|
-
border:
|
|
698
|
+
border: 2px solid rgba(0, 0, 0, 0.18);
|
|
701
699
|
border-radius: 999px;
|
|
702
700
|
cursor: pointer;
|
|
703
701
|
transition:
|
|
@@ -715,16 +713,6 @@
|
|
|
715
713
|
0 0 0 3.5px var(--zui-drawing-accent);
|
|
716
714
|
}
|
|
717
715
|
|
|
718
|
-
.zui-drawing-swatch.is-transparent {
|
|
719
|
-
background-image: linear-gradient(
|
|
720
|
-
45deg,
|
|
721
|
-
transparent 44%,
|
|
722
|
-
#e03131 44%,
|
|
723
|
-
#e03131 56%,
|
|
724
|
-
transparent 56%
|
|
725
|
-
);
|
|
726
|
-
}
|
|
727
|
-
|
|
728
716
|
/* Empty state */
|
|
729
717
|
.zui-drawing-empty {
|
|
730
718
|
position: absolute;
|