@thangph2146/lexical-editor 0.0.9 → 0.0.12
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/README.md +10 -1
- package/dist/editor-x/editor.cjs +300 -28
- package/dist/editor-x/editor.cjs.map +1 -1
- package/dist/editor-x/editor.css +145 -108
- package/dist/editor-x/editor.css.map +1 -1
- package/dist/editor-x/editor.js +301 -29
- package/dist/editor-x/editor.js.map +1 -1
- package/dist/index.cjs +312 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +145 -108
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +26 -1
- package/dist/index.d.ts +26 -1
- package/dist/index.js +313 -32
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/lexical-editor.tsx +19 -6
- package/src/context/uploads-context.tsx +1 -0
- package/src/editor-ui/content-editable.tsx +18 -2
- package/src/editor-x/nodes.ts +2 -0
- package/src/nodes/download-link-node.tsx +118 -0
- package/src/plugins/floating-link-editor-plugin.tsx +338 -91
- package/src/plugins/floating-text-format-plugin.tsx +716 -702
- package/src/themes/_variables.scss +26 -26
- package/src/themes/core/_typography.scss +26 -12
- package/src/themes/plugins/_color-picker.scss +103 -104
- package/src/themes/plugins/_floating-link-editor.scss +28 -2
- package/src/themes/ui-components/_button.scss +1 -1
- package/src/themes/ui-components/_flex.scss +1 -0
- package/src/themes/ui-components/_typography.scss +1 -1
- package/src/ui/button-group.tsx +10 -10
- package/src/ui/button.tsx +38 -38
- package/src/ui/collapsible.tsx +67 -67
- package/src/ui/command.tsx +48 -48
- package/src/ui/dialog.tsx +146 -146
- package/src/ui/flex.tsx +45 -45
- package/src/ui/input.tsx +20 -20
- package/src/ui/label.tsx +20 -20
- package/src/ui/number-input.tsx +104 -104
- package/src/ui/popover.tsx +128 -128
- package/src/ui/scroll-area.tsx +17 -17
- package/src/ui/select.tsx +171 -171
- package/src/ui/separator.tsx +20 -20
- package/src/ui/slider.tsx +14 -14
- package/src/ui/slot.tsx +3 -3
- package/src/ui/tabs.tsx +87 -87
- package/src/ui/toggle-group.tsx +109 -109
- package/src/ui/toggle.tsx +28 -28
- package/src/ui/tooltip.tsx +28 -28
- package/src/ui/typography.tsx +44 -44
package/dist/editor-x/editor.css
CHANGED
|
@@ -134,6 +134,7 @@
|
|
|
134
134
|
}
|
|
135
135
|
.editor-shrink-0 {
|
|
136
136
|
flex-shrink: 0;
|
|
137
|
+
gap: 8px !important;
|
|
137
138
|
}
|
|
138
139
|
.editor-flex-grow {
|
|
139
140
|
flex-grow: 1;
|
|
@@ -390,7 +391,7 @@
|
|
|
390
391
|
background-color: var(--muted);
|
|
391
392
|
}
|
|
392
393
|
.editor-bg-accent {
|
|
393
|
-
background-color: var(--accent, #
|
|
394
|
+
background-color: var(--accent, #f1f3f5);
|
|
394
395
|
}
|
|
395
396
|
.editor-bg-transparent {
|
|
396
397
|
background-color: transparent;
|
|
@@ -722,7 +723,7 @@
|
|
|
722
723
|
}
|
|
723
724
|
.editor-text-xs-muted {
|
|
724
725
|
font-size: 0.75rem;
|
|
725
|
-
color: var(--muted-foreground, #
|
|
726
|
+
color: var(--muted-foreground, #6c757d);
|
|
726
727
|
}
|
|
727
728
|
.editor-text-sm {
|
|
728
729
|
font-size: 0.875rem;
|
|
@@ -744,7 +745,7 @@
|
|
|
744
745
|
monospace;
|
|
745
746
|
}
|
|
746
747
|
.editor-text-muted-foreground {
|
|
747
|
-
color: var(--muted-foreground, #
|
|
748
|
+
color: var(--muted-foreground, #6c757d);
|
|
748
749
|
}
|
|
749
750
|
.editor-text-foreground-50 {
|
|
750
751
|
color: color-mix(in srgb, var(--foreground), transparent 50%);
|
|
@@ -831,10 +832,10 @@
|
|
|
831
832
|
flex-shrink: 0;
|
|
832
833
|
}
|
|
833
834
|
.editor-typography-p {
|
|
834
|
-
line-height: 1.
|
|
835
|
+
line-height: var(--lh-body-normal, 1.5);
|
|
835
836
|
}
|
|
836
837
|
.editor-typography-p:not(:first-child) {
|
|
837
|
-
margin-top:
|
|
838
|
+
margin-top: calc(var(--sp-3, 1.2rem) * 2);
|
|
838
839
|
}
|
|
839
840
|
.editor-typography-p-small {
|
|
840
841
|
font-size: 0.875rem;
|
|
@@ -896,9 +897,9 @@
|
|
|
896
897
|
}
|
|
897
898
|
.editor-toolbar-item--outline:hover,
|
|
898
899
|
.editor-toggle-group-item--outline:hover {
|
|
899
|
-
background-color: var(--accent, #
|
|
900
|
-
border-color: var(--accent, #
|
|
901
|
-
color: var(--accent-foreground, #
|
|
900
|
+
background-color: var(--accent, #f1f3f5);
|
|
901
|
+
border-color: var(--accent, #f1f3f5);
|
|
902
|
+
color: var(--accent-foreground, #212529) !important;
|
|
902
903
|
}
|
|
903
904
|
.editor-toolbar-item:hover,
|
|
904
905
|
.editor-toggle-group-item:hover {
|
|
@@ -909,9 +910,9 @@
|
|
|
909
910
|
.editor-toolbar-item[data-state=active],
|
|
910
911
|
.editor-toggle-group-item[data-state=on],
|
|
911
912
|
.editor-toggle-group-item[data-state=active] {
|
|
912
|
-
background-color: var(--accent, #
|
|
913
|
-
color: var(--accent-foreground, #
|
|
914
|
-
border-color: var(--accent, #
|
|
913
|
+
background-color: var(--accent, #f1f3f5);
|
|
914
|
+
color: var(--accent-foreground, #212529) !important;
|
|
915
|
+
border-color: var(--accent, #f1f3f5);
|
|
915
916
|
}
|
|
916
917
|
.editor-toolbar-item[data-state=on]:hover,
|
|
917
918
|
.editor-toolbar-item[data-state=active]:hover,
|
|
@@ -919,8 +920,8 @@
|
|
|
919
920
|
.editor-toggle-group-item[data-state=active]:hover {
|
|
920
921
|
transform: translateY(-1px);
|
|
921
922
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
|
|
922
|
-
background-color: color-mix(in srgb, var(--accent, #
|
|
923
|
-
border-color: var(--accent, #
|
|
923
|
+
background-color: color-mix(in srgb, var(--accent, #f1f3f5), black 10%);
|
|
924
|
+
border-color: var(--accent, #f1f3f5);
|
|
924
925
|
}
|
|
925
926
|
.editor-toolbar-item:disabled,
|
|
926
927
|
.editor-toggle-group-item:disabled {
|
|
@@ -1025,7 +1026,7 @@
|
|
|
1025
1026
|
position: relative;
|
|
1026
1027
|
padding: 8px 16px;
|
|
1027
1028
|
box-sizing: border-box;
|
|
1028
|
-
box-shadow: 0 1px
|
|
1029
|
+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
|
|
1029
1030
|
}
|
|
1030
1031
|
.editor-btn:hover:not(:disabled):not([data-state=on]):not([data-state=active]) {
|
|
1031
1032
|
transform: translateY(-1px);
|
|
@@ -1059,9 +1060,9 @@
|
|
|
1059
1060
|
}
|
|
1060
1061
|
.editor-btn[data-state=on],
|
|
1061
1062
|
.editor-btn[data-state=active] {
|
|
1062
|
-
background-color: var(--accent, #
|
|
1063
|
-
color: var(--accent-foreground, #
|
|
1064
|
-
border-color: var(--accent, #
|
|
1063
|
+
background-color: var(--accent, #f1f3f5);
|
|
1064
|
+
color: var(--accent-foreground, #212529) !important;
|
|
1065
|
+
border-color: var(--accent, #f1f3f5);
|
|
1065
1066
|
}
|
|
1066
1067
|
.editor-btn--default {
|
|
1067
1068
|
background-color: var(--primary);
|
|
@@ -1206,7 +1207,7 @@
|
|
|
1206
1207
|
}
|
|
1207
1208
|
.editor-input:hover:not(:disabled):not([readonly]) {
|
|
1208
1209
|
background-color: color-mix(in srgb, var(--background), black 3%);
|
|
1209
|
-
border-color: var(--accent, #
|
|
1210
|
+
border-color: var(--accent, #f1f3f5);
|
|
1210
1211
|
transform: translateY(-1px);
|
|
1211
1212
|
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
|
|
1212
1213
|
}
|
|
@@ -1355,7 +1356,7 @@
|
|
|
1355
1356
|
.editor-dialog-header__title {
|
|
1356
1357
|
font-size: 1.125rem;
|
|
1357
1358
|
font-weight: 600;
|
|
1358
|
-
line-height: 1.25;
|
|
1359
|
+
line-height: var(--lh-tight, 1.25);
|
|
1359
1360
|
margin: 0;
|
|
1360
1361
|
}
|
|
1361
1362
|
.editor-dialog-header__description {
|
|
@@ -1457,12 +1458,12 @@
|
|
|
1457
1458
|
outline: none;
|
|
1458
1459
|
}
|
|
1459
1460
|
.editor-select-item:hover {
|
|
1460
|
-
background-color: var(--accent, #
|
|
1461
|
-
color: var(--accent-foreground, #
|
|
1461
|
+
background-color: var(--accent, #f1f3f5);
|
|
1462
|
+
color: var(--accent-foreground, #212529);
|
|
1462
1463
|
}
|
|
1463
1464
|
.editor-select-item[data-selected=true] {
|
|
1464
|
-
background-color: var(--accent, #
|
|
1465
|
-
color: var(--accent-foreground, #
|
|
1465
|
+
background-color: var(--accent, #f1f3f5);
|
|
1466
|
+
color: var(--accent-foreground, #212529);
|
|
1466
1467
|
}
|
|
1467
1468
|
.editor-select-item__check {
|
|
1468
1469
|
position: absolute;
|
|
@@ -1515,8 +1516,8 @@
|
|
|
1515
1516
|
filter: brightness(0.95);
|
|
1516
1517
|
}
|
|
1517
1518
|
.editor-toggle:hover {
|
|
1518
|
-
background-color: var(--accent, #
|
|
1519
|
-
color: var(--accent-foreground, #
|
|
1519
|
+
background-color: var(--accent, #f1f3f5);
|
|
1520
|
+
color: var(--accent-foreground, #212529);
|
|
1520
1521
|
}
|
|
1521
1522
|
.editor-toggle:focus-visible {
|
|
1522
1523
|
outline: none;
|
|
@@ -1527,26 +1528,26 @@
|
|
|
1527
1528
|
opacity: 0.5;
|
|
1528
1529
|
}
|
|
1529
1530
|
.editor-toggle[data-state=on] {
|
|
1530
|
-
background-color: var(--accent, #
|
|
1531
|
-
color: var(--accent-foreground, #
|
|
1531
|
+
background-color: var(--accent, #f1f3f5);
|
|
1532
|
+
color: var(--accent-foreground, #212529) !important;
|
|
1532
1533
|
}
|
|
1533
1534
|
.editor-toggle[data-state=on]:hover {
|
|
1534
1535
|
transform: translateY(-1px);
|
|
1535
1536
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
|
|
1536
|
-
background-color: color-mix(in srgb, var(--accent, #
|
|
1537
|
-
border-color: var(--accent, #
|
|
1537
|
+
background-color: color-mix(in srgb, var(--accent, #f1f3f5), black 10%);
|
|
1538
|
+
border-color: var(--accent, #f1f3f5);
|
|
1538
1539
|
}
|
|
1539
1540
|
.editor-toggle--outline {
|
|
1540
1541
|
border-color: var(--input);
|
|
1541
1542
|
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
|
|
1542
1543
|
}
|
|
1543
1544
|
.editor-toggle--outline:hover {
|
|
1544
|
-
background-color: color-mix(in srgb, var(--accent, #
|
|
1545
|
-
color: var(--accent-foreground, #
|
|
1545
|
+
background-color: color-mix(in srgb, var(--accent, #f1f3f5), black 5%);
|
|
1546
|
+
color: var(--accent-foreground, #212529);
|
|
1546
1547
|
}
|
|
1547
1548
|
.editor-toggle--ghost:hover {
|
|
1548
|
-
background-color: color-mix(in srgb, var(--accent, #
|
|
1549
|
-
color: var(--accent-foreground, #
|
|
1549
|
+
background-color: color-mix(in srgb, var(--accent, #f1f3f5), black 5%);
|
|
1550
|
+
color: var(--accent-foreground, #212529);
|
|
1550
1551
|
}
|
|
1551
1552
|
.editor-toggle--size-default {
|
|
1552
1553
|
height: 36px;
|
|
@@ -1773,8 +1774,8 @@
|
|
|
1773
1774
|
.editor-floating-text-format .editor-toggle-group-item:hover,
|
|
1774
1775
|
.editor-floating-text-format .editor-btn:hover,
|
|
1775
1776
|
.editor-floating-text-format .editor-toolbar-item:hover {
|
|
1776
|
-
background-color: var(--accent, #
|
|
1777
|
-
color: var(--accent-foreground, #
|
|
1777
|
+
background-color: var(--accent, #f1f3f5);
|
|
1778
|
+
color: var(--accent-foreground, #212529);
|
|
1778
1779
|
}
|
|
1779
1780
|
.editor-floating-text-format .editor-toggle-group-item[data-state=on],
|
|
1780
1781
|
.editor-floating-text-format .editor-toggle-group-item[data-state=active],
|
|
@@ -1785,8 +1786,8 @@
|
|
|
1785
1786
|
.editor-floating-text-format .editor-toolbar-item[data-state=on],
|
|
1786
1787
|
.editor-floating-text-format .editor-toolbar-item[data-state=active],
|
|
1787
1788
|
.editor-floating-text-format .editor-toolbar-item--active {
|
|
1788
|
-
background-color: var(--accent, #
|
|
1789
|
-
color: var(--accent-foreground, #
|
|
1789
|
+
background-color: var(--accent, #f1f3f5);
|
|
1790
|
+
color: var(--accent-foreground, #212529) !important;
|
|
1790
1791
|
font-weight: 700;
|
|
1791
1792
|
}
|
|
1792
1793
|
.editor-floating-text-format .editor-floating-group,
|
|
@@ -1832,9 +1833,8 @@
|
|
|
1832
1833
|
.editor-color-picker-content {
|
|
1833
1834
|
display: flex !important;
|
|
1834
1835
|
flex-direction: column !important;
|
|
1835
|
-
width: 380px;
|
|
1836
|
+
min-width: 380px;
|
|
1836
1837
|
gap: 16px;
|
|
1837
|
-
padding: 16px;
|
|
1838
1838
|
}
|
|
1839
1839
|
.editor-color-picker-area {
|
|
1840
1840
|
position: relative;
|
|
@@ -1928,7 +1928,7 @@
|
|
|
1928
1928
|
line-height: 1.375;
|
|
1929
1929
|
}
|
|
1930
1930
|
.editor-color-value-text {
|
|
1931
|
-
color: var(--muted-foreground, #
|
|
1931
|
+
color: var(--muted-foreground, #6c757d);
|
|
1932
1932
|
font-family:
|
|
1933
1933
|
"JetBrains Mono",
|
|
1934
1934
|
ui-monospace,
|
|
@@ -1996,8 +1996,8 @@
|
|
|
1996
1996
|
background: transparent;
|
|
1997
1997
|
}
|
|
1998
1998
|
.editor-folder-tree-trigger:hover {
|
|
1999
|
-
background-color: var(--accent, #
|
|
2000
|
-
color: var(--accent-foreground, #
|
|
1999
|
+
background-color: var(--accent, #f1f3f5);
|
|
2000
|
+
color: var(--accent-foreground, #212529);
|
|
2001
2001
|
}
|
|
2002
2002
|
.editor-tree-content {
|
|
2003
2003
|
margin-left: 16px;
|
|
@@ -2018,7 +2018,7 @@
|
|
|
2018
2018
|
transition: background-color 200ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
2019
2019
|
}
|
|
2020
2020
|
.editor-image-resizer-handle:hover {
|
|
2021
|
-
background-color: var(--accent, #
|
|
2021
|
+
background-color: var(--accent, #f1f3f5);
|
|
2022
2022
|
}
|
|
2023
2023
|
.editor-image-resizer-handle--n {
|
|
2024
2024
|
top: -5px;
|
|
@@ -2093,9 +2093,9 @@
|
|
|
2093
2093
|
.editor-mentions-item[data-selected=true],
|
|
2094
2094
|
.editor-mentions-item[data-state=active],
|
|
2095
2095
|
.editor-mentions-item[data-state=on] {
|
|
2096
|
-
background-color: var(--accent, #
|
|
2097
|
-
color: var(--accent-foreground, #
|
|
2098
|
-
border-color: var(--border, #
|
|
2096
|
+
background-color: var(--accent, #f1f3f5);
|
|
2097
|
+
color: var(--accent-foreground, #212529);
|
|
2098
|
+
border-color: var(--border, #dee2e6);
|
|
2099
2099
|
}
|
|
2100
2100
|
.editor-mentions-item:active {
|
|
2101
2101
|
transform: translateY(0) scale(0.98);
|
|
@@ -2134,7 +2134,7 @@
|
|
|
2134
2134
|
will-change: transform;
|
|
2135
2135
|
}
|
|
2136
2136
|
.editor-draggable-menu:hover {
|
|
2137
|
-
background-color: var(--accent, #
|
|
2137
|
+
background-color: var(--accent, #f1f3f5);
|
|
2138
2138
|
}
|
|
2139
2139
|
.editor-draggable-menu:active {
|
|
2140
2140
|
cursor: grabbing;
|
|
@@ -2166,15 +2166,38 @@
|
|
|
2166
2166
|
display: flex;
|
|
2167
2167
|
align-items: center;
|
|
2168
2168
|
gap: 4px;
|
|
2169
|
-
padding:
|
|
2169
|
+
padding: 8px;
|
|
2170
|
+
width: 100%;
|
|
2171
|
+
}
|
|
2172
|
+
.editor-floating-link-editor__library {
|
|
2173
|
+
display: flex;
|
|
2174
|
+
flex-direction: column;
|
|
2175
|
+
gap: 4px;
|
|
2170
2176
|
width: 100%;
|
|
2177
|
+
max-height: 220px;
|
|
2178
|
+
overflow: auto;
|
|
2179
|
+
border-top: 1px solid var(--border);
|
|
2180
|
+
padding: 8px;
|
|
2181
|
+
}
|
|
2182
|
+
.editor-floating-link-editor__library-item {
|
|
2183
|
+
width: 100%;
|
|
2184
|
+
text-align: left;
|
|
2185
|
+
background: transparent;
|
|
2186
|
+
border: 0;
|
|
2187
|
+
color: var(--foreground);
|
|
2188
|
+
padding: 4px;
|
|
2189
|
+
border-radius: calc(var(--radius, 8px) - 2px);
|
|
2190
|
+
cursor: pointer;
|
|
2191
|
+
}
|
|
2192
|
+
.editor-floating-link-editor__library-item:hover {
|
|
2193
|
+
background: var(--muted);
|
|
2171
2194
|
}
|
|
2172
2195
|
.editor-floating-link-editor__view-container {
|
|
2173
2196
|
display: flex;
|
|
2174
2197
|
align-items: center;
|
|
2175
2198
|
justify-content: space-between;
|
|
2176
2199
|
gap: 8px;
|
|
2177
|
-
padding: 4px 4px 4px 12px;
|
|
2200
|
+
padding: 4px 4px 4px 12px !important;
|
|
2178
2201
|
width: 100%;
|
|
2179
2202
|
}
|
|
2180
2203
|
.editor-floating-link-editor__link {
|
|
@@ -2250,9 +2273,9 @@
|
|
|
2250
2273
|
.editor-command-item[data-selected=true],
|
|
2251
2274
|
.editor-command-item[data-state=active],
|
|
2252
2275
|
.editor-command-item[data-state=on] {
|
|
2253
|
-
background-color: var(--accent, #
|
|
2254
|
-
color: var(--accent-foreground, #
|
|
2255
|
-
border-color: var(--border, #
|
|
2276
|
+
background-color: var(--accent, #f1f3f5);
|
|
2277
|
+
color: var(--accent-foreground, #212529);
|
|
2278
|
+
border-color: var(--border, #dee2e6);
|
|
2256
2279
|
}
|
|
2257
2280
|
.editor-command-item:active {
|
|
2258
2281
|
transform: translateY(0) scale(0.98);
|
|
@@ -2303,9 +2326,9 @@
|
|
|
2303
2326
|
.editor-context-menu-item[data-selected=true],
|
|
2304
2327
|
.editor-context-menu-item[data-state=active],
|
|
2305
2328
|
.editor-context-menu-item[data-state=on] {
|
|
2306
|
-
background-color: var(--accent, #
|
|
2307
|
-
color: var(--accent-foreground, #
|
|
2308
|
-
border-color: var(--border, #
|
|
2329
|
+
background-color: var(--accent, #f1f3f5);
|
|
2330
|
+
color: var(--accent-foreground, #212529);
|
|
2331
|
+
border-color: var(--border, #dee2e6);
|
|
2309
2332
|
}
|
|
2310
2333
|
.editor-context-menu-item:active {
|
|
2311
2334
|
transform: translateY(0) scale(0.98);
|
|
@@ -2377,7 +2400,7 @@
|
|
|
2377
2400
|
transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
2378
2401
|
}
|
|
2379
2402
|
.editor-root-container.editor-root-container--shadow:focus-within {
|
|
2380
|
-
box-shadow: 0 0 0 1px var(--border, #
|
|
2403
|
+
box-shadow: 0 0 0 1px var(--border, #dee2e6), 0 0 0 3px var(--ring, rgba(59, 130, 246, 0.5));
|
|
2381
2404
|
}
|
|
2382
2405
|
*,
|
|
2383
2406
|
*::before,
|
|
@@ -2404,8 +2427,8 @@
|
|
|
2404
2427
|
"Helvetica Neue",
|
|
2405
2428
|
Arial,
|
|
2406
2429
|
sans-serif !important;
|
|
2407
|
-
font-size:
|
|
2408
|
-
color: var(--foreground, #
|
|
2430
|
+
font-size: var(--fs-body, 1rem);
|
|
2431
|
+
color: var(--foreground, #212529) !important;
|
|
2409
2432
|
background-color: var(--background, transparent) !important;
|
|
2410
2433
|
position: relative !important;
|
|
2411
2434
|
width: 100% !important;
|
|
@@ -2508,64 +2531,78 @@
|
|
|
2508
2531
|
display: none !important;
|
|
2509
2532
|
}
|
|
2510
2533
|
.lexical-editor-root .editor-paragraph {
|
|
2511
|
-
font-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2534
|
+
font-family: var(--font-family-base, var(--font-inter), Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif) !important;
|
|
2535
|
+
font-size: var(--fs-body, 1rem) !important;
|
|
2536
|
+
line-height: var(--lh-body-normal, 1.5) !important;
|
|
2537
|
+
color: var(--gray-900, #212529) !important;
|
|
2538
|
+
margin-top: var(--sp-3, 1.2rem) !important;
|
|
2539
|
+
margin-bottom: var(--sp-3, 1.2rem) !important;
|
|
2515
2540
|
}
|
|
2516
2541
|
.lexical-editor-root .editor-paragraph:first-child {
|
|
2517
2542
|
margin-top: 0 !important;
|
|
2518
2543
|
}
|
|
2519
2544
|
.lexical-editor-root .editor-h1 {
|
|
2520
|
-
font-
|
|
2521
|
-
|
|
2545
|
+
font-family: var(--font-family-heading, var(--font-inter), Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif) !important;
|
|
2546
|
+
color: var(--gray-900, #212529) !important;
|
|
2547
|
+
font-size: var(--fs-page-title, 3.6rem);
|
|
2548
|
+
line-height: var(--lh-heading-tight, 1.25) !important;
|
|
2522
2549
|
font-weight: 700 !important;
|
|
2523
2550
|
letter-spacing: -0.025em;
|
|
2524
|
-
margin-top:
|
|
2525
|
-
margin-bottom:
|
|
2551
|
+
margin-top: calc(var(--sp-5, 2.4rem) * 1.5) !important;
|
|
2552
|
+
margin-bottom: calc(var(--sp-3, 1.2rem) * 1.5) !important;
|
|
2526
2553
|
}
|
|
2527
2554
|
.lexical-editor-root .editor-h2 {
|
|
2528
|
-
font-
|
|
2529
|
-
|
|
2555
|
+
font-family: var(--font-family-heading, var(--font-inter), Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif) !important;
|
|
2556
|
+
color: var(--gray-900, #212529) !important;
|
|
2557
|
+
font-size: var(--fs-heading-xl, 3rem);
|
|
2558
|
+
line-height: var(--lh-heading-tight, 1.25) !important;
|
|
2530
2559
|
font-weight: 600 !important;
|
|
2531
|
-
margin-top:
|
|
2532
|
-
margin-bottom:
|
|
2560
|
+
margin-top: calc(var(--sp-5, 2.4rem) * 1.25) !important;
|
|
2561
|
+
margin-bottom: calc(var(--sp-3, 1.2rem) * 1.25) !important;
|
|
2533
2562
|
border-bottom: 1px solid var(--border);
|
|
2534
2563
|
padding-bottom: 4px;
|
|
2535
2564
|
}
|
|
2536
2565
|
.lexical-editor-root .editor-h3 {
|
|
2537
|
-
font-
|
|
2538
|
-
|
|
2566
|
+
font-family: var(--font-family-heading, var(--font-inter), Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif) !important;
|
|
2567
|
+
color: var(--gray-800, #343a40) !important;
|
|
2568
|
+
font-size: var(--fs-heading-m, 2.4rem);
|
|
2569
|
+
line-height: var(--lh-heading-tight, 1.25) !important;
|
|
2539
2570
|
font-weight: 600 !important;
|
|
2540
|
-
margin-top:
|
|
2541
|
-
margin-bottom:
|
|
2571
|
+
margin-top: var(--sp-5, 2.4rem) !important;
|
|
2572
|
+
margin-bottom: var(--sp-3, 1.2rem) !important;
|
|
2542
2573
|
}
|
|
2543
2574
|
.lexical-editor-root .editor-h4 {
|
|
2544
|
-
font-
|
|
2545
|
-
|
|
2575
|
+
font-family: var(--font-family-heading, var(--font-inter), Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif) !important;
|
|
2576
|
+
color: var(--gray-800, #343a40) !important;
|
|
2577
|
+
font-size: var(--fs-body, 1.6rem);
|
|
2578
|
+
line-height: var(--lh-heading-tight, 1.25) !important;
|
|
2546
2579
|
font-weight: 600 !important;
|
|
2547
|
-
margin-top:
|
|
2548
|
-
margin-bottom:
|
|
2580
|
+
margin-top: calc(var(--sp-5, 2.4rem) * 0.75) !important;
|
|
2581
|
+
margin-bottom: calc(var(--sp-3, 1.2rem) * 0.75) !important;
|
|
2549
2582
|
}
|
|
2550
2583
|
.lexical-editor-root .editor-h5 {
|
|
2551
|
-
font-
|
|
2552
|
-
|
|
2584
|
+
font-family: var(--font-family-heading, var(--font-inter), Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif) !important;
|
|
2585
|
+
color: var(--gray-700, #495057) !important;
|
|
2586
|
+
font-size: var(--fs-body-sm, 1.4rem);
|
|
2587
|
+
line-height: var(--lh-heading-tight, 1.25) !important;
|
|
2553
2588
|
font-weight: 600 !important;
|
|
2554
|
-
margin-top:
|
|
2555
|
-
margin-bottom:
|
|
2589
|
+
margin-top: calc(var(--sp-5, 2.4rem) * 0.5) !important;
|
|
2590
|
+
margin-bottom: calc(var(--sp-3, 1.2rem) * 0.5) !important;
|
|
2556
2591
|
}
|
|
2557
2592
|
.lexical-editor-root .editor-h6 {
|
|
2558
|
-
font-
|
|
2559
|
-
|
|
2593
|
+
font-family: var(--font-family-heading, var(--font-inter), Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif) !important;
|
|
2594
|
+
color: var(--gray-700, #495057) !important;
|
|
2595
|
+
font-size: var(--fs-caption, 1.3rem);
|
|
2596
|
+
line-height: var(--lh-heading-tight, 1.25) !important;
|
|
2560
2597
|
font-weight: 600 !important;
|
|
2561
|
-
margin-top:
|
|
2562
|
-
margin-bottom:
|
|
2598
|
+
margin-top: calc(var(--sp-5, 2.4rem) * 0.5) !important;
|
|
2599
|
+
margin-bottom: calc(var(--sp-3, 1.2rem) * 0.5) !important;
|
|
2563
2600
|
}
|
|
2564
2601
|
.lexical-editor-root .editor-quote {
|
|
2565
2602
|
margin: 24px 0 !important;
|
|
2566
2603
|
padding: 16px 16px 16px 24px;
|
|
2567
2604
|
border-left: 4px solid var(--border);
|
|
2568
|
-
font-size:
|
|
2605
|
+
font-size: var(--fs-body, 1.6rem);
|
|
2569
2606
|
color: var(--muted-foreground);
|
|
2570
2607
|
font-style: italic;
|
|
2571
2608
|
background-color: var(--muted);
|
|
@@ -2679,7 +2716,7 @@
|
|
|
2679
2716
|
margin-top: 3px;
|
|
2680
2717
|
cursor: pointer;
|
|
2681
2718
|
display: block;
|
|
2682
|
-
border: 2px solid var(--list-marker-color, #3b82f6) !important;
|
|
2719
|
+
border: 2px solid var(--list-marker-color, var(--primary, #3b82f6)) !important;
|
|
2683
2720
|
border-radius: 4px;
|
|
2684
2721
|
box-sizing: border-box;
|
|
2685
2722
|
transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -2689,11 +2726,11 @@
|
|
|
2689
2726
|
}
|
|
2690
2727
|
.lexical-editor-root .editor-checklist .editor-listitem-checked {
|
|
2691
2728
|
text-decoration: line-through;
|
|
2692
|
-
color: var(--muted-foreground, #
|
|
2729
|
+
color: var(--muted-foreground, #6c757d);
|
|
2693
2730
|
}
|
|
2694
2731
|
.lexical-editor-root .editor-checklist .editor-listitem-checked::before {
|
|
2695
|
-
background-color: var(--list-marker-color, #3b82f6) !important;
|
|
2696
|
-
border-color: var(--list-marker-color, #3b82f6) !important;
|
|
2732
|
+
background-color: var(--list-marker-color, var(--primary, #3b82f6)) !important;
|
|
2733
|
+
border-color: var(--list-marker-color, var(--primary, #3b82f6)) !important;
|
|
2697
2734
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 7.5L5.5 10L11 4.5'/%3E%3C/svg%3E");
|
|
2698
2735
|
}
|
|
2699
2736
|
.lexical-editor-root .editor-checklist .editor-listitem-checked::after {
|
|
@@ -2922,8 +2959,8 @@
|
|
|
2922
2959
|
list-style-type: disc !important;
|
|
2923
2960
|
}
|
|
2924
2961
|
.lexical-editor-root .editor-code {
|
|
2925
|
-
background-color: var(--muted, #
|
|
2926
|
-
color: var(--muted-foreground, #
|
|
2962
|
+
background-color: var(--muted, #f1f3f5);
|
|
2963
|
+
color: var(--muted-foreground, #212529);
|
|
2927
2964
|
font-family:
|
|
2928
2965
|
"JetBrains Mono",
|
|
2929
2966
|
ui-monospace,
|
|
@@ -2936,7 +2973,7 @@
|
|
|
2936
2973
|
monospace;
|
|
2937
2974
|
display: block;
|
|
2938
2975
|
padding: 16px 16px 16px 64px;
|
|
2939
|
-
line-height: 1.
|
|
2976
|
+
line-height: var(--lh-body-normal, 1.5);
|
|
2940
2977
|
font-size: 14px;
|
|
2941
2978
|
margin: 24px 0 !important;
|
|
2942
2979
|
overflow-x: auto;
|
|
@@ -2963,8 +3000,8 @@
|
|
|
2963
3000
|
user-select: none;
|
|
2964
3001
|
}
|
|
2965
3002
|
.lexical-editor-root .editor-text-code {
|
|
2966
|
-
background-color: var(--muted, #
|
|
2967
|
-
color: var(--foreground, #
|
|
3003
|
+
background-color: var(--muted, #f1f3f5);
|
|
3004
|
+
color: var(--foreground, #212529);
|
|
2968
3005
|
padding: 2px 6px;
|
|
2969
3006
|
font-family:
|
|
2970
3007
|
"JetBrains Mono",
|
|
@@ -2978,7 +3015,7 @@
|
|
|
2978
3015
|
monospace;
|
|
2979
3016
|
font-size: 14px;
|
|
2980
3017
|
border-radius: var(--radius, 8px);
|
|
2981
|
-
border: 1px solid var(--border, #
|
|
3018
|
+
border: 1px solid var(--border, #dee2e6);
|
|
2982
3019
|
font-weight: 500;
|
|
2983
3020
|
}
|
|
2984
3021
|
.lexical-editor-root .editor-hashtag {
|
|
@@ -2994,7 +3031,7 @@
|
|
|
2994
3031
|
table-layout: fixed;
|
|
2995
3032
|
margin: 16px 0;
|
|
2996
3033
|
border-radius: var(--radius, 8px);
|
|
2997
|
-
border: 1px solid var(--border, #
|
|
3034
|
+
border: 1px solid var(--border, #dee2e6);
|
|
2998
3035
|
}
|
|
2999
3036
|
.lexical-editor-root .editor-table .editor-table-cell,
|
|
3000
3037
|
.lexical-editor-root .editor-table .editor-table-cell-header {
|
|
@@ -3008,7 +3045,7 @@
|
|
|
3008
3045
|
.lexical-editor-root .editor-table .editor-table-cell-header {
|
|
3009
3046
|
background-color: var(--muted, #f9fafb);
|
|
3010
3047
|
font-weight: 600;
|
|
3011
|
-
color: var(--foreground, #
|
|
3048
|
+
color: var(--foreground, #212529);
|
|
3012
3049
|
}
|
|
3013
3050
|
.lexical-editor-root .editor-table .editor-table-cell-selected {
|
|
3014
3051
|
background-color: rgba(var(--primary, #3b82f6), 0.3) !important;
|
|
@@ -3036,13 +3073,13 @@
|
|
|
3036
3073
|
height: 20px;
|
|
3037
3074
|
}
|
|
3038
3075
|
.lexical-editor-root .editor-table .editor-table-cell-action-button {
|
|
3039
|
-
background-color: var(--muted, #
|
|
3076
|
+
background-color: var(--muted, #f1f3f5);
|
|
3040
3077
|
display: block;
|
|
3041
3078
|
border: 0;
|
|
3042
3079
|
border-radius: 9999px;
|
|
3043
3080
|
width: 20px;
|
|
3044
3081
|
height: 20px;
|
|
3045
|
-
color: var(--foreground, #
|
|
3082
|
+
color: var(--foreground, #212529);
|
|
3046
3083
|
cursor: pointer;
|
|
3047
3084
|
transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
3048
3085
|
}
|
|
@@ -3077,15 +3114,15 @@
|
|
|
3077
3114
|
left: 0;
|
|
3078
3115
|
width: 100%;
|
|
3079
3116
|
height: 4px;
|
|
3080
|
-
background-color: var(--muted, #
|
|
3117
|
+
background-color: var(--muted, #f1f3f5);
|
|
3081
3118
|
}
|
|
3082
3119
|
.lexical-editor-root .editor-table .editor-table-row-striping {
|
|
3083
3120
|
margin: 0;
|
|
3084
|
-
border-top: 1px solid var(--border, #
|
|
3121
|
+
border-top: 1px solid var(--border, #dee2e6);
|
|
3085
3122
|
padding: 0;
|
|
3086
3123
|
}
|
|
3087
3124
|
.lexical-editor-root .editor-table .editor-table-row-striping:nth-child(even) {
|
|
3088
|
-
background-color: var(--muted, #
|
|
3125
|
+
background-color: var(--muted, #f1f3f5);
|
|
3089
3126
|
}
|
|
3090
3127
|
.lexical-editor-root .editor-table .editor-table-selected {
|
|
3091
3128
|
outline: 2px solid var(--primary, #3b82f6);
|
|
@@ -3118,7 +3155,7 @@
|
|
|
3118
3155
|
pointer-events: none;
|
|
3119
3156
|
}
|
|
3120
3157
|
.lexical-editor-root .editor-link {
|
|
3121
|
-
color: #3b82f6;
|
|
3158
|
+
color: var(--primary, #3b82f6);
|
|
3122
3159
|
text-decoration: none;
|
|
3123
3160
|
}
|
|
3124
3161
|
.lexical-editor-root .editor-link:hover {
|
|
@@ -3197,7 +3234,7 @@
|
|
|
3197
3234
|
margin-top: 8px;
|
|
3198
3235
|
}
|
|
3199
3236
|
.lexical-editor-root .editor-image-caption.editable {
|
|
3200
|
-
border: 1px solid var(--border, #
|
|
3237
|
+
border: 1px solid var(--border, #dee2e6);
|
|
3201
3238
|
border-radius: var(--radius, 8px);
|
|
3202
3239
|
background-color: rgba(255, 255, 255, 0.9);
|
|
3203
3240
|
}
|
|
@@ -3235,7 +3272,7 @@
|
|
|
3235
3272
|
content: "";
|
|
3236
3273
|
display: block;
|
|
3237
3274
|
height: 2px;
|
|
3238
|
-
background-color: var(--border, #
|
|
3275
|
+
background-color: var(--border, #dee2e6);
|
|
3239
3276
|
line-height: 2px;
|
|
3240
3277
|
}
|
|
3241
3278
|
.lexical-editor-root .editor-hr.selected {
|
|
@@ -3249,6 +3286,6 @@
|
|
|
3249
3286
|
outline: 2px solid var(--primary, #3b82f6);
|
|
3250
3287
|
}
|
|
3251
3288
|
.lexical-editor-root .editor-autocomplete {
|
|
3252
|
-
color: var(--muted-foreground, #
|
|
3289
|
+
color: var(--muted-foreground, #6c757d);
|
|
3253
3290
|
}
|
|
3254
3291
|
/*# sourceMappingURL=editor.css.map */
|