| 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
| 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
| 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
| 4 | |
| 5 | .hud-box { |
| 6 | border-bottom: 3px solid #000000; |
| 7 | } |
| 8 | |
| 9 | .hud-box.animated { |
| 10 | -moz-transition: height 100ms; |
| 11 | } |
| 12 | |
| 13 | .hud-outer-wrapper { |
| 14 | width: 100%; |
| 15 | height: 100%; |
| 16 | } |
| 17 | |
| 18 | .hud-console-wrapper { |
| 19 | width: 100%; |
| 20 | overflow: auto; |
| 21 | } |
| 22 | |
| 23 | /* General output styles */ |
| 24 | |
| 25 | .webconsole-timestamp { |
| 26 | color: #8050B0; |
| 27 | margin-top: 0; |
| 28 | margin-bottom: 0; |
| 29 | font: 12px "Liberation Mono", Consolas, "Courier New", monospace; |
| 30 | } |
| 31 | |
| 32 | .hud-msg-node { |
| 33 | list-style-image: url("chrome://browser/skin/devtools/webconsole.png"); |
| 34 | -moz-image-region: rect(0, 1px, 0, 0); |
| 35 | } |
| 36 | |
| 37 | .webconsole-msg-icon { |
| 38 | margin: 3px 4px; |
| 39 | width: 8px; |
| 40 | height: 8px; |
| 41 | } |
| 42 | |
| 43 | .hud-output-node div { |
| 44 | -moz-user-select: text; |
| 45 | white-space: pre-wrap; |
| 46 | -moz-user-focus: normal; |
| 47 | } |
| 48 | |
| 49 | .hud-clickable { |
| 50 | cursor: pointer; |
| 51 | text-decoration: underline; |
| 52 | } |
| 53 | |
| 54 | .webconsole-msg-body { |
| 55 | margin-top: 0; |
| 56 | margin-bottom: 3px; |
| 57 | -moz-margin-start: 3px; |
| 58 | -moz-margin-end: 6px; |
| 59 | white-space: pre-wrap; |
| 60 | font: 12px "Liberation Mono", Consolas, "Courier New", monospace; |
| 61 | } |
| 62 | |
| 63 | .webconsole-msg-body-piece { |
| 64 | margin: 0; |
| 65 | } |
| 66 | |
| 67 | .webconsole-msg-url { |
| 68 | margin: 0 6px; |
| 69 | } |
| 70 | |
| 71 | /* Repeated messages */ |
| 72 | .webconsole-msg-repeat { |
| 73 | margin: 2px 0; |
| 74 | padding-left: 4px; |
| 75 | padding-right: 4px; |
| 76 | color: #000000; |
| 77 | background-color: #FF0000; |
| 78 | border-radius: 40px; |
| 79 | /* font: message-box; */ |
| 80 | font-size: 10px; |
| 81 | font-weight: 600; |
| 82 | } |
| 83 | |
| 84 | /* TODO move this and other functional rules to content - bug 635359 */ |
| 85 | .webconsole-msg-repeat[value="1"] { |
| 86 | display: none; |
| 87 | } |
| 88 | |
| 89 | .webconsole-location { |
| 90 | margin-top: 0; |
| 91 | margin-bottom: 0; |
| 92 | -moz-margin-start: 0; |
| 93 | -moz-margin-end: 6px; |
| 94 | width: 10em; |
| 95 | text-align: end; |
| 96 | } |
| 97 | |
| 98 | .hud-msg-node[selected="true"] > .webconsole-timestamp, |
| 99 | .hud-msg-node[selected="true"] > .webconsole-location { |
| 100 | color: inherit; |
| 101 | } |
| 102 | |
| 103 | .jsterm-input-node, |
| 104 | .jsterm-complete-node { |
| 105 | font: 12px "Liberation Mono", Consolas, "Courier New", monospace; |
| 106 | } |
| 107 | |
| 108 | .hud-output-node { |
| 109 | -moz-appearance: none; |
| 110 | border-bottom: 1px solid #9C9CFF; |
| 111 | border-top: 1px solid #9C9CFF; |
| 112 | margin: 0; |
| 113 | } |
| 114 | |
| 115 | .hud-filtered-by-type, |
| 116 | .hud-filtered-by-string { |
| 117 | display: none; |
| 118 | } |
| 119 | |
| 120 | .webconsole-clear-console-button > .toolbarbutton-icon { |
| 121 | display: none; |
| 122 | } |
| 123 | |
| 124 | .webconsole-filter-button > .toolbarbutton-menubutton-button { |
| 125 | -moz-box-orient: horizontal; |
| 126 | list-style-image: url("chrome://browser/skin/devtools/webconsole.png"); |
| 127 | } |
| 128 | |
| 129 | .webconsole-filter-button:hover:active > .toolbarbutton-menubutton-button, |
| 130 | .webconsole-filter-button[open="true"] > .toolbarbutton-menubutton-button { |
| 131 | } |
| 132 | |
| 133 | .webconsole-filter-button { |
| 134 | -moz-margin-start: 3px; |
| 135 | padding: 0 !important; |
| 136 | } |
| 137 | |
| 138 | .webconsole-filter-button menuitem { |
| 139 | -moz-image-region: auto; |
| 140 | } |
| 141 | |
| 142 | .hud-filter-box { |
| 143 | margin-top: 0; |
| 144 | margin-bottom: 0; |
| 145 | } |
| 146 | |
| 147 | /* Network styles */ |
| 148 | .webconsole-filter-button[category="net"] { |
| 149 | -moz-image-region: rect(0, 8px, 8px, 0); |
| 150 | } |
| 151 | |
| 152 | .webconsole-msg-network > .webconsole-msg-icon-container { |
| 153 | -moz-border-start: solid #000 6px; |
| 154 | } |
| 155 | |
| 156 | .webconsole-msg-network.webconsole-msg-error { |
| 157 | -moz-image-region: rect(0, 16px, 8px, 8px); |
| 158 | } |
| 159 | |
| 160 | /* CSS styles */ |
| 161 | .webconsole-filter-button[category="css"] { |
| 162 | -moz-image-region: rect(8px, 8px, 16px, 0); |
| 163 | } |
| 164 | |
| 165 | .webconsole-msg-cssparser > .webconsole-msg-icon-container { |
| 166 | -moz-border-start: solid #00b6f0 6px; |
| 167 | } |
| 168 | |
| 169 | .webconsole-msg-cssparser.webconsole-msg-error { |
| 170 | -moz-image-region: rect(8px, 16px, 16px, 8px); |
| 171 | } |
| 172 | |
| 173 | .webconsole-msg-cssparser.webconsole-msg-warn { |
| 174 | -moz-image-region: rect(8px, 24px, 16px, 16px); |
| 175 | } |
| 176 | |
| 177 | /* JS styles */ |
| 178 | .webconsole-filter-button[category="js"] { |
| 179 | -moz-image-region: rect(16px, 8px, 24px, 0); |
| 180 | } |
| 181 | |
| 182 | .webconsole-msg-exception > .webconsole-msg-icon-container { |
| 183 | -moz-border-start: solid #fb9500 6px; |
| 184 | } |
| 185 | |
| 186 | .webconsole-msg-exception.webconsole-msg-error { |
| 187 | -moz-image-region: rect(16px, 16px, 24px, 8px); |
| 188 | } |
| 189 | |
| 190 | .webconsole-msg-exception.webconsole-msg-warn { |
| 191 | -moz-image-region: rect(16px, 24px, 24px, 16px); |
| 192 | } |
| 193 | |
| 194 | /* Web Developer styles */ |
| 195 | .webconsole-filter-button[category="logging"] { |
| 196 | -moz-image-region: rect(24px, 8px, 32px, 0); |
| 197 | } |
| 198 | |
| 199 | .webconsole-msg-console > .webconsole-msg-icon-container { |
| 200 | -moz-border-start: solid #cbcbcb 6px; |
| 201 | } |
| 202 | |
| 203 | .webconsole-msg-console.webconsole-msg-error, |
| 204 | .webconsole-msg-output.webconsole-msg-error { |
| 205 | -moz-image-region: rect(24px, 16px, 32px, 8px); |
| 206 | } |
| 207 | |
| 208 | .webconsole-msg-console.webconsole-msg-warn { |
| 209 | -moz-image-region: rect(24px, 24px, 32px, 16px); |
| 210 | } |
| 211 | |
| 212 | .webconsole-msg-console.webconsole-msg-info { |
| 213 | -moz-image-region: rect(24px, 32px, 32px, 24px); |
| 214 | } |
| 215 | |
| 216 | /* Input and output styles */ |
| 217 | .webconsole-msg-input > .webconsole-msg-icon-container, |
| 218 | .webconsole-msg-output > .webconsole-msg-icon-container { |
| 219 | border-left: solid #808080 6px; |
| 220 | } |
| 221 | |
| 222 | .webconsole-msg-input { |
| 223 | -moz-image-region: rect(24px, 40px, 32px, 32px); |
| 224 | } |
| 225 | |
| 226 | .webconsole-msg-output { |
| 227 | -moz-image-region: rect(24px, 48px, 32px, 40px); |
| 228 | } |
| 229 | |
| 230 | .webconsole-close-button { |
| 231 | border: none; |
| 232 | padding-top: 4px; |
| 233 | padding-bottom: 5px; |
| 234 | list-style-image: url("chrome://global/skin/icons/close-button.gif"); |
| 235 | } |
| 236 | |
| 237 | .webconsole-close-button:hover, |
| 238 | .webconsole-close-button:hover:active { |
| 239 | list-style-image: url("chrome://global/skin/icons/close-button-hover.gif"); |
| 240 | } |
| 241 | |
| 242 | /* JSTerm Styles */ |
| 243 | |
| 244 | .jsterm-wrapper-node { |
| 245 | font-family: "Liberation Mono", Consolas, "Courier New", monospace; |
| 246 | font-size: 1em; |
| 247 | background-color: #000; |
| 248 | border: 1px solid #333; |
| 249 | padding: 0.1em; |
| 250 | width: 100%; |
| 251 | height: 400px; |
| 252 | } |
| 253 | |
| 254 | .jsterm-output-node { |
| 255 | width: 100%; |
| 256 | height: 400px; |
| 257 | color: white; |
| 258 | background-color: black; |
| 259 | overflow: auto; |
| 260 | overflow-x: auto; |
| 261 | position: absolute; |
| 262 | -moz-box-direction: reverse; |
| 263 | } |
| 264 | |
| 265 | .jsterm-scroll-to-node { |
| 266 | height: 1px; width: 1px; position: relative; top: 92%; display: block; |
| 267 | } |
| 268 | |
| 269 | .jsterm-input-node, |
| 270 | .jsterm-complete-node { |
| 271 | border: none; |
| 272 | padding: 0 0 0 16px; |
| 273 | } |
| 274 | |
| 275 | .jsterm-input-node { |
| 276 | background: url("chrome://global/skin/icons/commandline.png") 4px 3px no-repeat; |
| 277 | } |
| 278 | |
| 279 | :-moz-any(.jsterm-input-node, |
| 280 | .jsterm-complete-node) > .textbox-input-box > .textbox-textarea { |
| 281 | overflow-x: hidden; |
| 282 | } |
| 283 | |
| 284 | .jsterm-complete-node > .textbox-input-box > .textbox-textarea { |
| 285 | color: #8050B0; |
| 286 | } |
| 287 | |
| 288 | .jsterm-output-line { |
| 289 | font-size: 1em; |
| 290 | } |
| 291 | |
| 292 | .hud-console-filter-toolbar { |
| 293 | -moz-box-align: center; |
| 294 | } |
| 295 | |
| 296 | .web-console-panel { |
| 297 | -moz-appearance: none; |
| 298 | background-color: black; |
| 299 | } |
| 300 | |
| 301 | .web-console-panel > .hud-box { |
| 302 | height: 100%; |
| 303 | width: 100%; |
| 304 | background-color: black; |
| 305 | } |
| 306 | |
| 307 | .hud-splitter { |
| 308 | border: 0; |
| 309 | } |