|
|
|
@ -11,6 +11,7 @@
|
|
|
|
|
font-family: monospace;
|
|
|
|
|
height: 300px;
|
|
|
|
|
color: black;
|
|
|
|
|
direction: ltr;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* PADDING */
|
|
|
|
@ -64,7 +65,12 @@
|
|
|
|
|
.cm-fat-cursor div.CodeMirror-cursors {
|
|
|
|
|
z-index: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.cm-fat-cursor-mark {
|
|
|
|
|
background-color: rgba(20, 255, 20, 0.5);
|
|
|
|
|
-webkit-animation: blink 1.06s steps(1) infinite;
|
|
|
|
|
-moz-animation: blink 1.06s steps(1) infinite;
|
|
|
|
|
animation: blink 1.06s steps(1) infinite;
|
|
|
|
|
}
|
|
|
|
|
.cm-animate-fat-cursor {
|
|
|
|
|
width: auto;
|
|
|
|
|
border: 0;
|
|
|
|
@ -125,7 +131,7 @@
|
|
|
|
|
.cm-s-default .cm-property,
|
|
|
|
|
.cm-s-default .cm-operator {}
|
|
|
|
|
.cm-s-default .cm-variable-2 {color: #05a;}
|
|
|
|
|
.cm-s-default .cm-variable-3 {color: #085;}
|
|
|
|
|
.cm-s-default .cm-variable-3, .cm-s-default .cm-type {color: #085;}
|
|
|
|
|
.cm-s-default .cm-comment {color: #a50;}
|
|
|
|
|
.cm-s-default .cm-string {color: #a11;}
|
|
|
|
|
.cm-s-default .cm-string-2 {color: #f50;}
|
|
|
|
@ -145,8 +151,8 @@
|
|
|
|
|
|
|
|
|
|
/* Default styles for common addons */
|
|
|
|
|
|
|
|
|
|
div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;}
|
|
|
|
|
div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
|
|
|
|
|
div.CodeMirror span.CodeMirror-matchingbracket {color: #0b0;}
|
|
|
|
|
div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}
|
|
|
|
|
.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }
|
|
|
|
|
.CodeMirror-activeline-background {background: #e8f2ff;}
|
|
|
|
|
|
|
|
|
@ -212,9 +218,6 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
|
|
|
|
|
display: inline-block;
|
|
|
|
|
vertical-align: top;
|
|
|
|
|
margin-bottom: -30px;
|
|
|
|
|
/* Hack to make IE7 behave */
|
|
|
|
|
*zoom:1;
|
|
|
|
|
*display:inline;
|
|
|
|
|
}
|
|
|
|
|
.CodeMirror-gutter-wrapper {
|
|
|
|
|
position: absolute;
|
|
|
|
@ -232,11 +235,8 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
|
|
|
|
|
cursor: default;
|
|
|
|
|
z-index: 4;
|
|
|
|
|
}
|
|
|
|
|
.CodeMirror-gutter-wrapper {
|
|
|
|
|
-webkit-user-select: none;
|
|
|
|
|
-moz-user-select: none;
|
|
|
|
|
user-select: none;
|
|
|
|
|
}
|
|
|
|
|
.CodeMirror-gutter-wrapper ::selection { background-color: transparent }
|
|
|
|
|
.CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent }
|
|
|
|
|
|
|
|
|
|
.CodeMirror-lines {
|
|
|
|
|
cursor: text;
|
|
|
|
@ -258,8 +258,8 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
|
|
|
|
|
position: relative;
|
|
|
|
|
overflow: visible;
|
|
|
|
|
-webkit-tap-highlight-color: transparent;
|
|
|
|
|
-webkit-font-variant-ligatures: none;
|
|
|
|
|
font-variant-ligatures: none;
|
|
|
|
|
-webkit-font-variant-ligatures: contextual;
|
|
|
|
|
font-variant-ligatures: contextual;
|
|
|
|
|
}
|
|
|
|
|
.CodeMirror-wrap pre {
|
|
|
|
|
word-wrap: break-word;
|
|
|
|
@ -281,6 +281,8 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
|
|
|
|
|
|
|
|
|
|
.CodeMirror-widget {}
|
|
|
|
|
|
|
|
|
|
.CodeMirror-rtl pre { direction: rtl; }
|
|
|
|
|
|
|
|
|
|
.CodeMirror-code {
|
|
|
|
|
outline: none;
|
|
|
|
|
}
|
|
|
|
@ -329,13 +331,10 @@ div.CodeMirror-dragcursors {
|
|
|
|
|
.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }
|
|
|
|
|
|
|
|
|
|
.cm-searching {
|
|
|
|
|
background: #ffa;
|
|
|
|
|
background: rgba(255, 255, 0, .4);
|
|
|
|
|
background-color: #ffa;
|
|
|
|
|
background-color: rgba(255, 255, 0, .4);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 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; }
|
|
|
|
|
|
|
|
|
@ -353,6 +352,7 @@ div.CodeMirror-dragcursors {
|
|
|
|
|
span.CodeMirror-selectedtext { background: none; }
|
|
|
|
|
|
|
|
|
|
.CodeMirror {
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
height: auto;
|
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
|
border-bottom-left-radius: 4px;
|
|
|
|
@ -360,6 +360,7 @@ span.CodeMirror-selectedtext { background: none; }
|
|
|
|
|
padding: 10px;
|
|
|
|
|
font: inherit;
|
|
|
|
|
z-index: 1;
|
|
|
|
|
word-wrap: break-word;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.CodeMirror-fullscreen {
|
|
|
|
@ -466,7 +467,9 @@ span.CodeMirror-selectedtext { background: none; }
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-toolbar a {
|
|
|
|
|
.editor-toolbar a,
|
|
|
|
|
.editor-toolbar button {
|
|
|
|
|
background: transparent;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
text-align: center;
|
|
|
|
|
text-decoration: none!important;
|
|
|
|
@ -474,18 +477,22 @@ span.CodeMirror-selectedtext { background: none; }
|
|
|
|
|
width: 30px;
|
|
|
|
|
height: 30px;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
border: 1px solid transparent;
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-toolbar a.active,
|
|
|
|
|
.editor-toolbar a:hover {
|
|
|
|
|
.editor-toolbar a:hover,
|
|
|
|
|
.editor-toolbar button.active,
|
|
|
|
|
.editor-toolbar button:hover {
|
|
|
|
|
background: #fcfcfc;
|
|
|
|
|
border-color: #95a5a6;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-toolbar a:before {
|
|
|
|
|
.editor-toolbar a:before,
|
|
|
|
|
.editor-toolbar button:before {
|
|
|
|
|
line-height: 30px
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -592,6 +599,7 @@ span.CodeMirror-selectedtext { background: none; }
|
|
|
|
|
display: none;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
|
word-wrap: break-word;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-preview-active-side {
|
|
|
|
|