3 font-family: Helvetica, sans-serif;
8 font-family: "Source Code Pro", fantasy;
12 background-color: #f7f7f7;
13 white-space: pre-wrap;
15 padding: 5px 25px 5px 15px;
16 display: inline-block;
21 /* Set height, width, borders, and global font properties here */
22 font-family: monospace;
30 padding: 4px 0; /* Vertical padding around content */
33 padding: 0 4px; /* Horizontal padding of content */
36 .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
37 background-color: white; /* The little square between H and V scrollbars */
43 border-right: 1px solid #ddd;
44 background-color: #f7f7f7;
47 .CodeMirror-linenumbers {}
48 .CodeMirror-linenumber {
56 .CodeMirror-guttermarker { color: black; }
57 .CodeMirror-guttermarker-subtle { color: #999; }
62 border-left: 1px solid black;
66 /* Shown when moving in bi-directional text */
67 .CodeMirror div.CodeMirror-secondarycursor {
68 border-left: 1px solid silver;
70 .cm-fat-cursor .CodeMirror-cursor {
75 .cm-fat-cursor div.CodeMirror-cursors {
79 .cm-animate-fat-cursor {
82 -webkit-animation: blink 1.06s steps(1) infinite;
83 -moz-animation: blink 1.06s steps(1) infinite;
84 animation: blink 1.06s steps(1) infinite;
85 background-color: #7e7;
87 @-moz-keyframes blink {
89 50% { background-color: transparent; }
92 @-webkit-keyframes blink {
94 50% { background-color: transparent; }
99 50% { background-color: transparent; }
103 /* Can style cursor different in overwrite (non-insert) mode */
104 .CodeMirror-overwrite .CodeMirror-cursor {}
106 .cm-tab { display: inline-block; text-decoration: inherit; }
109 border-left: 1px solid #ccc;
115 .cm-s-default .cm-header {color: blue;}
116 .cm-s-default .cm-quote {color: #090;}
117 .cm-negative {color: #d44;}
118 .cm-positive {color: #292;}
119 .cm-header, .cm-strong {font-weight: bold;}
120 .cm-em {font-style: italic;}
121 .cm-link {text-decoration: underline;}
122 .cm-strikethrough {text-decoration: line-through;}
124 .cm-s-default .cm-keyword {color: #708;}
125 .cm-s-default .cm-atom {color: #219;}
126 .cm-s-default .cm-number {color: #164;}
127 .cm-s-default .cm-def {color: #00f;}
128 .cm-s-default .cm-variable,
129 .cm-s-default .cm-punctuation,
130 .cm-s-default .cm-property,
131 .cm-s-default .cm-operator {}
132 .cm-s-default .cm-variable-2 {color: #05a;}
133 .cm-s-default .cm-variable-3 {color: #085;}
134 .cm-s-default .cm-comment {color: #a50;}
135 .cm-s-default .cm-string {color: #a11;}
136 .cm-s-default .cm-string-2 {color: #f50;}
137 .cm-s-default .cm-meta {color: #555;}
138 .cm-s-default .cm-qualifier {color: #555;}
139 .cm-s-default .cm-builtin {color: #30a;}
140 .cm-s-default .cm-bracket {color: #997;}
141 .cm-s-default .cm-tag {color: #170;}
142 .cm-s-default .cm-attribute {color: #00c;}
143 .cm-s-default .cm-hr {color: #999;}
144 .cm-s-default .cm-link {color: #00c;}
146 .cm-s-default .cm-error {color: #f00;}
147 .cm-invalidchar {color: #f00;}
149 .CodeMirror-composing { border-bottom: 2px solid; }
151 /* Default styles for common addons */
153 div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;}
154 div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
155 .CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }
156 .CodeMirror-activeline-background {background: #e8f2ff;}
160 /* The rest of this file contains styles related to the mechanics of
161 the editor. You probably shouldn't touch them. */
170 overflow: scroll !important; /* Things will break if this is overridden */
171 /* 30px is the magic margin used to hide the element's real scrollbars */
172 /* See overflow: hidden in .CodeMirror */
173 margin-bottom: -30px; margin-right: -30px;
174 padding-bottom: 30px;
176 outline: none; /* Prevent dragging from highlighting the element */
181 border-right: 30px solid transparent;
184 /* The fake, visible scrollbars. Used to force redraw during scrolling
185 before actuall scrolling happens, thus preventing shaking and
186 flickering artifacts. */
187 .CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
192 .CodeMirror-vscrollbar {
197 .CodeMirror-hscrollbar {
202 .CodeMirror-scrollbar-filler {
205 .CodeMirror-gutter-filler {
209 .CodeMirror-gutters {
210 position: absolute; left: 0; top: 0;
216 display: inline-block;
217 margin-bottom: -30px;
218 /* Hack to make IE7 behave */
222 .CodeMirror-gutter-wrapper {
225 background: none !important;
226 border: none !important;
228 .CodeMirror-gutter-background {
233 .CodeMirror-gutter-elt {
238 .CodeMirror-gutter-wrapper {
239 -webkit-user-select: none;
240 -moz-user-select: none;
246 min-height: 1px; /* prevents collapsing before first draw */
249 /* Reset some styles that the rest of the page might have set */
250 -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;
252 background: transparent;
253 font-family: inherit;
258 line-height: inherit;
263 -webkit-tap-highlight-color: transparent;
265 .CodeMirror-wrap pre {
266 word-wrap: break-word;
267 white-space: pre-wrap;
271 .CodeMirror-linebackground {
273 left: 0; right: 0; top: 0; bottom: 0;
277 .CodeMirror-linewidget {
283 .CodeMirror-widget {}
289 /* Force content-box sizing for the elements where we expect it */
294 .CodeMirror-linenumber {
295 -moz-box-sizing: content-box;
296 box-sizing: content-box;
299 .CodeMirror-measure {
307 .CodeMirror-cursor { position: absolute; }
308 .CodeMirror-measure pre { position: static; }
310 div.CodeMirror-cursors {
315 div.CodeMirror-dragcursors {
319 .CodeMirror-focused div.CodeMirror-cursors {
323 .CodeMirror-selected { background: #d9d9d9; }
324 .CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }
325 .CodeMirror-crosshair { cursor: crosshair; }
326 .CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }
327 .CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }
331 background: rgba(255, 255, 0, .4);
334 /* IE7 hack to prevent it from returning funny offsetTops on the spans */
335 .CodeMirror span { *vertical-align: text-bottom; }
337 /* Used to force a border model for a node */
338 .cm-force-border { padding-right: .1px; }
341 /* Hide the cursor when printing */
342 .CodeMirror div.CodeMirror-cursors {
347 /* See issue #2901 */
348 .cm-tab-wrap-hack:after { content: ''; }
350 /* Help users use markselection to safely style text background */
351 span.CodeMirror-selectedtext { background: none; }