@zzish/math-rich-input 0.1.30 → 0.1.31

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.
@@ -78,136 +78,6 @@
78
78
  padding: 2px;
79
79
  margin: 0px 2px;
80
80
  }
81
- /* Note that the top left position of the toolbar is set programatically in componentDidMount */
82
-
83
- .Toolbar {
84
- position: absolute;
85
- z-index: 1;
86
- display: flex;
87
- height: 42px;
88
- background-color: white;
89
- border: 1px solid #d0d0d0;
90
- border-radius: 5px;
91
- box-shadow: 1px 1px 5px #a0a0a0;
92
- animation: 0.5s fadeIn1;
93
- animation-fill-mode: forwards;
94
- }
95
-
96
- @keyframes fadeIn1 {
97
- 0% {
98
- opacity: 0;
99
- }
100
- 100% {
101
- opacity: 1;
102
- }
103
- }
104
-
105
- .Toolbar-button {
106
- font-family: sans-serif;
107
- font-size: 16px;
108
- width: 40px;
109
- height: 36px;
110
- background-color: white;
111
- border-radius: 5px;
112
- border: 0px;
113
- padding: 1px;
114
- margin: 2px;
115
- }
116
-
117
- .Toolbar-button:hover {
118
- color: white;
119
- background: #663676;
120
- cursor: pointer;
121
- }
122
-
123
- .Toolbar-button:active {
124
- background: #808080;
125
- color: white;
126
- cursor: pointer;
127
- }
128
-
129
- .TB-narrow {
130
- width: 30px;
131
- }
132
-
133
- .TB-wide {
134
- width: 46px;
135
- }
136
-
137
- .TB-selected {
138
- background: #d0d0d0;
139
- color: black;
140
- cursor: pointer;
141
- animation: 0.2s TB-fadeIn;
142
- animation-fill-mode: forwards;
143
- }
144
-
145
- .TB-selected:hover {
146
- color: white;
147
- background: #663676;
148
- cursor: pointer;
149
- }
150
-
151
- @keyframes TB-fadeIn {
152
- 00% {
153
- background: white;
154
- }
155
- 100% {
156
- background: #d0d0d0;
157
- }
158
- }
159
-
160
- /* Tooltip text */
161
- .Toolbar-button .tooltiptext {
162
- font-weight: normal;
163
- visibility: hidden;
164
- width: 100px;
165
- background-color: #222;
166
- color: #fff;
167
- /*font-weight: bold;*/
168
- font-size: 12px;
169
- text-align: center;
170
- padding: 4px 10px;
171
- border-radius: 6px;
172
-
173
- /* Position the tooltip text - see examples below! */
174
- position: absolute;
175
- z-index: 2;
176
- top: -90%; /* Must leave a small gap between tooltip and button */
177
- left: 50px;
178
-
179
- /* transform: translate (50%,0%); */
180
- }
181
-
182
- /* Show the tooltip text when you mouse over the tooltip container */
183
- .Toolbar-button:hover .tooltiptext {
184
- animation: 0.8s fadeIn2;
185
- animation-fill-mode: forwards;
186
- visibility: visible;
187
- /* width: 100px; */
188
- /* top: -90%; */ /* Must leave a small gap between tooltip and button */
189
- /* left: 20%; */
190
- /* margin-left: -50px; */
191
- }
192
-
193
- @keyframes fadeIn2 {
194
- 00% {
195
- opacity: 0;
196
- }
197
- 70% {
198
- opacity: 0;
199
- }
200
- 100% {
201
- visibility: visible;
202
- opacity: 0.9;
203
- }
204
- }
205
-
206
- /* .tooltip {
207
- position: relative;
208
- display: inline-block;
209
- border-bottom: 1px dotted black; /* If you want dots under the hoverable text
210
- } */
211
81
  .EquationEditorModal-background {
212
82
  position: fixed;
213
83
  top: 0;
@@ -538,6 +408,136 @@
538
408
  animation: 0.4s fadeIn1;
539
409
  animation-fill-mode: forwards;
540
410
  }
