Index: chrome_linux64/resources/inspector/codemirror.css |
=================================================================== |
--- chrome_linux64/resources/inspector/codemirror.css (revision 221742) |
+++ chrome_linux64/resources/inspector/codemirror.css (working copy) |
@@ -19,7 +19,7 @@ |
padding: 0 4px; /* Horizontal padding of content */ |
} |
-.CodeMirror-scrollbar-filler { |
+.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler { |
background-color: white; /* The little square between H and V scrollbars */ |
} |
@@ -28,6 +28,7 @@ |
.CodeMirror-gutters { |
border-right: 1px solid #ddd; |
background-color: #f7f7f7; |
+ white-space: nowrap; |
} |
.CodeMirror-linenumbers {} |
.CodeMirror-linenumber { |
@@ -56,17 +57,19 @@ |
/* Can style cursor different in overwrite (non-insert) mode */ |
.CodeMirror div.CodeMirror-cursor.CodeMirror-overwrite {} |
+.cm-tab { display: inline-block; } |
+ |
/* DEFAULT THEME */ |
.cm-s-default .cm-keyword {color: #708;} |
.cm-s-default .cm-atom {color: #219;} |
.cm-s-default .cm-number {color: #164;} |
.cm-s-default .cm-def {color: #00f;} |
-.cm-s-default .cm-variable {color: #222;} |
+.cm-s-default .cm-variable {color: black;} |
.cm-s-default .cm-variable-2 {color: #05a;} |
.cm-s-default .cm-variable-3 {color: #085;} |
-.cm-s-default .cm-property {color: #222;} |
-.cm-s-default .cm-operator {color: #222;} |
+.cm-s-default .cm-property {color: black;} |
+.cm-s-default .cm-operator {color: black;} |
.cm-s-default .cm-comment {color: #a50;} |
.cm-s-default .cm-string {color: #a11;} |
.cm-s-default .cm-string-2 {color: #f50;} |
@@ -103,12 +106,12 @@ |
position: relative; |
overflow: hidden; |
background: white; |
- color: #222; |
+ color: black; |
} |
.CodeMirror-scroll { |
/* 30px is the magic margin used to hide the element's real scrollbars */ |
- /* See overflow: hidden in .CodeMirror, and the paddings in .CodeMirror-sizer */ |
+ /* See overflow: hidden in .CodeMirror */ |
margin-bottom: -30px; margin-right: -30px; |
padding-bottom: 30px; padding-right: 30px; |
height: 100%; |
@@ -122,7 +125,7 @@ |
/* The fake, visible scrollbars. Used to force redraw during scrolling |
before actuall scrolling happens, thus preventing shaking and |
flickering artifacts. */ |
-.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler { |
+.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler { |
position: absolute; |
z-index: 6; |
display: none; |
@@ -139,17 +142,21 @@ |
} |
.CodeMirror-scrollbar-filler { |
right: 0; bottom: 0; |
- z-index: 6; |
} |
+.CodeMirror-gutter-filler { |
+ left: 0; bottom: 0; |
+} |
.CodeMirror-gutters { |
position: absolute; left: 0; top: 0; |
- height: 100%; |
padding-bottom: 30px; |
z-index: 3; |
} |
.CodeMirror-gutter { |
+ white-space: normal; |
height: 100%; |
+ padding-bottom: 30px; |
+ margin-bottom: -32px; |
display: inline-block; |
/* Hack to make IE7 behave */ |
*zoom:1; |
@@ -166,7 +173,7 @@ |
} |
.CodeMirror pre { |
/* Reset some styles that the rest of the page might have set */ |
- -moz-border-radius: 0; -webkit-border-radius: 0; -o-border-radius: 0; border-radius: 0; |
+ -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0; |
border-width: 0; |
background: transparent; |
font-family: inherit; |
@@ -185,6 +192,16 @@ |
white-space: pre-wrap; |
word-break: normal; |
} |
+.CodeMirror-code pre { |
+ border-right: 30px solid transparent; |
+ width: -webkit-fit-content; |
+ width: -moz-fit-content; |
+ width: fit-content; |
+} |
+.CodeMirror-wrap .CodeMirror-code pre { |
+ border-right: none; |
+ width: auto; |
+} |
.CodeMirror-linebackground { |
position: absolute; |
left: 0; right: 0; top: 0; bottom: 0; |
@@ -198,7 +215,6 @@ |
} |
.CodeMirror-widget { |
- display: inline-block; |
} |
.CodeMirror-wrap .CodeMirror-scroll { |