4 /* Set height, width, borders, and global font properties here */
12 padding: 4px 0; /* Vertical padding around content */
15 padding: 0 4px; /* Horizontal padding of content */
18 .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
19 background-color: white; /* The little square between H and V scrollbars */
25 border-right: 1px solid #ddd;
26 background-color: #f7f7f7;
29 .CodeMirror-linenumbers {}
30 .CodeMirror-linenumber {
38 .CodeMirror-guttermarker { color: black; }
39 .CodeMirror-guttermarker-subtle { color: #999; }
44 border-left: 1px solid black;
48 /* Shown when moving in bi-directional text */
49 .CodeMirror div.CodeMirror-secondarycursor {
50 border-left: 1px solid silver;
52 .cm-fat-cursor .CodeMirror-cursor {
57 .cm-fat-cursor div.CodeMirror-cursors {
61 .cm-animate-fat-cursor {
64 -webkit-animation: blink 1.06s steps(1) infinite;
65 -moz-animation: blink 1.06s steps(1) infinite;
66 animation: blink 1.06s steps(1) infinite;
67 background-color: #7e7;
69 @-moz-keyframes blink {
71 50% { background-color: transparent; }
74 @-webkit-keyframes blink {
76 50% { background-color: transparent; }
81 50% { background-color: transparent; }
85 /* Can style cursor different in overwrite (non-insert) mode */
86 .CodeMirror-overwrite .CodeMirror-cursor {}
88 .cm-tab { display: inline-block; text-decoration: inherit; }
92 left: 0; right: 0; top: -50px; bottom: -20px;
96 border-left: 1px solid #ccc;
103 .cm-s-default .cm-header {color: blue;}
104 .cm-s-default .cm-quote {color: #090;}
105 .cm-negative {color: #d44;}
106 .cm-positive {color: #292;}
107 .cm-header, .cm-strong {font-weight: bold;}
108 .cm-em {font-style: italic;}
109 .cm-link {text-decoration: underline;}
110 .cm-strikethrough {text-decoration: line-through;}
112 .cm-s-default .cm-keyword {color: #708;}
113 .cm-s-default .cm-atom {color: #219;}
114 .cm-s-default .cm-number {color: #164;}
115 .cm-s-default .cm-def {color: #00f;}
116 .cm-s-default .cm-variable,
117 .cm-s-default .cm-punctuation,
118 .cm-s-default .cm-property,
119 .cm-s-default .cm-operator {}
120 .cm-s-default .cm-variable-2 {color: #05a;}
121 .cm-s-default .cm-variable-3 {color: #085;}
122 .cm-s-default .cm-comment {color: #a50;}
123 .cm-s-default .cm-string {color: #a11;}
124 .cm-s-default .cm-string-2 {color: #f50;}
125 .cm-s-default .cm-meta {color: #555;}
126 .cm-s-default .cm-qualifier {color: #555;}
127 .cm-s-default .cm-builtin {color: #30a;}
128 .cm-s-default .cm-bracket {color: #997;}
129 .cm-s-default .cm-tag {color: #170;}
130 .cm-s-default .cm-attribute {color: #00c;}
131 .cm-s-default .cm-hr {color: #999;}
132 .cm-s-default .cm-link {color: #00c;}
134 .cm-s-default .cm-error {color: #f00;}
135 .cm-invalidchar {color: #f00;}
137 .CodeMirror-composing { border-bottom: 2px solid; }
139 /* Default styles for common addons */
141 div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;}
142 div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
143 .CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }
144 .CodeMirror-activeline-background {background: #e8f2ff;}
148 /* The rest of this file contains styles related to the mechanics of
149 the editor. You probably shouldn't touch them. */
158 overflow: scroll !important; /* Things will break if this is overridden */
159 /* 30px is the magic margin used to hide the element's real scrollbars */
160 /* See overflow: hidden in .CodeMirror */
161 margin-bottom: -30px; margin-right: -30px;
162 padding-bottom: 30px;
164 outline: none; /* Prevent dragging from highlighting the element */
169 border-right: 30px solid transparent;
172 /* The fake, visible scrollbars. Used to force redraw during scrolling
173 before actual scrolling happens, thus preventing shaking and
174 flickering artifacts. */
175 .CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
180 .CodeMirror-vscrollbar {
185 .CodeMirror-hscrollbar {
190 .CodeMirror-scrollbar-filler {
193 .CodeMirror-gutter-filler {
197 .CodeMirror-gutters {
198 position: absolute; left: 0; top: 0;
205 display: inline-block;
207 margin-bottom: -30px;
209 .CodeMirror-gutter-wrapper {
212 background: none !important;
213 border: none !important;
215 .CodeMirror-gutter-background {
220 .CodeMirror-gutter-elt {
225 .CodeMirror-gutter-wrapper ::selection { background-color: transparent }
226 .CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent }
230 min-height: 1px; /* prevents collapsing before first draw */
233 /* Reset some styles that the rest of the page might have set */
234 -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;
236 background: transparent;
241 line-height: inherit;
246 -webkit-tap-highlight-color: transparent;
247 -webkit-font-variant-ligatures: contextual;
248 font-variant-ligatures: contextual;
254 .CodeMirror-wrap pre {
255 word-wrap: break-word;
256 white-space: pre-wrap;
260 .CodeMirror-linebackground {
262 left: 0; right: 0; top: 0; bottom: 0;
266 .CodeMirror-linewidget {
272 .CodeMirror-widget {}
274 .CodeMirror-rtl pre { direction: rtl; }
280 /* Force content-box sizing for the elements where we expect it */
285 .CodeMirror-linenumber {
286 -moz-box-sizing: content-box;
287 box-sizing: content-box;
290 .CodeMirror-measure {
300 pointer-events: none;
302 .CodeMirror-measure pre { position: static; }
304 div.CodeMirror-cursors {
309 div.CodeMirror-dragcursors {
313 .CodeMirror-focused div.CodeMirror-cursors {
317 .CodeMirror-selected { background: #d9d9d9; }
318 .CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }
319 .CodeMirror-crosshair { cursor: crosshair; }
320 .CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }
321 .CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }
325 background: rgba(255, 255, 0, .4);
328 /* Used to force a border model for a node */
329 .cm-force-border { padding-right: .1px; }
332 /* Hide the cursor when printing */
333 .CodeMirror div.CodeMirror-cursors {
338 /* See issue #2901 */
339 .cm-tab-wrap-hack:after { content: ''; }
341 /* Help users use markselection to safely style text background */
342 span.CodeMirror-selectedtext { background: none; }
347 Name: Base16 Default Light
348 Author: Chris Kempson (http://chriskempson.com)
350 CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror)
351 Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)
355 .cm-s-base16-light.CodeMirror { background: #f8f8f8; color: #444444; }
356 .cm-s-base16-light div.CodeMirror-selected { background: #e0e0e0; }
357 .cm-s-base16-light .CodeMirror-line::selection, .cm-s-base16-light .CodeMirror-line > span::selection, .cm-s-base16-light .CodeMirror-line > span > span::selection { background: #e0e0e0; }
358 .cm-s-base16-light .CodeMirror-line::-moz-selection, .cm-s-base16-light .CodeMirror-line > span::-moz-selection, .cm-s-base16-light .CodeMirror-line > span > span::-moz-selection { background: #e0e0e0; }
359 .cm-s-base16-light .CodeMirror-gutters { background: #f5f5f5; border-right: 0px; }
360 .cm-s-base16-light .CodeMirror-guttermarker { color: #ac4142; }
361 .cm-s-base16-light .CodeMirror-guttermarker-subtle { color: #b0b0b0; }
362 .cm-s-base16-light .CodeMirror-linenumber { color: #b0b0b0; }
363 .cm-s-base16-light .CodeMirror-cursor { border-left: 1px solid #505050; }
365 .cm-s-base16-light span.cm-comment { color: #8f5536; }
366 .cm-s-base16-light span.cm-atom { color: #aa759f; }
367 .cm-s-base16-light span.cm-number { color: #aa759f; }
369 .cm-s-base16-light span.cm-property, .cm-s-base16-light span.cm-attribute { color: #678c30; }
370 .cm-s-base16-light span.cm-keyword { color: #ac4142; }
371 .cm-s-base16-light span.cm-string { color: #e09c3c; }
373 .cm-s-base16-light span.cm-builtin { color: #4c7f9e; }
374 .cm-s-base16-light span.cm-variable { color: #90a959; }
375 .cm-s-base16-light span.cm-variable-2 { color: #6a9fb5; }
376 .cm-s-base16-light span.cm-def { color: #d28445; }
377 .cm-s-base16-light span.cm-bracket { color: #202020; }
378 .cm-s-base16-light span.cm-tag { color: #ac4142; }
379 .cm-s-base16-light span.cm-link { color: #aa759f; }
380 .cm-s-base16-light span.cm-error { background: #ac4142; color: #505050; }
382 .cm-s-base16-light .CodeMirror-activeline-background { background: #DDDCDC; }
383 .cm-s-base16-light .CodeMirror-matchingbracket { text-decoration: underline; color: white !important; }
386 * Custom BookStack overrides
388 .CodeMirror, .CodeMirror pre {
395 border: 1px solid #DDD;;
397 .cm-s-base16-light .CodeMirror-gutters { background: #f5f5f5; border-right: 1px solid #DDD; }
399 .code-fill .CodeMirror {
415 background-color: #EEE;
418 border: 1px solid #DDD;
422 transition: all ease-in 180ms;
426 transition: transform ease-in 180ms;
427 transform: translateY(0);
430 background-color: lighten($positive, 10%);
433 transform: translateY(-3px);
437 .CodeMirror:hover .CodeMirror-copy {