411
+ /* Note that the top left position of the toolbar is set programatically in componentDidMount */
412
+
413
+ .Toolbar {
414
+ position: absolute;
415
+ z-index: 1;
416
+ display: flex;
417
+ height: 42px;
418
+ background-color: white;
419
+ border: 1px solid #d0d0d0;
420
+ border-radius: 5px;
421
+ box-shadow: 1px 1px 5px #a0a0a0;
422
+ animation: 0.5s fadeIn1;
423
+ animation-fill-mode: forwards;
424
+ }
425
+
426
+ @keyframes fadeIn1 {
427
+ 0% {
428
+ opacity: 0;
429
+ }
430
+ 100% {
431
+ opacity: 1;
432
+ }
433
+ }
434
+
435
+ .Toolbar-button {
436
+ font-family: sans-serif;
437
+ font-size: 16px;
438
+ width: 40px;
439
+ height: 36px;
440
+ background-color: white;
441
+ border-radius: 5px;
442
+ border: 0px;
443
+ padding: 1px;
444
+ margin: 2px;
445
+ }
446
+
447
+ .Toolbar-button:hover {
448
+ color: white;
449
+ background: #663676;
450
+ cursor: pointer;
451
+ }
452
+
453
+ .Toolbar-button:active {
454
+ background: #808080;
455
+ color: white;
456
+ cursor: pointer;
457
+ }
458
+
459
+ .TB-narrow {
460
+ width: 30px;
461
+ }
462
+
463
+ .TB-wide {
464
+ width: 46px;
465
+ }
466
+
467
+ .TB-selected {
468
+ background: #d0d0d0;
469
+ color: black;
470
+ cursor: pointer;
471
+ animation: 0.2s TB-fadeIn;
472
+ animation-fill-mode: forwards;
473
+ }
474
+
475
+ .TB-selected:hover {
476
+ color: white;
477
+ background: #663676;
478
+ cursor: pointer;
479
+ }
480
+
481
+ @keyframes TB-fadeIn {
482
+ 00% {
483
+ background: white;
484
+ }
485
+ 100% {
486
+ background: #d0d0d0;
487
+ }
488
+ }
489
+
490
+ /* Tooltip text */
491
+ .Toolbar-button .tooltiptext {
492
+ font-weight: normal;
493
+ visibility: hidden;
494
+ width: 100px;
495
+ background-color: #222;
496
+ color: #fff;
497
+ /*font-weight: bold;*/
498
+ font-size: 12px;
499
+ text-align: center;
500
+ padding: 4px 10px;
501
+ border-radius: 6px;
502
+
503
+ /* Position the tooltip text - see examples below! */
504
+ position: absolute;
505
+ z-index: 2;
506
+ top: -90%; /* Must leave a small gap between tooltip and button */
507
+ left: 50px;
508
+
509
+ /* transform: translate (50%,0%); */
510
+ }
511
+
512
+ /* Show the tooltip text when you mouse over the tooltip container */
513
+ .Toolbar-button:hover .tooltiptext {
514
+ animation: 0.8s fadeIn2;
515
+ animation-fill-mode: forwards;
516
+ visibility: visible;
517
+ /* width: 100px; */
518
+ /* top: -90%; */ /* Must leave a small gap between tooltip and button */
519
+ /* left: 20%; */
520
+ /* margin-left: -50px; */
521
+ }
522
+
523
+ @keyframes fadeIn2 {
524
+ 00% {
525
+ opacity: 0;
526
+ }
527
+ 70% {
528
+ opacity: 0;
529
+ }
530
+ 100% {
531
+ visibility: visible;
532
+ opacity: 0.9;
533
+ }
534
+ }
535
+
536
+ /* .tooltip {
537
+ position: relative;
538
+ display: inline-block;
539
+ border-bottom: 1px dotted black; /* If you want dots under the hoverable text
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.30",
3
+ "version": "0.1.31",
4
4
  "description": "React component for user to enter rich text with embedded math equations.",
5
5
  "repository": {
6
6
  "type": "git",