indvd00m@0: /* BASICS */ indvd00m@0: indvd00m@0: .CodeMirror { indvd00m@0: /* Set height, width, borders, and global font properties here */ indvd00m@0: font-family: monospace; indvd00m@0: height: 300px; indvd00m@0: color: black; indvd00m@0: } indvd00m@0: indvd00m@0: /* PADDING */ indvd00m@0: indvd00m@0: .CodeMirror-lines { indvd00m@0: padding: 4px 0; /* Vertical padding around content */ indvd00m@0: } indvd00m@0: .CodeMirror pre { indvd00m@0: padding: 0 4px; /* Horizontal padding of content */ indvd00m@0: } indvd00m@0: indvd00m@0: .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler { indvd00m@0: background-color: white; /* The little square between H and V scrollbars */ indvd00m@0: } indvd00m@0: indvd00m@0: /* GUTTER */ indvd00m@0: indvd00m@0: .CodeMirror-gutters { indvd00m@0: border-right: 1px solid #ddd; indvd00m@0: background-color: #f7f7f7; indvd00m@0: white-space: nowrap; indvd00m@0: } indvd00m@0: .CodeMirror-linenumbers {} indvd00m@0: .CodeMirror-linenumber { indvd00m@0: padding: 0 3px 0 5px; indvd00m@0: min-width: 20px; indvd00m@0: text-align: right; indvd00m@0: color: #999; indvd00m@0: white-space: nowrap; indvd00m@0: } indvd00m@0: indvd00m@0: .CodeMirror-guttermarker { color: black; } indvd00m@0: .CodeMirror-guttermarker-subtle { color: #999; } indvd00m@0: indvd00m@0: /* CURSOR */ indvd00m@0: indvd00m@0: .CodeMirror div.CodeMirror-cursor { indvd00m@0: border-left: 1px solid black; indvd00m@0: } indvd00m@0: /* Shown when moving in bi-directional text */ indvd00m@0: .CodeMirror div.CodeMirror-secondarycursor { indvd00m@0: border-left: 1px solid silver; indvd00m@0: } indvd00m@0: .CodeMirror.cm-fat-cursor div.CodeMirror-cursor { indvd00m@0: width: auto; indvd00m@0: border: 0; indvd00m@0: background: #7e7; indvd00m@0: } indvd00m@0: .CodeMirror.cm-fat-cursor div.CodeMirror-cursors { indvd00m@0: z-index: 1; indvd00m@0: } indvd00m@0: indvd00m@0: .cm-animate-fat-cursor { indvd00m@0: width: auto; indvd00m@0: border: 0; indvd00m@0: -webkit-animation: blink 1.06s steps(1) infinite; indvd00m@0: -moz-animation: blink 1.06s steps(1) infinite; indvd00m@0: animation: blink 1.06s steps(1) infinite; indvd00m@0: } indvd00m@0: @-moz-keyframes blink { indvd00m@0: 0% { background: #7e7; } indvd00m@0: 50% { background: none; } indvd00m@0: 100% { background: #7e7; } indvd00m@0: } indvd00m@0: @-webkit-keyframes blink { indvd00m@0: 0% { background: #7e7; } indvd00m@0: 50% { background: none; } indvd00m@0: 100% { background: #7e7; } indvd00m@0: } indvd00m@0: @keyframes blink { indvd00m@0: 0% { background: #7e7; } indvd00m@0: 50% { background: none; } indvd00m@0: 100% { background: #7e7; } indvd00m@0: } indvd00m@0: indvd00m@0: /* Can style cursor different in overwrite (non-insert) mode */ indvd00m@0: div.CodeMirror-overwrite div.CodeMirror-cursor {} indvd00m@0: indvd00m@0: .cm-tab { display: inline-block; text-decoration: inherit; } indvd00m@0: indvd00m@0: .CodeMirror-ruler { indvd00m@0: border-left: 1px solid #ccc; indvd00m@0: position: absolute; indvd00m@0: } indvd00m@0: indvd00m@0: /* DEFAULT THEME */ indvd00m@0: indvd00m@0: .cm-s-default .cm-keyword {color: #708;} indvd00m@0: .cm-s-default .cm-atom {color: #219;} indvd00m@0: .cm-s-default .cm-number {color: #164;} indvd00m@0: .cm-s-default .cm-def {color: #00f;} indvd00m@0: .cm-s-default .cm-variable, indvd00m@0: .cm-s-default .cm-punctuation, indvd00m@0: .cm-s-default .cm-property, indvd00m@0: .cm-s-default .cm-operator {} indvd00m@0: .cm-s-default .cm-variable-2 {color: #05a;} indvd00m@0: .cm-s-default .cm-variable-3 {color: #085;} indvd00m@0: .cm-s-default .cm-comment {color: #a50;} indvd00m@0: .cm-s-default .cm-string {color: #a11;} indvd00m@0: .cm-s-default .cm-string-2 {color: #f50;} indvd00m@0: .cm-s-default .cm-meta {color: #555;} indvd00m@0: .cm-s-default .cm-qualifier {color: #555;} indvd00m@0: .cm-s-default .cm-builtin {color: #30a;} indvd00m@0: .cm-s-default .cm-bracket {color: #997;} indvd00m@0: .cm-s-default .cm-tag {color: #170;} indvd00m@0: .cm-s-default .cm-attribute {color: #00c;} indvd00m@0: .cm-s-default .cm-header {color: blue;} indvd00m@0: .cm-s-default .cm-quote {color: #090;} indvd00m@0: .cm-s-default .cm-hr {color: #999;} indvd00m@0: .cm-s-default .cm-link {color: #00c;} indvd00m@0: indvd00m@0: .cm-negative {color: #d44;} indvd00m@0: .cm-positive {color: #292;} indvd00m@0: .cm-header, .cm-strong {font-weight: bold;} indvd00m@0: .cm-em {font-style: italic;} indvd00m@0: .cm-link {text-decoration: underline;} indvd00m@0: .cm-strikethrough {text-decoration: line-through;} indvd00m@0: indvd00m@0: .cm-s-default .cm-error {color: #f00;} indvd00m@0: .cm-invalidchar {color: #f00;} indvd00m@0: indvd00m@0: .CodeMirror-composing { border-bottom: 2px solid; } indvd00m@0: indvd00m@0: /* Default styles for common addons */ indvd00m@0: indvd00m@0: div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;} indvd00m@0: div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;} indvd00m@0: .CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); } indvd00m@0: .CodeMirror-activeline-background {background: #e8f2ff;} indvd00m@0: indvd00m@0: /* STOP */ indvd00m@0: indvd00m@0: /* The rest of this file contains styles related to the mechanics of indvd00m@0: the editor. You probably shouldn't touch them. */ indvd00m@0: indvd00m@0: .CodeMirror { indvd00m@0: position: relative; indvd00m@0: overflow: hidden; indvd00m@0: background: white; indvd00m@0: } indvd00m@0: indvd00m@0: .CodeMirror-scroll { indvd00m@0: overflow: scroll !important; /* Things will break if this is overridden */ indvd00m@0: /* 30px is the magic margin used to hide the element's real scrollbars */ indvd00m@0: /* See overflow: hidden in .CodeMirror */ indvd00m@0: margin-bottom: -30px; margin-right: -30px; indvd00m@0: padding-bottom: 30px; indvd00m@0: height: 100%; indvd00m@0: outline: none; /* Prevent dragging from highlighting the element */ indvd00m@0: position: relative; indvd00m@0: } indvd00m@0: .CodeMirror-sizer { indvd00m@0: position: relative; indvd00m@0: border-right: 30px solid transparent; indvd00m@0: } indvd00m@0: indvd00m@0: /* The fake, visible scrollbars. Used to force redraw during scrolling indvd00m@0: before actuall scrolling happens, thus preventing shaking and indvd00m@0: flickering artifacts. */ indvd00m@0: .CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler { indvd00m@0: position: absolute; indvd00m@0: z-index: 6; indvd00m@0: display: none; indvd00m@0: } indvd00m@0: .CodeMirror-vscrollbar { indvd00m@0: right: 0; top: 0; indvd00m@0: overflow-x: hidden; indvd00m@0: overflow-y: scroll; indvd00m@0: } indvd00m@0: .CodeMirror-hscrollbar { indvd00m@0: bottom: 0; left: 0; indvd00m@0: overflow-y: hidden; indvd00m@0: overflow-x: scroll; indvd00m@0: } indvd00m@0: .CodeMirror-scrollbar-filler { indvd00m@0: right: 0; bottom: 0; indvd00m@0: } indvd00m@0: .CodeMirror-gutter-filler { indvd00m@0: left: 0; bottom: 0; indvd00m@0: } indvd00m@0: indvd00m@0: .CodeMirror-gutters { indvd00m@0: position: absolute; left: 0; top: 0; indvd00m@0: z-index: 3; indvd00m@0: } indvd00m@0: .CodeMirror-gutter { indvd00m@0: white-space: normal; indvd00m@0: height: 100%; indvd00m@0: display: inline-block; indvd00m@0: margin-bottom: -30px; indvd00m@0: /* Hack to make IE7 behave */ indvd00m@0: *zoom:1; indvd00m@0: *display:inline; indvd00m@0: } indvd00m@0: .CodeMirror-gutter-wrapper { indvd00m@0: position: absolute; indvd00m@0: z-index: 4; indvd00m@0: height: 100%; indvd00m@0: } indvd00m@0: .CodeMirror-gutter-elt { indvd00m@0: position: absolute; indvd00m@0: cursor: default; indvd00m@0: z-index: 4; indvd00m@0: } indvd00m@0: .CodeMirror-gutter-wrapper { indvd00m@0: -webkit-user-select: none; indvd00m@0: -moz-user-select: none; indvd00m@0: user-select: none; indvd00m@0: } indvd00m@0: indvd00m@0: .CodeMirror-lines { indvd00m@0: cursor: text; indvd00m@0: min-height: 1px; /* prevents collapsing before first draw */ indvd00m@0: } indvd00m@0: .CodeMirror pre { indvd00m@0: /* Reset some styles that the rest of the page might have set */ indvd00m@0: -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0; indvd00m@0: border-width: 0; indvd00m@0: background: transparent; indvd00m@0: font-family: inherit; indvd00m@0: font-size: inherit; indvd00m@0: margin: 0; indvd00m@0: white-space: pre; indvd00m@0: word-wrap: normal; indvd00m@0: line-height: inherit; indvd00m@0: color: inherit; indvd00m@0: z-index: 2; indvd00m@0: position: relative; indvd00m@0: overflow: visible; indvd00m@0: -webkit-tap-highlight-color: transparent; indvd00m@0: } indvd00m@0: .CodeMirror-wrap pre { indvd00m@0: word-wrap: break-word; indvd00m@0: white-space: pre-wrap; indvd00m@0: word-break: normal; indvd00m@0: } indvd00m@0: indvd00m@0: .CodeMirror-linebackground { indvd00m@0: position: absolute; indvd00m@0: left: 0; right: 0; top: 0; bottom: 0; indvd00m@0: z-index: 0; indvd00m@0: } indvd00m@0: indvd00m@0: .CodeMirror-linewidget { indvd00m@0: position: relative; indvd00m@0: z-index: 2; indvd00m@0: overflow: auto; indvd00m@0: } indvd00m@0: indvd00m@0: .CodeMirror-widget {} indvd00m@0: indvd00m@0: .CodeMirror-code { indvd00m@0: outline: none; indvd00m@0: } indvd00m@0: indvd00m@0: /* Force content-box sizing for the elements where we expect it */ indvd00m@0: .CodeMirror-scroll, indvd00m@0: .CodeMirror-sizer, indvd00m@0: .CodeMirror-gutter, indvd00m@0: .CodeMirror-gutters, indvd00m@0: .CodeMirror-linenumber { indvd00m@0: -moz-box-sizing: content-box; indvd00m@0: box-sizing: content-box; indvd00m@0: } indvd00m@0: indvd00m@0: .CodeMirror-measure { indvd00m@0: position: absolute; indvd00m@0: width: 100%; indvd00m@0: height: 0; indvd00m@0: overflow: hidden; indvd00m@0: visibility: hidden; indvd00m@0: } indvd00m@0: .CodeMirror-measure pre { position: static; } indvd00m@0: indvd00m@0: .CodeMirror div.CodeMirror-cursor { indvd00m@0: position: absolute; indvd00m@0: border-right: none; indvd00m@0: width: 0; indvd00m@0: } indvd00m@0: indvd00m@0: div.CodeMirror-cursors { indvd00m@0: visibility: hidden; indvd00m@0: position: relative; indvd00m@0: z-index: 3; indvd00m@0: } indvd00m@0: .CodeMirror-focused div.CodeMirror-cursors { indvd00m@0: visibility: visible; indvd00m@0: } indvd00m@0: indvd00m@0: .CodeMirror-selected { background: #d9d9d9; } indvd00m@0: .CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; } indvd00m@0: .CodeMirror-crosshair { cursor: crosshair; } indvd00m@0: .CodeMirror ::selection { background: #d7d4f0; } indvd00m@0: .CodeMirror ::-moz-selection { background: #d7d4f0; } indvd00m@0: indvd00m@0: .cm-searching { indvd00m@0: background: #ffa; indvd00m@0: background: rgba(255, 255, 0, .4); indvd00m@0: } indvd00m@0: indvd00m@0: /* IE7 hack to prevent it from returning funny offsetTops on the spans */ indvd00m@0: .CodeMirror span { *vertical-align: text-bottom; } indvd00m@0: indvd00m@0: /* Used to force a border model for a node */ indvd00m@0: .cm-force-border { padding-right: .1px; } indvd00m@0: indvd00m@0: @media print { indvd00m@0: /* Hide the cursor when printing */ indvd00m@0: .CodeMirror div.CodeMirror-cursors { indvd00m@0: visibility: hidden; indvd00m@0: } indvd00m@0: } indvd00m@0: indvd00m@0: /* See issue #2901 */ indvd00m@0: .cm-tab-wrap-hack:after { content: ''; } indvd00m@0: indvd00m@0: /* Help users use markselection to safely style text background */ indvd00m@0: span.CodeMirror-selectedtext { background: none; }