| 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 | window { |
| 6 | padding: 0; |
| 7 | } |
| 8 | |
| 9 | /* |
| 10 | * This hardcoded width likely due to a toolkit Windows specific bug. |
| 11 | * See http://hg.mozilla.org/mozilla-central/annotate/f38d6df93cad/toolkit/themes/winstripe/global/textbox-aero.css#l7 |
| 12 | */ |
| 13 | |
| 14 | .hud-filter-box { |
| 15 | width: 200px; |
| 16 | } |
| 17 | |
| 18 | /* === BEGIN webconsole.inc.css === */ |
| 19 | |
| 20 | /* General output styles */ |
| 21 | |
| 22 | a { |
| 23 | -moz-user-focus: normal; |
| 24 | -moz-user-input: enabled; |
| 25 | cursor: pointer; |
| 26 | text-decoration: underline; |
| 27 | } |
| 28 | |
| 29 | /* Workaround for Bug 575675 - FindChildWithRules aRelevantLinkVisited |
| 30 | * assertion when loading HTML page with links in XUL iframe */ |
| 31 | *:visited { } |
| 32 | |
| 33 | .message { |
| 34 | display: flex; |
| 35 | flex: 0 0 auto; |
| 36 | padding: 0 7px; |
| 37 | width: 100%; |
| 38 | box-sizing: border-box; |
| 39 | } |
| 40 | |
| 41 | .message > .timestamp { |
| 42 | flex: 0 0 auto; |
| 43 | color: #8050B0; |
| 44 | margin: 4px 6px 0 0; |
| 45 | } |
| 46 | |
| 47 | .message > .indent { |
| 48 | flex: 0 0 auto; |
| 49 | } |
| 50 | |
| 51 | .message > .icon { |
| 52 | flex: 0 0 auto; |
| 53 | margin: 3px 6px 0 0; |
| 54 | padding: 0 4px; |
| 55 | height: 1em; |
| 56 | align-self: flex-start; |
| 57 | } |
| 58 | |
| 59 | .message > .icon::before { |
| 60 | content: ""; |
| 61 | background-image: url("chrome://browser/skin/devtools/webconsole.png"); |
| 62 | background-position: 8px 8px; |
| 63 | background-repeat: no-repeat; |
| 64 | background-size: 48px 40px; |
| 65 | width: 8px; |
| 66 | height: 8px; |
| 67 | display: inline-block; |
| 68 | } |
| 69 | |
| 70 | @media (min-resolution: 2dppx) { |
| 71 | .message > .icon::before { |
| 72 | background-image: url("chrome://browser/skin/devtools/webconsole@2x.png"); |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | .message > .message-body-wrapper { |
| 77 | flex: 1 1 100%; |
| 78 | margin: 3px; |
| 79 | } |
| 80 | |
| 81 | /* The red bubble that shows the number of times a message is repeated */ |
| 82 | .message-repeats { |
| 83 | -moz-user-select: none; |
| 84 | flex: 0 0 auto; |
| 85 | margin: 2px 6px; |
| 86 | padding: 0 6px; |
| 87 | height: 1.25em; |
| 88 | color: #000000; |
| 89 | background-color: #FF0000; |
| 90 | border-radius: 40px; |
| 91 | /* font: message-box; */ |
| 92 | font-size: 0.9em; |
| 93 | font-weight: 600; |
| 94 | } |
| 95 | |
| 96 | .message-repeats[value="1"] { |
| 97 | display: none; |
| 98 | } |
| 99 | |
| 100 | .message-location { |
| 101 | display: flex; |
| 102 | flex: 0 0 auto; |
| 103 | align-self: flex-start; |
| 104 | justify-content: flex-end; |
| 105 | width: 10em; |
| 106 | margin-top: 3px; |
| 107 | color: #3333FF; |
| 108 | text-decoration: none; |
| 109 | white-space: nowrap; |
| 110 | } |
| 111 | |
| 112 | .message-location:hover, |
| 113 | .message-location:focus { |
| 114 | text-decoration: underline; |
| 115 | } |
| 116 | |
| 117 | .message-location > .filename { |
| 118 | text-overflow: ellipsis; |
| 119 | text-align: end; |
| 120 | overflow: hidden; |
| 121 | white-space: nowrap; |
| 122 | } |
| 123 | |
| 124 | .message-location > .line-number { |
| 125 | flex: 0 0 auto; |
| 126 | } |
| 127 | |
| 128 | .hud-msg-node[selected="true"] > .webconsole-timestamp, |
| 129 | .hud-msg-node[selected="true"] > .webconsole-location { |
| 130 | color: inherit; |
| 131 | } |
| 132 | |
| 133 | .message-flex-body { |
| 134 | display: flex; |
| 135 | } |
| 136 | |
| 137 | .message-body { |
| 138 | white-space: pre-wrap; |
| 139 | word-wrap: break-word; |
| 140 | } |
| 141 | |
| 142 | .message-flex-body > .message-body { |
| 143 | display: block; |
| 144 | flex: 1 1 auto; |
| 145 | vertical-align: middle; |
| 146 | } |
| 147 | |
| 148 | .message-flex-body > .message-location { |
| 149 | margin-top: 0; |
| 150 | } |
| 151 | |
| 152 | .jsterm-input-container { |
| 153 | border-top-width: 1px; |
| 154 | border-top-style: solid; |
| 155 | } |
| 156 | |
| 157 | #output-wrapper { |
| 158 | direction: ltr; |
| 159 | overflow: auto; |
| 160 | } |
| 161 | |
| 162 | #output-container { |
| 163 | -moz-user-select: text; |
| 164 | -moz-box-flex: 1; |
| 165 | display: flex; |
| 166 | flex-direction: column; |
| 167 | align-items: flex-start; |
| 168 | } |
| 169 | |
| 170 | #output-container.hideTimestamps > .message { |
| 171 | -moz-padding-start: 0; |
| 172 | -moz-margin-start: 7px; |
| 173 | width: calc(100% - 7px); |
| 174 | } |
| 175 | |
| 176 | #output-container.hideTimestamps > .message > .timestamp { |
| 177 | display: none; |
| 178 | } |
| 179 | |
| 180 | #output-container.hideTimestamps > .message > .indent { |
| 181 | background-color: #000000; /* .theme-body */ |
| 182 | } |
| 183 | |
| 184 | .filtered-by-type, |
| 185 | .filtered-by-string { |
| 186 | display: none; |
| 187 | } |
| 188 | |
| 189 | .hidden-message { |
| 190 | display: block; |
| 191 | visibility: hidden; |
| 192 | height: 0; |
| 193 | overflow: hidden; |
| 194 | } |
| 195 | |
| 196 | /* WebConsole colored drops */ |
| 197 | |
| 198 | .webconsole-filter-button { |
| 199 | -moz-user-focus: normal; |
| 200 | } |
| 201 | |
| 202 | .webconsole-filter-button > .toolbarbutton-menubutton-button:before { |
| 203 | content: ""; |
| 204 | display: inline-block; |
| 205 | height: 8px; |
| 206 | width: 8px; |
| 207 | border-radius: 50%; |
| 208 | margin-left: 5px; |
| 209 | border-width: 1px; |
| 210 | border-style: solid; |
| 211 | } |
| 212 | |
| 213 | .webconsole-filter-button menuitem { |
| 214 | -moz-image-region: auto; |
| 215 | } |
| 216 | |
| 217 | .hud-filter-box { |
| 218 | margin-top: 0; |
| 219 | margin-bottom: 0; |
| 220 | } |
| 221 | |
| 222 | /* Network styles */ |
| 223 | .webconsole-filter-button[category="net"] > .toolbarbutton-menubutton-button:before { |
| 224 | background-image: linear-gradient(#BF9B00, #7F6700); |
| 225 | border-color: #FFCF00; |
| 226 | } |
| 227 | |
| 228 | .message[severity=error] { |
| 229 | background-color: #FF0000; |
| 230 | } |
| 231 | |
| 232 | .console-string { |
| 233 | color: #FF0000; |
| 234 | } |
| 235 | |
| 236 | .message[category=network] > .indent { |
| 237 | -moz-border-end: solid #FF0000 6px; |
| 238 | } |
| 239 | |
| 240 | .message[category=network][severity=error] > .icon::before { |
| 241 | background-position: -8px 0; |
| 242 | } |
| 243 | |
| 244 | .message[category=network] > .message-body { |
| 245 | display: flex; |
| 246 | } |
| 247 | |
| 248 | .message[category=network] .method { |
| 249 | flex: 0 0 auto; |
| 250 | } |
| 251 | |
| 252 | .message[category=network]:not(.navigation-marker) .url { |
| 253 | flex: 1 1 auto; |
| 254 | /* Make sure the URL is very small initially, let flex change width as needed. */ |
| 255 | width: 100px; |
| 256 | min-width: 5em; |
| 257 | white-space: nowrap; |
| 258 | overflow: hidden; |
| 259 | text-overflow: ellipsis; |
| 260 | } |
| 261 | |
| 262 | .message[category=network] .status { |
| 263 | flex: 0 0 auto; |
| 264 | -moz-margin-start: 6px; |
| 265 | } |
| 266 | |
| 267 | .message[category=network].mixed-content .url { |
| 268 | color: #FF0000; |
| 269 | } |
| 270 | |
| 271 | .message .learn-more-link { |
| 272 | color: #3333FF; |
| 273 | margin: 0 6px; |
| 274 | } |
| 275 | |
| 276 | /* CSS styles */ |
| 277 | .webconsole-filter-button[category="css"] > .toolbarbutton-menubutton-button:before { |
| 278 | background-image: linear-gradient(#7575BF, #4E4E7F); |
| 279 | border-color: #9C9CFF; |
| 280 | } |
| 281 | |
| 282 | .message[category=cssparser] > .indent { |
| 283 | -moz-border-end: solid #9C9CFF 6px; |
| 284 | } |
| 285 | |
| 286 | .message[category=cssparser][severity=error] > .icon::before { |
| 287 | background-position: -8px -8px; |
| 288 | } |
| 289 | |
| 290 | .message[category=cssparser][severity=warn] > .icon::before { |
| 291 | background-position: -16px -8px; |
| 292 | } |
| 293 | |
| 294 | /* JS styles */ |
| 295 | .webconsole-filter-button[category="js"] > .toolbarbutton-menubutton-button:before { |
| 296 | background-image: linear-gradient(#BF7700, #7F4F00); |
| 297 | border-color: #FF9F00; |
| 298 | } |
| 299 | |
| 300 | .message[category=exception] > .indent { |
| 301 | -moz-border-end: solid #FF9F00 6px; |
| 302 | } |
| 303 | |
| 304 | .message[category=exception][severity=error] > .icon::before { |
| 305 | background-position: -8px -16px; |
| 306 | } |
| 307 | |
| 308 | .message[category=exception][severity=warn] > .icon::before { |
| 309 | background-position: -16px -16px; |
| 310 | } |
| 311 | |
| 312 | /* Web Developer styles */ |
| 313 | .webconsole-filter-button[category="logging"] > .toolbarbutton-menubutton-button:before { |
| 314 | background-image: linear-gradient(#5F3B83, #3F2756); |
| 315 | border-color: #8050B0; |
| 316 | } |
| 317 | |
| 318 | .message[category=console] > .indent { |
| 319 | -moz-border-end: solid #8050B0 6px; |
| 320 | } |
| 321 | |
| 322 | .message[category=console][severity=error] > .icon::before, |
| 323 | .message[category=output][severity=error] > .icon::before { |
| 324 | background-position: -8px -24px; |
| 325 | } |
| 326 | |
| 327 | .message[category=console][severity=warn] > .icon::before { |
| 328 | background-position: -16px -24px; |
| 329 | } |
| 330 | |
| 331 | .message[category=console][severity=info] > .icon::before { |
| 332 | background-position: -24px -24px; |
| 333 | } |
| 334 | |
| 335 | /* Input and output styles */ |
| 336 | .message[category=input] > .indent, |
| 337 | .message[category=output] > .indent { |
| 338 | -moz-border-end: solid #A09090 6px; |
| 339 | } |
| 340 | |
| 341 | .message[category=input] > .icon::before { |
| 342 | background-position: -32px -24px; |
| 343 | } |
| 344 | |
| 345 | .message[category=output] > .icon::before { |
| 346 | background-position: -40px -24px; |
| 347 | } |
| 348 | |
| 349 | /* JSTerm Styles */ |
| 350 | |
| 351 | .jsterm-input-node, |
| 352 | .jsterm-complete-node { |
| 353 | -moz-padding-start: 16px; |
| 354 | margin: 3px 0 0 0; |
| 355 | background-color: transparent; |
| 356 | } |
| 357 | |
| 358 | .jsterm-input-node { |
| 359 | background-image: -moz-image-rect(url("chrome://browser/skin/devtools/commandline-icon.png"), 0, 32, 16, 16); |
| 360 | background-repeat: no-repeat; |
| 361 | background-size: 16px 16px; |
| 362 | } |
| 363 | |
| 364 | @media (min-resolution: 2dppx) { |
| 365 | .jsterm-input-node { |
| 366 | background-image: -moz-image-rect(url('chrome://browser/skin/devtools/commandline-icon@2x.png'), 0, 64, 32, 32); |
| 367 | } |
| 368 | } |
| 369 | |
| 370 | :-moz-any(.jsterm-input-node, |
| 371 | .jsterm-complete-node) > .textbox-input-box > .textbox-textarea { |
| 372 | overflow-x: hidden; |
| 373 | } |
| 374 | |
| 375 | .inlined-variables-view .message-body { |
| 376 | display: flex; |
| 377 | flex-direction: column; |
| 378 | } |
| 379 | |
| 380 | .inlined-variables-view iframe { |
| 381 | display: block; |
| 382 | flex: 1; |
| 383 | margin-top: 5px; |
| 384 | margin-bottom: 15px; |
| 385 | -moz-margin-end: 15px; |
| 386 | border: 1px solid #9C9CFF; |
| 387 | border-radius: 4px; |
| 388 | } |
| 389 | |
| 390 | #webconsole-sidebar > tabs { |
| 391 | height: 0; |
| 392 | border: none; |
| 393 | } |
| 394 | |
| 395 | .devtools-side-splitter ~ #webconsole-sidebar[hidden] { |
| 396 | display: none; |
| 397 | } |
| 398 | |
| 399 | /* Security styles */ |
| 400 | |
| 401 | .message[category=security] > .indent { |
| 402 | -moz-border-end: solid #FF0000 6px; |
| 403 | } |
| 404 | |
| 405 | .webconsole-filter-button[category="security"] > .toolbarbutton-menubutton-button:before { |
| 406 | background-color: #FF0000; |
| 407 | border-color: #FFCF00; |
| 408 | } |
| 409 | |
| 410 | .message[category=security][severity=error] > .icon::before { |
| 411 | background-position: -8px -32px; |
| 412 | } |
| 413 | |
| 414 | .message[category=security][severity=warn] > .icon::before { |
| 415 | background-position: -16px -32px; |
| 416 | } |
| 417 | |
| 418 | .navigation-marker { |
| 419 | color: #000000; |
| 420 | background-color: #A09090; |
| 421 | margin-top: 6px; |
| 422 | margin-bottom: 6px; |
| 423 | font-size: 0.9em; |
| 424 | } |
| 425 | |
| 426 | .navigation-marker .url { |
| 427 | -moz-padding-end: 9px; |
| 428 | text-decoration: none; |
| 429 | } |
| 430 | |
| 431 | .stacktrace { |
| 432 | display: none; |
| 433 | list-style: none; |
| 434 | padding: 0 1em 0 1.5em; |
| 435 | margin: 5px 0 0 0; |
| 436 | max-height: 10em; |
| 437 | overflow-y: auto; |
| 438 | border: 1px solid #A09090; |
| 439 | border-radius: 3px; |
| 440 | } |
| 441 | |
| 442 | .message[severity=error] .stacktrace { |
| 443 | background-color: #000000; |
| 444 | } |
| 445 | |
| 446 | .message[open] .stacktrace { |
| 447 | display: block; |
| 448 | } |
| 449 | |
| 450 | .message .theme-twisty { |
| 451 | display: inline-block; |
| 452 | vertical-align: middle; |
| 453 | margin: 0 3px 0 0; |
| 454 | } |
| 455 | |
| 456 | .stacktrace li { |
| 457 | display: flex; |
| 458 | margin: 0; |
| 459 | } |
| 460 | |
| 461 | .stacktrace .function { |
| 462 | display: block; |
| 463 | flex: 1 1 auto; |
| 464 | } |
| 465 | |
| 466 | .cm-s-mozilla a[class] { |
| 467 | font-style: italic; |
| 468 | text-decoration: none; |
| 469 | } |
| 470 | |
| 471 | .cm-s-mozilla a[class]:hover, |
| 472 | .cm-s-mozilla a[class]:focus { |
| 473 | text-decoration: underline; |
| 474 | } |
| 475 | |
| 476 | /* Open DOMNode in inspector button */ |
| 477 | .open-inspector { |
| 478 | background: url("chrome://browser/skin/devtools/vview-open-inspector.png") no-repeat 0 0; |
| 479 | padding-left: 16px; |
| 480 | margin-left: 5px; |
| 481 | cursor: pointer; |
| 482 | } |
| 483 | |
| 484 | .elementNode:hover .open-inspector, |
| 485 | .open-inspector:hover { |
| 486 | background-position: -32px 0; |
| 487 | } |
| 488 | |
| 489 | .open-inspector:active { |
| 490 | background-position: -16px 0; |
| 491 | } |
| 492 | |
| 493 | /* Replace these values with CSS variables as available */ |
| 494 | .jsterm-input-container { |
| 495 | background-color: #000000; /* tabToolbarBackgroundColor */ |
| 496 | border-color: #9C9CFF; /* mainBackgroundColor */ |
| 497 | } |
| 498 | |
| 499 | .jsterm-input-node { |
| 500 | color: #E7ADE7; /* textColor */ |
| 501 | } |
| 502 | |
| 503 | .jsterm-complete-node { |
| 504 | color: #A09090; /* commentColor */ |
| 505 | } |
| 506 | |
| 507 | .navigation-marker .url { |
| 508 | background: #000000; /* mainBackgroundColor */ |
| 509 | } |
| 510 | |
| 511 | .inlined-variables-view iframe { |
| 512 | border-color: #A09090; |
| 513 | } |
| 514 | |
| 515 | .stacktrace { |
| 516 | border-color: #A09090; |
| 517 | } |
| 518 | |
| 519 | @media (max-width: 500px) { |
| 520 | .message > .timestamp { |
| 521 | display: none; |
| 522 | } |
| 523 | .hud-console-filter-toolbar .webconsole-filter-button .toolbarbutton-text { |
| 524 | display: none; |
| 525 | } |
| 526 | .hud-console-filter-toolbar .webconsole-filter-button { |
| 527 | min-width: 40px; |
| 528 | } |
| 529 | .hud-console-filter-toolbar .webconsole-clear-console-button { |
| 530 | min-width: 25px; |
| 531 | } |
| 532 | .webconsole-filter-button > .toolbarbutton-menubutton-button:before { |
| 533 | width: 12px; |
| 534 | height: 12x; |
| 535 | margin-left: 1px; |
| 536 | } |
| 537 | .toolbarbutton-menubutton-dropmarker { |
| 538 | margin: 0px; |
| 539 | } |
| 540 | } |
| 541 | |
| 542 | @media (max-width: 300px) { |
| 543 | .hud-console-filter-toolbar { |
| 544 | -moz-box-orient: vertical; |
| 545 | } |
| 546 | .toolbarbutton-text { |
| 547 | display: -moz-box; |
| 548 | } |
| 549 | .devtools-toolbarbutton { |
| 550 | margin-top: 3px; |
| 551 | } |
| 552 | .hud-console-filter-toolbar .hud-filter-box, |
| 553 | .hud-console-filter-toolbar .devtools-toolbarbutton { |
| 554 | margin-top: 5px; |
| 555 | } |
| 556 | } |
| 557 | |
| 558 | /* === END webconsole.inc.css === */ |