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;
42 .message > .timestamp {
57 align-self: flex-start;
60 .message > .icon::before {
62 background-image: url("chrome://browser/skin/devtools/webconsole.svg");
63 background-position: 12px 12px;
64 background-repeat: no-repeat;
65 background-size: 72px 60px;
68 display: inline-block;
71 .message > .message-body-wrapper {
76 .message-body-wrapper .table-widget-body {
80 /* The red bubble that shows the number of times a message is repeated */
82 -moz-user-select: none;
88 background-color: #FF0000;
90 /* font: message-box; */
95 .message-repeats[value="1"] {
102 align-self: flex-start;
103 justify-content: flex-end;
107 text-decoration: none;
111 .message-location:hover,
112 .message-location:focus {
113 text-decoration: underline;
116 .message-location > .filename {
117 text-overflow: ellipsis;
123 .message-location > .line-number {
127 .hud-msg-node[selected="true"] > .webconsole-timestamp,
128 .hud-msg-node[selected="true"] > .webconsole-location {
137 white-space: pre-wrap;
138 word-wrap: break-word;
141 .message-flex-body > .message-body {
144 vertical-align: middle;
147 .message-flex-body > .message-location {
151 .jsterm-input-container {
152 border-top-width: 1px;
153 border-top-style: solid;
162 -moz-user-select: text;
165 flex-direction: column;
166 align-items: flex-start;
169 #output-container.hideTimestamps > .message {
170 -moz-padding-start: 0;
171 -moz-margin-start: 7px;
172 width: calc(100% - 7px);
175 #output-container.hideTimestamps > .message > .timestamp {
179 #output-container.hideTimestamps > .message > .indent {
180 background-color: var(--theme-body-background);
184 .filtered-by-string {
195 /* WebConsole colored drops */
197 .hud-console-filter-toolbar toolbarbutton > .toolbarbutton-text {
198 padding: 2px 2px 3px;
201 .webconsole-filter-button {
202 -moz-user-focus: normal;
205 .webconsole-filter-button > .toolbarbutton-menubutton-button:before {
207 display: inline-block;
211 -moz-margin-start: 2px;
212 -moz-margin-end: 2px;
217 .webconsole-filter-button > .toolbarbutton-menubutton-button {
218 -moz-box-orient: horizontal;
221 .webconsole-filter-button menuitem {
222 -moz-image-region: auto;
231 .webconsole-filter-button[category="net"] > .toolbarbutton-menubutton-button:before {
232 background-image: linear-gradient(#BF9B00, #7F6700);
233 border-color: #FFCF00;
237 background-color: var(--theme-contrast-background);
240 .message[severity=error] {
241 background-color: #FF0000;
245 color: var(--theme-highlight-orange);
248 .message[severity=error] .console-string {
252 .theme-selected .console-string,
253 .theme-selected .cm-number,
254 .theme-selected .cm-variable,
255 .theme-selected .kind-ArrayLike {
256 color: #000000 !important; /* Selection Text Color */
259 .message[category=network] > .indent {
260 -moz-border-end: solid #FF0000 6px;
263 .message[category=network][severity=error] > .icon::before {
264 background-position: -12px 0;
267 .message[category=network] > .message-body {
271 .message[category=network] .method {
275 .message[category=network]:not(.navigation-marker) .url {
277 /* Make sure the URL is very small initially, let flex change width as needed. */
282 text-overflow: ellipsis;
285 .message[category=network] .status {
287 -moz-margin-start: 6px;
290 .message[category=network].mixed-content .url {
294 .message .learn-more-link {
299 .message[category=network] .xhr {
300 background-color: var(--theme-body-color-alt);
301 color: var(--theme-body-background);
307 -moz-margin-end: 1ex;
311 .webconsole-filter-button[category="css"] > .toolbarbutton-menubutton-button:before {
312 background-image: linear-gradient(#7575BF, #4E4E7F);
313 border-color: #9C9CFF;
316 .message[category=cssparser] > .indent {
317 -moz-border-end: solid #9C9CFF 6px;
320 .message[category=cssparser][severity=error] > .icon::before {
321 background-position: -12px -12px;
324 .message[category=cssparser][severity=warn] > .icon::before {
325 background-position: -24px -12px;
329 .webconsole-filter-button[category="js"] > .toolbarbutton-menubutton-button:before {
330 background-image: linear-gradient(#BF7700, #7F4F00);
331 border-color: #FF9F00;
334 .message[category=exception] > .indent {
335 -moz-border-end: solid #FF9F00 6px;
338 .message[category=exception][severity=error] > .icon::before {
339 background-position: -12px -24px;
342 .message[category=exception][severity=warn] > .icon::before {
343 background-position: -24px -24px;
346 /* Web Developer styles */
347 .webconsole-filter-button[category="logging"] > .toolbarbutton-menubutton-button:before {
348 background-image: linear-gradient(#5F3B83, #3F2756);
349 border-color: #8050B0;
352 .message[category=console] > .indent {
353 -moz-border-end: solid #8050B0 6px;
356 .message[category=console][severity=error] > .icon::before,
357 .message[category=output][severity=error] > .icon::before {
358 background-position: -12px -36px;
361 .message[category=console][severity=warn] > .icon::before {
362 background-position: -24px -36px;
365 .message[category=console][severity=info] > .icon::before {
366 background-position: -36px -36px;
369 /* Input and output styles */
370 .message[category=input] > .indent,
371 .message[category=output] > .indent {
372 -moz-border-end: solid #A09090 6px;
375 .message[category=input] > .icon::before {
376 background-position: -48px -36px;
379 .message[category=output] > .icon::before {
380 background-position: -60px -36px;
386 .jsterm-complete-node {
387 -moz-padding-start: 16px;
389 background-color: transparent;
393 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/commandline-icon.png"), 0, 32, 16, 16);
394 background-repeat: no-repeat;
395 background-size: 16px 16px;
398 @media (min-resolution: 1.25dppx) {
400 background-image: -moz-image-rect(url('chrome://browser/skin/devtools/commandline-icon@2x.png'), 0, 64, 32, 32);
404 :-moz-any(.jsterm-input-node,
405 .jsterm-complete-node) > .textbox-input-box > .textbox-textarea {
409 .inlined-variables-view .message-body {
411 flex-direction: column;
417 .inlined-variables-view iframe {
422 -moz-margin-end: 15px;
423 border: 1px solid #9C9CFF;
427 #webconsole-sidebar > tabs {
432 .devtools-side-splitter ~ #webconsole-sidebar[hidden] {
436 /* Security styles */
438 .message[category=security] > .indent {
439 -moz-border-end: solid #FF0000 6px;
442 .webconsole-filter-button[category="security"] > .toolbarbutton-menubutton-button:before {
443 background-color: #FF0000;
444 border-color: #FFCF00;
447 .message[category=security][severity=error] > .icon::before {
448 background-position: -12px -48px;
451 .message[category=security][severity=warn] > .icon::before {
452 background-position: -24px -48px;
457 background-color: #A09090;
463 .navigation-marker .url {
464 -moz-padding-end: 9px;
465 text-decoration: none;
471 padding: 0 1em 0 1.5em;
475 border: 1px solid #A09090;
483 .message[severity=error] .stacktrace {
484 background-color: #000000;
487 .message[open] .stacktrace {
491 .message .theme-twisty {
492 display: inline-block;
493 vertical-align: middle;
502 .stacktrace .function {
507 .cm-s-mozilla a[class] {
509 text-decoration: none;
512 .cm-s-mozilla a[class]:hover,
513 .cm-s-mozilla a[class]:focus {
514 text-decoration: underline;
517 /* Open DOMNode in inspector button */
519 background: url("chrome://browser/skin/devtools/vview-open-inspector.png") no-repeat 0 0;
525 .elementNode:hover .open-inspector,
526 .open-inspector:hover {
527 background-position: -32px 0;
530 .open-inspector:active {
531 background-position: -16px 0;
534 /* Replace these values with CSS variables as available */
535 .jsterm-input-container {
536 background-color: var(--theme-toolbar-background);
537 border-color: var(--theme-splitter-color);
541 color: var(--theme-highlight-pink);
544 .jsterm-complete-node {
545 color: var(--theme-comment);
548 .navigation-marker .url {
549 background: var(--theme-body-background);
552 .inlined-variables-view iframe {
553 border-color: #A09090;
557 border-color: #A09090;
560 @media (max-width: 500px) {
561 .message > .timestamp {
564 .hud-console-filter-toolbar .webconsole-filter-button .toolbarbutton-text {
567 .hud-console-filter-toolbar .webconsole-filter-button {
570 .hud-console-filter-toolbar .webconsole-clear-console-button {
573 .webconsole-filter-button > .toolbarbutton-menubutton-button:before {
578 .toolbarbutton-menubutton-dropmarker {
583 @media (max-width: 300px) {
584 .hud-console-filter-toolbar {
585 -moz-box-orient: vertical;
587 .toolbarbutton-text {
591 .devtools-toolbarbutton {
594 .hud-console-filter-toolbar .hud-filter-box,
595 .hud-console-filter-toolbar .devtools-toolbarbutton {
601 /* === END webconsole.inc.css === */