3 * Copyright Next Step Webs, Inc.
4 * @link https://github.com/NextStepWebs/simplemde-markdown-editor
10 /* Set height, width, borders, and global font properties here */
11 font-family: monospace;
19 padding: 4px 0; /* Vertical padding around content */
22 padding: 0 4px; /* Horizontal padding of content */
25 .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
26 background-color: white; /* The little square between H and V scrollbars */
32 border-right: 1px solid #ddd;
33 background-color: #f7f7f7;
36 .CodeMirror-linenumbers {}
37 .CodeMirror-linenumber {
45 .CodeMirror-guttermarker { color: black; }
46 .CodeMirror-guttermarker-subtle { color: #999; }
51 border-left: 1px solid black;
55 /* Shown when moving in bi-directional text */
56 .CodeMirror div.CodeMirror-secondarycursor {
57 border-left: 1px solid silver;
59 .cm-fat-cursor .CodeMirror-cursor {
64 .cm-fat-cursor div.CodeMirror-cursors {
68 .cm-animate-fat-cursor {
71 -webkit-animation: blink 1.06s steps(1) infinite;
72 -moz-animation: blink 1.06s steps(1) infinite;
73 animation: blink 1.06s steps(1) infinite;
74 background-color: #7e7;
76 @-moz-keyframes blink {
78 50% { background-color: transparent; }
81 @-webkit-keyframes blink {
83 50% { background-color: transparent; }
88 50% { background-color: transparent; }
92 /* Can style cursor different in overwrite (non-insert) mode */
93 .CodeMirror-overwrite .CodeMirror-cursor {}
95 .cm-tab { display: inline-block; text-decoration: inherit; }
98 border-left: 1px solid #ccc;
104 .cm-s-default .cm-header {color: blue;}
105 .cm-s-default .cm-quote {color: #090;}
106 .cm-negative {color: #d44;}
107 .cm-positive {color: #292;}
108 .cm-header, .cm-strong {font-weight: bold;}
109 .cm-em {font-style: italic;}
110 .cm-link {text-decoration: underline;}
111 .cm-strikethrough {text-decoration: line-through;}
113 .cm-s-default .cm-keyword {color: #708;}
114 .cm-s-default .cm-atom {color: #219;}
115 .cm-s-default .cm-number {color: #164;}
116 .cm-s-default .cm-def {color: #00f;}
117 .cm-s-default .cm-variable,
118 .cm-s-default .cm-punctuation,
119 .cm-s-default .cm-property,
120 .cm-s-default .cm-operator {}
121 .cm-s-default .cm-variable-2 {color: #05a;}
122 .cm-s-default .cm-variable-3 {color: #085;}
123 .cm-s-default .cm-comment {color: #a50;}
124 .cm-s-default .cm-string {color: #a11;}
125 .cm-s-default .cm-string-2 {color: #f50;}
126 .cm-s-default .cm-meta {color: #555;}
127 .cm-s-default .cm-qualifier {color: #555;}
128 .cm-s-default .cm-builtin {color: #30a;}
129 .cm-s-default .cm-bracket {color: #997;}
130 .cm-s-default .cm-tag {color: #170;}
131 .cm-s-default .cm-attribute {color: #00c;}
132 .cm-s-default .cm-hr {color: #999;}
133 .cm-s-default .cm-link {color: #00c;}
135 .cm-s-default .cm-error {color: #f00;}
136 .cm-invalidchar {color: #f00;}
138 .CodeMirror-composing { border-bottom: 2px solid; }
140 /* Default styles for common addons */
142 div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;}
143 div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
144 .CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }
145 .CodeMirror-activeline-background {background: #e8f2ff;}
149 /* The rest of this file contains styles related to the mechanics of
150 the editor. You probably shouldn't touch them. */
159 overflow: scroll !important; /* Things will break if this is overridden */
160 /* 30px is the magic margin used to hide the element's real scrollbars */
161 /* See overflow: hidden in .CodeMirror */
162 margin-bottom: -30px; margin-right: -30px;
163 padding-bottom: 30px;
165 outline: none; /* Prevent dragging from highlighting the element */
170 border-right: 30px solid transparent;
173 /* The fake, visible scrollbars. Used to force redraw during scrolling
174 before actual scrolling happens, thus preventing shaking and
175 flickering artifacts. */
176 .CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
181 .CodeMirror-vscrollbar {
186 .CodeMirror-hscrollbar {
191 .CodeMirror-scrollbar-filler {
194 .CodeMirror-gutter-filler {
198 .CodeMirror-gutters {
199 position: absolute; left: 0; top: 0;
206 display: inline-block;
208 margin-bottom: -30px;
209 /* Hack to make IE7 behave */
213 .CodeMirror-gutter-wrapper {
216 background: none !important;
217 border: none !important;
219 .CodeMirror-gutter-background {
224 .CodeMirror-gutter-elt {
229 .CodeMirror-gutter-wrapper {
230 -webkit-user-select: none;
231 -moz-user-select: none;
237 min-height: 1px; /* prevents collapsing before first draw */
240 /* Reset some styles that the rest of the page might have set */
241 -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;
243 background: transparent;
244 font-family: inherit;
249 line-height: inherit;
254 -webkit-tap-highlight-color: transparent;
255 -webkit-font-variant-ligatures: none;
256 font-variant-ligatures: none;
258 .CodeMirror-wrap pre {
259 word-wrap: break-word;
260 white-space: pre-wrap;
264 .CodeMirror-linebackground {
266 left: 0; right: 0; top: 0; bottom: 0;
270 .CodeMirror-linewidget {
276 .CodeMirror-widget {}
282 /* Force content-box sizing for the elements where we expect it */
287 .CodeMirror-linenumber {
288 -moz-box-sizing: content-box;
289 box-sizing: content-box;
292 .CodeMirror-measure {
300 .CodeMirror-cursor { position: absolute; }
301 .CodeMirror-measure pre { position: static; }
303 div.CodeMirror-cursors {
308 div.CodeMirror-dragcursors {
312 .CodeMirror-focused div.CodeMirror-cursors {
316 .CodeMirror-selected { background: #d9d9d9; }
317 .CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }
318 .CodeMirror-crosshair { cursor: crosshair; }
319 .CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }
320 .CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }
324 background: rgba(255, 255, 0, .4);
327 /* IE7 hack to prevent it from returning funny offsetTops on the spans */
328 .CodeMirror span { *vertical-align: text-bottom; }
330 /* Used to force a border model for a node */
331 .cm-force-border { padding-right: .1px; }
334 /* Hide the cursor when printing */
335 .CodeMirror div.CodeMirror-cursors {
340 /* See issue #2901 */
341 .cm-tab-wrap-hack:after { content: ''; }
343 /* Help users use markselection to safely style text background */
344 span.CodeMirror-selectedtext { background: none; }
349 border: 1px solid #ddd;
350 border-bottom-left-radius: 4px;
351 border-bottom-right-radius: 4px;
361 .CodeMirror-fullscreen {
363 position: fixed !important;
373 width: 50% !important;
379 -webkit-user-select: none;
380 -moz-user-select: none;
381 -ms-user-select: none;
382 -o-user-select: none;
385 border-top: 1px solid #bbb;
386 border-left: 1px solid #bbb;
387 border-right: 1px solid #bbb;
388 border-top-left-radius: 4px;
389 border-top-right-radius: 4px;
392 .editor-toolbar:after,
393 .editor-toolbar:before {
399 .editor-toolbar:before {
403 .editor-toolbar:after {
407 .editor-toolbar:hover,
408 .editor-wrapper input.title:focus,
409 .editor-wrapper input.title:hover {
413 .editor-toolbar.fullscreen {
420 padding-bottom: 10px;
421 box-sizing: border-box;
431 .editor-toolbar.fullscreen::before {
434 background: -moz-linear-gradient(left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
435 background: -webkit-gradient(linear, left top, right top, color-stop(0%, rgba(255, 255, 255, 1)), color-stop(100%, rgba(255, 255, 255, 0)));
436 background: -webkit-linear-gradient(left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
437 background: -o-linear-gradient(left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
438 background: -ms-linear-gradient(left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
439 background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
447 .editor-toolbar.fullscreen::after {
450 background: -moz-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
451 background: -webkit-gradient(linear, left top, right top, color-stop(0%, rgba(255, 255, 255, 0)), color-stop(100%, rgba(255, 255, 255, 1)));
452 background: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
453 background: -o-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
454 background: -ms-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
455 background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
464 display: inline-block;
466 text-decoration: none!important;
467 color: #2c3e50!important;
471 border: 1px solid transparent;
476 .editor-toolbar a.active,
477 .editor-toolbar a:hover {
479 border-color: #95a5a6;
482 .editor-toolbar a:before {
486 .editor-toolbar i.separator {
487 display: inline-block;
489 border-left: 1px solid #d9d9d9;
490 border-right: 1px solid #fff;
496 .editor-toolbar a.fa-header-x:after {
497 font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
499 vertical-align: text-bottom;
504 .editor-toolbar a.fa-header-1:after {
508 .editor-toolbar a.fa-header-2:after {
512 .editor-toolbar a.fa-header-3:after {
516 .editor-toolbar a.fa-header-bigger:after {
520 .editor-toolbar a.fa-header-smaller:after {
524 .editor-toolbar.disabled-for-preview a:not(.no-disable) {
525 pointer-events: none;
527 border-color: transparent;
528 text-shadow: inherit;
531 @media only screen and (max-width: 700px) {
532 .editor-toolbar a.no-mobile {
544 .editor-statusbar span {
545 display: inline-block;
550 .editor-statusbar .lines:before {
554 .editor-statusbar .words:before {
558 .editor-statusbar .characters:before {
559 content: 'characters: '
573 box-sizing: border-box;
576 .editor-preview-side {
587 box-sizing: border-box;
588 border: 1px solid #ddd;
591 .editor-preview-active-side {
595 .editor-preview-active {
600 .editor-preview-side>p {
605 .editor-preview-side pre {
610 .editor-preview table td,
611 .editor-preview table th,
612 .editor-preview-side table td,
613 .editor-preview-side table th {
614 border: 1px solid #ddd;
618 .CodeMirror .CodeMirror-code .cm-tag {
622 .CodeMirror .CodeMirror-code .cm-attribute {
626 .CodeMirror .CodeMirror-code .cm-string {
630 .CodeMirror .CodeMirror-selected {
634 .CodeMirror .CodeMirror-code .cm-header-1 {
639 .CodeMirror .CodeMirror-code .cm-header-2 {
644 .CodeMirror .CodeMirror-code .cm-header-3 {
649 .CodeMirror .CodeMirror-code .cm-header-4 {
654 .CodeMirror .CodeMirror-code .cm-comment {
655 background: rgba(0, 0, 0, .05);
659 .CodeMirror .CodeMirror-code .cm-link {
663 .CodeMirror .CodeMirror-code .cm-url {
667 .CodeMirror .CodeMirror-code .cm-strikethrough {
668 text-decoration: line-through;
671 .CodeMirror .CodeMirror-placeholder {
674 .CodeMirror .cm-spell-error:not(.cm-url):not(.cm-comment):not(.cm-tag):not(.cm-word) {
675 background: rgba(255, 0, 0, .15);