4 /* Set height, width, borders, and global font properties here */
5 font-family: monospace
;
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 {
35 -moz-box-sizing: content-box
;
36 box-sizing: content-box
;
39 .CodeMirror-guttermarker { color: black
; }
40 .CodeMirror-guttermarker-subtle { color: #999; }
44 .CodeMirror div.CodeMirror-cursor {
45 border-left: 1px solid black
;
47 /* Shown when moving in bi-directional text */
48 .CodeMirror div.CodeMirror-secondarycursor {
49 border-left: 1px solid silver
;
51 .CodeMirror.cm-fat-cursor div.CodeMirror-cursor {
56 .CodeMirror.cm-fat-cursor div.CodeMirror-cursors {
60 .cm-animate-fat-cursor {
63 -webkit-animation: blink
1.06s steps
(1) infinite
;
64 -moz-animation: blink
1.06s steps
(1) infinite
;
65 animation: blink
1.06s steps
(1) infinite
;
67 @-moz-keyframes blink
{
68 0% { background: #7e7; }
69 50% { background: none
; }
70 100% { background: #7e7; }
72 @-webkit-keyframes blink
{
73 0% { background: #7e7; }
74 50% { background: none
; }
75 100% { background: #7e7; }
78 0% { background: #7e7; }
79 50% { background: none
; }
80 100% { background: #7e7; }
83 /* Can style cursor different in overwrite (non-insert) mode */
84 div
.CodeMirror-overwrite div
.CodeMirror-cursor
{}
86 .cm-tab { display: inline-block
; text-decoration: inherit
; }
89 border-left: 1px solid
#ccc;
95 .cm-s-default .cm-keyword {color: #708;}
96 .cm-s-default .cm-atom {color: #219;}
97 .cm-s-default .cm-number {color: #164;}
98 .cm-s-default .cm-def {color: #00f;}
99 .cm-s-default
.cm-variable
,
100 .cm-s-default
.cm-punctuation
,
101 .cm-s-default
.cm-property
,
102 .cm-s-default .cm-operator {}
103 .cm-s-default .cm-variable-2 {color: #05a;}
104 .cm-s-default .cm-variable-3 {color: #085;}
105 .cm-s-default .cm-comment {color: #a50;}
106 .cm-s-default .cm-string {color: #a11;}
107 .cm-s-default .cm-string-2 {color: #f50;}
108 .cm-s-default .cm-meta {color: #555;}
109 .cm-s-default .cm-qualifier {color: #555;}
110 .cm-s-default .cm-builtin {color: #30a;}
111 .cm-s-default .cm-bracket {color: #997;}
112 .cm-s-default .cm-tag {color: #170;}
113 .cm-s-default .cm-attribute {color: #00c;}
114 .cm-s-default .cm-header {color: blue
;}
115 .cm-s-default .cm-quote {color: #090;}
116 .cm-s-default .cm-hr {color: #999;}
117 .cm-s-default .cm-link {color: #00c;}
119 .cm-negative {color: #d44;}
120 .cm-positive {color: #292;}
121 .cm-header, .cm-strong {font-weight: bold
;}
122 .cm-em {font-style: italic
;}
123 .cm-link {text-decoration: underline
;}
124 .cm-strikethrough {text-decoration: line-through
;}
126 .cm-s-default .cm-error {color: #f00;}
127 .cm-invalidchar {color: #f00;}
129 /* Default styles for common addons */
131 div
.CodeMirror span
.CodeMirror-matchingbracket
{color: #0f0;}
132 div
.CodeMirror span
.CodeMirror-nonmatchingbracket
{color: #f22;}
133 .CodeMirror-matchingtag { background: rgba
(255, 150, 0, .3); }
134 .CodeMirror-activeline-background { background: #e8f2ff; }
138 /* The rest of this file contains styles related to the mechanics of
139 the editor. You probably shouldn't touch them. */
150 overflow: scroll
!important
; /* Things will break if this is overridden */
151 /* 30px is the magic margin used to hide the element's real scrollbars */
152 /* See overflow: hidden in .CodeMirror */
153 margin-bottom: -30px; margin-right: -30px;
154 padding-bottom: 30px;
156 outline: none
; /* Prevent dragging from highlighting the element */
158 -moz-box-sizing: content-box
;
159 box-sizing: content-box
;
163 border-right: 30px solid transparent
;
164 -moz-box-sizing: content-box
;
165 box-sizing: content-box
;
168 /* The fake, visible scrollbars. Used to force redraw during scrolling
169 before actuall scrolling happens, thus preventing shaking and
170 flickering artifacts. */
171 .CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
176 .CodeMirror-vscrollbar {
181 .CodeMirror-hscrollbar {
186 .CodeMirror-scrollbar-filler {
189 .CodeMirror-gutter-filler {
193 .CodeMirror-gutters {
194 position: absolute
; left: 0; top: 0;
200 -moz-box-sizing: content-box
;
201 box-sizing: content-box
;
202 display: inline-block
;
203 margin-bottom: -30px;
204 /* Hack to make IE7 behave */
208 .CodeMirror-gutter-wrapper {
213 .CodeMirror-gutter-elt {
221 min-height: 1px; /* prevents collapsing before first draw */
224 /* Reset some styles that the rest of the page might have set */
225 -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;
227 background: transparent
;
228 font-family: inherit
;
233 line-height: inherit
;
239 .CodeMirror-wrap pre {
240 word-wrap: break-word
;
241 white-space: pre-wrap
;
245 .CodeMirror-linebackground {
247 left: 0; right: 0; top: 0; bottom: 0;
251 .CodeMirror-linewidget {
257 .CodeMirror-widget {}
259 .CodeMirror-measure {
266 .CodeMirror-measure pre { position: static
; }
268 .CodeMirror div.CodeMirror-cursor {
274 div
.CodeMirror-cursors
{
279 .CodeMirror-focused div.CodeMirror-cursors {
283 .CodeMirror-selected { background: #d9d9d9; }
284 .CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }
285 .CodeMirror-crosshair { cursor: crosshair
; }
289 background: rgba
(255, 255, 0, .4);
292 /* IE7 hack to prevent it from returning funny offsetTops on the spans */
293 .CodeMirror span { *vertical-align: text-bottom
; }
295 /* Used to force a border model for a node */
296 .cm-force-border { padding-right: .1px; }
299 /* Hide the cursor when printing */
300 .CodeMirror div.CodeMirror-cursors {
305 /* See issue #2901 */
306 .cm-tab-wrap-hack:after { content: ''; }
308 /* Help users use markselection to safely style text background */
309 span
.CodeMirror-selectedtext
{ background: none
; }