@zzish/math-rich-input 0.1.44 → 0.1.45
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 +142 -128
- package/package.json +1 -1
- package/src/MathRichInput.css +14 -0
package/dist/math-rich-input.css
CHANGED
|
@@ -123,138 +123,21 @@
|
|
|
123
123
|
font-size: 16px;
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
}
|
|
127
|
-
/* Note that the top left position of the toolbar is set programatically in componentDidMount */
|
|
128
|
-
|
|
129
|
-
.Toolbar {
|
|
130
|
-
position: absolute;
|
|
131
|
-
z-index: 10;
|
|
132
|
-
display: flex;
|
|
133
|
-
height: 42px;
|
|
134
|
-
background-color: white;
|
|
135
|
-
border: 1px solid #d0d0d0;
|
|
136
|
-
border-radius: 5px;
|
|
137
|
-
box-shadow: 1px 1px 5px #a0a0a0;
|
|
138
|
-
animation: 0.5s fadeIn1;
|
|
139
|
-
animation-fill-mode: forwards;
|
|
140
|
-
color: black;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
@keyframes fadeIn1 {
|
|
144
|
-
0% {
|
|
145
|
-
opacity: 0;
|
|
146
|
-
}
|
|
147
|
-
100% {
|
|
148
|
-
opacity: 1;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
126
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
border: 0px;
|
|
160
|
-
padding: 1px;
|
|
161
|
-
margin: 2px;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.Toolbar-button:hover {
|
|
165
|
-
color: white;
|
|
166
|
-
background: #663676;
|
|
167
|
-
cursor: pointer;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.Toolbar-button:active {
|
|
171
|
-
background: #808080;
|
|
172
|
-
color: white;
|
|
173
|
-
cursor: pointer;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.TB-narrow {
|
|
177
|
-
width: 30px;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
.TB-wide {
|
|
181
|
-
width: 46px;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
.TB-selected {
|
|
185
|
-
background: #d0d0d0;
|
|
186
|
-
color: black;
|
|
187
|
-
cursor: pointer;
|
|
188
|
-
animation: 0.2s TB-fadeIn;
|
|
189
|
-
animation-fill-mode: forwards;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
.TB-selected:hover {
|
|
193
|
-
color: white;
|
|
194
|
-
background: #663676;
|
|
195
|
-
cursor: pointer;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
@keyframes TB-fadeIn {
|
|
199
|
-
00% {
|
|
200
|
-
background: white;
|
|
201
|
-
}
|
|
202
|
-
100% {
|
|
203
|
-
background: #d0d0d0;
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
/* Tooltip text */
|
|
208
|
-
.Toolbar-button .tooltiptext {
|
|
209
|
-
font-weight: normal;
|
|
210
|
-
visibility: hidden;
|
|
211
|
-
width: 100px;
|
|
212
|
-
background-color: #222;
|
|
213
|
-
color: #fff;
|
|
214
|
-
/*font-weight: bold;*/
|
|
215
|
-
font-size: 12px;
|
|
216
|
-
text-align: center;
|
|
217
|
-
padding: 4px 10px;
|
|
218
|
-
border-radius: 6px;
|
|
219
|
-
|
|
220
|
-
/* Position the tooltip text - see examples below! */
|
|
221
|
-
position: absolute;
|
|
222
|
-
z-index: 11;
|
|
223
|
-
top: -90%; /* Must leave a small gap between tooltip and button */
|
|
224
|
-
left: 50px;
|
|
225
|
-
|
|
226
|
-
/* transform: translate (50%,0%); */
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
/* Show the tooltip text when you mouse over the tooltip container */
|
|
230
|
-
.Toolbar-button:hover .tooltiptext {
|
|
231
|
-
animation: 0.8s fadeIn2;
|
|
232
|
-
animation-fill-mode: forwards;
|
|
233
|
-
visibility: visible;
|
|
234
|
-
/* width: 100px; */
|
|
235
|
-
/* top: -90%; */ /* Must leave a small gap between tooltip and button */
|
|
236
|
-
/* left: 20%; */
|
|
237
|
-
/* margin-left: -50px; */
|
|
238
|
-
}
|
|
127
|
+
&.hint-input,
|
|
128
|
+
&.explanation-input {
|
|
129
|
+
.MathRichInput {
|
|
130
|
+
font-weight: 400;
|
|
131
|
+
font-size: 16px;
|
|
132
|
+
/* text-decoration: underline dotted; */
|
|
133
|
+
color: #322e33;
|
|
239
134
|
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
70% {
|
|
245
|
-
opacity: 0;
|
|
246
|
-
}
|
|
247
|
-
100% {
|
|
248
|
-
visibility: visible;
|
|
249
|
-
opacity: 0.9;
|
|
135
|
+
.base {
|
|
136
|
+
border: 1px dotted #322e33;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
250
139
|
}
|
|
251
140
|
}
|
|
252
|
-
|
|
253
|
-
/* .tooltip {
|
|
254
|
-
position: relative;
|
|
255
|
-
display: inline-block;
|
|
256
|
-
border-bottom: 1px dotted black; /* If you want dots under the hoverable text
|
|
257
|
-
} */
|
|
258
141
|
.EquationEditorModal-background {
|
|
259
142
|
position: fixed;
|
|
260
143
|
top: 0;
|
|
@@ -418,6 +301,137 @@
|
|
|
418
301
|
.EquationEditorModal .slider.round:before {
|
|
419
302
|
border-radius: 50%;
|
|
420
303
|
}
|
|
304
|
+
/* Note that the top left position of the toolbar is set programatically in componentDidMount */
|
|
305
|
+
|
|
306
|
+
.Toolbar {
|
|
307
|
+
position: absolute;
|
|
308
|
+
z-index: 10;
|
|
309
|
+
display: flex;
|
|
310
|
+
height: 42px;
|
|
311
|
+
background-color: white;
|
|
312
|
+
border: 1px solid #d0d0d0;
|
|
313
|
+
border-radius: 5px;
|
|
314
|
+
box-shadow: 1px 1px 5px #a0a0a0;
|
|
315
|
+
animation: 0.5s fadeIn1;
|
|
316
|
+
animation-fill-mode: forwards;
|
|
317
|
+
color: black;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
@keyframes fadeIn1 {
|
|
321
|
+
0% {
|
|
322
|
+
opacity: 0;
|
|
323
|
+
}
|
|
324
|
+
100% {
|
|
325
|
+
opacity: 1;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.Toolbar-button {
|
|
330
|
+
font-family: sans-serif;
|
|
331
|
+
font-size: 16px;
|
|
332
|
+
width: 40px;
|
|
333
|
+
height: 36px;
|
|
334
|
+
background-color: white;
|
|
335
|
+
border-radius: 5px;
|
|
336
|
+
border: 0px;
|
|
337
|
+
padding: 1px;
|
|
338
|
+
margin: 2px;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.Toolbar-button:hover {
|
|
342
|
+
color: white;
|
|
343
|
+
background: #663676;
|
|
344
|
+
cursor: pointer;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.Toolbar-button:active {
|
|
348
|
+
background: #808080;
|
|
349
|
+
color: white;
|
|
350
|
+
cursor: pointer;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.TB-narrow {
|
|
354
|
+
width: 30px;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.TB-wide {
|
|
358
|
+
width: 46px;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.TB-selected {
|
|
362
|
+
background: #d0d0d0;
|
|
363
|
+
color: black;
|
|
364
|
+
cursor: pointer;
|
|
365
|
+
animation: 0.2s TB-fadeIn;
|
|
366
|
+
animation-fill-mode: forwards;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.TB-selected:hover {
|
|
370
|
+
color: white;
|
|
371
|
+
background: #663676;
|
|
372
|
+
cursor: pointer;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
@keyframes TB-fadeIn {
|
|
376
|
+
00% {
|
|
377
|
+
background: white;
|
|
378
|
+
}
|
|
379
|
+
100% {
|
|
380
|
+
background: #d0d0d0;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/* Tooltip text */
|
|
385
|
+
.Toolbar-button .tooltiptext {
|
|
386
|
+
font-weight: normal;
|
|
387
|
+
visibility: hidden;
|
|
388
|
+
width: 100px;
|
|
389
|
+
background-color: #222;
|
|
390
|
+
color: #fff;
|
|
391
|
+
/*font-weight: bold;*/
|
|
392
|
+
font-size: 12px;
|
|
393
|
+
text-align: center;
|
|
394
|
+
padding: 4px 10px;
|
|
395
|
+
border-radius: 6px;
|
|
396
|
+
|
|
397
|
+
/* Position the tooltip text - see examples below! */
|
|
398
|
+
position: absolute;
|
|
399
|
+
z-index: 11;
|
|
400
|
+
top: -90%; /* Must leave a small gap between tooltip and button */
|
|
401
|
+
left: 50px;
|
|
402
|
+
|
|
403
|
+
/* transform: translate (50%,0%); */
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
/* Show the tooltip text when you mouse over the tooltip container */
|
|
407
|
+
.Toolbar-button:hover .tooltiptext {
|
|
408
|
+
animation: 0.8s fadeIn2;
|
|
409
|
+
animation-fill-mode: forwards;
|
|
410
|
+
visibility: visible;
|
|
411
|
+
/* width: 100px; */
|
|
412
|
+
/* top: -90%; */ /* Must leave a small gap between tooltip and button */
|
|
413
|
+
/* left: 20%; */
|
|
414
|
+
/* margin-left: -50px; */
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
@keyframes fadeIn2 {
|
|
418
|
+
00% {
|
|
419
|
+
opacity: 0;
|
|
420
|
+
}
|
|
421
|
+
70% {
|
|
422
|
+
opacity: 0;
|
|
423
|
+
}
|
|
424
|
+
100% {
|
|
425
|
+
visibility: visible;
|
|
426
|
+
opacity: 0.9;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/* .tooltip {
|
|
431
|
+
position: relative;
|
|
432
|
+
display: inline-block;
|
|
433
|
+
border-bottom: 1px dotted black; /* If you want dots under the hoverable text
|
|
434
|
+
} */
|
|
421
435
|
/* Note that the top left position of the accent bar is set programatically in componentDidMount */
|
|
422
436
|
|
|
423
437
|
.AccentBar {
|
package/package.json
CHANGED
package/src/MathRichInput.css
CHANGED
|
@@ -123,4 +123,18 @@
|
|
|
123
123
|
font-size: 16px;
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
+
|
|
127
|
+
&.hint-input,
|
|
128
|
+
&.explanation-input {
|
|
129
|
+
.MathRichInput {
|
|
130
|
+
font-weight: 400;
|
|
131
|
+
font-size: 16px;
|
|
132
|
+
/* text-decoration: underline dotted; */
|
|
133
|
+
color: #322e33;
|
|
134
|
+
|
|
135
|
+
.base {
|
|
136
|
+
border: 1px dotted #322e33;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
126
140
|
}
|