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/. */
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
18 /* === BEGIN webconsole.inc.css === */
20 /* General output styles */
23 -moz-user-focus: normal;
24 -moz-user-input: enabled;
26 text-decoration: underline;
29 /* Workaround for Bug 575675 - FindChildWithRules aRelevantLinkVisited
30 * assertion when loading HTML page with links in XUL iframe */
38 box-sizing: border-box;
41 .message > .timestamp {
56 align-self: flex-start;
59 .message > .icon::before {
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;
67 display: inline-block;
70 @media (min-resolution: 2dppx) {
71 .message > .icon::before {
72 background-image: url("chrome://browser/skin/devtools/webconsole@2x.png");
76 .message > .message-body-wrapper {
81 .message-body-wrapper .table-widget-body {
85 /* The red bubble that shows the number of times a message is repeated */
87 -moz-user-select: none;
93 background-color: #FF0000;
95 /* font: message-box; */
100 .message-repeats[value="1"] {
107 align-self: flex-start;
108 justify-content: flex-end;
112 text-decoration: none;
116 .message-location:hover,
117 .message-location:focus {
118 text-decoration: underline;
121 .message-location > .filename {
122 text-overflow: ellipsis;
128 .message-location > .line-number {
132 .hud-msg-node[selected="true"] > .webconsole-timestamp,
133 .hud-msg-node[selected="true"] > .webconsole-location {
142 white-space: pre-wrap;
143 word-wrap: break-word;
146 .message-flex-body > .message-body {
149 vertical-align: middle;
152 .message-flex-body > .message-location {
156 .jsterm-input-container {
157 border-top-width: 1px;
158 border-top-style: solid;
167 -moz-user-select: text;
170 flex-direction: column;
171 align-items: flex-start;
174 #output-container.hideTimestamps > .message {
175 -moz-padding-start: 0;
176 -moz-margin-start: 7px;
177 width: calc(100% - 7px);
180 #output-container.hideTimestamps > .message > .timestamp {
184 #output-container.hideTimestamps > .message > .indent {
185 background-color: #000000; /* .theme-body */
189 .filtered-by-string {
200 /* WebConsole colored drops */
202 .webconsole-filter-button {
203 -moz-user-focus: normal;
206 .webconsole-filter-button > .toolbarbutton-menubutton-button:before {
208 display: inline-block;
217 .webconsole-filter-button menuitem {
218 -moz-image-region: auto;
227 .webconsole-filter-button[category="net"] > .toolbarbutton-menubutton-button:before {
228 background-image: linear-gradient(#BF9B00, #7F6700);
229 border-color: #FFCF00;
233 background-color: #404000;
236 .message[severity=error] {
237 background-color: #FF0000;
244 .message[severity=error] .console-string {
248 .theme-selected .console-string,
249 .theme-selected .cm-number,
250 .theme-selected .cm-variable,
251 .theme-selected .kind-ArrayLike {
252 color: #000000 !important; /* Selection Text Color */
255 .message[category=network] > .indent {
256 -moz-border-end: solid #FF0000 6px;
259 .message[category=network][severity=error] > .icon::before {
260 background-position: -8px 0;
263 .message[category=network] > .message-body {
267 .message[category=network] .method {
271 .message[category=network]:not(.navigation-marker) .url {
273 /* Make sure the URL is very small initially, let flex change width as needed. */
278 text-overflow: ellipsis;
281 .message[category=network] .status {
283 -moz-margin-start: 6px;
286 .message[category=network].mixed-content .url {
290 .message .learn-more-link {
296 .webconsole-filter-button[category="css"] > .toolbarbutton-menubutton-button:before {
297 background-image: linear-gradient(#7575BF, #4E4E7F);
298 border-color: #9C9CFF;
301 .message[category=cssparser] > .indent {
302 -moz-border-end: solid #9C9CFF 6px;
305 .message[category=cssparser][severity=error] > .icon::before {
306 background-position: -8px -8px;
309 .message[category=cssparser][severity=warn] > .icon::before {
310 background-position: -16px -8px;
314 .webconsole-filter-button[category="js"] > .toolbarbutton-menubutton-button:before {
315 background-image: linear-gradient(#BF7700, #7F4F00);
316 border-color: #FF9F00;
319 .message[category=exception] > .indent {
320 -moz-border-end: solid #FF9F00 6px;
323 .message[category=exception][severity=error] > .icon::before {
324 background-position: -8px -16px;
327 .message[category=exception][severity=warn] > .icon::before {
328 background-position: -16px -16px;
331 /* Web Developer styles */
332 .webconsole-filter-button[category="logging"] > .toolbarbutton-menubutton-button:before {
333 background-image: linear-gradient(#5F3B83, #3F2756);
334 border-color: #8050B0;
337 .message[category=console] > .indent {
338 -moz-border-end: solid #8050B0 6px;
341 .message[category=console][severity=error] > .icon::before,
342 .message[category=output][severity=error] > .icon::before {
343 background-position: -8px -24px;
346 .message[category=console][severity=warn] > .icon::before {
347 background-position: -16px -24px;
350 .message[category=console][severity=info] > .icon::before {
351 background-position: -24px -24px;
354 /* Input and output styles */
355 .message[category=input] > .indent,
356 .message[category=output] > .indent {
357 -moz-border-end: solid #A09090 6px;
360 .message[category=input] > .icon::before {
361 background-position: -32px -24px;
364 .message[category=output] > .icon::before {
365 background-position: -40px -24px;
371 .jsterm-complete-node {
372 -moz-padding-start: 16px;
374 background-color: transparent;
378 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/commandline-icon.png"), 0, 32, 16, 16);
379 background-repeat: no-repeat;
380 background-size: 16px 16px;
383 @media (min-resolution: 2dppx) {
385 background-image: -moz-image-rect(url('chrome://browser/skin/devtools/commandline-icon@2x.png'), 0, 64, 32, 32);
389 :-moz-any(.jsterm-input-node,
390 .jsterm-complete-node) > .textbox-input-box > .textbox-textarea {
394 .inlined-variables-view .message-body {
396 flex-direction: column;
399 .inlined-variables-view iframe {
404 -moz-margin-end: 15px;
405 border: 1px solid #9C9CFF;
409 #webconsole-sidebar > tabs {
414 .devtools-side-splitter ~ #webconsole-sidebar[hidden] {
418 /* Security styles */
420 .message[category=security] > .indent {
421 -moz-border-end: solid #FF0000 6px;
424 .webconsole-filter-button[category="security"] > .toolbarbutton-menubutton-button:before {
425 background-color: #FF0000;
426 border-color: #FFCF00;
429 .message[category=security][severity=error] > .icon::before {
430 background-position: -8px -32px;
433 .message[category=security][severity=warn] > .icon::before {
434 background-position: -16px -32px;
439 background-color: #A09090;
445 .navigation-marker .url {
446 -moz-padding-end: 9px;
447 text-decoration: none;
453 padding: 0 1em 0 1.5em;
457 border: 1px solid #A09090;
465 .message[severity=error] .stacktrace {
466 background-color: #000000;
469 .message[open] .stacktrace {
473 .message .theme-twisty {
474 display: inline-block;
475 vertical-align: middle;
484 .stacktrace .function {
489 .cm-s-mozilla a[class] {
491 text-decoration: none;
494 .cm-s-mozilla a[class]:hover,
495 .cm-s-mozilla a[class]:focus {
496 text-decoration: underline;
499 /* Open DOMNode in inspector button */
501 background: url("chrome://browser/skin/devtools/vview-open-inspector.png") no-repeat 0 0;
507 .elementNode:hover .open-inspector,
508 .open-inspector:hover {
509 background-position: -32px 0;
512 .open-inspector:active {
513 background-position: -16px 0;
516 /* Replace these values with CSS variables as available */
517 .jsterm-input-container {
518 background-color: #000000; /* tabToolbarBackgroundColor */
519 border-color: #9C9CFF; /* mainBackgroundColor */
523 color: #E7ADE7; /* textColor */
526 .jsterm-complete-node {
527 color: #A09090; /* commentColor */
530 .navigation-marker .url {
531 background: #000000; /* mainBackgroundColor */
534 .inlined-variables-view iframe {
535 border-color: #A09090;
539 border-color: #A09090;
542 @media (max-width: 500px) {
543 .message > .timestamp {
546 .hud-console-filter-toolbar .webconsole-filter-button .toolbarbutton-text {
549 .hud-console-filter-toolbar .webconsole-filter-button {
552 .hud-console-filter-toolbar .webconsole-clear-console-button {
555 .webconsole-filter-button > .toolbarbutton-menubutton-button:before {
560 .toolbarbutton-menubutton-dropmarker {
565 @media (max-width: 300px) {
566 .hud-console-filter-toolbar {
567 -moz-box-orient: vertical;
569 .toolbarbutton-text {
572 .devtools-toolbarbutton {
575 .hud-console-filter-toolbar .hud-filter-box,
576 .hud-console-filter-toolbar .devtools-toolbarbutton {
581 /* === END webconsole.inc.css === */