@zzish/math-rich-input 0.1.43 → 0.1.44
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 +133 -133
- package/package.json +1 -1
- package/src/MathRichInput.css +2 -2
package/dist/math-rich-input.css
CHANGED
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
.MathRichInput {
|
|
109
109
|
border-radius: 12px;
|
|
110
110
|
font-size: 32px;
|
|
111
|
-
font-weight:
|
|
111
|
+
font-weight: 400;
|
|
112
112
|
|
|
113
113
|
&:focus {
|
|
114
114
|
border: none;
|
|
@@ -119,11 +119,142 @@
|
|
|
119
119
|
|
|
120
120
|
&.answer-edit-input {
|
|
121
121
|
.MathRichInput {
|
|
122
|
-
font-weight:
|
|
122
|
+
font-weight: 400;
|
|
123
123
|
font-size: 16px;
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
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
|
+
|
|
152
|
+
.Toolbar-button {
|
|
153
|
+
font-family: sans-serif;
|
|
154
|
+
font-size: 16px;
|
|
155
|
+
width: 40px;
|
|
156
|
+
height: 36px;
|
|
157
|
+
background-color: white;
|
|
158
|
+
border-radius: 5px;
|
|
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
|
+
}
|
|
239
|
+
|
|
240
|
+
@keyframes fadeIn2 {
|
|
241
|
+
00% {
|
|
242
|
+
opacity: 0;
|
|
243
|
+
}
|
|
244
|
+
70% {
|
|
245
|
+
opacity: 0;
|
|
246
|
+
}
|
|
247
|
+
100% {
|
|
248
|
+
visibility: visible;
|
|
249
|
+
opacity: 0.9;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
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
|
+
} */
|
|
127
258
|
.EquationEditorModal-background {
|
|
128
259
|
position: fixed;
|
|
129
260
|
top: 0;
|
|
@@ -287,137 +418,6 @@
|
|
|
287
418
|
.EquationEditorModal .slider.round:before {
|
|
288
419
|
border-radius: 50%;
|
|
289
420
|
}
|
|
290
|
-
/* Note that the top left position of the toolbar is set programatically in componentDidMount */
|
|
291
|
-
|
|
292
|
-
.Toolbar {
|
|
293
|
-
position: absolute;
|
|
294
|
-
z-index: 10;
|
|
295
|
-
display: flex;
|
|
296
|
-
height: 42px;
|
|
297
|
-
background-color: white;
|
|
298
|
-
border: 1px solid #d0d0d0;
|
|
299
|
-
border-radius: 5px;
|
|
300
|
-
box-shadow: 1px 1px 5px #a0a0a0;
|
|
301
|
-
animation: 0.5s fadeIn1;
|
|
302
|
-
animation-fill-mode: forwards;
|
|
303
|
-
color: black;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
@keyframes fadeIn1 {
|
|
307
|
-
0% {
|
|
308
|
-
opacity: 0;
|
|
309
|
-
}
|
|
310
|
-
100% {
|
|
311
|
-
opacity: 1;
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
.Toolbar-button {
|
|
316
|
-
font-family: sans-serif;
|
|
317
|
-
font-size: 16px;
|
|
318
|
-
width: 40px;
|
|
319
|
-
height: 36px;
|
|
320
|
-
background-color: white;
|
|
321
|
-
border-radius: 5px;
|
|
322
|
-
border: 0px;
|
|
323
|
-
padding: 1px;
|
|
324
|
-
margin: 2px;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
.Toolbar-button:hover {
|
|
328
|
-
color: white;
|
|
329
|
-
background: #663676;
|
|
330
|
-
cursor: pointer;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
.Toolbar-button:active {
|
|
334
|
-
background: #808080;
|
|
335
|
-
color: white;
|
|
336
|
-
cursor: pointer;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
.TB-narrow {
|
|
340
|
-
width: 30px;
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
.TB-wide {
|
|
344
|
-
width: 46px;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
.TB-selected {
|
|
348
|
-
background: #d0d0d0;
|
|
349
|
-
color: black;
|
|
350
|
-
cursor: pointer;
|
|
351
|
-
animation: 0.2s TB-fadeIn;
|
|
352
|
-
animation-fill-mode: forwards;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
.TB-selected:hover {
|
|
356
|
-
color: white;
|
|
357
|
-
background: #663676;
|
|
358
|
-
cursor: pointer;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
@keyframes TB-fadeIn {
|
|
362
|
-
00% {
|
|
363
|
-
background: white;
|
|
364
|
-
}
|
|
365
|
-
100% {
|
|
366
|
-
background: #d0d0d0;
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
/* Tooltip text */
|
|
371
|
-
.Toolbar-button .tooltiptext {
|
|
372
|
-
font-weight: normal;
|
|
373
|
-
visibility: hidden;
|
|
374
|
-
width: 100px;
|
|
375
|
-
background-color: #222;
|
|
376
|
-
color: #fff;
|
|
377
|
-
/*font-weight: bold;*/
|
|
378
|
-
font-size: 12px;
|
|
379
|
-
text-align: center;
|
|
380
|
-
padding: 4px 10px;
|
|
381
|
-
border-radius: 6px;
|
|
382
|
-
|
|
383
|
-
/* Position the tooltip text - see examples below! */
|
|
384
|
-
position: absolute;
|
|
385
|
-
z-index: 11;
|
|
386
|
-
top: -90%; /* Must leave a small gap between tooltip and button */
|
|
387
|
-
left: 50px;
|
|
388
|
-
|
|
389
|
-
/* transform: translate (50%,0%); */
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
/* Show the tooltip text when you mouse over the tooltip container */
|
|
393
|
-
.Toolbar-button:hover .tooltiptext {
|
|
394
|
-
animation: 0.8s fadeIn2;
|
|
395
|
-
animation-fill-mode: forwards;
|
|
396
|
-
visibility: visible;
|
|
397
|
-
/* width: 100px; */
|
|
398
|
-
/* top: -90%; */ /* Must leave a small gap between tooltip and button */
|
|
399
|
-
/* left: 20%; */
|
|
400
|
-
/* margin-left: -50px; */
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
@keyframes fadeIn2 {
|
|
404
|
-
00% {
|
|
405
|
-
opacity: 0;
|
|
406
|
-
}
|
|
407
|
-
70% {
|
|
408
|
-
opacity: 0;
|
|
409
|
-
}
|
|
410
|
-
100% {
|
|
411
|
-
visibility: visible;
|
|
412
|
-
opacity: 0.9;
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
/* .tooltip {
|
|
417
|
-
position: relative;
|
|
418
|
-
display: inline-block;
|
|
419
|
-
border-bottom: 1px dotted black; /* If you want dots under the hoverable text
|
|
420
|
-
} */
|
|
421
421
|
/* Note that the top left position of the accent bar is set programatically in componentDidMount */
|
|
422
422
|
|
|
423
423
|
.AccentBar {
|
package/package.json
CHANGED
package/src/MathRichInput.css
CHANGED
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
.MathRichInput {
|
|
109
109
|
border-radius: 12px;
|
|
110
110
|
font-size: 32px;
|
|
111
|
-
font-weight:
|
|
111
|
+
font-weight: 400;
|
|
112
112
|
|
|
113
113
|
&:focus {
|
|
114
114
|
border: none;
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
|
|
120
120
|
&.answer-edit-input {
|
|
121
121
|
.MathRichInput {
|
|
122
|
-
font-weight:
|
|
122
|
+
font-weight: 400;
|
|
123
123
|
font-size: 16px;
|
|
124
124
|
}
|
|
125
125
|
}
|