@zzish/math-rich-input 0.1.34 → 0.1.35
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/math-rich-input.css +175 -175
- package/package.json +2 -2
package/dist/math-rich-input.css
CHANGED
|
@@ -78,6 +78,181 @@
|
|
|
78
78
|
padding: 2px;
|
|
79
79
|
margin: 0px 2px;
|
|
80
80
|
}
|
|
81
|
+
/* Note that the top left position of the accent bar is set programatically in componentDidMount */
|
|
82
|
+
|
|
83
|
+
.AccentBar {
|
|
84
|
+
position: absolute;
|
|
85
|
+
z-index: 1;
|
|
86
|
+
width: 360px;
|
|
87
|
+
background-color: #fff;
|
|
88
|
+
border: 1px solid #d0d0d0;
|
|
89
|
+
border-radius: 5px;
|
|
90
|
+
box-shadow: 1px 1px 5px #a0a0a0;
|
|
91
|
+
padding: 8px;
|
|
92
|
+
animation: 0.4s fadeIn1;
|
|
93
|
+
animation-fill-mode: forwards;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.AccentBar-compact {
|
|
97
|
+
display: flex;
|
|
98
|
+
position: absolute;
|
|
99
|
+
z-index: 1;
|
|
100
|
+
background-color: white;
|
|
101
|
+
border: 1px solid #d0d0d0;
|
|
102
|
+
border-radius: 5px;
|
|
103
|
+
box-shadow: 1px 1px 5px #a0a0a0;
|
|
104
|
+
padding: 5px;
|
|
105
|
+
animation: 0.4s fadeIn1;
|
|
106
|
+
animation-fill-mode: forwards;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.AccentBar-outerContainer {
|
|
110
|
+
overflow-y: scroll;
|
|
111
|
+
border-radius: 5px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.AccentBar-innerContainer {
|
|
115
|
+
height: 350px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@keyframes fadeIn1 {
|
|
119
|
+
0% {
|
|
120
|
+
opacity: 0;
|
|
121
|
+
}
|
|
122
|
+
100% {
|
|
123
|
+
opacity: 1;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.AccentBar .symbols-grid {
|
|
128
|
+
display: grid;
|
|
129
|
+
grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
|
|
130
|
+
grid-auto-rows: minmax(min-content, max-content);
|
|
131
|
+
grid-gap: 3px;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.AccentBar .insert-grid {
|
|
135
|
+
padding: 5px;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.AccentBar .type-a-letter {
|
|
139
|
+
grid-column: 1/-1;
|
|
140
|
+
color: #a0a0a0;
|
|
141
|
+
font-family: sans-serif;
|
|
142
|
+
font-size: 14px;
|
|
143
|
+
font-weight: bold;
|
|
144
|
+
height: 36px;
|
|
145
|
+
padding-top: 12px;
|
|
146
|
+
padding-left: 20px;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.AccentBar-button {
|
|
150
|
+
font-family: sans-serif;
|
|
151
|
+
font-size: 17px;
|
|
152
|
+
width: 40px;
|
|
153
|
+
height: 36px;
|
|
154
|
+
background: #f4f4f4;
|
|
155
|
+
border-radius: 5px;
|
|
156
|
+
border: 0px;
|
|
157
|
+
padding: 1px;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.AB-compact {
|
|
161
|
+
margin: 0px;
|
|
162
|
+
background: white;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.AB-narrow {
|
|
166
|
+
width: 36px;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.AccentBar-button:hover {
|
|
170
|
+
color: white;
|
|
171
|
+
background: #663676;
|
|
172
|
+
cursor: pointer;
|
|
173
|
+
box-shadow: 1px 1px 3px #808080;
|
|
174
|
+
animation: 2s grow;
|
|
175
|
+
animation-fill-mode: forwards;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
@keyframes grow {
|
|
179
|
+
00% {
|
|
180
|
+
transform: scale(1);
|
|
181
|
+
box-shadow: 0px 0px 0px #808080;
|
|
182
|
+
}
|
|
183
|
+
10% {
|
|
184
|
+
transform: scale(1.3);
|
|
185
|
+
box-shadow: 1px 1px 3px #808080;
|
|
186
|
+
}
|
|
187
|
+
90% {
|
|
188
|
+
transform: scale(1.3);
|
|
189
|
+
box-shadow: 1px 1px 3px #808080;
|
|
190
|
+
}
|
|
191
|
+
100% {
|
|
192
|
+
transform: scale(1.8);
|
|
193
|
+
box-shadow: 1px 1px 3px #808080;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.AccentBar-button:active {
|
|
198
|
+
background: #808080;
|
|
199
|
+
color: white;
|
|
200
|
+
cursor: pointer;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.AccentBar .tabBar {
|
|
204
|
+
background: white;
|
|
205
|
+
text-align: left;
|
|
206
|
+
border: 0px;
|
|
207
|
+
padding: 10px 0;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.AccentBar .tab {
|
|
211
|
+
font-size: 14px;
|
|
212
|
+
font-weight: bold;
|
|
213
|
+
color: #404040;
|
|
214
|
+
text-align: left;
|
|
215
|
+
border: 0px;
|
|
216
|
+
height: 30px;
|
|
217
|
+
padding: 2px 5px 2px 5px;
|
|
218
|
+
margin: 2px;
|
|
219
|
+
border-bottom: 4px solid #d0d0d0;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.AccentBar .tab:hover {
|
|
223
|
+
cursor: pointer;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.AccentBar .tab-selected {
|
|
227
|
+
font-size: 14px;
|
|
228
|
+
font-weight: bold;
|
|
229
|
+
color: #404040;
|
|
230
|
+
text-align: left;
|
|
231
|
+
border: 0px;
|
|
232
|
+
height: 30px;
|
|
233
|
+
padding: 2px 5px 2px 5px;
|
|
234
|
+
margin: 2px;
|
|
235
|
+
border-bottom: 4px solid #663676;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.AccentBar .section-label {
|
|
239
|
+
grid-column: 1/-1;
|
|
240
|
+
font-size: 13px;
|
|
241
|
+
font-weight: bold;
|
|
242
|
+
color: #663676;
|
|
243
|
+
margin-top: 8px;
|
|
244
|
+
margin-left: 8px;
|
|
245
|
+
margin-bottom: 4px;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.AccentBar .replace-section {
|
|
249
|
+
min-height: 70px;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.AccentBar .tabArea {
|
|
253
|
+
animation: 0.4s fadeIn1;
|
|
254
|
+
animation-fill-mode: forwards;
|
|
255
|
+
}
|
|
81
256
|
/* Note that the top left position of the toolbar is set programatically in componentDidMount */
|
|
82
257
|
|
|
83
258
|
.Toolbar {
|
|
@@ -363,181 +538,6 @@
|
|
|
363
538
|
.EquationEditorModal .slider.round:before {
|
|
364
539
|
border-radius: 50%;
|
|
365
540
|
}
|
|
366
|
-
/* Note that the top left position of the accent bar is set programatically in componentDidMount */
|
|
367
|
-
|
|
368
|
-
.AccentBar {
|
|
369
|
-
position: absolute;
|
|
370
|
-
z-index: 1;
|
|
371
|
-
width: 360px;
|
|
372
|
-
background-color: #fff;
|
|
373
|
-
border: 1px solid #d0d0d0;
|
|
374
|
-
border-radius: 5px;
|
|
375
|
-
box-shadow: 1px 1px 5px #a0a0a0;
|
|
376
|
-
padding: 8px;
|
|
377
|
-
animation: 0.4s fadeIn1;
|
|
378
|
-
animation-fill-mode: forwards;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
.AccentBar-compact {
|
|
382
|
-
display: flex;
|
|
383
|
-
position: absolute;
|
|
384
|
-
z-index: 1;
|
|
385
|
-
background-color: white;
|
|
386
|
-
border: 1px solid #d0d0d0;
|
|
387
|
-
border-radius: 5px;
|
|
388
|
-
box-shadow: 1px 1px 5px #a0a0a0;
|
|
389
|
-
padding: 5px;
|
|
390
|
-
animation: 0.4s fadeIn1;
|
|
391
|
-
animation-fill-mode: forwards;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
.AccentBar-outerContainer {
|
|
395
|
-
overflow-y: scroll;
|
|
396
|
-
border-radius: 5px;
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
.AccentBar-innerContainer {
|
|
400
|
-
height: 350px;
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
@keyframes fadeIn1 {
|
|
404
|
-
0% {
|
|
405
|
-
opacity: 0;
|
|
406
|
-
}
|
|
407
|
-
100% {
|
|
408
|
-
opacity: 1;
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
.AccentBar .symbols-grid {
|
|
413
|
-
display: grid;
|
|
414
|
-
grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
|
|
415
|
-
grid-auto-rows: minmax(min-content, max-content);
|
|
416
|
-
grid-gap: 3px;
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
.AccentBar .insert-grid {
|
|
420
|
-
padding: 5px;
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
.AccentBar .type-a-letter {
|
|
424
|
-
grid-column: 1/-1;
|
|
425
|
-
color: #a0a0a0;
|
|
426
|
-
font-family: sans-serif;
|
|
427
|
-
font-size: 14px;
|
|
428
|
-
font-weight: bold;
|
|
429
|
-
height: 36px;
|
|
430
|
-
padding-top: 12px;
|
|
431
|
-
padding-left: 20px;
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
.AccentBar-button {
|
|
435
|
-
font-family: sans-serif;
|
|
436
|
-
font-size: 17px;
|
|
437
|
-
width: 40px;
|
|
438
|
-
height: 36px;
|
|
439
|
-
background: #f4f4f4;
|
|
440
|
-
border-radius: 5px;
|
|
441
|
-
border: 0px;
|
|
442
|
-
padding: 1px;
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
.AB-compact {
|
|
446
|
-
margin: 0px;
|
|
447
|
-
background: white;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
.AB-narrow {
|
|
451
|
-
width: 36px;
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
.AccentBar-button:hover {
|
|
455
|
-
color: white;
|
|
456
|
-
background: #663676;
|
|
457
|
-
cursor: pointer;
|
|
458
|
-
box-shadow: 1px 1px 3px #808080;
|
|
459
|
-
animation: 2s grow;
|
|
460
|
-
animation-fill-mode: forwards;
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
@keyframes grow {
|
|
464
|
-
00% {
|
|
465
|
-
transform: scale(1);
|
|
466
|
-
box-shadow: 0px 0px 0px #808080;
|
|
467
|
-
}
|
|
468
|
-
10% {
|
|
469
|
-
transform: scale(1.3);
|
|
470
|
-
box-shadow: 1px 1px 3px #808080;
|
|
471
|
-
}
|
|
472
|
-
90% {
|
|
473
|
-
transform: scale(1.3);
|
|
474
|
-
box-shadow: 1px 1px 3px #808080;
|
|
475
|
-
}
|
|
476
|
-
100% {
|
|
477
|
-
transform: scale(1.8);
|
|
478
|
-
box-shadow: 1px 1px 3px #808080;
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
.AccentBar-button:active {
|
|
483
|
-
background: #808080;
|
|
484
|
-
color: white;
|
|
485
|
-
cursor: pointer;
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
.AccentBar .tabBar {
|
|
489
|
-
background: white;
|
|
490
|
-
text-align: left;
|
|
491
|
-
border: 0px;
|
|
492
|
-
padding: 10px 0;
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
.AccentBar .tab {
|
|
496
|
-
font-size: 14px;
|
|
497
|
-
font-weight: bold;
|
|
498
|
-
color: #404040;
|
|
499
|
-
text-align: left;
|
|
500
|
-
border: 0px;
|
|
501
|
-
height: 30px;
|
|
502
|
-
padding: 2px 5px 2px 5px;
|
|
503
|
-
margin: 2px;
|
|
504
|
-
border-bottom: 4px solid #d0d0d0;
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
.AccentBar .tab:hover {
|
|
508
|
-
cursor: pointer;
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
.AccentBar .tab-selected {
|
|
512
|
-
font-size: 14px;
|
|
513
|
-
font-weight: bold;
|
|
514
|
-
color: #404040;
|
|
515
|
-
text-align: left;
|
|
516
|
-
border: 0px;
|
|
517
|
-
height: 30px;
|
|
518
|
-
padding: 2px 5px 2px 5px;
|
|
519
|
-
margin: 2px;
|
|
520
|
-
border-bottom: 4px solid #663676;
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
.AccentBar .section-label {
|
|
524
|
-
grid-column: 1/-1;
|
|
525
|
-
font-size: 13px;
|
|
526
|
-
font-weight: bold;
|
|
527
|
-
color: #663676;
|
|
528
|
-
margin-top: 8px;
|
|
529
|
-
margin-left: 8px;
|
|
530
|
-
margin-bottom: 4px;
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
.AccentBar .replace-section {
|
|
534
|
-
min-height: 70px;
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
.AccentBar .tabArea {
|
|
538
|
-
animation: 0.4s fadeIn1;
|
|
539
|
-
animation-fill-mode: forwards;
|
|
540
|
-
}
|
|
541
541
|
.EquationEditor {
|
|
542
542
|
height: auto;
|
|
543
543
|
text-align: center;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zzish/math-rich-input",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.35",
|
|
4
4
|
"description": "React component for user to enter rich text with embedded math equations.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -42,6 +42,6 @@
|
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"react": "^16.14.0 || ^17.0.0 || ^18.0.0",
|
|
45
|
-
"react-dom": "^16.14.0"
|
|
45
|
+
"react-dom": "^16.14.0 || ^17.0.0 || ^18.0.0"
|
|
46
46
|
}
|
|
47
47
|
}
|