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: 1.25dppx) {
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: var(--theme-body-background);
189 .filtered-by-string {
200 /* WebConsole colored drops */
202 .hud-console-filter-toolbar toolbarbutton > .toolbarbutton-text {
203 padding: 2px 2px 3px;
206 .webconsole-filter-button {
207 -moz-user-focus: normal;
210 .webconsole-filter-button > .toolbarbutton-menubutton-button:before {
212 display: inline-block;
216 -moz-margin-start: 2px;
217 -moz-margin-end: 2px;
222 .webconsole-filter-button > .toolbarbutton-menubutton-button {
223 -moz-box-orient: horizontal;
226 .webconsole-filter-button menuitem {
227 -moz-image-region: auto;
236 .webconsole-filter-button[category="net"] > .toolbarbutton-menubutton-button:before {
237 background-image: linear-gradient(#BF9B00, #7F6700);
238 border-color: #FFCF00;
242 background-color: var(--theme-contrast-background);
245 .message[severity=error] {
246 background-color: #FF0000;
250 color: var(--theme-highlight-orange);
253 .message[severity=error] .console-string {
257 .theme-selected .console-string,
258 .theme-selected .cm-number,
259 .theme-selected .cm-variable,
260 .theme-selected .kind-ArrayLike {
261 color: #000000 !important; /* Selection Text Color */
264 .message[category=network] > .indent {
265 -moz-border-end: solid #FF0000 6px;
268 .message[category=network][severity=error] > .icon::before {
269 background-position: -8px 0;
272 .message[category=network] > .message-body {
276 .message[category=network] .method {
280 .message[category=network]:not(.navigation-marker) .url {
282 /* Make sure the URL is very small initially, let flex change width as needed. */
287 text-overflow: ellipsis;
290 .message[category=network] .status {
292 -moz-margin-start: 6px;
295 .message[category=network].mixed-content .url {
299 .message .learn-more-link {
304 .message[category=network] .xhr {
305 background-color: var(--theme-body-color-alt);
306 color: var(--theme-body-background);
312 -moz-margin-end: 1ex;
316 .webconsole-filter-button[category="css"] > .toolbarbutton-menubutton-button:before {
317 background-image: linear-gradient(#7575BF, #4E4E7F);
318 border-color: #9C9CFF;
321 .message[category=cssparser] > .indent {
322 -moz-border-end: solid #9C9CFF 6px;
325 .message[category=cssparser][severity=error] > .icon::before {
326 background-position: -8px -8px;
329 .message[category=cssparser][severity=warn] > .icon::before {
330 background-position: -16px -8px;
334 .webconsole-filter-button[category="js"] > .toolbarbutton-menubutton-button:before {
335 background-image: linear-gradient(#BF7700, #7F4F00);
336 border-color: #FF9F00;
339 .message[category=exception] > .indent {
340 -moz-border-end: solid #FF9F00 6px;
343 .message[category=exception][severity=error] > .icon::before {
344 background-position: -8px -16px;
347 .message[category=exception][severity=warn] > .icon::before {
348 background-position: -16px -16px;
351 /* Web Developer styles */
352 .webconsole-filter-button[category="logging"] > .toolbarbutton-menubutton-button:before {
353 background-image: linear-gradient(#5F3B83, #3F2756);
354 border-color: #8050B0;
357 .message[category=console] > .indent {
358 -moz-border-end: solid #8050B0 6px;
361 .message[category=console][severity=error] > .icon::before,
362 .message[category=output][severity=error] > .icon::before {
363 background-position: -8px -24px;
366 .message[category=console][severity=warn] > .icon::before {
367 background-position: -16px -24px;
370 .message[category=console][severity=info] > .icon::before {
371 background-position: -24px -24px;
374 /* Input and output styles */
375 .message[category=input] > .indent,
376 .message[category=output] > .indent {
377 -moz-border-end: solid #A09090 6px;
380 .message[category=input] > .icon::before {
381 background-position: -32px -24px;
384 .message[category=output] > .icon::before {
385 background-position: -40px -24px;
391 .jsterm-complete-node {
392 -moz-padding-start: 16px;
394 background-color: transparent;
398 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/commandline-icon.png"), 0, 32, 16, 16);
399 background-repeat: no-repeat;
400 background-size: 16px 16px;
403 @media (min-resolution: 1.25dppx) {
405 background-image: -moz-image-rect(url('chrome://browser/skin/devtools/commandline-icon@2x.png'), 0, 64, 32, 32);
409 :-moz-any(.jsterm-input-node,
410 .jsterm-complete-node) > .textbox-input-box > .textbox-textarea {
414 .inlined-variables-view .message-body {
416 flex-direction: column;
422 .inlined-variables-view iframe {
427 -moz-margin-end: 15px;
428 border: 1px solid #9C9CFF;
432 #webconsole-sidebar > tabs {
437 .devtools-side-splitter ~ #webconsole-sidebar[hidden] {
441 /* Security styles */
443 .message[category=security] > .indent {
444 -moz-border-end: solid #FF0000 6px;
447 .webconsole-filter-button[category="security"] > .toolbarbutton-menubutton-button:before {
448 background-color: #FF0000;
449 border-color: #FFCF00;
452 .message[category=security][severity=error] > .icon::before {
453 background-position: -8px -32px;
456 .message[category=security][severity=warn] > .icon::before {
457 background-position: -16px -32px;
462 background-color: #A09090;
468 .navigation-marker .url {
469 -moz-padding-end: 9px;
470 text-decoration: none;
476 padding: 0 1em 0 1.5em;
480 border: 1px solid #A09090;
488 .message[severity=error] .stacktrace {
489 background-color: #000000;
492 .message[open] .stacktrace {
496 .message .theme-twisty {
497 display: inline-block;
498 vertical-align: middle;
507 .stacktrace .function {
512 .cm-s-mozilla a[class] {
514 text-decoration: none;
517 .cm-s-mozilla a[class]:hover,
518 .cm-s-mozilla a[class]:focus {
519 text-decoration: underline;
522 /* Open DOMNode in inspector button */
524 background: url("chrome://browser/skin/devtools/vview-open-inspector.png") no-repeat 0 0;
530 .elementNode:hover .open-inspector,
531 .open-inspector:hover {
532 background-position: -32px 0;
535 .open-inspector:active {
536 background-position: -16px 0;
539 /* Replace these values with CSS variables as available */
540 .jsterm-input-container {
541 background-color: var(--theme-toolbar-background);
542 border-color: var(--theme-splitter-color);
546 color: var(--theme-highlight-pink);
549 .jsterm-complete-node {
550 color: var(--theme-comment);
553 .navigation-marker .url {
554 background: var(--theme-body-background);
557 .inlined-variables-view iframe {
558 border-color: #A09090;
562 border-color: #A09090;
565 @media (max-width: 500px) {
566 .message > .timestamp {
569 .hud-console-filter-toolbar .webconsole-filter-button .toolbarbutton-text {
572 .hud-console-filter-toolbar .webconsole-filter-button {
575 .hud-console-filter-toolbar .webconsole-clear-console-button {
578 .webconsole-filter-button > .toolbarbutton-menubutton-button:before {
583 .toolbarbutton-menubutton-dropmarker {
588 @media (max-width: 300px) {
589 .hud-console-filter-toolbar {
590 -moz-box-orient: vertical;
592 .toolbarbutton-text {
596 .devtools-toolbarbutton {
599 .hud-console-filter-toolbar .hud-filter-box,
600 .hud-console-filter-toolbar .devtools-toolbarbutton {
606 /* === END webconsole.inc.css === */