| Index: third_party/WebKit/Source/devtools/front_end/cm/codemirror.css
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/cm/codemirror.css b/third_party/WebKit/Source/devtools/front_end/cm/codemirror.css
|
| index ef63109c4fa48e11cc1a2e41c56251a1dcf42576..18b0bf70dbf23089e37f5a1567fc9cb3a0339500 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/cm/codemirror.css
|
| +++ b/third_party/WebKit/Source/devtools/front_end/cm/codemirror.css
|
| @@ -4,6 +4,7 @@
|
| /* Set height, width, borders, and global font properties here */
|
| font-family: monospace;
|
| height: 300px;
|
| + color: black;
|
| }
|
|
|
| /* PADDING */
|
| @@ -32,8 +33,7 @@
|
| min-width: 20px;
|
| text-align: right;
|
| color: #999;
|
| - -moz-box-sizing: content-box;
|
| - box-sizing: content-box;
|
| + white-space: nowrap;
|
| }
|
|
|
| .CodeMirror-guttermarker { color: black; }
|
| @@ -41,19 +41,21 @@
|
|
|
| /* CURSOR */
|
|
|
| -.CodeMirror div.CodeMirror-cursor {
|
| +.CodeMirror-cursor {
|
| border-left: 1px solid black;
|
| + border-right: none;
|
| + width: 0;
|
| }
|
| /* Shown when moving in bi-directional text */
|
| .CodeMirror div.CodeMirror-secondarycursor {
|
| border-left: 1px solid silver;
|
| }
|
| -.CodeMirror.cm-fat-cursor div.CodeMirror-cursor {
|
| +.cm-fat-cursor .CodeMirror-cursor {
|
| width: auto;
|
| - border: 0;
|
| + border: 0 !important;
|
| background: #7e7;
|
| }
|
| -.CodeMirror.cm-fat-cursor div.CodeMirror-cursors {
|
| +.cm-fat-cursor div.CodeMirror-cursors {
|
| z-index: 1;
|
| }
|
|
|
| @@ -63,35 +65,51 @@
|
| -webkit-animation: blink 1.06s steps(1) infinite;
|
| -moz-animation: blink 1.06s steps(1) infinite;
|
| animation: blink 1.06s steps(1) infinite;
|
| + background-color: #7e7;
|
| }
|
| @-moz-keyframes blink {
|
| - 0% { background: #7e7; }
|
| - 50% { background: none; }
|
| - 100% { background: #7e7; }
|
| + 0% {}
|
| + 50% { background-color: transparent; }
|
| + 100% {}
|
| }
|
| @-webkit-keyframes blink {
|
| - 0% { background: #7e7; }
|
| - 50% { background: none; }
|
| - 100% { background: #7e7; }
|
| + 0% {}
|
| + 50% { background-color: transparent; }
|
| + 100% {}
|
| }
|
| @keyframes blink {
|
| - 0% { background: #7e7; }
|
| - 50% { background: none; }
|
| - 100% { background: #7e7; }
|
| + 0% {}
|
| + 50% { background-color: transparent; }
|
| + 100% {}
|
| }
|
|
|
| /* Can style cursor different in overwrite (non-insert) mode */
|
| -div.CodeMirror-overwrite div.CodeMirror-cursor {}
|
| +.CodeMirror-overwrite .CodeMirror-cursor {}
|
|
|
| .cm-tab { display: inline-block; text-decoration: inherit; }
|
|
|
| +.CodeMirror-rulers {
|
| + position: absolute;
|
| + left: 0; right: 0; top: -50px; bottom: -20px;
|
| + overflow: hidden;
|
| +}
|
| .CodeMirror-ruler {
|
| border-left: 1px solid #ccc;
|
| + top: 0; bottom: 0;
|
| position: absolute;
|
| }
|
|
|
| /* DEFAULT THEME */
|
|
|
| +.cm-s-default .cm-header {color: blue;}
|
| +.cm-s-default .cm-quote {color: #090;}
|
| +.cm-negative {color: #d44;}
|
| +.cm-positive {color: #292;}
|
| +.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-keyword {color: #708;}
|
| .cm-s-default .cm-atom {color: #219;}
|
| .cm-s-default .cm-number {color: #164;}
|
| @@ -111,27 +129,20 @@ div.CodeMirror-overwrite div.CodeMirror-cursor {}
|
| .cm-s-default .cm-bracket {color: #997;}
|
| .cm-s-default .cm-tag {color: #170;}
|
| .cm-s-default .cm-attribute {color: #00c;}
|
| -.cm-s-default .cm-header {color: blue;}
|
| -.cm-s-default .cm-quote {color: #090;}
|
| .cm-s-default .cm-hr {color: #999;}
|
| .cm-s-default .cm-link {color: #00c;}
|
|
|
| -.cm-negative {color: #d44;}
|
| -.cm-positive {color: #292;}
|
| -.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;}
|
|
|
| +.CodeMirror-composing { border-bottom: 2px solid; }
|
| +
|
| /* Default styles for common addons */
|
|
|
| div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;}
|
| div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
|
| .CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }
|
| -.CodeMirror-activeline-background { background: #e8f2ff; }
|
| +.CodeMirror-activeline-background {background: #e8f2ff;}
|
|
|
| /* STOP */
|
|
|
| @@ -139,11 +150,9 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
|
| the editor. You probably shouldn't touch them. */
|
|
|
| .CodeMirror {
|
| - line-height: 1;
|
| position: relative;
|
| overflow: hidden;
|
| background: white;
|
| - color: black;
|
| }
|
|
|
| .CodeMirror-scroll {
|
| @@ -155,18 +164,14 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
|
| height: 100%;
|
| outline: none; /* Prevent dragging from highlighting the element */
|
| position: relative;
|
| - -moz-box-sizing: content-box;
|
| - box-sizing: content-box;
|
| }
|
| .CodeMirror-sizer {
|
| position: relative;
|
| border-right: 30px solid transparent;
|
| - -moz-box-sizing: content-box;
|
| - box-sizing: content-box;
|
| }
|
|
|
| /* The fake, visible scrollbars. Used to force redraw during scrolling
|
| - before actuall scrolling happens, thus preventing shaking and
|
| + before actual scrolling happens, thus preventing shaking and
|
| flickering artifacts. */
|
| .CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
|
| position: absolute;
|
| @@ -192,14 +197,14 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
|
|
|
| .CodeMirror-gutters {
|
| position: absolute; left: 0; top: 0;
|
| + min-height: 100%;
|
| z-index: 3;
|
| }
|
| .CodeMirror-gutter {
|
| white-space: normal;
|
| height: 100%;
|
| - -moz-box-sizing: content-box;
|
| - box-sizing: content-box;
|
| display: inline-block;
|
| + vertical-align: top;
|
| margin-bottom: -30px;
|
| /* Hack to make IE7 behave */
|
| *zoom:1;
|
| @@ -208,13 +213,24 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
|
| .CodeMirror-gutter-wrapper {
|
| position: absolute;
|
| z-index: 4;
|
| - height: 100%;
|
| + background: none !important;
|
| + border: none !important;
|
| +}
|
| +.CodeMirror-gutter-background {
|
| + position: absolute;
|
| + top: 0; bottom: 0;
|
| + z-index: 4;
|
| }
|
| .CodeMirror-gutter-elt {
|
| position: absolute;
|
| cursor: default;
|
| z-index: 4;
|
| }
|
| +.CodeMirror-gutter-wrapper {
|
| + -webkit-user-select: none;
|
| + -moz-user-select: none;
|
| + user-select: none;
|
| +}
|
|
|
| .CodeMirror-lines {
|
| cursor: text;
|
| @@ -235,6 +251,9 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
|
| z-index: 2;
|
| position: relative;
|
| overflow: visible;
|
| + -webkit-tap-highlight-color: transparent;
|
| + -webkit-font-variant-ligatures: none;
|
| + font-variant-ligatures: none;
|
| }
|
| .CodeMirror-wrap pre {
|
| word-wrap: break-word;
|
| @@ -256,6 +275,20 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
|
|
|
| .CodeMirror-widget {}
|
|
|
| +.CodeMirror-code {
|
| + outline: none;
|
| +}
|
| +
|
| +/* Force content-box sizing for the elements where we expect it */
|
| +.CodeMirror-scroll,
|
| +.CodeMirror-sizer,
|
| +.CodeMirror-gutter,
|
| +.CodeMirror-gutters,
|
| +.CodeMirror-linenumber {
|
| + -moz-box-sizing: content-box;
|
| + box-sizing: content-box;
|
| +}
|
| +
|
| .CodeMirror-measure {
|
| position: absolute;
|
| width: 100%;
|
| @@ -263,19 +296,22 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
|
| overflow: hidden;
|
| visibility: hidden;
|
| }
|
| -.CodeMirror-measure pre { position: static; }
|
|
|
| -.CodeMirror div.CodeMirror-cursor {
|
| +.CodeMirror-cursor {
|
| position: absolute;
|
| - border-right: none;
|
| - width: 0;
|
| + pointer-events: none;
|
| }
|
| +.CodeMirror-measure pre { position: static; }
|
|
|
| div.CodeMirror-cursors {
|
| visibility: hidden;
|
| position: relative;
|
| z-index: 3;
|
| }
|
| +div.CodeMirror-dragcursors {
|
| + visibility: visible;
|
| +}
|
| +
|
| .CodeMirror-focused div.CodeMirror-cursors {
|
| visibility: visible;
|
| }
|
| @@ -283,6 +319,8 @@ div.CodeMirror-cursors {
|
| .CodeMirror-selected { background: #d9d9d9; }
|
| .CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }
|
| .CodeMirror-crosshair { cursor: crosshair; }
|
| +.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }
|
| +.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }
|
|
|
| .cm-searching {
|
| background: #ffa;
|
|
|