@tryghost/kg-simplemde 1.11.2

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.
@@ -0,0 +1,684 @@
1
+ /**
2
+ * simplemde v1.11.2
3
+ * Copyright Next Step Webs, Inc.
4
+ * @link https://github.com/NextStepWebs/simplemde-markdown-editor
5
+ * @license MIT
6
+ */
7
+ /* BASICS */
8
+
9
+ .CodeMirror {
10
+ /* Set height, width, borders, and global font properties here */
11
+ font-family: monospace;
12
+ height: 300px;
13
+ color: black;
14
+ direction: ltr;
15
+ }
16
+
17
+ /* PADDING */
18
+
19
+ .CodeMirror-lines {
20
+ padding: 4px 0; /* Vertical padding around content */
21
+ }
22
+ .CodeMirror pre {
23
+ padding: 0 4px; /* Horizontal padding of content */
24
+ }
25
+
26
+ .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
27
+ background-color: white; /* The little square between H and V scrollbars */
28
+ }
29
+
30
+ /* GUTTER */
31
+
32
+ .CodeMirror-gutters {
33
+ border-right: 1px solid #ddd;
34
+ background-color: #f7f7f7;
35
+ white-space: nowrap;
36
+ }
37
+ .CodeMirror-linenumbers {}
38
+ .CodeMirror-linenumber {
39
+ padding: 0 3px 0 5px;
40
+ min-width: 20px;
41
+ text-align: right;
42
+ color: #999;
43
+ white-space: nowrap;
44
+ }
45
+
46
+ .CodeMirror-guttermarker { color: black; }
47
+ .CodeMirror-guttermarker-subtle { color: #999; }
48
+
49
+ /* CURSOR */
50
+
51
+ .CodeMirror-cursor {
52
+ border-left: 1px solid black;
53
+ border-right: none;
54
+ width: 0;
55
+ }
56
+ /* Shown when moving in bi-directional text */
57
+ .CodeMirror div.CodeMirror-secondarycursor {
58
+ border-left: 1px solid silver;
59
+ }
60
+ .cm-fat-cursor .CodeMirror-cursor {
61
+ width: auto;
62
+ border: 0 !important;
63
+ background: #7e7;
64
+ }
65
+ .cm-fat-cursor div.CodeMirror-cursors {
66
+ z-index: 1;
67
+ }
68
+ .cm-fat-cursor-mark {
69
+ background-color: rgba(20, 255, 20, 0.5);
70
+ -webkit-animation: blink 1.06s steps(1) infinite;
71
+ -moz-animation: blink 1.06s steps(1) infinite;
72
+ animation: blink 1.06s steps(1) infinite;
73
+ }
74
+ .cm-animate-fat-cursor {
75
+ width: auto;
76
+ border: 0;
77
+ -webkit-animation: blink 1.06s steps(1) infinite;
78
+ -moz-animation: blink 1.06s steps(1) infinite;
79
+ animation: blink 1.06s steps(1) infinite;
80
+ background-color: #7e7;
81
+ }
82
+ @-moz-keyframes blink {
83
+ 0% {}
84
+ 50% { background-color: transparent; }
85
+ 100% {}
86
+ }
87
+ @-webkit-keyframes blink {
88
+ 0% {}
89
+ 50% { background-color: transparent; }
90
+ 100% {}
91
+ }
92
+ @keyframes blink {
93
+ 0% {}
94
+ 50% { background-color: transparent; }
95
+ 100% {}
96
+ }
97
+
98
+ /* Can style cursor different in overwrite (non-insert) mode */
99
+ .CodeMirror-overwrite .CodeMirror-cursor {}
100
+
101
+ .cm-tab { display: inline-block; text-decoration: inherit; }
102
+
103
+ .CodeMirror-rulers {
104
+ position: absolute;
105
+ left: 0; right: 0; top: -50px; bottom: -20px;
106
+ overflow: hidden;
107
+ }
108
+ .CodeMirror-ruler {
109
+ border-left: 1px solid #ccc;
110
+ top: 0; bottom: 0;
111
+ position: absolute;
112
+ }
113
+
114
+ /* DEFAULT THEME */
115
+
116
+ .cm-s-default .cm-header {color: blue;}
117
+ .cm-s-default .cm-quote {color: #090;}
118
+ .cm-negative {color: #d44;}
119
+ .cm-positive {color: #292;}
120
+ .cm-header, .cm-strong {font-weight: bold;}
121
+ .cm-em {font-style: italic;}
122
+ .cm-link {text-decoration: underline;}
123
+ .cm-strikethrough {text-decoration: line-through;}
124
+
125
+ .cm-s-default .cm-keyword {color: #708;}
126
+ .cm-s-default .cm-atom {color: #219;}
127
+ .cm-s-default .cm-number {color: #164;}
128
+ .cm-s-default .cm-def {color: #00f;}
129
+ .cm-s-default .cm-variable,
130
+ .cm-s-default .cm-punctuation,
131
+ .cm-s-default .cm-property,
132
+ .cm-s-default .cm-operator {}
133
+ .cm-s-default .cm-variable-2 {color: #05a;}
134
+ .cm-s-default .cm-variable-3, .cm-s-default .cm-type {color: #085;}
135
+ .cm-s-default .cm-comment {color: #a50;}
136
+ .cm-s-default .cm-string {color: #a11;}
137
+ .cm-s-default .cm-string-2 {color: #f50;}
138
+ .cm-s-default .cm-meta {color: #555;}
139
+ .cm-s-default .cm-qualifier {color: #555;}
140
+ .cm-s-default .cm-builtin {color: #30a;}
141
+ .cm-s-default .cm-bracket {color: #997;}
142
+ .cm-s-default .cm-tag {color: #170;}
143
+ .cm-s-default .cm-attribute {color: #00c;}
144
+ .cm-s-default .cm-hr {color: #999;}
145
+ .cm-s-default .cm-link {color: #00c;}
146
+
147
+ .cm-s-default .cm-error {color: #f00;}
148
+ .cm-invalidchar {color: #f00;}
149
+
150
+ .CodeMirror-composing { border-bottom: 2px solid; }
151
+
152
+ /* Default styles for common addons */
153
+
154
+ div.CodeMirror span.CodeMirror-matchingbracket {color: #0b0;}
155
+ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}
156
+ .CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }
157
+ .CodeMirror-activeline-background {background: #e8f2ff;}
158
+
159
+ /* STOP */
160
+
161
+ /* The rest of this file contains styles related to the mechanics of
162
+ the editor. You probably shouldn't touch them. */
163
+
164
+ .CodeMirror {
165
+ position: relative;
166
+ overflow: hidden;
167
+ background: white;
168
+ }
169
+
170
+ .CodeMirror-scroll {
171
+ overflow: scroll !important; /* Things will break if this is overridden */
172
+ /* 30px is the magic margin used to hide the element's real scrollbars */
173
+ /* See overflow: hidden in .CodeMirror */
174
+ margin-bottom: -30px; margin-right: -30px;
175
+ padding-bottom: 30px;
176
+ height: 100%;
177
+ outline: none; /* Prevent dragging from highlighting the element */
178
+ position: relative;
179
+ }
180
+ .CodeMirror-sizer {
181
+ position: relative;
182
+ border-right: 30px solid transparent;
183
+ }
184
+
185
+ /* The fake, visible scrollbars. Used to force redraw during scrolling
186
+ before actual scrolling happens, thus preventing shaking and
187
+ flickering artifacts. */
188
+ .CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
189
+ position: absolute;
190
+ z-index: 6;
191
+ display: none;
192
+ }
193
+ .CodeMirror-vscrollbar {
194
+ right: 0; top: 0;
195
+ overflow-x: hidden;
196
+ overflow-y: scroll;
197
+ }
198
+ .CodeMirror-hscrollbar {
199
+ bottom: 0; left: 0;
200
+ overflow-y: hidden;
201
+ overflow-x: scroll;
202
+ }
203
+ .CodeMirror-scrollbar-filler {
204
+ right: 0; bottom: 0;
205
+ }
206
+ .CodeMirror-gutter-filler {
207
+ left: 0; bottom: 0;
208
+ }
209
+
210
+ .CodeMirror-gutters {
211
+ position: absolute; left: 0; top: 0;
212
+ min-height: 100%;
213
+ z-index: 3;
214
+ }
215
+ .CodeMirror-gutter {
216
+ white-space: normal;
217
+ height: 100%;
218
+ display: inline-block;
219
+ vertical-align: top;
220
+ margin-bottom: -30px;
221
+ }
222
+ .CodeMirror-gutter-wrapper {
223
+ position: absolute;
224
+ z-index: 4;
225
+ background: none !important;
226
+ border: none !important;
227
+ }
228
+ .CodeMirror-gutter-background {
229
+ position: absolute;
230
+ top: 0; bottom: 0;
231
+ z-index: 4;
232
+ }
233
+ .CodeMirror-gutter-elt {
234
+ position: absolute;
235
+ cursor: default;
236
+ z-index: 4;
237
+ }
238
+ .CodeMirror-gutter-wrapper ::selection { background-color: transparent }
239
+ .CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent }
240
+
241
+ .CodeMirror-lines {
242
+ cursor: text;
243
+ min-height: 1px; /* prevents collapsing before first draw */
244
+ }
245
+ .CodeMirror pre {
246
+ /* Reset some styles that the rest of the page might have set */
247
+ -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;
248
+ border-width: 0;
249
+ background: transparent;
250
+ font-family: inherit;
251
+ font-size: inherit;
252
+ margin: 0;
253
+ white-space: pre;
254
+ word-wrap: normal;
255
+ line-height: inherit;
256
+ color: inherit;
257
+ z-index: 2;
258
+ position: relative;
259
+ overflow: visible;
260
+ -webkit-tap-highlight-color: transparent;
261
+ -webkit-font-variant-ligatures: contextual;
262
+ font-variant-ligatures: contextual;
263
+ }
264
+ .CodeMirror-wrap pre {
265
+ word-wrap: break-word;
266
+ white-space: pre-wrap;
267
+ word-break: normal;
268
+ }
269
+
270
+ .CodeMirror-linebackground {
271
+ position: absolute;
272
+ left: 0; right: 0; top: 0; bottom: 0;
273
+ z-index: 0;
274
+ }
275
+
276
+ .CodeMirror-linewidget {
277
+ position: relative;
278
+ z-index: 2;
279
+ padding: 0.1px; /* Force widget margins to stay inside of the container */
280
+ }
281
+
282
+ .CodeMirror-widget {}
283
+
284
+ .CodeMirror-rtl pre { direction: rtl; }
285
+
286
+ .CodeMirror-code {
287
+ outline: none;
288
+ }
289
+
290
+ /* Force content-box sizing for the elements where we expect it */
291
+ .CodeMirror-scroll,
292
+ .CodeMirror-sizer,
293
+ .CodeMirror-gutter,
294
+ .CodeMirror-gutters,
295
+ .CodeMirror-linenumber {
296
+ -moz-box-sizing: content-box;
297
+ box-sizing: content-box;
298
+ }
299
+
300
+ .CodeMirror-measure {
301
+ position: absolute;
302
+ width: 100%;
303
+ height: 0;
304
+ overflow: hidden;
305
+ visibility: hidden;
306
+ }
307
+
308
+ .CodeMirror-cursor {
309
+ position: absolute;
310
+ pointer-events: none;
311
+ }
312
+ .CodeMirror-measure pre { position: static; }
313
+
314
+ div.CodeMirror-cursors {
315
+ visibility: hidden;
316
+ position: relative;
317
+ z-index: 3;
318
+ }
319
+ div.CodeMirror-dragcursors {
320
+ visibility: visible;
321
+ }
322
+
323
+ .CodeMirror-focused div.CodeMirror-cursors {
324
+ visibility: visible;
325
+ }
326
+
327
+ .CodeMirror-selected { background: #d9d9d9; }
328
+ .CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }
329
+ .CodeMirror-crosshair { cursor: crosshair; }
330
+ .CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }
331
+ .CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }
332
+
333
+ .cm-searching {
334
+ background-color: #ffa;
335
+ background-color: rgba(255, 255, 0, .4);
336
+ }
337
+
338
+ /* Used to force a border model for a node */
339
+ .cm-force-border { padding-right: .1px; }
340
+
341
+ @media print {
342
+ /* Hide the cursor when printing */
343
+ .CodeMirror div.CodeMirror-cursors {
344
+ visibility: hidden;
345
+ }
346
+ }
347
+
348
+ /* See issue #2901 */
349
+ .cm-tab-wrap-hack:after { content: ''; }
350
+
351
+ /* Help users use markselection to safely style text background */
352
+ span.CodeMirror-selectedtext { background: none; }
353
+
354
+ .CodeMirror {
355
+ height: auto;
356
+ min-height: 300px;
357
+ border: 1px solid #ddd;
358
+ border-bottom-left-radius: 4px;
359
+ border-bottom-right-radius: 4px;
360
+ padding: 10px;
361
+ font: inherit;
362
+ z-index: 1;
363
+ }
364
+
365
+ .CodeMirror-scroll {
366
+ min-height: 300px
367
+ }
368
+
369
+ .CodeMirror-fullscreen {
370
+ background: #fff;
371
+ position: fixed !important;
372
+ top: 50px;
373
+ left: 0;
374
+ right: 0;
375
+ bottom: 0;
376
+ height: auto;
377
+ z-index: 9;
378
+ }
379
+
380
+ .CodeMirror-sided {
381
+ width: 50% !important;
382
+ }
383
+
384
+ .editor-toolbar {
385
+ position: relative;
386
+ opacity: .6;
387
+ -webkit-user-select: none;
388
+ -moz-user-select: none;
389
+ -ms-user-select: none;
390
+ -o-user-select: none;
391
+ user-select: none;
392
+ padding: 0 10px;
393
+ border-top: 1px solid #bbb;
394
+ border-left: 1px solid #bbb;
395
+ border-right: 1px solid #bbb;
396
+ border-top-left-radius: 4px;
397
+ border-top-right-radius: 4px;
398
+ }
399
+
400
+ .editor-toolbar:after,
401
+ .editor-toolbar:before {
402
+ display: block;
403
+ content: ' ';
404
+ height: 1px;
405
+ }
406
+
407
+ .editor-toolbar:before {
408
+ margin-bottom: 8px
409
+ }
410
+
411
+ .editor-toolbar:after {
412
+ margin-top: 8px
413
+ }
414
+
415
+ .editor-toolbar:hover,
416
+ .editor-wrapper input.title:focus,
417
+ .editor-wrapper input.title:hover {
418
+ opacity: .8
419
+ }
420
+
421
+ .editor-toolbar.fullscreen {
422
+ width: 100%;
423
+ height: 50px;
424
+ overflow-x: auto;
425
+ overflow-y: hidden;
426
+ white-space: nowrap;
427
+ padding-top: 10px;
428
+ padding-bottom: 10px;
429
+ box-sizing: border-box;
430
+ background: #fff;
431
+ border: 0;
432
+ position: fixed;
433
+ top: 0;
434
+ left: 0;
435
+ opacity: 1;
436
+ z-index: 9;
437
+ }
438
+
439
+ .editor-toolbar.fullscreen::before {
440
+ width: 20px;
441
+ height: 50px;
442
+ background: -moz-linear-gradient(left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
443
+ background: -webkit-gradient(linear, left top, right top, color-stop(0%, rgba(255, 255, 255, 1)), color-stop(100%, rgba(255, 255, 255, 0)));
444
+ background: -webkit-linear-gradient(left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
445
+ background: -o-linear-gradient(left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
446
+ background: -ms-linear-gradient(left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
447
+ background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
448
+ position: fixed;
449
+ top: 0;
450
+ left: 0;
451
+ margin: 0;
452
+ padding: 0;
453
+ }
454
+
455
+ .editor-toolbar.fullscreen::after {
456
+ width: 20px;
457
+ height: 50px;
458
+ background: -moz-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
459
+ background: -webkit-gradient(linear, left top, right top, color-stop(0%, rgba(255, 255, 255, 0)), color-stop(100%, rgba(255, 255, 255, 1)));
460
+ background: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
461
+ background: -o-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
462
+ background: -ms-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
463
+ background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
464
+ position: fixed;
465
+ top: 0;
466
+ right: 0;
467
+ margin: 0;
468
+ padding: 0;
469
+ }
470
+
471
+ .editor-toolbar a {
472
+ display: inline-block;
473
+ text-align: center;
474
+ text-decoration: none !important;
475
+ color: #2c3e50 !important;
476
+ width: 30px;
477
+ height: 30px;
478
+ margin: 0;
479
+ border: 1px solid transparent;
480
+ border-radius: 3px;
481
+ cursor: pointer;
482
+ }
483
+
484
+ .editor-toolbar a.active,
485
+ .editor-toolbar a:hover {
486
+ background: #fcfcfc;
487
+ border-color: #95a5a6;
488
+ }
489
+
490
+ .editor-toolbar a:before {
491
+ line-height: 30px
492
+ }
493
+
494
+ .editor-toolbar i.separator {
495
+ display: inline-block;
496
+ width: 0;
497
+ border-left: 1px solid #d9d9d9;
498
+ border-right: 1px solid #fff;
499
+ color: transparent;
500
+ text-indent: -10px;
501
+ margin: 0 6px;
502
+ }
503
+
504
+ .editor-toolbar a.fa-header-x:after {
505
+ font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
506
+ font-size: 65%;
507
+ vertical-align: text-bottom;
508
+ position: relative;
509
+ top: 2px;
510
+ }
511
+
512
+ .editor-toolbar a.fa-header-1:after {
513
+ content: "1";
514
+ }
515
+
516
+ .editor-toolbar a.fa-header-2:after {
517
+ content: "2";
518
+ }
519
+
520
+ .editor-toolbar a.fa-header-3:after {
521
+ content: "3";
522
+ }
523
+
524
+ .editor-toolbar a.fa-header-bigger:after {
525
+ content: "▲";
526
+ }
527
+
528
+ .editor-toolbar a.fa-header-smaller:after {
529
+ content: "▼";
530
+ }
531
+
532
+ .editor-toolbar.disabled-for-preview a:not(.no-disable) {
533
+ pointer-events: none;
534
+ background: #fff;
535
+ border-color: transparent;
536
+ text-shadow: inherit;
537
+ }
538
+
539
+ @media only screen and (max-width: 700px) {
540
+ .editor-toolbar a.no-mobile {
541
+ display: none;
542
+ }
543
+ }
544
+
545
+ .editor-statusbar {
546
+ padding: 8px 10px;
547
+ font-size: 12px;
548
+ color: #959694;
549
+ text-align: right;
550
+ }
551
+
552
+ .editor-statusbar span {
553
+ display: inline-block;
554
+ min-width: 4em;
555
+ margin-left: 1em;
556
+ }
557
+
558
+ .editor-statusbar .lines:before {
559
+ content: 'lines: '
560
+ }
561
+
562
+ .editor-statusbar .words:before {
563
+ content: 'words: '
564
+ }
565
+
566
+ .editor-statusbar .characters:before {
567
+ content: 'characters: '
568
+ }
569
+
570
+ .editor-preview {
571
+ padding: 10px;
572
+ position: absolute;
573
+ width: 100%;
574
+ height: 100%;
575
+ top: 0;
576
+ left: 0;
577
+ background: #fafafa;
578
+ z-index: 7;
579
+ overflow: auto;
580
+ display: none;
581
+ box-sizing: border-box;
582
+ }
583
+
584
+ .editor-preview-side {
585
+ padding: 10px;
586
+ position: fixed;
587
+ bottom: 0;
588
+ width: 50%;
589
+ top: 50px;
590
+ right: 0;
591
+ background: #fafafa;
592
+ z-index: 9;
593
+ overflow: auto;
594
+ display: none;
595
+ box-sizing: border-box;
596
+ border: 1px solid #ddd;
597
+ }
598
+
599
+ .editor-preview-active-side {
600
+ display: block
601
+ }
602
+
603
+ .editor-preview-active {
604
+ display: block
605
+ }
606
+
607
+ .editor-preview>p,
608
+ .editor-preview-side>p {
609
+ margin-top: 0
610
+ }
611
+
612
+ .editor-preview pre,
613
+ .editor-preview-side pre {
614
+ background: #eee;
615
+ margin-bottom: 10px;
616
+ }
617
+
618
+ .editor-preview table td,
619
+ .editor-preview table th,
620
+ .editor-preview-side table td,
621
+ .editor-preview-side table th {
622
+ border: 1px solid #ddd;
623
+ padding: 5px;
624
+ }
625
+
626
+ .CodeMirror .CodeMirror-code .cm-tag {
627
+ color: #63a35c;
628
+ }
629
+
630
+ .CodeMirror .CodeMirror-code .cm-attribute {
631
+ color: #795da3;
632
+ }
633
+
634
+ .CodeMirror .CodeMirror-code .cm-string {
635
+ color: #183691;
636
+ }
637
+
638
+ .CodeMirror .CodeMirror-selected {
639
+ background: #d9d9d9;
640
+ }
641
+
642
+ .CodeMirror .CodeMirror-code .cm-header-1 {
643
+ font-size: 200%;
644
+ line-height: 200%;
645
+ }
646
+
647
+ .CodeMirror .CodeMirror-code .cm-header-2 {
648
+ font-size: 160%;
649
+ line-height: 160%;
650
+ }
651
+
652
+ .CodeMirror .CodeMirror-code .cm-header-3 {
653
+ font-size: 125%;
654
+ line-height: 125%;
655
+ }
656
+
657
+ .CodeMirror .CodeMirror-code .cm-header-4 {
658
+ font-size: 110%;
659
+ line-height: 110%;
660
+ }
661
+
662
+ .CodeMirror .CodeMirror-code .cm-comment {
663
+ background: rgba(0, 0, 0, .05);
664
+ border-radius: 2px;
665
+ }
666
+
667
+ .CodeMirror .CodeMirror-code .cm-link {
668
+ color: #7f8c8d;
669
+ }
670
+
671
+ .CodeMirror .CodeMirror-code .cm-url {
672
+ color: #aab2b3;
673
+ }
674
+
675
+ .CodeMirror .CodeMirror-code .cm-strikethrough {
676
+ text-decoration: line-through;
677
+ }
678
+
679
+ .CodeMirror .CodeMirror-placeholder {
680
+ opacity: .5;
681
+ }
682
+ .CodeMirror .cm-spell-error:not(.cm-url):not(.cm-comment):not(.cm-tag):not(.cm-word) {
683
+ background: rgba(255, 0, 0, .15);
684
+ }