@mdaemon/html-editor 1.0.9 → 1.0.10

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.
Files changed (2) hide show
  1. package/dist/styles.css +78 -0
  2. package/package.json +1 -1
package/dist/styles.css CHANGED
@@ -13,6 +13,25 @@
13
13
  position: relative;
14
14
  overflow: hidden;
15
15
  }
16
+ .md-editor *,
17
+ .md-editor *::before,
18
+ .md-editor *::after {
19
+ box-sizing: border-box;
20
+ }
21
+ .md-editor button {
22
+ appearance: none;
23
+ font: inherit;
24
+ color: inherit;
25
+ background: transparent;
26
+ border: none;
27
+ padding: 0;
28
+ margin: 0;
29
+ cursor: pointer;
30
+ }
31
+ .md-editor input, .md-editor select, .md-editor textarea {
32
+ font: inherit;
33
+ color: inherit;
34
+ }
16
35
  .md-editor.md-editor-fullscreen {
17
36
  position: fixed;
18
37
  top: 0;
@@ -306,16 +325,74 @@
306
325
  margin: 0 0 0.5em;
307
326
  font-weight: bold;
308
327
  }
328
+ .md-editor-body h1 {
329
+ font-size: 2em;
330
+ }
331
+ .md-editor-body h2 {
332
+ font-size: 1.5em;
333
+ }
334
+ .md-editor-body h3 {
335
+ font-size: 1.17em;
336
+ }
337
+ .md-editor-body h4 {
338
+ font-size: 1em;
339
+ }
340
+ .md-editor-body h5 {
341
+ font-size: 0.83em;
342
+ }
343
+ .md-editor-body h6 {
344
+ font-size: 0.67em;
345
+ }
309
346
  .md-editor-body ul, .md-editor-body ol {
310
347
  margin: 0 0 1em;
311
348
  padding-left: 2em;
312
349
  }
350
+ .md-editor-body ul {
351
+ list-style-type: disc;
352
+ }
353
+ .md-editor-body ol {
354
+ list-style-type: decimal;
355
+ }
356
+ .md-editor-body ul ul {
357
+ list-style-type: circle;
358
+ }
359
+ .md-editor-body ul ul ul {
360
+ list-style-type: square;
361
+ }
362
+ .md-editor-body ol ol {
363
+ list-style-type: lower-alpha;
364
+ }
365
+ .md-editor-body ol ol ol {
366
+ list-style-type: lower-roman;
367
+ }
313
368
  .md-editor-body blockquote {
314
369
  margin: 0 0 1em;
315
370
  padding-left: 1em;
316
371
  border-left: 3px solid #ccc;
317
372
  color: #666;
318
373
  }
374
+ .md-editor-body hr {
375
+ border: none;
376
+ border-top: 1px solid #ccc;
377
+ margin: 1em 0;
378
+ }
379
+ .md-editor-body b, .md-editor-body strong {
380
+ font-weight: bold;
381
+ }
382
+ .md-editor-body i, .md-editor-body em {
383
+ font-style: italic;
384
+ }
385
+ .md-editor-body small {
386
+ font-size: 80%;
387
+ }
388
+ .md-editor-body sub {
389
+ vertical-align: sub;
390
+ font-size: smaller;
391
+ }
392
+ .md-editor-body sup {
393
+ vertical-align: super;
394
+ font-size: smaller;
395
+ }
319
396
  .md-editor-body pre {
320
397
  background: #f5f5f5;
321
398
  padding: 12px;
@@ -338,6 +415,7 @@
338
415
  .md-editor-body img {
339
416
  max-width: 100%;
340
417
  height: auto;
418
+ display: inline-block;
341
419
  }
342
420
  .md-editor-body table {
343
421
  border-collapse: collapse;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mdaemon/html-editor",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "A TinyMCE-compatible HTML editor built on TipTap",
5
5
  "homepage": "https://github.com/mdaemon-technologies/MDHTMLEditor",
6
6
  "repository": {