Project

General

Profile

1
/* BASICS */
2

    
3
.CodeMirror {
4
  /* Set height, width, borders, and global font properties here */
5
  font-family: monospace;
6
  font-size: 12px;
7
  height: 400px;
8
  color: black;
9
  background-color: #ffffff;
10

    
11
}
12

    
13
.dnetFormField .CodeMirror {
14
  border: 1px solid #cccccc;
15
  border-radius: 4px;
16
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
17
  height: 150px !important;
18
}
19

    
20
.panel-collapse .CodeMirror {
21
  height: auto !important;
22
}
23

    
24
/* PADDING */
25

    
26
.CodeMirror-lines {
27
  padding: 4px 0; /* Vertical padding around content */
28
}
29
.CodeMirror pre {
30
  padding: 0 4px; /* Horizontal padding of content */
31
}
32

    
33
.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
34
  background-color: white; /* The little square between H and V scrollbars */
35
}
36

    
37
/* GUTTER */
38

    
39
.CodeMirror-gutters {
40
  border-right: 1px solid #ddd;
41
  background-color: #f7f7f7;
42
  white-space: nowrap;
43
}
44
.CodeMirror-linenumbers {}
45
.CodeMirror-linenumber {
46
  padding: 0 3px 0 5px;
47
  min-width: 20px;
48
  text-align: right;
49
  color: #999;
50
  -moz-box-sizing: content-box;
51
  box-sizing: content-box;
52
}
53

    
54
.CodeMirror-guttermarker { color: black; }
55
.CodeMirror-guttermarker-subtle { color: #999; }
56

    
57
/* CURSOR */
58

    
59
.CodeMirror div.CodeMirror-cursor {
60
  border-left: 1px solid black;
61
}
62
/* Shown when moving in bi-directional text */
63
.CodeMirror div.CodeMirror-secondarycursor {
64
  border-left: 1px solid silver;
65
}
66
.CodeMirror.cm-fat-cursor div.CodeMirror-cursor {
67
  width: auto;
68
  border: 0;
69
  background: #7e7;
70
}
71
.CodeMirror.cm-fat-cursor div.CodeMirror-cursors {
72
  z-index: 1;
73
}
74

    
75
.cm-animate-fat-cursor {
76
  width: auto;
77
  border: 0;
78
  -webkit-animation: blink 1.06s steps(1) infinite;
79
  -moz-animation: blink 1.06s steps(1) infinite;
80
  animation: blink 1.06s steps(1) infinite;
81
}
82
@-moz-keyframes blink {
83
  0% { background: #7e7; }
84
  50% { background: none; }
85
  100% { background: #7e7; }
86
}
87
@-webkit-keyframes blink {
88
  0% { background: #7e7; }
89
  50% { background: none; }
90
  100% { background: #7e7; }
91
}
92
@keyframes blink {
93
  0% { background: #7e7; }
94
  50% { background: none; }
95
  100% { background: #7e7; }
96
}
97

    
98
/* Can style cursor different in overwrite (non-insert) mode */
99
div.CodeMirror-overwrite div.CodeMirror-cursor {}
100

    
101
.cm-tab { display: inline-block; text-decoration: inherit; }
102

    
103
.CodeMirror-ruler {
104
  border-left: 1px solid #ccc;
105
  position: absolute;
106
}
107

    
108
/* DEFAULT THEME */
109

    
110
.cm-s-default .cm-keyword {color: #708;}
111
.cm-s-default .cm-atom {color: #219;}
112
.cm-s-default .cm-number {color: #164;}
113
.cm-s-default .cm-def {color: #00f;}
114
.cm-s-default .cm-variable,
115
.cm-s-default .cm-punctuation,
116
.cm-s-default .cm-property,
117
.cm-s-default .cm-operator {}
118
.cm-s-default .cm-variable-2 {color: #05a;}
119
.cm-s-default .cm-variable-3 {color: #085;}
120
.cm-s-default .cm-comment {color: #a50;}
121
.cm-s-default .cm-string {color: #a11;}
122
.cm-s-default .cm-string-2 {color: #f50;}
123
.cm-s-default .cm-meta {color: #555;}
124
.cm-s-default .cm-qualifier {color: #555;}
125
.cm-s-default .cm-builtin {color: #30a;}
126
.cm-s-default .cm-bracket {color: #997;}
127
.cm-s-default .cm-tag {color: #170;}
128
.cm-s-default .cm-attribute {color: #00c;}
129
.cm-s-default .cm-header {color: blue;}
130
.cm-s-default .cm-quote {color: #090;}
131
.cm-s-default .cm-hr {color: #999;}
132
.cm-s-default .cm-link {color: #00c;}
133

    
134
.cm-negative {color: #d44;}
135
.cm-positive {color: #292;}
136
.cm-header, .cm-strong {font-weight: bold;}
137
.cm-em {font-style: italic;}
138
.cm-link {text-decoration: underline;}
139
.cm-strikethrough {text-decoration: line-through;}
140

    
141
.cm-s-default .cm-error {color: #f00;}
142
.cm-invalidchar {color: #f00;}
143

    
144
/* Default styles for common addons */
145

    
146
div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;}
147
div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
148
.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }
149
.CodeMirror-activeline-background {background: #e8f2ff;}
150

    
151
/* STOP */
152

    
153
/* The rest of this file contains styles related to the mechanics of
154
   the editor. You probably shouldn't touch them. */
155

    
156
.CodeMirror {
157
  position: relative;
158
  overflow: hidden;
159
  background: white;
160
}
161

    
162
.CodeMirror-scroll {
163
  overflow: scroll !important; /* Things will break if this is overridden */
164
  /* 30px is the magic margin used to hide the element's real scrollbars */
165
  /* See overflow: hidden in .CodeMirror */
166
  margin-bottom: -30px; margin-right: -30px;
167
  padding-bottom: 30px;
168
  height: 100%;
169
  outline: none; /* Prevent dragging from highlighting the element */
170
  position: relative;
171
  -moz-box-sizing: content-box;
172
  box-sizing: content-box;
173
}
174
.CodeMirror-sizer {
175
  position: relative;
176
  border-right: 30px solid transparent;
177
  -moz-box-sizing: content-box;
178
  box-sizing: content-box;
179
}
180

    
181
/* The fake, visible scrollbars. Used to force redraw during scrolling
182
   before actuall scrolling happens, thus preventing shaking and
183
   flickering artifacts. */
184
.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
185
  position: absolute;
186
  z-index: 6;
187
  display: none;
188
}
189
.CodeMirror-vscrollbar {
190
  right: 0; top: 0;
191
  overflow-x: hidden;
192
  overflow-y: scroll;
193
}
194
.CodeMirror-hscrollbar {
195
  bottom: 0; left: 0;
196
  overflow-y: hidden;
197
  overflow-x: scroll;
198
}
199
.CodeMirror-scrollbar-filler {
200
  right: 0; bottom: 0;
201
}
202
.CodeMirror-gutter-filler {
203
  left: 0; bottom: 0;
204
}
205

    
206
.CodeMirror-gutters {
207
  position: absolute; left: 0; top: 0;
208
  z-index: 3;
209
}
210
.CodeMirror-gutter {
211
  white-space: normal;
212
  height: 100%;
213
  -moz-box-sizing: content-box;
214
  box-sizing: content-box;
215
  display: inline-block;
216
  margin-bottom: -30px;
217
  /* Hack to make IE7 behave */
218
  *zoom:1;
219
  *display:inline;
220
}
221
.CodeMirror-gutter-wrapper {
222
  position: absolute;
223
  z-index: 4;
224
  height: 100%;
225
}
226
.CodeMirror-gutter-elt {
227
  position: absolute;
228
  cursor: default;
229
  z-index: 4;
230
}
231
.CodeMirror-gutter-wrapper {
232
  -webkit-user-select: none;
233
  -moz-user-select: none;
234
  user-select: none;
235
}
236

    
237
.CodeMirror-lines {
238
  cursor: text;
239
  min-height: 1px; /* prevents collapsing before first draw */
240
}
241
.CodeMirror pre {
242
  /* Reset some styles that the rest of the page might have set */
243
  -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;
244
  border-width: 0;
245
  background: transparent;
246
  font-family: inherit;
247
  font-size: inherit;
248
  margin: 0;
249
  white-space: pre;
250
  word-wrap: normal;
251
  line-height: inherit;
252
  color: inherit;
253
  z-index: 2;
254
  position: relative;
255
  overflow: visible;
256
  -webkit-tap-highlight-color: transparent;
257
}
258
.CodeMirror-wrap pre {
259
  word-wrap: break-word;
260
  white-space: pre-wrap;
261
  word-break: normal;
262
}
263

    
264
.CodeMirror-linebackground {
265
  position: absolute;
266
  left: 0; right: 0; top: 0; bottom: 0;
267
  z-index: 0;
268
}
269

    
270
.CodeMirror-linewidget {
271
  position: relative;
272
  z-index: 2;
273
  overflow: auto;
274
}
275

    
276
.CodeMirror-widget {}
277

    
278
.CodeMirror-code {
279
  outline: none;
280
}
281

    
282
.CodeMirror-measure {
283
  position: absolute;
284
  width: 100%;
285
  height: 0;
286
  overflow: hidden;
287
  visibility: hidden;
288
}
289
.CodeMirror-measure pre { position: static; }
290

    
291
.CodeMirror div.CodeMirror-cursor {
292
  position: absolute;
293
  border-right: none;
294
  width: 0;
295
}
296

    
297
div.CodeMirror-cursors {
298
  visibility: hidden;
299
  position: relative;
300
  z-index: 3;
301
}
302
.CodeMirror-focused div.CodeMirror-cursors {
303
  visibility: visible;
304
}
305

    
306
.CodeMirror-selected { background: #d9d9d9; }
307
.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }
308
.CodeMirror-crosshair { cursor: crosshair; }
309
.CodeMirror ::selection { background: #d7d4f0; }
310
.CodeMirror ::-moz-selection { background: #d7d4f0; }
311

    
312
.cm-searching {
313
  background: #ffa;
314
  background: rgba(255, 255, 0, .4);
315
}
316

    
317
/* IE7 hack to prevent it from returning funny offsetTops on the spans */
318
.CodeMirror span { *vertical-align: text-bottom; }
319

    
320
/* Used to force a border model for a node */
321
.cm-force-border { padding-right: .1px; }
322

    
323
@media print {
324
  /* Hide the cursor when printing */
325
  .CodeMirror div.CodeMirror-cursors {
326
    visibility: hidden;
327
  }
328
}
329

    
330
/* See issue #2901 */
331
.cm-tab-wrap-hack:after { content: ''; }
332

    
333
/* Help users use markselection to safely style text background */
334
span.CodeMirror-selectedtext { background: none; }
335

    
336

    
337
/* Hints */
338

    
339
.CodeMirror-hints {
340
  position: absolute;
341
  z-index: 10;
342
  overflow: hidden;
343
  list-style: none;
344

    
345
  margin: 0;
346
  padding: 2px;
347

    
348
  -webkit-box-shadow: 2px 3px 5px rgba(0,0,0,.2);
349
  -moz-box-shadow: 2px 3px 5px rgba(0,0,0,.2);
350
  box-shadow: 2px 3px 5px rgba(0,0,0,.2);
351
  border-radius: 3px;
352
  border: 1px solid silver;
353

    
354
  background: white;
355
  font-size: 90%;
356
  font-family: monospace;
357

    
358
  max-height: 20em;
359
  overflow-y: auto;
360
}
361

    
362
.CodeMirror-hint {
363
  margin: 0;
364
  padding: 0 4px;
365
  border-radius: 2px;
366
  max-width: 19em;
367
  overflow: hidden;
368
  white-space: pre;
369
  color: black;
370
  cursor: pointer;
371
}
372

    
373
li.CodeMirror-hint-active {
374
  background: #08f;
375
  color: white;
376
}
377

    
    (1-1/1)