@fab1o978/react-ui 0.1.3 → 0.1.5
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/components/RichTextEditor/index.cjs +3553 -0
- package/dist/components/RichTextEditor/index.cjs.map +1 -0
- package/dist/components/RichTextEditor/index.css +356 -0
- package/dist/components/RichTextEditor/index.css.map +1 -0
- package/dist/components/RichTextEditor/index.d.cts +30 -0
- package/dist/components/RichTextEditor/index.d.ts +30 -0
- package/dist/components/RichTextEditor/index.js +3538 -0
- package/dist/components/RichTextEditor/index.js.map +1 -0
- package/dist/components/SlidingCounter/index.cjs +181 -0
- package/dist/components/SlidingCounter/index.cjs.map +1 -0
- package/dist/components/SlidingCounter/index.css +133 -0
- package/dist/components/SlidingCounter/index.css.map +1 -0
- package/dist/components/SlidingCounter/index.d.cts +19 -0
- package/dist/components/SlidingCounter/index.d.ts +19 -0
- package/dist/components/SlidingCounter/index.js +179 -0
- package/dist/components/SlidingCounter/index.js.map +1 -0
- package/dist/index.cjs +3565 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +485 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +3555 -2
- package/dist/index.js.map +1 -1
- package/package.json +8 -1
package/dist/index.css
CHANGED
|
@@ -1026,4 +1026,489 @@
|
|
|
1026
1026
|
padding: 0;
|
|
1027
1027
|
flex-shrink: 0;
|
|
1028
1028
|
}
|
|
1029
|
+
|
|
1030
|
+
/* src/components/SlidingCounter/SlidingCounter.module.scss */
|
|
1031
|
+
:root {
|
|
1032
|
+
--accent: #3b82f6;
|
|
1033
|
+
--accent-dot: rgb(82.52, 145, 247.08);
|
|
1034
|
+
--accent-track: #3b82f6;
|
|
1035
|
+
--accent-ring: #3b82f6;
|
|
1036
|
+
--accent-glow: rgba(59, 130, 246, 0.3);
|
|
1037
|
+
--accent-light: rgb(157.485, 188.725, 239.765);
|
|
1038
|
+
--color-primary-50: rgb(169.3455, 194.6925, 236.1045);
|
|
1039
|
+
--color-primary-100: rgb(149.4545, 184.4575, 241.6455);
|
|
1040
|
+
--color-primary-400: rgb(82.52, 145, 247.08);
|
|
1041
|
+
--color-primary-500: #3b82f6;
|
|
1042
|
+
--color-primary-600: rgb(29.8390243902, 111.4024390244, 244.6609756098);
|
|
1043
|
+
--color-primary-700: rgb(10.712195122, 95.2195121951, 233.287804878);
|
|
1044
|
+
--color-neutral-0: #ffffff;
|
|
1045
|
+
--color-neutral-100: #f3f4f6;
|
|
1046
|
+
--color-neutral-200: #e5e7eb;
|
|
1047
|
+
--color-neutral-400: #9ca3af;
|
|
1048
|
+
--color-neutral-600: #4b5563;
|
|
1049
|
+
--color-neutral-900: #111827;
|
|
1050
|
+
--color-success-500: #22c55e;
|
|
1051
|
+
--color-success-600: #16a34a;
|
|
1052
|
+
--color-danger-500: #ef4444;
|
|
1053
|
+
--color-danger-600: #dc2626;
|
|
1054
|
+
--color-warning-500: #f59e0b;
|
|
1055
|
+
--color-warning-600: #d97706;
|
|
1056
|
+
--font-family-base:
|
|
1057
|
+
"Inter",
|
|
1058
|
+
system-ui,
|
|
1059
|
+
-apple-system,
|
|
1060
|
+
sans-serif;
|
|
1061
|
+
--font-size-xs: 0.75rem;
|
|
1062
|
+
--font-size-sm: 0.875rem;
|
|
1063
|
+
--font-size-md: 1rem;
|
|
1064
|
+
--font-size-lg: 1.125rem;
|
|
1065
|
+
--spacing-1: 0.25rem;
|
|
1066
|
+
--spacing-2: 0.5rem;
|
|
1067
|
+
--spacing-3: 0.75rem;
|
|
1068
|
+
--spacing-4: 1rem;
|
|
1069
|
+
--radius-sm: 0.25rem;
|
|
1070
|
+
--radius-md: 0.375rem;
|
|
1071
|
+
--radius-lg: 0.5rem;
|
|
1072
|
+
--radius-full: 9999px;
|
|
1073
|
+
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
1074
|
+
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
|
1075
|
+
--transition-fast: 150ms ease;
|
|
1076
|
+
--color-surface: #ffffff;
|
|
1077
|
+
--color-surface-elevated: #ffffff;
|
|
1078
|
+
}
|
|
1079
|
+
[data-theme=dark] {
|
|
1080
|
+
--color-neutral-0: #0f172a;
|
|
1081
|
+
--color-neutral-100: #1e293b;
|
|
1082
|
+
--color-neutral-200: #334155;
|
|
1083
|
+
--color-neutral-400: #94a3b8;
|
|
1084
|
+
--color-neutral-600: #cbd5e1;
|
|
1085
|
+
--color-neutral-900: #f8fafc;
|
|
1086
|
+
--color-surface: #1e293b;
|
|
1087
|
+
--color-surface-elevated: #273549;
|
|
1088
|
+
--color-primary-50: #172554;
|
|
1089
|
+
--color-primary-100: #1e3a8a;
|
|
1090
|
+
--accent-light: #172554;
|
|
1091
|
+
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.4);
|
|
1092
|
+
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5), 0 2px 4px -2px rgb(0 0 0 / 0.4);
|
|
1093
|
+
}
|
|
1094
|
+
.SlidingCounter_module_counter {
|
|
1095
|
+
display: inline-flex;
|
|
1096
|
+
align-items: center;
|
|
1097
|
+
gap: 1px;
|
|
1098
|
+
font-family: var(--font-family-base);
|
|
1099
|
+
font-weight: 600;
|
|
1100
|
+
font-variant-numeric: tabular-nums;
|
|
1101
|
+
color: var(--sliding-counter-accent-dot, var(--accent-dot));
|
|
1102
|
+
user-select: none;
|
|
1103
|
+
}
|
|
1104
|
+
.SlidingCounter_module_sign {
|
|
1105
|
+
line-height: 1;
|
|
1106
|
+
margin-right: 2px;
|
|
1107
|
+
}
|
|
1108
|
+
.SlidingCounter_module_separator {
|
|
1109
|
+
line-height: 1;
|
|
1110
|
+
margin: 0 1px;
|
|
1111
|
+
opacity: 0.5;
|
|
1112
|
+
align-self: flex-end;
|
|
1113
|
+
padding-bottom: 0.5em;
|
|
1114
|
+
}
|
|
1115
|
+
.SlidingCounter_module_reelWindow {
|
|
1116
|
+
overflow: hidden;
|
|
1117
|
+
position: relative;
|
|
1118
|
+
}
|
|
1119
|
+
.SlidingCounter_module_reelWindow.SlidingCounter_module_sm {
|
|
1120
|
+
height: 1.6rem;
|
|
1121
|
+
width: 0.85rem;
|
|
1122
|
+
font-size: 1.25rem;
|
|
1123
|
+
line-height: 1.6rem;
|
|
1124
|
+
}
|
|
1125
|
+
.SlidingCounter_module_reelWindow.SlidingCounter_module_md {
|
|
1126
|
+
height: 2.6rem;
|
|
1127
|
+
width: 1.35rem;
|
|
1128
|
+
font-size: 2rem;
|
|
1129
|
+
line-height: 2.6rem;
|
|
1130
|
+
}
|
|
1131
|
+
.SlidingCounter_module_reelWindow.SlidingCounter_module_lg {
|
|
1132
|
+
height: 3.8rem;
|
|
1133
|
+
width: 2rem;
|
|
1134
|
+
font-size: 3rem;
|
|
1135
|
+
line-height: 3.8rem;
|
|
1136
|
+
}
|
|
1137
|
+
.SlidingCounter_module_reel {
|
|
1138
|
+
display: flex;
|
|
1139
|
+
flex-direction: column;
|
|
1140
|
+
transition: transform 420ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
1141
|
+
}
|
|
1142
|
+
.SlidingCounter_module_digitCell {
|
|
1143
|
+
display: flex;
|
|
1144
|
+
align-items: center;
|
|
1145
|
+
justify-content: center;
|
|
1146
|
+
flex-shrink: 0;
|
|
1147
|
+
}
|
|
1148
|
+
.SlidingCounter_module_reelWindow.SlidingCounter_module_sm .SlidingCounter_module_digitCell {
|
|
1149
|
+
height: 1.6rem;
|
|
1150
|
+
width: 0.85rem;
|
|
1151
|
+
}
|
|
1152
|
+
.SlidingCounter_module_reelWindow.SlidingCounter_module_md .SlidingCounter_module_digitCell {
|
|
1153
|
+
height: 2.6rem;
|
|
1154
|
+
width: 1.35rem;
|
|
1155
|
+
}
|
|
1156
|
+
.SlidingCounter_module_reelWindow.SlidingCounter_module_lg .SlidingCounter_module_digitCell {
|
|
1157
|
+
height: 3.8rem;
|
|
1158
|
+
width: 2rem;
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
/* src/components/RichTextEditor/RichTextEditor.module.scss */
|
|
1162
|
+
:root {
|
|
1163
|
+
--accent: #3b82f6;
|
|
1164
|
+
--accent-dot: rgb(82.52, 145, 247.08);
|
|
1165
|
+
--accent-track: #3b82f6;
|
|
1166
|
+
--accent-ring: #3b82f6;
|
|
1167
|
+
--accent-glow: rgba(59, 130, 246, 0.3);
|
|
1168
|
+
--accent-light: rgb(157.485, 188.725, 239.765);
|
|
1169
|
+
--color-primary-50: rgb(169.3455, 194.6925, 236.1045);
|
|
1170
|
+
--color-primary-100: rgb(149.4545, 184.4575, 241.6455);
|
|
1171
|
+
--color-primary-400: rgb(82.52, 145, 247.08);
|
|
1172
|
+
--color-primary-500: #3b82f6;
|
|
1173
|
+
--color-primary-600: rgb(29.8390243902, 111.4024390244, 244.6609756098);
|
|
1174
|
+
--color-primary-700: rgb(10.712195122, 95.2195121951, 233.287804878);
|
|
1175
|
+
--color-neutral-0: #ffffff;
|
|
1176
|
+
--color-neutral-100: #f3f4f6;
|
|
1177
|
+
--color-neutral-200: #e5e7eb;
|
|
1178
|
+
--color-neutral-400: #9ca3af;
|
|
1179
|
+
--color-neutral-600: #4b5563;
|
|
1180
|
+
--color-neutral-900: #111827;
|
|
1181
|
+
--color-success-500: #22c55e;
|
|
1182
|
+
--color-success-600: #16a34a;
|
|
1183
|
+
--color-danger-500: #ef4444;
|
|
1184
|
+
--color-danger-600: #dc2626;
|
|
1185
|
+
--color-warning-500: #f59e0b;
|
|
1186
|
+
--color-warning-600: #d97706;
|
|
1187
|
+
--font-family-base:
|
|
1188
|
+
"Inter",
|
|
1189
|
+
system-ui,
|
|
1190
|
+
-apple-system,
|
|
1191
|
+
sans-serif;
|
|
1192
|
+
--font-size-xs: 0.75rem;
|
|
1193
|
+
--font-size-sm: 0.875rem;
|
|
1194
|
+
--font-size-md: 1rem;
|
|
1195
|
+
--font-size-lg: 1.125rem;
|
|
1196
|
+
--spacing-1: 0.25rem;
|
|
1197
|
+
--spacing-2: 0.5rem;
|
|
1198
|
+
--spacing-3: 0.75rem;
|
|
1199
|
+
--spacing-4: 1rem;
|
|
1200
|
+
--radius-sm: 0.25rem;
|
|
1201
|
+
--radius-md: 0.375rem;
|
|
1202
|
+
--radius-lg: 0.5rem;
|
|
1203
|
+
--radius-full: 9999px;
|
|
1204
|
+
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
1205
|
+
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
|
1206
|
+
--transition-fast: 150ms ease;
|
|
1207
|
+
--color-surface: #ffffff;
|
|
1208
|
+
--color-surface-elevated: #ffffff;
|
|
1209
|
+
}
|
|
1210
|
+
[data-theme=dark] {
|
|
1211
|
+
--color-neutral-0: #0f172a;
|
|
1212
|
+
--color-neutral-100: #1e293b;
|
|
1213
|
+
--color-neutral-200: #334155;
|
|
1214
|
+
--color-neutral-400: #94a3b8;
|
|
1215
|
+
--color-neutral-600: #cbd5e1;
|
|
1216
|
+
--color-neutral-900: #f8fafc;
|
|
1217
|
+
--color-surface: #1e293b;
|
|
1218
|
+
--color-surface-elevated: #273549;
|
|
1219
|
+
--color-primary-50: #172554;
|
|
1220
|
+
--color-primary-100: #1e3a8a;
|
|
1221
|
+
--accent-light: #172554;
|
|
1222
|
+
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.4);
|
|
1223
|
+
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5), 0 2px 4px -2px rgb(0 0 0 / 0.4);
|
|
1224
|
+
}
|
|
1225
|
+
.RichTextEditor_module_root {
|
|
1226
|
+
display: flex;
|
|
1227
|
+
flex-direction: column;
|
|
1228
|
+
border: 1px solid var(--color-neutral-200);
|
|
1229
|
+
border-radius: var(--radius-lg);
|
|
1230
|
+
background: var(--color-surface);
|
|
1231
|
+
transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
|
|
1232
|
+
}
|
|
1233
|
+
.RichTextEditor_module_root:focus-within {
|
|
1234
|
+
border-color: var(--rich-text-editor-accent-ring, var(--accent-ring));
|
|
1235
|
+
box-shadow: 0 0 0 3px var(--rich-text-editor-accent-glow, var(--accent-glow));
|
|
1236
|
+
}
|
|
1237
|
+
.RichTextEditor_module_readOnly {
|
|
1238
|
+
border-color: transparent;
|
|
1239
|
+
background: transparent;
|
|
1240
|
+
}
|
|
1241
|
+
.RichTextEditor_module_readOnly:focus-within {
|
|
1242
|
+
border-color: transparent;
|
|
1243
|
+
box-shadow: none;
|
|
1244
|
+
}
|
|
1245
|
+
.RichTextEditor_module_toolbar {
|
|
1246
|
+
display: flex;
|
|
1247
|
+
align-items: center;
|
|
1248
|
+
gap: var(--spacing-1);
|
|
1249
|
+
padding: var(--spacing-1) var(--spacing-2);
|
|
1250
|
+
background: var(--color-surface-elevated);
|
|
1251
|
+
border: 1px solid var(--color-neutral-200);
|
|
1252
|
+
border-radius: var(--radius-md);
|
|
1253
|
+
flex-shrink: 0;
|
|
1254
|
+
position: sticky;
|
|
1255
|
+
top: var(--spacing-1);
|
|
1256
|
+
margin: var(--spacing-1) var(--spacing-1) 0;
|
|
1257
|
+
z-index: 10;
|
|
1258
|
+
}
|
|
1259
|
+
.RichTextEditor_module_toolbarGroup {
|
|
1260
|
+
display: flex;
|
|
1261
|
+
align-items: center;
|
|
1262
|
+
gap: 2px;
|
|
1263
|
+
}
|
|
1264
|
+
.RichTextEditor_module_divider {
|
|
1265
|
+
width: 1px;
|
|
1266
|
+
height: 18px;
|
|
1267
|
+
background: var(--color-neutral-200);
|
|
1268
|
+
margin: 0 var(--spacing-1);
|
|
1269
|
+
flex-shrink: 0;
|
|
1270
|
+
}
|
|
1271
|
+
.RichTextEditor_module_toolbarButton {
|
|
1272
|
+
display: inline-flex;
|
|
1273
|
+
align-items: center;
|
|
1274
|
+
justify-content: center;
|
|
1275
|
+
width: 28px;
|
|
1276
|
+
height: 28px;
|
|
1277
|
+
padding: 0;
|
|
1278
|
+
border: none;
|
|
1279
|
+
border-radius: var(--radius-sm);
|
|
1280
|
+
background: transparent;
|
|
1281
|
+
color: var(--color-neutral-600);
|
|
1282
|
+
cursor: pointer;
|
|
1283
|
+
font-size: var(--font-size-sm);
|
|
1284
|
+
font-family: var(--font-family-base);
|
|
1285
|
+
line-height: 1;
|
|
1286
|
+
transition: background var(--transition-fast), color var(--transition-fast);
|
|
1287
|
+
}
|
|
1288
|
+
.RichTextEditor_module_toolbarButton:hover {
|
|
1289
|
+
background: var(--color-neutral-100);
|
|
1290
|
+
color: var(--color-neutral-900);
|
|
1291
|
+
}
|
|
1292
|
+
.RichTextEditor_module_toolbarButton:focus-visible {
|
|
1293
|
+
outline: 2px solid var(--rich-text-editor-accent-ring, var(--accent-ring));
|
|
1294
|
+
outline-offset: 1px;
|
|
1295
|
+
}
|
|
1296
|
+
.RichTextEditor_module_toolbarButton.RichTextEditor_module_active {
|
|
1297
|
+
background: var(--rich-text-editor-accent-light, var(--accent-light));
|
|
1298
|
+
color: var(--rich-text-editor-accent, var(--accent));
|
|
1299
|
+
}
|
|
1300
|
+
.RichTextEditor_module_headingButton {
|
|
1301
|
+
width: auto;
|
|
1302
|
+
min-width: 28px;
|
|
1303
|
+
padding: 0 var(--spacing-2);
|
|
1304
|
+
font-size: 11px;
|
|
1305
|
+
font-weight: 700;
|
|
1306
|
+
letter-spacing: 0.02em;
|
|
1307
|
+
}
|
|
1308
|
+
.RichTextEditor_module_bubbleMenu {
|
|
1309
|
+
display: flex;
|
|
1310
|
+
align-items: center;
|
|
1311
|
+
gap: 2px;
|
|
1312
|
+
padding: var(--spacing-1) var(--spacing-2);
|
|
1313
|
+
background: var(--color-surface-elevated);
|
|
1314
|
+
border: 1px solid var(--color-neutral-200);
|
|
1315
|
+
border-radius: var(--radius-md);
|
|
1316
|
+
box-shadow: var(--shadow-md);
|
|
1317
|
+
}
|
|
1318
|
+
.RichTextEditor_module_prose {
|
|
1319
|
+
color: var(--color-neutral-900);
|
|
1320
|
+
font-family: var(--font-family-base);
|
|
1321
|
+
font-size: var(--font-size-md);
|
|
1322
|
+
line-height: 1.65;
|
|
1323
|
+
}
|
|
1324
|
+
.RichTextEditor_module_prose > * + * {
|
|
1325
|
+
margin-top: 0.5em;
|
|
1326
|
+
}
|
|
1327
|
+
.RichTextEditor_module_prose p {
|
|
1328
|
+
margin: 0;
|
|
1329
|
+
}
|
|
1330
|
+
.RichTextEditor_module_prose h1 {
|
|
1331
|
+
font-size: 1.75rem;
|
|
1332
|
+
font-weight: 700;
|
|
1333
|
+
line-height: 1.25;
|
|
1334
|
+
color: var(--color-neutral-900);
|
|
1335
|
+
margin-top: 0.75em;
|
|
1336
|
+
margin-bottom: 0.25em;
|
|
1337
|
+
}
|
|
1338
|
+
.RichTextEditor_module_prose h1:first-child {
|
|
1339
|
+
margin-top: 0;
|
|
1340
|
+
}
|
|
1341
|
+
.RichTextEditor_module_prose h2 {
|
|
1342
|
+
font-size: 1.375rem;
|
|
1343
|
+
font-weight: 600;
|
|
1344
|
+
line-height: 1.3;
|
|
1345
|
+
color: var(--color-neutral-900);
|
|
1346
|
+
margin-top: 0.75em;
|
|
1347
|
+
margin-bottom: 0.25em;
|
|
1348
|
+
}
|
|
1349
|
+
.RichTextEditor_module_prose h2:first-child {
|
|
1350
|
+
margin-top: 0;
|
|
1351
|
+
}
|
|
1352
|
+
.RichTextEditor_module_prose h3 {
|
|
1353
|
+
font-size: 1.125rem;
|
|
1354
|
+
font-weight: 600;
|
|
1355
|
+
line-height: 1.4;
|
|
1356
|
+
color: var(--color-neutral-900);
|
|
1357
|
+
margin-top: 0.75em;
|
|
1358
|
+
margin-bottom: 0.25em;
|
|
1359
|
+
}
|
|
1360
|
+
.RichTextEditor_module_prose h3:first-child {
|
|
1361
|
+
margin-top: 0;
|
|
1362
|
+
}
|
|
1363
|
+
.RichTextEditor_module_prose ul,
|
|
1364
|
+
.RichTextEditor_module_prose ol {
|
|
1365
|
+
padding-left: 1.5em;
|
|
1366
|
+
margin: 0.5em 0;
|
|
1367
|
+
}
|
|
1368
|
+
.RichTextEditor_module_prose ul {
|
|
1369
|
+
list-style-type: disc;
|
|
1370
|
+
}
|
|
1371
|
+
.RichTextEditor_module_prose ol {
|
|
1372
|
+
list-style-type: decimal;
|
|
1373
|
+
}
|
|
1374
|
+
.RichTextEditor_module_prose li {
|
|
1375
|
+
line-height: 1.65;
|
|
1376
|
+
}
|
|
1377
|
+
.RichTextEditor_module_prose li + li {
|
|
1378
|
+
margin-top: 0.25em;
|
|
1379
|
+
}
|
|
1380
|
+
.RichTextEditor_module_prose li p {
|
|
1381
|
+
margin: 0;
|
|
1382
|
+
}
|
|
1383
|
+
.RichTextEditor_module_prose {
|
|
1384
|
+
padding: var(--spacing-3) var(--spacing-4);
|
|
1385
|
+
}
|
|
1386
|
+
.RichTextEditor_module_editorContent {
|
|
1387
|
+
flex: 1;
|
|
1388
|
+
overflow-y: auto;
|
|
1389
|
+
max-height: var(--rte-max-height);
|
|
1390
|
+
scrollbar-width: thin;
|
|
1391
|
+
scrollbar-color: var(--color-neutral-200) transparent;
|
|
1392
|
+
}
|
|
1393
|
+
.RichTextEditor_module_editorContent::-webkit-scrollbar {
|
|
1394
|
+
width: 4px;
|
|
1395
|
+
}
|
|
1396
|
+
.RichTextEditor_module_editorContent::-webkit-scrollbar-track {
|
|
1397
|
+
background: transparent;
|
|
1398
|
+
}
|
|
1399
|
+
.RichTextEditor_module_editorContent::-webkit-scrollbar-thumb {
|
|
1400
|
+
background: var(--color-neutral-200);
|
|
1401
|
+
border-radius: var(--radius-full);
|
|
1402
|
+
}
|
|
1403
|
+
.RichTextEditor_module_editorContent::before {
|
|
1404
|
+
content: "";
|
|
1405
|
+
display: block;
|
|
1406
|
+
position: sticky;
|
|
1407
|
+
top: 0;
|
|
1408
|
+
pointer-events: none;
|
|
1409
|
+
z-index: 9;
|
|
1410
|
+
}
|
|
1411
|
+
.RichTextEditor_module_editorContent .ProseMirror {
|
|
1412
|
+
color: var(--color-neutral-900);
|
|
1413
|
+
font-family: var(--font-family-base);
|
|
1414
|
+
font-size: var(--font-size-md);
|
|
1415
|
+
line-height: 1.65;
|
|
1416
|
+
}
|
|
1417
|
+
.RichTextEditor_module_editorContent .ProseMirror > * + * {
|
|
1418
|
+
margin-top: 0.5em;
|
|
1419
|
+
}
|
|
1420
|
+
.RichTextEditor_module_editorContent .ProseMirror p {
|
|
1421
|
+
margin: 0;
|
|
1422
|
+
}
|
|
1423
|
+
.RichTextEditor_module_editorContent .ProseMirror h1 {
|
|
1424
|
+
font-size: 1.75rem;
|
|
1425
|
+
font-weight: 700;
|
|
1426
|
+
line-height: 1.25;
|
|
1427
|
+
color: var(--color-neutral-900);
|
|
1428
|
+
margin-top: 0.75em;
|
|
1429
|
+
margin-bottom: 0.25em;
|
|
1430
|
+
}
|
|
1431
|
+
.RichTextEditor_module_editorContent .ProseMirror h1:first-child {
|
|
1432
|
+
margin-top: 0;
|
|
1433
|
+
}
|
|
1434
|
+
.RichTextEditor_module_editorContent .ProseMirror h2 {
|
|
1435
|
+
font-size: 1.375rem;
|
|
1436
|
+
font-weight: 600;
|
|
1437
|
+
line-height: 1.3;
|
|
1438
|
+
color: var(--color-neutral-900);
|
|
1439
|
+
margin-top: 0.75em;
|
|
1440
|
+
margin-bottom: 0.25em;
|
|
1441
|
+
}
|
|
1442
|
+
.RichTextEditor_module_editorContent .ProseMirror h2:first-child {
|
|
1443
|
+
margin-top: 0;
|
|
1444
|
+
}
|
|
1445
|
+
.RichTextEditor_module_editorContent .ProseMirror h3 {
|
|
1446
|
+
font-size: 1.125rem;
|
|
1447
|
+
font-weight: 600;
|
|
1448
|
+
line-height: 1.4;
|
|
1449
|
+
color: var(--color-neutral-900);
|
|
1450
|
+
margin-top: 0.75em;
|
|
1451
|
+
margin-bottom: 0.25em;
|
|
1452
|
+
}
|
|
1453
|
+
.RichTextEditor_module_editorContent .ProseMirror h3:first-child {
|
|
1454
|
+
margin-top: 0;
|
|
1455
|
+
}
|
|
1456
|
+
.RichTextEditor_module_editorContent .ProseMirror ul,
|
|
1457
|
+
.RichTextEditor_module_editorContent .ProseMirror ol {
|
|
1458
|
+
padding-left: 1.5em;
|
|
1459
|
+
margin: 0.5em 0;
|
|
1460
|
+
}
|
|
1461
|
+
.RichTextEditor_module_editorContent .ProseMirror ul {
|
|
1462
|
+
list-style-type: disc;
|
|
1463
|
+
}
|
|
1464
|
+
.RichTextEditor_module_editorContent .ProseMirror ol {
|
|
1465
|
+
list-style-type: decimal;
|
|
1466
|
+
}
|
|
1467
|
+
.RichTextEditor_module_editorContent .ProseMirror li {
|
|
1468
|
+
line-height: 1.65;
|
|
1469
|
+
}
|
|
1470
|
+
.RichTextEditor_module_editorContent .ProseMirror li + li {
|
|
1471
|
+
margin-top: 0.25em;
|
|
1472
|
+
}
|
|
1473
|
+
.RichTextEditor_module_editorContent .ProseMirror li p {
|
|
1474
|
+
margin: 0;
|
|
1475
|
+
}
|
|
1476
|
+
.RichTextEditor_module_editorContent .ProseMirror {
|
|
1477
|
+
min-height: var(--rte-min-height, 200px);
|
|
1478
|
+
padding: var(--spacing-3) var(--spacing-4);
|
|
1479
|
+
outline: none;
|
|
1480
|
+
caret-color: var(--rich-text-editor-accent, var(--accent));
|
|
1481
|
+
}
|
|
1482
|
+
.RichTextEditor_module_editorContent .ProseMirror p.RichTextEditor_module_is-empty:first-child::before {
|
|
1483
|
+
content: attr(data-placeholder);
|
|
1484
|
+
color: var(--color-neutral-400);
|
|
1485
|
+
pointer-events: none;
|
|
1486
|
+
float: left;
|
|
1487
|
+
height: 0;
|
|
1488
|
+
}
|
|
1489
|
+
.RichTextEditor_module_editorContent .ProseMirror div[data-type=page-break] {
|
|
1490
|
+
position: relative;
|
|
1491
|
+
margin: 1em 0;
|
|
1492
|
+
border: none;
|
|
1493
|
+
height: 0;
|
|
1494
|
+
border-top: 2px dashed var(--color-neutral-200);
|
|
1495
|
+
pointer-events: none;
|
|
1496
|
+
user-select: none;
|
|
1497
|
+
}
|
|
1498
|
+
.RichTextEditor_module_editorContent .ProseMirror div[data-type=page-break]::after {
|
|
1499
|
+
content: "Page break";
|
|
1500
|
+
position: absolute;
|
|
1501
|
+
top: 50%;
|
|
1502
|
+
left: 50%;
|
|
1503
|
+
transform: translate(-50%, -50%);
|
|
1504
|
+
padding: 0 var(--spacing-2);
|
|
1505
|
+
background: var(--color-surface);
|
|
1506
|
+
font-size: var(--font-size-xs);
|
|
1507
|
+
color: var(--color-neutral-400);
|
|
1508
|
+
font-family: var(--font-family-base);
|
|
1509
|
+
white-space: nowrap;
|
|
1510
|
+
}
|
|
1511
|
+
.RichTextEditor_module_editorContent .ProseMirror ::selection {
|
|
1512
|
+
background: var(--rich-text-editor-accent-light, var(--accent-light));
|
|
1513
|
+
}
|
|
1029
1514
|
/*# sourceMappingURL=index.css.map */
|