| 1 |
/* NOAUTORTL */ |
| 2 |
.rtl .CodeMirror { |
| 3 |
direction: ltr; /* code should always be written left to right */ |
| 4 |
} |
| 5 |
/* BASICS */ |
| 6 |
.CodeMirror { |
| 7 |
/* Set height, width, borders, and global font properties here */ |
| 8 |
font-family: monospace; |
| 9 |
height: 400px; |
| 10 |
} |
| 11 |
.CodeMirror-scroll { |
| 12 |
/* Set scrolling behaviour here */ |
| 13 |
overflow: auto; |
| 14 |
} |
| 15 |
|
| 16 |
/* PADDING */ |
| 17 |
|
| 18 |
.CodeMirror-lines { |
| 19 |
padding: 4px 0; /* Vertical padding around content */ |
| 20 |
} |
| 21 |
.CodeMirror pre { |
| 22 |
padding: 0 4px; /* Horizontal padding of content */ |
| 23 |
} |
| 24 |
|
| 25 |
.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler { |
| 26 |
background-color: white; /* The little square between H and V scrollbars */ |
| 27 |
} |
| 28 |
|
| 29 |
/* GUTTER */ |
| 30 |
|
| 31 |
.CodeMirror-gutters { |
| 32 |
border-right: 1px solid #ddd; |
| 33 |
background-color: #f7f7f7; |
| 34 |
white-space: nowrap; |
| 35 |
} |
| 36 |
.CodeMirror-linenumbers {} |
| 37 |
.CodeMirror-linenumber { |
| 38 |
padding: 0 3px 0 5px; |
| 39 |
min-width: 20px; |
| 40 |
text-align: right; |
| 41 |
color: #999; |
| 42 |
} |
| 43 |
|
| 44 |
/* CURSOR */ |
| 45 |
|
| 46 |
.CodeMirror div.CodeMirror-cursor { |
| 47 |
border-left: 1px solid black; |
| 48 |
z-index: 3; |
| 49 |
} |
| 50 |
/* Shown when moving in bi-directional text */ |
| 51 |
.CodeMirror div.CodeMirror-secondarycursor { |
| 52 |
border-left: 1px solid silver; |
| 53 |
} |
| 54 |
.CodeMirror.cm-keymap-fat-cursor div.CodeMirror-cursor { |
| 55 |
width: auto; |
| 56 |
border: 0; |
| 57 |
background: #7e7; |
| 58 |
z-index: 1; |
| 59 |
} |
| 60 |
/* Can style cursor different in overwrite (non-insert) mode */ |
| 61 |
.CodeMirror div.CodeMirror-cursor.CodeMirror-overwrite {} |
| 62 |
|
| 63 |
.cm-tab { display: inline-block; } |
| 64 |
|
| 65 |
/* DEFAULT THEME */ |
| 66 |
|
| 67 |
.cm-s-default .cm-keyword {color: #708;} |
| 68 |
.cm-s-default .cm-atom {color: #219;} |
| 69 |
.cm-s-default .cm-number {color: #164;} |
| 70 |
.cm-s-default .cm-def {color: #00f;} |
| 71 |
.cm-s-default .cm-variable {color: black;} |
| 72 |
.cm-s-default .cm-variable-2 {color: #05a;} |
| 73 |
.cm-s-default .cm-variable-3 {color: #085;} |
| 74 |
.cm-s-default .cm-property {color: black;} |
| 75 |
.cm-s-default .cm-operator {color: black;} |
| 76 |
.cm-s-default .cm-comment {color: #a50;} |
| 77 |
.cm-s-default .cm-string {color: #a11;} |
| 78 |
.cm-s-default .cm-string-2 {color: #f50;} |
| 79 |
.cm-s-default .cm-meta {color: #555;} |
| 80 |
.cm-s-default .cm-error {color: #f00;} |
| 81 |
.cm-s-default .cm-qualifier {color: #555;} |
| 82 |
.cm-s-default .cm-builtin {color: #30a;} |
| 83 |
.cm-s-default .cm-bracket {color: #997;} |
| 84 |
.cm-s-default .cm-tag {color: #170;} |
| 85 |
.cm-s-default .cm-attribute {color: #00c;} |
| 86 |
.cm-s-default .cm-header {color: blue;} |
| 87 |
.cm-s-default .cm-quote {color: #090;} |
| 88 |
.cm-s-default .cm-hr {color: #999;} |
| 89 |
.cm-s-default .cm-link {color: #00c;} |
| 90 |
|
| 91 |
.cm-negative {color: #d44;} |
| 92 |
.cm-positive {color: #292;} |
| 93 |
.cm-header, .cm-strong {font-weight: bold;} |
| 94 |
.cm-em {font-style: italic;} |
| 95 |
.cm-link {text-decoration: underline;} |
| 96 |
|
| 97 |
.cm-invalidchar {color: #f00;} |
| 98 |
|
| 99 |
div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;} |
| 100 |
div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;} |
| 101 |
.CodeMirror-activeline-background {background: #e8f2ff;} |
| 102 |
|
| 103 |
/* STOP */ |
| 104 |
|
| 105 |
/* The rest of this file contains styles related to the mechanics of |
| 106 |
the editor. You probably shouldn't touch them. */ |
| 107 |
|
| 108 |
.CodeMirror { |
| 109 |
line-height: 1; |
| 110 |
position: relative; |
| 111 |
overflow: hidden; |
| 112 |
background: white; |
| 113 |
color: black; |
| 114 |
} |
| 115 |
|
| 116 |
.CodeMirror-scroll { |
| 117 |
/* 30px is the magic margin used to hide the element's real scrollbars */ |
| 118 |
/* See overflow: hidden in .CodeMirror */ |
| 119 |
margin-bottom: -30px; margin-right: -30px; |
| 120 |
padding-bottom: 30px; padding-right: 30px; |
| 121 |
height: 100%; |
| 122 |
outline: none; /* Prevent dragging from highlighting the element */ |
| 123 |
position: relative; |
| 124 |
} |
| 125 |
.CodeMirror-sizer { |
| 126 |
position: relative; |
| 127 |
} |
| 128 |
|
| 129 |
/* The fake, visible scrollbars. Used to force redraw during scrolling |
| 130 |
before actuall scrolling happens, thus preventing shaking and |
| 131 |
flickering artifacts. */ |
| 132 |
.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler { |
| 133 |
position: absolute; |
| 134 |
z-index: 6; |
| 135 |
display: none; |
| 136 |
} |
| 137 |
.CodeMirror-vscrollbar { |
| 138 |
right: 0; top: 0; |
| 139 |
overflow-x: hidden; |
| 140 |
overflow-y: scroll; |
| 141 |
} |
| 142 |
.CodeMirror-hscrollbar { |
| 143 |
bottom: 0; left: 0; |
| 144 |
overflow-y: hidden; |
| 145 |
overflow-x: scroll; |
| 146 |
} |
| 147 |
.CodeMirror-scrollbar-filler { |
| 148 |
right: 0; bottom: 0; |
| 149 |
} |
| 150 |
.CodeMirror-gutter-filler { |
| 151 |
left: 0; bottom: 0; |
| 152 |
} |
| 153 |
|
| 154 |
.CodeMirror-gutters { |
| 155 |
position: absolute; left: 0; top: 0; |
| 156 |
padding-bottom: 30px; |
| 157 |
z-index: 3; |
| 158 |
} |
| 159 |
.CodeMirror-gutter { |
| 160 |
white-space: normal; |
| 161 |
height: 100%; |
| 162 |
padding-bottom: 30px; |
| 163 |
margin-bottom: -32px; |
| 164 |
display: inline-block; |
| 165 |
/* Hack to make IE7 behave */ |
| 166 |
*zoom:1; |
| 167 |
*display:inline; |
| 168 |
} |
| 169 |
.CodeMirror-gutter-elt { |
| 170 |
position: absolute; |
| 171 |
cursor: default; |
| 172 |
z-index: 4; |
| 173 |
} |
| 174 |
|
| 175 |
.CodeMirror-lines { |
| 176 |
cursor: text; |
| 177 |
} |
| 178 |
.CodeMirror pre { |
| 179 |
/* Reset some styles that the rest of the page might have set */ |
| 180 |
-moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0; |
| 181 |
border-width: 0; |
| 182 |
background: transparent; |
| 183 |
font-family: inherit; |
| 184 |
font-size: inherit; |
| 185 |
margin: 0; |
| 186 |
white-space: pre; |
| 187 |
word-wrap: normal; |
| 188 |
line-height: inherit; |
| 189 |
color: inherit; |
| 190 |
z-index: 2; |
| 191 |
position: relative; |
| 192 |
overflow: visible; |
| 193 |
} |
| 194 |
.CodeMirror-wrap pre { |
| 195 |
word-wrap: break-word; |
| 196 |
white-space: pre-wrap; |
| 197 |
word-break: normal; |
| 198 |
} |
| 199 |
.CodeMirror-code pre { |
| 200 |
border-right: 30px solid transparent; |
| 201 |
width: -webkit-fit-content; |
| 202 |
width: -moz-fit-content; |
| 203 |
width: fit-content; |
| 204 |
} |
| 205 |
.CodeMirror-wrap .CodeMirror-code pre { |
| 206 |
border-right: none; |
| 207 |
width: auto; |
| 208 |
} |
| 209 |
.CodeMirror-linebackground { |
| 210 |
position: absolute; |
| 211 |
left: 0; right: 0; top: 0; bottom: 0; |
| 212 |
z-index: 0; |
| 213 |
} |
| 214 |
|
| 215 |
.CodeMirror-linewidget { |
| 216 |
position: relative; |
| 217 |
z-index: 2; |
| 218 |
overflow: auto; |
| 219 |
} |
| 220 |
|
| 221 |
.CodeMirror-widget { |
| 222 |
} |
| 223 |
|
| 224 |
.CodeMirror-wrap .CodeMirror-scroll { |
| 225 |
overflow-x: hidden; |
| 226 |
} |
| 227 |
|
| 228 |
.CodeMirror-measure { |
| 229 |
position: absolute; |
| 230 |
width: 100%; height: 0px; |
| 231 |
overflow: hidden; |
| 232 |
visibility: hidden; |
| 233 |
} |
| 234 |
.CodeMirror-measure pre { position: static; } |
| 235 |
|
| 236 |
.CodeMirror div.CodeMirror-cursor { |
| 237 |
position: absolute; |
| 238 |
visibility: hidden; |
| 239 |
border-right: none; |
| 240 |
width: 0; |
| 241 |
} |
| 242 |
.CodeMirror-focused div.CodeMirror-cursor { |
| 243 |
visibility: visible; |
| 244 |
} |
| 245 |
|
| 246 |
.CodeMirror-selected { background: #d9d9d9; } |
| 247 |
.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; } |
| 248 |
|
| 249 |
.cm-searching { |
| 250 |
background: #ffa; |
| 251 |
background: rgba(255, 255, 0, .4); |
| 252 |
} |
| 253 |
|
| 254 |
/* IE7 hack to prevent it from returning funny offsetTops on the spans */ |
| 255 |
.CodeMirror span { *vertical-align: text-bottom; } |
| 256 |
|
| 257 |
@media print { |
| 258 |
/* Hide the cursor when printing */ |
| 259 |
.CodeMirror div.CodeMirror-cursor { |
| 260 |
visibility: hidden; |
| 261 |
} |
| 262 |
} |
| 263 |
|