4 /* Set height, width, borders, and global font properties here */
5 font-family: monospace
;
9 /* Set scrolling behaviour here */
16 padding: 4px 0; /* Vertical padding around content */
19 padding: 0 4px; /* Horizontal padding of content */
22 .CodeMirror-scrollbar-filler {
23 background-color: white
; /* The little square between H and V scrollbars */
29 border-right: 1px solid
#ddd;
30 background-color: #f7f7f7;
32 .CodeMirror-linenumbers {}
33 .CodeMirror-linenumber {
42 .CodeMirror pre.CodeMirror-cursor {
43 border-left: 1px solid black
;
45 /* Shown when moving in bi-directional text */
46 .CodeMirror pre.CodeMirror-secondarycursor {
47 border-left: 1px solid silver
;
49 .cm-keymap-fat-cursor pre.CodeMirror-cursor {
52 background: transparent
;
53 background: rgba
(0, 200, 0, .4);
54 filter: progid:DXImageTransform
.Microsoft
.gradient
(startColorstr
=#6600c800, endColorstr
=#4c00c800);
56 /* Kludge to turn off filter in ie9+, which also accepts rgba */
57 .cm-keymap-fat-cursor pre.CodeMirror-cursor:not(#nonsense_id) {
58 filter: progid:DXImageTransform
.Microsoft
.gradient
(enabled
=false
);
60 /* Can style cursor different in overwrite (non-insert) mode */
61 .CodeMirror pre.CodeMirror-cursor.CodeMirror-overwrite {}
65 .cm-s-default .cm-keyword {color: #708;}
66 .cm-s-default .cm-atom {color: #219;}
67 .cm-s-default .cm-number {color: #164;}
68 .cm-s-default .cm-def {color: #00f;}
69 .cm-s-default .cm-variable {color: black
;}
70 .cm-s-default .cm-variable-2 {color: #05a;}
71 .cm-s-default .cm-variable-3 {color: #085;}
72 .cm-s-default .cm-property {color: black
;}
73 .cm-s-default .cm-operator {color: black
;}
74 .cm-s-default .cm-comment {color: #a50;}
75 .cm-s-default .cm-string {color: #a11;}
76 .cm-s-default .cm-string-2 {color: #f50;}
77 .cm-s-default .cm-meta {color: #555;}
78 .cm-s-default .cm-error {color: #f00;}
79 .cm-s-default .cm-qualifier {color: #555;}
80 .cm-s-default .cm-builtin {color: #30a;}
81 .cm-s-default .cm-bracket {color: #997;}
82 .cm-s-default .cm-tag {color: #170;}
83 .cm-s-default .cm-attribute {color: #00c;}
84 .cm-s-default .cm-header {color: blue
;}
85 .cm-s-default .cm-quote {color: #090;}
86 .cm-s-default .cm-hr {color: #999;}
87 .cm-s-default .cm-link {color: #00c;}
89 .cm-negative {color: #d44;}
90 .cm-positive {color: #292;}
91 .cm-header, .cm-strong {font-weight: bold
;}
92 .cm-em {font-style: italic
;}
93 .cm-emstrong {font-style: italic
; font-weight: bold
;}
94 .cm-link {text-decoration: underline
;}
96 .cm-invalidchar {color: #f00;}
98 div
.CodeMirror span
.CodeMirror-matchingbracket
{color: #0f0;}
99 div
.CodeMirror span
.CodeMirror-nonmatchingbracket
{color: #f22;}
103 /* The rest of this file contains styles related to the mechanics of
104 the editor. You probably shouldn't touch them. */
113 /* 30px is the magic margin used to hide the element's real scrollbars */
114 /* See overflow: hidden in .CodeMirror, and the paddings in .CodeMirror-sizer */
115 margin-bottom: -30px; margin-right: -30px;
116 padding-bottom: 30px; padding-right: 30px;
118 outline: none
; /* Prevent dragging from highlighting the element */
125 /* The fake, visible scrollbars. Used to force redraw during scrolling
126 before actuall scrolling happens, thus preventing shaking and
127 flickering artifacts. */
128 .CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler {
133 .CodeMirror-vscrollbar {
138 .CodeMirror-hscrollbar {
143 .CodeMirror-scrollbar-filler {
148 .CodeMirror-gutters {
149 position: absolute
; left: 0; top: 0;
155 display: inline-block
;
156 /* Hack to make IE7 behave */
160 .CodeMirror-gutter-elt {
170 /* Reset some styles that the rest of the page might have set */
171 -moz-border-radius: 0; -webkit-border-radius: 0; -o-border-radius: 0; border-radius: 0;
173 background: transparent
;
174 font-family: inherit
;
179 line-height: inherit
;
185 .CodeMirror-wrap pre {
186 word-wrap: break-word
;
187 white-space: pre-wrap
;
190 .CodeMirror-linebackground {
192 left: 0; right: 0; top: 0; bottom: 0;
196 .CodeMirror-linewidget {
201 .CodeMirror-wrap .CodeMirror-scroll {
205 .CodeMirror-measure {
207 width: 100%; height: 0px;
211 .CodeMirror-measure pre { position: static
; }
213 .CodeMirror pre.CodeMirror-cursor {
219 .CodeMirror-focused pre.CodeMirror-cursor {
223 .CodeMirror-selected { background: #d9d9d9; }
224 .CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }
226 .CodeMirror-searching {
228 background: rgba
(255, 255, 0, .4);
231 /* IE7 hack to prevent it from returning funny offsetTops on the spans */
232 .CodeMirror span { *vertical-align: text-bottom
; }
235 /* Hide the cursor when printing */
236 .CodeMirror pre.CodeMirror-cursor {