1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/devtools/sourceeditor/codemirror/codemirror.css Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,270 @@ 1.4 +/* BASICS */ 1.5 + 1.6 +.CodeMirror { 1.7 + /* Set height, width, borders, and global font properties here */ 1.8 + font-family: monospace; 1.9 + height: 300px; 1.10 +} 1.11 +.CodeMirror-scroll { 1.12 + /* Set scrolling behaviour here */ 1.13 + overflow: auto; 1.14 +} 1.15 + 1.16 +/* PADDING */ 1.17 + 1.18 +.CodeMirror-lines { 1.19 + padding: 4px 0; /* Vertical padding around content */ 1.20 +} 1.21 +.CodeMirror pre { 1.22 + padding: 0 4px; /* Horizontal padding of content */ 1.23 +} 1.24 + 1.25 +.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler { 1.26 + background-color: white; /* The little square between H and V scrollbars */ 1.27 +} 1.28 + 1.29 +/* GUTTER */ 1.30 + 1.31 +.CodeMirror-gutters { 1.32 + border-right: 1px solid #ddd; 1.33 + background-color: #f7f7f7; 1.34 + white-space: nowrap; 1.35 +} 1.36 +.CodeMirror-linenumbers {} 1.37 +.CodeMirror-linenumber { 1.38 + padding: 0 3px 0 5px; 1.39 + min-width: 20px; 1.40 + text-align: right; 1.41 + color: #999; 1.42 + -moz-box-sizing: content-box; 1.43 + box-sizing: content-box; 1.44 +} 1.45 + 1.46 +/* CURSOR */ 1.47 + 1.48 +.CodeMirror div.CodeMirror-cursor { 1.49 + border-left: 1px solid black; 1.50 +} 1.51 +/* Shown when moving in bi-directional text */ 1.52 +.CodeMirror div.CodeMirror-secondarycursor { 1.53 + border-left: 1px solid silver; 1.54 +} 1.55 +.CodeMirror.cm-keymap-fat-cursor div.CodeMirror-cursor { 1.56 + width: auto; 1.57 + border: 0; 1.58 + background: #7e7; 1.59 +} 1.60 +/* Can style cursor different in overwrite (non-insert) mode */ 1.61 +div.CodeMirror-overwrite div.CodeMirror-cursor {} 1.62 + 1.63 +.cm-tab { display: inline-block; } 1.64 + 1.65 +.CodeMirror-ruler { 1.66 + border-left: 1px solid #ccc; 1.67 + position: absolute; 1.68 +} 1.69 + 1.70 +/* DEFAULT THEME */ 1.71 + 1.72 +.cm-s-default .cm-keyword {color: #708;} 1.73 +.cm-s-default .cm-atom {color: #219;} 1.74 +.cm-s-default .cm-number {color: #164;} 1.75 +.cm-s-default .cm-def {color: #00f;} 1.76 +.cm-s-default .cm-variable {color: black;} 1.77 +.cm-s-default .cm-variable-2 {color: #05a;} 1.78 +.cm-s-default .cm-variable-3 {color: #085;} 1.79 +.cm-s-default .cm-property {color: black;} 1.80 +.cm-s-default .cm-operator {color: black;} 1.81 +.cm-s-default .cm-comment {color: #a50;} 1.82 +.cm-s-default .cm-string {color: #a11;} 1.83 +.cm-s-default .cm-string-2 {color: #f50;} 1.84 +.cm-s-default .cm-meta {color: #555;} 1.85 +.cm-s-default .cm-qualifier {color: #555;} 1.86 +.cm-s-default .cm-builtin {color: #30a;} 1.87 +.cm-s-default .cm-bracket {color: #997;} 1.88 +.cm-s-default .cm-tag {color: #170;} 1.89 +.cm-s-default .cm-attribute {color: #00c;} 1.90 +.cm-s-default .cm-header {color: blue;} 1.91 +.cm-s-default .cm-quote {color: #090;} 1.92 +.cm-s-default .cm-hr {color: #999;} 1.93 +.cm-s-default .cm-link {color: #00c;} 1.94 + 1.95 +.cm-negative {color: #d44;} 1.96 +.cm-positive {color: #292;} 1.97 +.cm-header, .cm-strong {font-weight: bold;} 1.98 +.cm-em {font-style: italic;} 1.99 +.cm-link {text-decoration: underline;} 1.100 + 1.101 +.cm-s-default .cm-error {color: #f00;} 1.102 +.cm-invalidchar {color: #f00;} 1.103 + 1.104 +div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;} 1.105 +div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;} 1.106 +.CodeMirror-activeline-background {background: #e8f2ff;} 1.107 + 1.108 +/* STOP */ 1.109 + 1.110 +/* The rest of this file contains styles related to the mechanics of 1.111 + the editor. You probably shouldn't touch them. */ 1.112 + 1.113 +.CodeMirror { 1.114 + line-height: 1; 1.115 + position: relative; 1.116 + overflow: hidden; 1.117 + background: white; 1.118 + color: black; 1.119 +} 1.120 + 1.121 +.CodeMirror-scroll { 1.122 + /* 30px is the magic margin used to hide the element's real scrollbars */ 1.123 + /* See overflow: hidden in .CodeMirror */ 1.124 + margin-bottom: -30px; margin-right: -30px; 1.125 + padding-bottom: 30px; 1.126 + height: 100%; 1.127 + outline: none; /* Prevent dragging from highlighting the element */ 1.128 + position: relative; 1.129 + -moz-box-sizing: content-box; 1.130 + box-sizing: content-box; 1.131 +} 1.132 +.CodeMirror-sizer { 1.133 + position: relative; 1.134 + border-right: 30px solid transparent; 1.135 + -moz-box-sizing: content-box; 1.136 + box-sizing: content-box; 1.137 +} 1.138 + 1.139 +/* The fake, visible scrollbars. Used to force redraw during scrolling 1.140 + before actuall scrolling happens, thus preventing shaking and 1.141 + flickering artifacts. */ 1.142 +.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler { 1.143 + position: absolute; 1.144 + z-index: 6; 1.145 + display: none; 1.146 +} 1.147 +.CodeMirror-vscrollbar { 1.148 + right: 0; top: 0; 1.149 + overflow-x: hidden; 1.150 + overflow-y: scroll; 1.151 +} 1.152 +.CodeMirror-hscrollbar { 1.153 + bottom: 0; left: 0; 1.154 + overflow-y: hidden; 1.155 + overflow-x: scroll; 1.156 +} 1.157 +.CodeMirror-scrollbar-filler { 1.158 + right: 0; bottom: 0; 1.159 +} 1.160 +.CodeMirror-gutter-filler { 1.161 + left: 0; bottom: 0; 1.162 +} 1.163 + 1.164 +.CodeMirror-gutters { 1.165 + position: absolute; left: 0; top: 0; 1.166 + padding-bottom: 30px; 1.167 + z-index: 3; 1.168 +} 1.169 +.CodeMirror-gutter { 1.170 + white-space: normal; 1.171 + height: 100%; 1.172 + -moz-box-sizing: content-box; 1.173 + box-sizing: content-box; 1.174 + padding-bottom: 30px; 1.175 + margin-bottom: -32px; 1.176 + display: inline-block; 1.177 + /* Hack to make IE7 behave */ 1.178 + *zoom:1; 1.179 + *display:inline; 1.180 +} 1.181 +.CodeMirror-gutter-elt { 1.182 + position: absolute; 1.183 + cursor: default; 1.184 + z-index: 4; 1.185 +} 1.186 + 1.187 +.CodeMirror-lines { 1.188 + cursor: text; 1.189 +} 1.190 +.CodeMirror pre { 1.191 + /* Reset some styles that the rest of the page might have set */ 1.192 + -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0; 1.193 + border-width: 0; 1.194 + background: transparent; 1.195 + font-family: inherit; 1.196 + font-size: inherit; 1.197 + margin: 0; 1.198 + white-space: pre; 1.199 + word-wrap: normal; 1.200 + line-height: inherit; 1.201 + color: inherit; 1.202 + z-index: 2; 1.203 + position: relative; 1.204 + overflow: visible; 1.205 +} 1.206 +.CodeMirror-wrap pre { 1.207 + word-wrap: break-word; 1.208 + white-space: pre-wrap; 1.209 + word-break: normal; 1.210 +} 1.211 + 1.212 +.CodeMirror-linebackground { 1.213 + position: absolute; 1.214 + left: 0; right: 0; top: 0; bottom: 0; 1.215 + z-index: 0; 1.216 +} 1.217 + 1.218 +.CodeMirror-linewidget { 1.219 + position: relative; 1.220 + z-index: 2; 1.221 + overflow: auto; 1.222 +} 1.223 + 1.224 +.CodeMirror-widget {} 1.225 + 1.226 +.CodeMirror-wrap .CodeMirror-scroll { 1.227 + overflow-x: hidden; 1.228 +} 1.229 + 1.230 +.CodeMirror-measure { 1.231 + position: absolute; 1.232 + width: 100%; 1.233 + height: 0; 1.234 + overflow: hidden; 1.235 + visibility: hidden; 1.236 +} 1.237 +.CodeMirror-measure pre { position: static; } 1.238 + 1.239 +.CodeMirror div.CodeMirror-cursor { 1.240 + position: absolute; 1.241 + border-right: none; 1.242 + width: 0; 1.243 +} 1.244 + 1.245 +div.CodeMirror-cursors { 1.246 + visibility: hidden; 1.247 + position: relative; 1.248 + z-index: 1; 1.249 +} 1.250 +.CodeMirror-focused div.CodeMirror-cursors { 1.251 + visibility: visible; 1.252 +} 1.253 + 1.254 +.CodeMirror-selected { background: #d9d9d9; } 1.255 +.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; } 1.256 + 1.257 +.cm-searching { 1.258 + background: #ffa; 1.259 + background: rgba(255, 255, 0, .4); 1.260 +} 1.261 + 1.262 +/* IE7 hack to prevent it from returning funny offsetTops on the spans */ 1.263 +.CodeMirror span { *vertical-align: text-bottom; } 1.264 + 1.265 +/* Used to force a border model for a node */ 1.266 +.cm-force-border { padding-right: .1px; } 1.267 + 1.268 +@media print { 1.269 + /* Hide the cursor when printing */ 1.270 + .CodeMirror div.CodeMirror-cursors { 1.271 + visibility: hidden; 1.272 + } 1.273 +}