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 /* The red bubble that shows the number of times a message is repeated */
83 -moz-user-select: none;
89 background-color: #FF0000;
91 /* font: message-box; */
96 .message-repeats[value="1"] {
103 align-self: flex-start;
104 justify-content: flex-end;
108 text-decoration: none;
112 .message-location:hover,
113 .message-location:focus {
114 text-decoration: underline;
117 .message-location > .filename {
118 text-overflow: ellipsis;
124 .message-location > .line-number {
128 .hud-msg-node[selected="true"] > .webconsole-timestamp,
129 .hud-msg-node[selected="true"] > .webconsole-location {
138 white-space: pre-wrap;
139 word-wrap: break-word;
142 .message-flex-body > .message-body {
145 vertical-align: middle;
148 .message-flex-body > .message-location {
152 .jsterm-input-container {
153 border-top-width: 1px;
154 border-top-style: solid;
163 -moz-user-select: text;
166 flex-direction: column;
167 align-items: flex-start;
170 #output-container.hideTimestamps > .message {
171 -moz-padding-start: 0;
172 -moz-margin-start: 7px;
173 width: calc(100% - 7px);
176 #output-container.hideTimestamps > .message > .timestamp {
180 #output-container.hideTimestamps > .message > .indent {
181 background-color: #000000; /* .theme-body */
185 .filtered-by-string {
196 /* WebConsole colored drops */
198 .webconsole-filter-button {
199 -moz-user-focus: normal;
202 .webconsole-filter-button[checked] {
203 /* color: white !important; */
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;
232 .message[severity=error] {
233 background-color: #FF0000;
240 .message[category=network] > .indent {
241 -moz-border-end: solid #FF0000 6px;
244 .message[category=network][severity=error] > .icon::before {
245 background-position: -8px 0;
248 .message[category=network] > .message-body {
252 .message[category=network] .method {
256 .message[category=network]:not(.navigation-marker) .url {
258 /* Make sure the URL is very small initially, let flex change width as needed. */
263 text-overflow: ellipsis;
266 .message[category=network] .status {
268 -moz-margin-start: 6px;
271 .message[category=network].mixed-content .url {
275 .message .learn-more-link {
281 .webconsole-filter-button[category="css"] > .toolbarbutton-menubutton-button:before {
282 background-image: linear-gradient(#7575BF, #4E4E7F);
283 border-color: #9C9CFF;
286 .message[category=cssparser] > .indent {
287 -moz-border-end: solid #9C9CFF 6px;
290 .message[category=cssparser][severity=error] > .icon::before {
291 background-position: -8px -8px;
294 .message[category=cssparser][severity=warn] > .icon::before {
295 background-position: -16px -8px;
299 .webconsole-filter-button[category="js"] > .toolbarbutton-menubutton-button:before {
300 background-image: linear-gradient(#BF7700, #7F4F00);
301 border-color: #FF9F00;
304 .message[category=exception] > .indent {
305 -moz-border-end: solid #FF9F00 6px;
308 .message[category=exception][severity=error] > .icon::before {
309 background-position: -8px -16px;
312 .message[category=exception][severity=warn] > .icon::before {
313 background-position: -16px -16px;
316 /* Web Developer styles */
317 .webconsole-filter-button[category="logging"] > .toolbarbutton-menubutton-button:before {
318 background-image: linear-gradient(#5F3B83, #3F2756);
319 border-color: #8050B0;
322 .message[category=console] > .indent {
323 -moz-border-end: solid #8050B0 6px;
326 .message[category=console][severity=error] > .icon::before,
327 .message[category=output][severity=error] > .icon::before {
328 background-position: -8px -24px;
331 .message[category=console][severity=warn] > .icon::before {
332 background-position: -16px -24px;
335 .message[category=console][severity=info] > .icon::before {
336 background-position: -24px -24px;
339 /* Input and output styles */
340 .message[category=input] > .indent,
341 .message[category=output] > .indent {
342 -moz-border-end: solid #A09090 6px;
345 .message[category=input] > .icon::before {
346 background-position: -32px -24px;
349 .message[category=output] > .icon::before {
350 background-position: -40px -24px;
356 .jsterm-complete-node {
357 -moz-padding-start: 16px;
359 background-color: transparent;
363 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/commandline-icon.png"), 0, 32, 16, 16);
364 background-repeat: no-repeat;
365 background-size: 16px 16px;
368 @media (min-resolution: 2dppx) {
370 background-image: -moz-image-rect(url('chrome://browser/skin/devtools/commandline-icon@2x.png'), 0, 64, 32, 32);
374 :-moz-any(.jsterm-input-node,
375 .jsterm-complete-node) > .textbox-input-box > .textbox-textarea {
379 .inlined-variables-view .message-body {
381 flex-direction: column;
384 .inlined-variables-view iframe {
389 -moz-margin-end: 15px;
390 border: 1px solid #9C9CFF;
394 #webconsole-sidebar > tabs {
399 .devtools-side-splitter ~ #webconsole-sidebar[hidden] {
403 /* Security styles */
405 .message[category=security] > .indent {
406 -moz-border-end: solid #FF0000 6px;
409 .webconsole-filter-button[category="security"] > .toolbarbutton-menubutton-button:before {
410 background-color: #FF0000;
411 border-color: #FFCF00;
414 .message[category=security][severity=error] > .icon::before {
415 background-position: -8px -32px;
418 .message[category=security][severity=warn] > .icon::before {
419 background-position: -16px -32px;
424 background-color: #A09090;
430 .navigation-marker .url {
431 -moz-padding-end: 9px;
432 text-decoration: none;
438 padding: 0 1em 0 1.5em;
442 border: 1px solid #A09090;
446 .message[severity=error] .stacktrace {
447 background-color: #000000;
450 .message[open] .stacktrace {
454 .message .theme-twisty {
455 display: inline-block;
456 vertical-align: middle;
465 .stacktrace .function {
470 .cm-s-mozilla a[class] {
472 text-decoration: none;
475 .cm-s-mozilla a[class]:hover,
476 .cm-s-mozilla a[class]:focus {
477 text-decoration: underline;
480 /* Open DOMNode in inspector button */
482 background: url("chrome://browser/skin/devtools/vview-open-inspector.png") no-repeat 0 0;
488 .elementNode:hover .open-inspector,
489 .open-inspector:hover {
490 background-position: -32px 0;
493 .open-inspector:active {
494 background-position: -16px 0;
497 /* Replace these values with CSS variables as available */
498 .theme-dark .jsterm-input-container {
499 background-color: #000000; /* tabToolbarBackgroundColor */
500 border-color: #9C9CFF; /* mainBackgroundColor */
503 .theme-dark .jsterm-input-node {
504 color: #E7ADE7; /* textColor */
507 .theme-dark .jsterm-complete-node {
508 color: #A09090; /* commentColor */
511 .theme-dark .navigation-marker .url {
512 background: #000000; /* mainBackgroundColor */
515 .theme-dark .inlined-variables-view iframe {
516 border-color: #A09090;
519 .theme-dark .stacktrace {
520 border-color: #A09090;
523 .theme-light .jsterm-input-container {
524 background-color: #000000; /* tabToolbarBackgroundColor */
525 border-color: #9C9CFF; /* mainBackgroundColor */
528 .theme-light .jsterm-input-node {
529 color: #E7ADE7; /* textColor */
532 .theme-light .jsterm-complete-node {
533 color: #A09090; /* commentColor */
536 .theme-light .navigation-marker .url {
537 background: #000000; /* mainBackgroundColor */
540 .theme-light .inlined-variables-view iframe {
541 border-color: #A09090;
544 .theme-dark .stacktrace {
545 border-color: #A09090;
548 @media (max-width: 500px) {
549 .message > .timestamp {
552 .toolbarbutton-text {
555 .hud-console-filter-toolbar .webconsole-filter-button {
558 .hud-console-filter-toolbar .webconsole-clear-console-button {
561 .webconsole-filter-button > .toolbarbutton-menubutton-button:before {
566 .toolbarbutton-menubutton-dropmarker {
571 @media (max-width: 300px) {
572 .hud-console-filter-toolbar {
573 -moz-box-orient: vertical;
575 .toolbarbutton-text {
578 .devtools-toolbarbutton {
581 .hud-console-filter-toolbar .hud-filter-box,
582 .hud-console-filter-toolbar .devtools-toolbarbutton {
587 /* === END webconsole.inc.css === */