[ Index ] |
PHP Cross Reference of MyBB 1.8.38 |
[Summary view] [Print] [Text view]
1 /* BASICS */ 2 3 .CodeMirror { 4 /* Set height, width, borders, and global font properties here */ 5 font-family: monospace; 6 height: 300px; 7 color: black; 8 direction: ltr; 9 } 10 11 /* PADDING */ 12 13 .CodeMirror-lines { 14 padding: 4px 0; /* Vertical padding around content */ 15 } 16 .CodeMirror pre { 17 padding: 0 4px; /* Horizontal padding of content */ 18 } 19 20 .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler { 21 background-color: white; /* The little square between H and V scrollbars */ 22 } 23 24 /* GUTTER */ 25 26 .CodeMirror-gutters { 27 border-right: 1px solid #ddd; 28 background-color: #f7f7f7; 29 white-space: nowrap; 30 } 31 .CodeMirror-linenumbers {} 32 .CodeMirror-linenumber { 33 padding: 0 3px 0 5px; 34 min-width: 20px; 35 text-align: right; 36 color: #999; 37 white-space: nowrap; 38 } 39 40 .CodeMirror-guttermarker { color: black; } 41 .CodeMirror-guttermarker-subtle { color: #999; } 42 43 /* CURSOR */ 44 45 .CodeMirror-cursor { 46 border-left: 1px solid black; 47 border-right: none; 48 width: 0; 49 } 50 /* Shown when moving in bi-directional text */ 51 .CodeMirror div.CodeMirror-secondarycursor { 52 border-left: 1px solid silver; 53 } 54 .cm-fat-cursor .CodeMirror-cursor { 55 width: auto; 56 border: 0 !important; 57 background: #7e7; 58 } 59 .cm-fat-cursor div.CodeMirror-cursors { 60 z-index: 1; 61 } 62 63 .cm-animate-fat-cursor { 64 width: auto; 65 border: 0; 66 -webkit-animation: blink 1.06s steps(1) infinite; 67 -moz-animation: blink 1.06s steps(1) infinite; 68 animation: blink 1.06s steps(1) infinite; 69 background-color: #7e7; 70 } 71 @-moz-keyframes blink { 72 0% {} 73 50% { background-color: transparent; } 74 100% {} 75 } 76 @-webkit-keyframes blink { 77 0% {} 78 50% { background-color: transparent; } 79 100% {} 80 } 81 @keyframes blink { 82 0% {} 83 50% { background-color: transparent; } 84 100% {} 85 } 86 87 /* Can style cursor different in overwrite (non-insert) mode */ 88 .CodeMirror-overwrite .CodeMirror-cursor {} 89 90 .cm-tab { display: inline-block; text-decoration: inherit; } 91 92 .CodeMirror-rulers { 93 position: absolute; 94 left: 0; right: 0; top: -50px; bottom: -20px; 95 overflow: hidden; 96 } 97 .CodeMirror-ruler { 98 border-left: 1px solid #ccc; 99 top: 0; bottom: 0; 100 position: absolute; 101 } 102 103 /* DEFAULT THEME */ 104 105 .cm-s-default .cm-header {color: blue;} 106 .cm-s-default .cm-quote {color: #090;} 107 .cm-negative {color: #d44;} 108 .cm-positive {color: #292;} 109 .cm-header, .cm-strong {font-weight: bold;} 110 .cm-em {font-style: italic;} 111 .cm-link {text-decoration: underline;} 112 .cm-strikethrough {text-decoration: line-through;} 113 114 .cm-s-default .cm-keyword {color: #708;} 115 .cm-s-default .cm-atom {color: #219;} 116 .cm-s-default .cm-number {color: #164;} 117 .cm-s-default .cm-def {color: #00f;} 118 .cm-s-default .cm-variable, 119 .cm-s-default .cm-punctuation, 120 .cm-s-default .cm-property, 121 .cm-s-default .cm-operator {} 122 .cm-s-default .cm-variable-2 {color: #05a;} 123 .cm-s-default .cm-variable-3, .cm-s-default .cm-type {color: #085;} 124 .cm-s-default .cm-comment {color: #a50;} 125 .cm-s-default .cm-string {color: #a11;} 126 .cm-s-default .cm-string-2 {color: #f50;} 127 .cm-s-default .cm-meta {color: #555;} 128 .cm-s-default .cm-qualifier {color: #555;} 129 .cm-s-default .cm-builtin {color: #30a;} 130 .cm-s-default .cm-bracket {color: #997;} 131 .cm-s-default .cm-tag {color: #170;} 132 .cm-s-default .cm-attribute {color: #00c;} 133 .cm-s-default .cm-hr {color: #999;} 134 .cm-s-default .cm-link {color: #00c;} 135 136 .cm-s-default .cm-error {color: #f00;} 137 .cm-invalidchar {color: #f00;} 138 139 .CodeMirror-composing { border-bottom: 2px solid; } 140 141 /* Default styles for common addons */ 142 143 div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;} 144 div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;} 145 .CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); } 146 .CodeMirror-activeline-background {background: #e8f2ff;} 147 148 /* STOP */ 149 150 /* The rest of this file contains styles related to the mechanics of 151 the editor. You probably shouldn't touch them. */ 152 153 .CodeMirror { 154 position: relative; 155 overflow: hidden; 156 background: white; 157 } 158 159 .CodeMirror-scroll { 160 overflow: scroll !important; /* Things will break if this is overridden */ 161 /* 30px is the magic margin used to hide the element's real scrollbars */ 162 /* See overflow: hidden in .CodeMirror */ 163 margin-bottom: -30px; margin-right: -30px; 164 padding-bottom: 30px; 165 height: 100%; 166 outline: none; /* Prevent dragging from highlighting the element */ 167 position: relative; 168 } 169 .CodeMirror-sizer { 170 position: relative; 171 border-right: 30px solid transparent; 172 } 173 174 /* The fake, visible scrollbars. Used to force redraw during scrolling 175 before actual scrolling happens, thus preventing shaking and 176 flickering artifacts. */ 177 .CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler { 178 position: absolute; 179 z-index: 6; 180 display: none; 181 } 182 .CodeMirror-vscrollbar { 183 right: 0; top: 0; 184 overflow-x: hidden; 185 overflow-y: scroll; 186 } 187 .CodeMirror-hscrollbar { 188 bottom: 0; left: 0; 189 overflow-y: hidden; 190 overflow-x: scroll; 191 } 192 .CodeMirror-scrollbar-filler { 193 right: 0; bottom: 0; 194 } 195 .CodeMirror-gutter-filler { 196 left: 0; bottom: 0; 197 } 198 199 .CodeMirror-gutters { 200 position: absolute; left: 0; top: 0; 201 min-height: 100%; 202 z-index: 3; 203 } 204 .CodeMirror-gutter { 205 white-space: normal; 206 height: 100%; 207 display: inline-block; 208 vertical-align: top; 209 margin-bottom: -30px; 210 } 211 .CodeMirror-gutter-wrapper { 212 position: absolute; 213 z-index: 4; 214 background: none !important; 215 border: none !important; 216 } 217 .CodeMirror-gutter-background { 218 position: absolute; 219 top: 0; bottom: 0; 220 z-index: 4; 221 } 222 .CodeMirror-gutter-elt { 223 position: absolute; 224 cursor: default; 225 z-index: 4; 226 } 227 .CodeMirror-gutter-wrapper ::selection { background-color: transparent } 228 .CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent } 229 230 .CodeMirror-lines { 231 cursor: text; 232 min-height: 1px; /* prevents collapsing before first draw */ 233 } 234 .CodeMirror pre { 235 /* Reset some styles that the rest of the page might have set */ 236 -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0; 237 border-width: 0; 238 background: transparent; 239 font-family: inherit; 240 font-size: inherit; 241 margin: 0; 242 white-space: pre; 243 word-wrap: normal; 244 line-height: inherit; 245 color: inherit; 246 z-index: 2; 247 position: relative; 248 overflow: visible; 249 -webkit-tap-highlight-color: transparent; 250 -webkit-font-variant-ligatures: contextual; 251 font-variant-ligatures: contextual; 252 } 253 .CodeMirror-wrap pre { 254 word-wrap: break-word; 255 white-space: pre-wrap; 256 word-break: normal; 257 } 258 259 .CodeMirror-linebackground { 260 position: absolute; 261 left: 0; right: 0; top: 0; bottom: 0; 262 z-index: 0; 263 } 264 265 .CodeMirror-linewidget { 266 position: relative; 267 z-index: 2; 268 overflow: auto; 269 } 270 271 .CodeMirror-widget {} 272 273 .CodeMirror-rtl pre { direction: rtl; } 274 275 .CodeMirror-code { 276 outline: none; 277 } 278 279 /* Force content-box sizing for the elements where we expect it */ 280 .CodeMirror-scroll, 281 .CodeMirror-sizer, 282 .CodeMirror-gutter, 283 .CodeMirror-gutters, 284 .CodeMirror-linenumber { 285 -moz-box-sizing: content-box; 286 box-sizing: content-box; 287 } 288 289 .CodeMirror-measure { 290 position: absolute; 291 width: 100%; 292 height: 0; 293 overflow: hidden; 294 visibility: hidden; 295 } 296 297 .CodeMirror-cursor { 298 position: absolute; 299 pointer-events: none; 300 } 301 .CodeMirror-measure pre { position: static; } 302 303 div.CodeMirror-cursors { 304 visibility: hidden; 305 position: relative; 306 z-index: 3; 307 } 308 div.CodeMirror-dragcursors { 309 visibility: visible; 310 } 311 312 .CodeMirror-focused div.CodeMirror-cursors { 313 visibility: visible; 314 } 315 316 .CodeMirror-selected { background: #d9d9d9; } 317 .CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; } 318 .CodeMirror-crosshair { cursor: crosshair; } 319 .CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; } 320 .CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; } 321 322 .cm-searching { 323 background-color: #ffa; 324 background-color: rgba(255, 255, 0, .4); 325 } 326 327 /* Used to force a border model for a node */ 328 .cm-force-border { padding-right: .1px; } 329 330 @media print { 331 /* Hide the cursor when printing */ 332 .CodeMirror div.CodeMirror-cursors { 333 visibility: hidden; 334 } 335 } 336 337 /* See issue #2901 */ 338 .cm-tab-wrap-hack:after { content: ''; } 339 340 /* Help users use markselection to safely style text background */ 341 span.CodeMirror-selectedtext { background: none; }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
2005 - 2021 © MyBB.de | Alle Rechte vorbehalten! | Sponsor: netcup | Cross-referenced by PHPXref |