Zeile 4 | Zeile 4 |
---|
/* Set height, width, borders, and global font properties here */ font-family: monospace; height: 300px;
|
/* Set height, width, borders, and global font properties here */ font-family: monospace; height: 300px;
|
} .CodeMirror-scroll { /* Set scrolling behaviour here */ overflow: auto;
| |
}
/* PADDING */
| }
/* PADDING */
|
Zeile 21 | Zeile 17 |
---|
.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler { background-color: white; /* The little square between H and V scrollbars */
|
.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler { background-color: white; /* The little square between H and V scrollbars */
|
}
/* GUTTER */
| }
/* GUTTER */
|
.CodeMirror-gutters { border-right: 1px solid #ddd; background-color: #f7f7f7;
| .CodeMirror-gutters { border-right: 1px solid #ddd; background-color: #f7f7f7;
|
Zeile 41 | Zeile 37 |
---|
}
.CodeMirror-guttermarker { color: black; }
|
}
.CodeMirror-guttermarker { color: black; }
|
.CodeMirror-guttermarker-subtle { color: #999; }
| .CodeMirror-guttermarker-subtle { color: #999; }
|
/* CURSOR */
.CodeMirror div.CodeMirror-cursor { border-left: 1px solid black;
|
/* CURSOR */
.CodeMirror div.CodeMirror-cursor { border-left: 1px solid black;
|
}
| }
|
/* Shown when moving in bi-directional text */ .CodeMirror div.CodeMirror-secondarycursor { border-left: 1px solid silver;
|
/* Shown when moving in bi-directional text */ .CodeMirror div.CodeMirror-secondarycursor { border-left: 1px solid silver;
|
} .CodeMirror.cm-keymap-fat-cursor div.CodeMirror-cursor {
| } .CodeMirror.cm-fat-cursor div.CodeMirror-cursor {
|
width: auto; border: 0; background: #7e7; }
|
width: auto; border: 0; background: #7e7; }
|
| .CodeMirror.cm-fat-cursor div.CodeMirror-cursors { z-index: 1; }
|
.cm-animate-fat-cursor { width: auto; border: 0;
| .cm-animate-fat-cursor { width: auto; border: 0;
|
Zeile 65 | Zeile 65 |
---|
animation: blink 1.06s steps(1) infinite; } @-moz-keyframes blink {
|
animation: blink 1.06s steps(1) infinite; } @-moz-keyframes blink {
|
0% { background: #7e7; } 50% { background: none; }
| 0% { background: #7e7; } 50% { background: none; }
|
100% { background: #7e7; } } @-webkit-keyframes blink {
|
100% { background: #7e7; } } @-webkit-keyframes blink {
|
0% { background: #7e7; }
| 0% { background: #7e7; }
|
50% { background: none; } 100% { background: #7e7; } }
| 50% { background: none; } 100% { background: #7e7; } }
|
Zeile 78 | Zeile 78 |
---|
0% { background: #7e7; } 50% { background: none; } 100% { background: #7e7; }
|
0% { background: #7e7; } 50% { background: none; } 100% { background: #7e7; }
|
}
| }
|
/* Can style cursor different in overwrite (non-insert) mode */ div.CodeMirror-overwrite div.CodeMirror-cursor {}
|
/* Can style cursor different in overwrite (non-insert) mode */ div.CodeMirror-overwrite div.CodeMirror-cursor {}
|
.cm-tab { display: inline-block; }
| .cm-tab { display: inline-block; text-decoration: inherit; }
|
.CodeMirror-ruler { border-left: 1px solid #ccc;
| .CodeMirror-ruler { border-left: 1px solid #ccc;
|
Zeile 121 | Zeile 121 |
---|
.cm-header, .cm-strong {font-weight: bold;} .cm-em {font-style: italic;} .cm-link {text-decoration: underline;}
|
.cm-header, .cm-strong {font-weight: bold;} .cm-em {font-style: italic;} .cm-link {text-decoration: underline;}
|
| .cm-strikethrough {text-decoration: line-through;}
|
.cm-s-default .cm-error {color: #f00;} .cm-invalidchar {color: #f00;}
| .cm-s-default .cm-error {color: #f00;} .cm-invalidchar {color: #f00;}
|
Zeile 146 | Zeile 147 |
---|
}
.CodeMirror-scroll {
|
}
.CodeMirror-scroll {
|
| overflow: scroll !important; /* Things will break if this is overridden */
|
/* 30px is the magic margin used to hide the element's real scrollbars */ /* See overflow: hidden in .CodeMirror */ margin-bottom: -30px; margin-right: -30px; padding-bottom: 30px; height: 100%; outline: none; /* Prevent dragging from highlighting the element */
|
/* 30px is the magic margin used to hide the element's real scrollbars */ /* See overflow: hidden in .CodeMirror */ margin-bottom: -30px; margin-right: -30px; padding-bottom: 30px; height: 100%; outline: none; /* Prevent dragging from highlighting the element */
|
position: relative;
| position: relative;
|
-moz-box-sizing: content-box; box-sizing: content-box; }
| -moz-box-sizing: content-box; box-sizing: content-box; }
|
Zeile 190 | Zeile 192 |
---|
.CodeMirror-gutters { position: absolute; left: 0; top: 0;
|
.CodeMirror-gutters { position: absolute; left: 0; top: 0;
|
padding-bottom: 30px;
| |
z-index: 3; } .CodeMirror-gutter {
| z-index: 3; } .CodeMirror-gutter {
|
Zeile 198 | Zeile 199 |
---|
height: 100%; -moz-box-sizing: content-box; box-sizing: content-box;
|
height: 100%; -moz-box-sizing: content-box; box-sizing: content-box;
|
padding-bottom: 30px; margin-bottom: -32px;
| |
display: inline-block;
|
display: inline-block;
|
| margin-bottom: -30px;
|
/* Hack to make IE7 behave */ *zoom:1; *display:inline;
|
/* Hack to make IE7 behave */ *zoom:1; *display:inline;
|
| } .CodeMirror-gutter-wrapper { position: absolute; z-index: 4; height: 100%;
|
} .CodeMirror-gutter-elt { position: absolute;
| } .CodeMirror-gutter-elt { position: absolute;
|
Zeile 213 | Zeile 218 |
---|
.CodeMirror-lines { cursor: text;
|
.CodeMirror-lines { cursor: text;
|
| min-height: 1px; /* prevents collapsing before first draw */
|
} .CodeMirror pre { /* Reset some styles that the rest of the page might have set */
| } .CodeMirror pre { /* Reset some styles that the rest of the page might have set */
|
Zeile 249 | Zeile 255 |
---|
}
.CodeMirror-widget {}
|
}
.CodeMirror-widget {}
|
.CodeMirror-wrap .CodeMirror-scroll { overflow-x: hidden; }
| |
.CodeMirror-measure { position: absolute;
| .CodeMirror-measure { position: absolute;
|
Zeile 262 | Zeile 264 |
---|
visibility: hidden; } .CodeMirror-measure pre { position: static; }
|
visibility: hidden; } .CodeMirror-measure pre { position: static; }
|
|
|
.CodeMirror div.CodeMirror-cursor { position: absolute; border-right: none; width: 0;
|
.CodeMirror div.CodeMirror-cursor { position: absolute; border-right: none; width: 0;
|
}
| }
|
div.CodeMirror-cursors { visibility: hidden; position: relative;
|
div.CodeMirror-cursors { visibility: hidden; position: relative;
|
z-index: 1; }
| z-index: 3; }
|
.CodeMirror-focused div.CodeMirror-cursors { visibility: visible;
|
.CodeMirror-focused div.CodeMirror-cursors { visibility: visible;
|
}
| }
|
.CodeMirror-selected { background: #d9d9d9; } .CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }
| .CodeMirror-selected { background: #d9d9d9; } .CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }
|
Zeile 285 | Zeile 287 |
---|
.cm-searching { background: #ffa; background: rgba(255, 255, 0, .4);
|
.cm-searching { background: #ffa; background: rgba(255, 255, 0, .4);
|
}
| }
|
/* IE7 hack to prevent it from returning funny offsetTops on the spans */ .CodeMirror span { *vertical-align: text-bottom; }
|
/* IE7 hack to prevent it from returning funny offsetTops on the spans */ .CodeMirror span { *vertical-align: text-bottom; }
|
|
|
/* Used to force a border model for a node */ .cm-force-border { padding-right: .1px; }
| /* Used to force a border model for a node */ .cm-force-border { padding-right: .1px; }
|
Zeile 299 | Zeile 301 |
---|
visibility: hidden; } }
|
visibility: hidden; } }
|
| /* See issue #2901 */ .cm-tab-wrap-hack:after { content: ''; }
/* Help users use markselection to safely style text background */ span.CodeMirror-selectedtext { background: none; }
|