@podlite/editor-react 0.0.31 → 0.0.32

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/lib/index.css DELETED
@@ -1,364 +0,0 @@
1
- /* src/Editor.css */
2
- .EditorApp {
3
- font-family:
4
- Menlo,
5
- Monaco,
6
- Consolas,
7
- "Courier New",
8
- monospace;
9
- -webkit-font-smoothing: antialiased;
10
- -moz-osx-font-smoothing: grayscale;
11
- }
12
- .App-logo {
13
- height: 40vmin;
14
- pointer-events: none;
15
- }
16
- @media (prefers-reduced-motion: no-preference) {
17
- .App-logo {
18
- animation: App-logo-spin infinite 20s linear;
19
- }
20
- }
21
- .App-header {
22
- background-color: #282c34;
23
- min-height: 100vh;
24
- display: flex;
25
- flex-direction: column;
26
- align-items: center;
27
- justify-content: center;
28
- font-size: calc(10px + 2vmin);
29
- color: white;
30
- }
31
- .App-link {
32
- color: #61dafb;
33
- }
34
- .layout {
35
- position: absolute;
36
- width: 100%;
37
- }
38
- .Editor {
39
- text-align: left;
40
- white-space: pre-wrap;
41
- word-break: break-word;
42
- word-wrap: break-word;
43
- }
44
- [contenteditable]:focus {
45
- outline: 0px solid transparent;
46
- }
47
- .layout__panel {
48
- position: relative;
49
- width: 100%;
50
- height: 100%;
51
- flex: none;
52
- overflow: hidden;
53
- }
54
- .flex--row {
55
- flex-direction: row;
56
- }
57
- .flex {
58
- display: flex;
59
- }
60
- .CodeMirror {
61
- height: auto;
62
- font-family: inherit;
63
- }
64
- pre {
65
- overflow-x: auto;
66
- white-space: pre-wrap;
67
- white-space: -moz-pre-wrap;
68
- white-space: -pre-wrap;
69
- white-space: -o-pre-wrap;
70
- word-wrap: break-word;
71
- }
72
- .title {
73
- margin: 0em;
74
- }
75
- .Editorleft {
76
- border-right: 1px dotted lightgrey;
77
- white-space: pre-wrap;
78
- word-break: break-word;
79
- word-wrap: break-word;
80
- width: 50%;
81
- font-size: 15px;
82
- text-align: left;
83
- }
84
- body {
85
- margin: 0;
86
- font-family:
87
- Menlo,
88
- Monaco,
89
- Consolas,
90
- "Courier New",
91
- monospace;
92
- -webkit-font-smoothing: antialiased;
93
- -moz-osx-font-smoothing: grayscale;
94
- }
95
- code {
96
- font-family:
97
- source-code-pro,
98
- Menlo,
99
- Monaco,
100
- Consolas,
101
- "Courier New",
102
- monospace;
103
- }
104
- pre {
105
- padding: 9.5px;
106
- display: block;
107
- word-break: break-all;
108
- word-wrap: break-word;
109
- background-color: #f8f8f8;
110
- border-radius: 4px;
111
- }
112
- code {
113
- padding: 0;
114
- font-size: inherit;
115
- color: inherit;
116
- white-space: pre-wrap;
117
- background-color: transparent;
118
- border-radius: 0;
119
- }
120
- img {
121
- max-width: 1024px;
122
- }
123
- table {
124
- word-break: normal;
125
- min-width: 70%;
126
- max-width: 100%;
127
- margin: 1em auto;
128
- border-spacing: 0;
129
- border-collapse: collapse;
130
- text-align: center;
131
- margin-top: 2em;
132
- }
133
- table caption {
134
- margin-bottom: 0.8em;
135
- caption-side: bottom;
136
- }
137
- table tbody tr:hover {
138
- background-color: #eee;
139
- -webkit-transition: .5s;
140
- transition: .5s;
141
- }
142
- tr th {
143
- vertical-align: bottom;
144
- border-bottom: 2px solid #eee;
145
- }
146
- td {
147
- padding: 8px;
148
- border: 1px solid #eee;
149
- }
150
- .footnote a {
151
- text-decoration: none;
152
- }
153
- .footnotes {
154
- border-top-style: solid;
155
- border-top-width: 1px;
156
- border-top-color: #eee;
157
- }
158
- img {
159
- display: block;
160
- margin: 0 auto;
161
- max-width: 100%;
162
- }
163
- .shadow {
164
- -webkit-box-shadow: 3px 3px 5px 6px #ccc;
165
- -moz-box-shadow: 3px 3px 5px 6px #ccc;
166
- box-shadow: 3px 3px 5px 6px #ccc;
167
- }
168
- .box {
169
- box-shadow:
170
- 0 2.8px 2.2px rgba(0, 0, 0, 0.034),
171
- 0 6.7px 5.3px rgba(0, 0, 0, 0.048),
172
- 0 12.5px 10px rgba(0, 0, 0, 0.06),
173
- 0 22.3px 17.9px rgba(0, 0, 0, 0.072),
174
- 0 41.8px 33.4px rgba(0, 0, 0, 0.086),
175
- 0 100px 80px rgba(0, 0, 0, 0.12);
176
- margin: 100px auto;
177
- background: white;
178
- border-radius: 5px;
179
- }
180
- .image_block video {
181
- max-width: 100%;
182
- margin-bottom: 1em;
183
- }
184
- .image_block video {
185
- width: 100%;
186
- outline: none;
187
- border: none;
188
- }
189
- .mermaid svg {
190
- display: block;
191
- margin: auto;
192
- }
193
- .toc {
194
- padding: 1rem;
195
- }
196
- .toc-list {
197
- list-style: none;
198
- font-size: .8rem;
199
- }
200
- .caption {
201
- text-align: center;
202
- font-size: 0.9rem;
203
- }
204
- aside.notify {
205
- border-left: .25em solid;
206
- padding-left: 1rem;
207
- }
208
- aside.notify > :first-child {
209
- margin-top: 0;
210
- }
211
- aside.notify > :last-child {
212
- margin-bottom: 0;
213
- }
214
- aside.notify.note {
215
- border-left-color: #0085f2;
216
- }
217
- aside.notify.note .notify-title {
218
- color: #0085f2;
219
- }
220
- aside.notify.tip {
221
- border-left-color: #007936;
222
- }
223
- aside.notify.tip .notify-title {
224
- color: #007936;
225
- }
226
- aside.notify.important {
227
- border-left-color: #8250df;
228
- }
229
- aside.notify.important .notify-title {
230
- color: #8250df;
231
- }
232
- aside.notify.warning {
233
- border-left-color: #9a6700;
234
- }
235
- aside.notify.warning .notify-title {
236
- color: #9a6700;
237
- }
238
- aside.notify.caution {
239
- border-left-color: #d30038;
240
- }
241
- aside.notify.caution .notify-title {
242
- color: #d30038;
243
- }
244
- .CodeMirror {
245
- height: auto;
246
- font-family: inherit;
247
- }
248
- .title {
249
- margin: 0em;
250
- }
251
- .Editorleft {
252
- border-right: 1px dotted lightgrey;
253
- white-space: pre-wrap;
254
- word-break: break-word;
255
- word-wrap: break-word;
256
- width: 50%;
257
- font-size: 15px;
258
- text-align: left;
259
- float: left;
260
- height: 100%;
261
- padding-left: 10px;
262
- visibility: visible;
263
- opacity: 1;
264
- transition: all 0.2s ease-out;
265
- }
266
- .editorApp,
267
- .CodeMirror {
268
- height: 100%;
269
- }
270
- .Editorright {
271
- text-align: left;
272
- word-break: break-word;
273
- word-wrap: break-word;
274
- margin-right: 0;
275
- height: 100%;
276
- font-size: 15px;
277
- padding-left: 10px;
278
- overflow-y: scroll;
279
- overflow-x: hidden;
280
- background-color: white;
281
- }
282
- .Editorright .error {
283
- opacity: 0.5;
284
- }
285
- .Editorright * {
286
- }
287
- .Editorright img {
288
- display: block;
289
- margin: 0 auto;
290
- max-width: 100%;
291
- }
292
- .content {
293
- height: 100%;
294
- }
295
- .layoutPreview .Editorright {
296
- position: absolute;
297
- width: 48%;
298
- float: right;
299
- top: 0;
300
- right: 0;
301
- width: 100%;
302
- background-color: white;
303
- }
304
- .layoutPreview .Editorleft {
305
- visibility: hidden;
306
- opacity: 0;
307
- }
308
- .layoutPreview .content {
309
- width: 50%;
310
- margin: 0 auto;
311
- height: 100%;
312
- overflow-y: initial;
313
- }
314
- @keyframes App-logo-spin {
315
- from {
316
- transform: rotate(0deg);
317
- }
318
- to {
319
- transform: rotate(360deg);
320
- }
321
- }
322
- .CodeMirror-vscrollbar {
323
- user-select: none;
324
- outline: none !important;
325
- }
326
- ::-webkit-scrollbar-thumb {
327
- background-color: rgba(0, 0, 0, 0.1);
328
- }
329
- ::-webkit-scrollbar {
330
- background-color: (0, 0, 0, 0.05);
331
- }
332
- ::-webkit-scrollbar-thumb:active {
333
- background-color: rgba(0, 0, 0, 0.1);
334
- }
335
- ::-webkit-scrollbar {
336
- width: 10px;
337
- height: 10px;
338
- -webkit-border-radius: 100px;
339
- }
340
- ::-webkit-scrollbar-thumb {
341
- -webkit-border-radius: 100px;
342
- }
343
- ::-webkit-scrollbar-thumb:active {
344
- -webkit-border-radius: 100px;
345
- }
346
- ::-webkit-scrollbar-corner {
347
- background: transparent;
348
- }
349
- .CodeMirror-hints {
350
- z-index: 1000;
351
- border: none;
352
- }
353
- .editorApp .cm-header {
354
- color: #000;
355
- }
356
- .editorApp .cm-header-1 {
357
- font-size: 150%;
358
- }
359
- .cm-header-2 {
360
- font-size: 130%;
361
- }
362
- .cm-header-3 {
363
- font-size: 110%;
364
- }
package/lib/index.esm.css DELETED
@@ -1,364 +0,0 @@
1
- /* src/Editor.css */
2
- .EditorApp {
3
- font-family:
4
- Menlo,
5
- Monaco,
6
- Consolas,
7
- "Courier New",
8
- monospace;
9
- -webkit-font-smoothing: antialiased;
10
- -moz-osx-font-smoothing: grayscale;
11
- }
12
- .App-logo {
13
- height: 40vmin;
14
- pointer-events: none;
15
- }
16
- @media (prefers-reduced-motion: no-preference) {
17
- .App-logo {
18
- animation: App-logo-spin infinite 20s linear;
19
- }
20
- }
21
- .App-header {
22
- background-color: #282c34;
23
- min-height: 100vh;
24
- display: flex;
25
- flex-direction: column;
26
- align-items: center;
27
- justify-content: center;
28
- font-size: calc(10px + 2vmin);
29
- color: white;
30
- }
31
- .App-link {
32
- color: #61dafb;
33
- }
34
- .layout {
35
- position: absolute;
36
- width: 100%;
37
- }
38
- .Editor {
39
- text-align: left;
40
- white-space: pre-wrap;
41
- word-break: break-word;
42
- word-wrap: break-word;
43
- }
44
- [contenteditable]:focus {
45
- outline: 0px solid transparent;
46
- }
47
- .layout__panel {
48
- position: relative;
49
- width: 100%;
50
- height: 100%;
51
- flex: none;
52
- overflow: hidden;
53
- }
54
- .flex--row {
55
- flex-direction: row;
56
- }
57
- .flex {
58
- display: flex;
59
- }
60
- .CodeMirror {
61
- height: auto;
62
- font-family: inherit;
63
- }
64
- pre {
65
- overflow-x: auto;
66
- white-space: pre-wrap;
67
- white-space: -moz-pre-wrap;
68
- white-space: -pre-wrap;
69
- white-space: -o-pre-wrap;
70
- word-wrap: break-word;
71
- }
72
- .title {
73
- margin: 0em;
74
- }
75
- .Editorleft {
76
- border-right: 1px dotted lightgrey;
77
- white-space: pre-wrap;
78
- word-break: break-word;
79
- word-wrap: break-word;
80
- width: 50%;
81
- font-size: 15px;
82
- text-align: left;
83
- }
84
- body {
85
- margin: 0;
86
- font-family:
87
- Menlo,
88
- Monaco,
89
- Consolas,
90
- "Courier New",
91
- monospace;
92
- -webkit-font-smoothing: antialiased;
93
- -moz-osx-font-smoothing: grayscale;
94
- }
95
- code {
96
- font-family:
97
- source-code-pro,
98
- Menlo,
99
- Monaco,
100
- Consolas,
101
- "Courier New",
102
- monospace;
103
- }
104
- pre {
105
- padding: 9.5px;
106
- display: block;
107
- word-break: break-all;
108
- word-wrap: break-word;
109
- background-color: #f8f8f8;
110
- border-radius: 4px;
111
- }
112
- code {
113
- padding: 0;
114
- font-size: inherit;
115
- color: inherit;
116
- white-space: pre-wrap;
117
- background-color: transparent;
118
- border-radius: 0;
119
- }
120
- img {
121
- max-width: 1024px;
122
- }
123
- table {
124
- word-break: normal;
125
- min-width: 70%;
126
- max-width: 100%;
127
- margin: 1em auto;
128
- border-spacing: 0;
129
- border-collapse: collapse;
130
- text-align: center;
131
- margin-top: 2em;
132
- }
133
- table caption {
134
- margin-bottom: 0.8em;
135
- caption-side: bottom;
136
- }
137
- table tbody tr:hover {
138
- background-color: #eee;
139
- -webkit-transition: .5s;
140
- transition: .5s;
141
- }
142
- tr th {
143
- vertical-align: bottom;
144
- border-bottom: 2px solid #eee;
145
- }
146
- td {
147
- padding: 8px;
148
- border: 1px solid #eee;
149
- }
150
- .footnote a {
151
- text-decoration: none;
152
- }
153
- .footnotes {
154
- border-top-style: solid;
155
- border-top-width: 1px;
156
- border-top-color: #eee;
157
- }
158
- img {
159
- display: block;
160
- margin: 0 auto;
161
- max-width: 100%;
162
- }
163
- .shadow {
164
- -webkit-box-shadow: 3px 3px 5px 6px #ccc;
165
- -moz-box-shadow: 3px 3px 5px 6px #ccc;
166
- box-shadow: 3px 3px 5px 6px #ccc;
167
- }
168
- .box {
169
- box-shadow:
170
- 0 2.8px 2.2px rgba(0, 0, 0, 0.034),
171
- 0 6.7px 5.3px rgba(0, 0, 0, 0.048),
172
- 0 12.5px 10px rgba(0, 0, 0, 0.06),
173
- 0 22.3px 17.9px rgba(0, 0, 0, 0.072),
174
- 0 41.8px 33.4px rgba(0, 0, 0, 0.086),
175
- 0 100px 80px rgba(0, 0, 0, 0.12);
176
- margin: 100px auto;
177
- background: white;
178
- border-radius: 5px;
179
- }
180
- .image_block video {
181
- max-width: 100%;
182
- margin-bottom: 1em;
183
- }
184
- .image_block video {
185
- width: 100%;
186
- outline: none;
187
- border: none;
188
- }
189
- .mermaid svg {
190
- display: block;
191
- margin: auto;
192
- }
193
- .toc {
194
- padding: 1rem;
195
- }
196
- .toc-list {
197
- list-style: none;
198
- font-size: .8rem;
199
- }
200
- .caption {
201
- text-align: center;
202
- font-size: 0.9rem;
203
- }
204
- aside.notify {
205
- border-left: .25em solid;
206
- padding-left: 1rem;
207
- }
208
- aside.notify > :first-child {
209
- margin-top: 0;
210
- }
211
- aside.notify > :last-child {
212
- margin-bottom: 0;
213
- }
214
- aside.notify.note {
215
- border-left-color: #0085f2;
216
- }
217
- aside.notify.note .notify-title {
218
- color: #0085f2;
219
- }
220
- aside.notify.tip {
221
- border-left-color: #007936;
222
- }
223
- aside.notify.tip .notify-title {
224
- color: #007936;
225
- }
226
- aside.notify.important {
227
- border-left-color: #8250df;
228
- }
229
- aside.notify.important .notify-title {
230
- color: #8250df;
231
- }
232
- aside.notify.warning {
233
- border-left-color: #9a6700;
234
- }
235
- aside.notify.warning .notify-title {
236
- color: #9a6700;
237
- }
238
- aside.notify.caution {
239
- border-left-color: #d30038;
240
- }
241
- aside.notify.caution .notify-title {
242
- color: #d30038;
243
- }
244
- .CodeMirror {
245
- height: auto;
246
- font-family: inherit;
247
- }
248
- .title {
249
- margin: 0em;
250
- }
251
- .Editorleft {
252
- border-right: 1px dotted lightgrey;
253
- white-space: pre-wrap;
254
- word-break: break-word;
255
- word-wrap: break-word;
256
- width: 50%;
257
- font-size: 15px;
258
- text-align: left;
259
- float: left;
260
- height: 100%;
261
- padding-left: 10px;
262
- visibility: visible;
263
- opacity: 1;
264
- transition: all 0.2s ease-out;
265
- }
266
- .editorApp,
267
- .CodeMirror {
268
- height: 100%;
269
- }
270
- .Editorright {
271
- text-align: left;
272
- word-break: break-word;
273
- word-wrap: break-word;
274
- margin-right: 0;
275
- height: 100%;
276
- font-size: 15px;
277
- padding-left: 10px;
278
- overflow-y: scroll;
279
- overflow-x: hidden;
280
- background-color: white;
281
- }
282
- .Editorright .error {
283
- opacity: 0.5;
284
- }
285
- .Editorright * {
286
- }
287
- .Editorright img {
288
- display: block;
289
- margin: 0 auto;
290
- max-width: 100%;
291
- }
292
- .content {
293
- height: 100%;
294
- }
295
- .layoutPreview .Editorright {
296
- position: absolute;
297
- width: 48%;
298
- float: right;
299
- top: 0;
300
- right: 0;
301
- width: 100%;
302
- background-color: white;
303
- }
304
- .layoutPreview .Editorleft {
305
- visibility: hidden;
306
- opacity: 0;
307
- }
308
- .layoutPreview .content {
309
- width: 50%;
310
- margin: 0 auto;
311
- height: 100%;
312
- overflow-y: initial;
313
- }
314
- @keyframes App-logo-spin {
315
- from {
316
- transform: rotate(0deg);
317
- }
318
- to {
319
- transform: rotate(360deg);
320
- }
321
- }
322
- .CodeMirror-vscrollbar {
323
- user-select: none;
324
- outline: none !important;
325
- }
326
- ::-webkit-scrollbar-thumb {
327
- background-color: rgba(0, 0, 0, 0.1);
328
- }
329
- ::-webkit-scrollbar {
330
- background-color: (0, 0, 0, 0.05);
331
- }
332
- ::-webkit-scrollbar-thumb:active {
333
- background-color: rgba(0, 0, 0, 0.1);
334
- }
335
- ::-webkit-scrollbar {
336
- width: 10px;
337
- height: 10px;
338
- -webkit-border-radius: 100px;
339
- }
340
- ::-webkit-scrollbar-thumb {
341
- -webkit-border-radius: 100px;
342
- }
343
- ::-webkit-scrollbar-thumb:active {
344
- -webkit-border-radius: 100px;
345
- }
346
- ::-webkit-scrollbar-corner {
347
- background: transparent;
348
- }
349
- .CodeMirror-hints {
350
- z-index: 1000;
351
- border: none;
352
- }
353
- .editorApp .cm-header {
354
- color: #000;
355
- }
356
- .editorApp .cm-header-1 {
357
- font-size: 150%;
358
- }
359
- .cm-header-2 {
360
- font-size: 130%;
361
- }
362
- .cm-header-3 {
363
- font-size: 110%;
364
- }