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, .CodeMirror-gutter-filler {
23 background-color: white
; /* The little square between H and V scrollbars */
29 border-right: 1px solid
#ddd;
30 background-color: #f7f7f7;
33 .CodeMirror-linenumbers {}
34 .CodeMirror-linenumber {
39 -moz-box-sizing: content-box
;
40 box-sizing: content-box
;
45 .CodeMirror div.CodeMirror-cursor {
46 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 .CodeMirror.cm-keymap-fat-cursor div.CodeMirror-cursor {
57 /* Can style cursor different in overwrite (non-insert) mode */
58 div
.CodeMirror-overwrite div
.CodeMirror-cursor
{}
60 .cm-tab { display: inline-block
; }
63 border-left: 1px solid
#ccc;
69 .cm-s-default .cm-keyword {color: #708;}
70 .cm-s-default .cm-atom {color: #219;}
71 .cm-s-default .cm-number {color: #164;}
72 .cm-s-default .cm-def {color: #00f;}
73 .cm-s-default .cm-variable {color: black
;}
74 .cm-s-default .cm-variable-2 {color: #05a;}
75 .cm-s-default .cm-variable-3 {color: #085;}
76 .cm-s-default .cm-property {color: black
;}
77 .cm-s-default .cm-operator {color: black
;}
78 .cm-s-default .cm-comment {color: #a50;}
79 .cm-s-default .cm-string {color: #a11;}
80 .cm-s-default .cm-string-2 {color: #f50;}
81 .cm-s-default .cm-meta {color: #555;}
82 .cm-s-default .cm-qualifier {color: #555;}
83 .cm-s-default .cm-builtin {color: #30a;}
84 .cm-s-default .cm-bracket {color: #997;}
85 .cm-s-default .cm-tag {color: #170;}
86 .cm-s-default .cm-attribute {color: #00c;}
87 .cm-s-default .cm-header {color: blue
;}
88 .cm-s-default .cm-quote {color: #090;}
89 .cm-s-default .cm-hr {color: #999;}
90 .cm-s-default .cm-link {color: #00c;}
92 .cm-negative {color: #d44;}
93 .cm-positive {color: #292;}
94 .cm-header, .cm-strong {font-weight: bold
;}
95 .cm-em {font-style: italic
;}
96 .cm-link {text-decoration: underline
;}
98 .cm-s-default .cm-error {color: #f00;}
99 .cm-invalidchar {color: #f00;}
101 div
.CodeMirror span
.CodeMirror-matchingbracket
{color: #0f0;}
102 div
.CodeMirror span
.CodeMirror-nonmatchingbracket
{color: #f22;}
103 .CodeMirror-activeline-background {background: #e8f2ff;}
107 /* The rest of this file contains styles related to the mechanics of
108 the editor. You probably shouldn't touch them. */
119 /* 30px is the magic margin used to hide the element's real scrollbars */
120 /* See overflow: hidden in .CodeMirror */
121 margin-bottom: -30px; margin-right: -30px;
122 padding-bottom: 30px;
124 outline: none
; /* Prevent dragging from highlighting the element */
126 -moz-box-sizing: content-box
;
127 box-sizing: content-box
;
131 border-right: 30px solid transparent
;
132 -moz-box-sizing: content-box
;
133 box-sizing: content-box
;
136 /* The fake, visible scrollbars. Used to force redraw during scrolling
137 before actuall scrolling happens, thus preventing shaking and
138 flickering artifacts. */
139 .CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
144 .CodeMirror-vscrollbar {
149 .CodeMirror-hscrollbar {
154 .CodeMirror-scrollbar-filler {
157 .CodeMirror-gutter-filler {
161 .CodeMirror-gutters {
162 position: absolute
; left: 0; top: 0;
163 padding-bottom: 30px;
169 -moz-box-sizing: content-box
;
170 box-sizing: content-box
;
171 padding-bottom: 30px;
172 margin-bottom: -32px;
173 display: inline-block
;
174 /* Hack to make IE7 behave */
178 .CodeMirror-gutter-elt {
188 /* Reset some styles that the rest of the page might have set */
189 -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;
191 background: transparent
;
192 font-family: inherit
;
197 line-height: inherit
;
203 .CodeMirror-wrap pre {
204 word-wrap: break-word
;
205 white-space: pre-wrap
;
209 .CodeMirror-linebackground {
211 left: 0; right: 0; top: 0; bottom: 0;
215 .CodeMirror-linewidget {
221 .CodeMirror-widget {}
223 .CodeMirror-wrap .CodeMirror-scroll {
227 .CodeMirror-measure {
234 .CodeMirror-measure pre { position: static
; }
236 .CodeMirror div.CodeMirror-cursor {
242 div
.CodeMirror-cursors
{
247 .CodeMirror-focused div.CodeMirror-cursors {
251 .CodeMirror-selected { background: #d9d9d9; }
252 .CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }
256 background: rgba
(255, 255, 0, .4);
259 /* IE7 hack to prevent it from returning funny offsetTops on the spans */
260 .CodeMirror span { *vertical-align: text-bottom
; }
262 /* Used to force a border model for a node */
263 .cm-force-border { padding-right: .1px; }
266 /* Hide the cursor when printing */
267 .CodeMirror div.CodeMirror-cursors {