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 > .toolbarbutton-menubutton-button:before {
204 display: inline-block;
213 .webconsole-filter-button menuitem {
214 -moz-image-region: auto;
223 .webconsole-filter-button[category="net"] > .toolbarbutton-menubutton-button:before {
224 background-image: linear-gradient(#BF9B00, #7F6700);
225 border-color: #FFCF00;
228 .message[severity=error] {
229 background-color: #FF0000;
236 .message[category=network] > .indent {
237 -moz-border-end: solid #FF0000 6px;
240 .message[category=network][severity=error] > .icon::before {
241 background-position: -8px 0;
244 .message[category=network] > .message-body {
248 .message[category=network] .method {
252 .message[category=network]:not(.navigation-marker) .url {
254 /* Make sure the URL is very small initially, let flex change width as needed. */
259 text-overflow: ellipsis;
262 .message[category=network] .status {
264 -moz-margin-start: 6px;
267 .message[category=network].mixed-content .url {
271 .message .learn-more-link {
277 .webconsole-filter-button[category="css"] > .toolbarbutton-menubutton-button:before {
278 background-image: linear-gradient(#7575BF, #4E4E7F);
279 border-color: #9C9CFF;
282 .message[category=cssparser] > .indent {
283 -moz-border-end: solid #9C9CFF 6px;
286 .message[category=cssparser][severity=error] > .icon::before {
287 background-position: -8px -8px;
290 .message[category=cssparser][severity=warn] > .icon::before {
291 background-position: -16px -8px;
295 .webconsole-filter-button[category="js"] > .toolbarbutton-menubutton-button:before {
296 background-image: linear-gradient(#BF7700, #7F4F00);
297 border-color: #FF9F00;
300 .message[category=exception] > .indent {
301 -moz-border-end: solid #FF9F00 6px;
304 .message[category=exception][severity=error] > .icon::before {
305 background-position: -8px -16px;
308 .message[category=exception][severity=warn] > .icon::before {
309 background-position: -16px -16px;
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;
318 .message[category=console] > .indent {
319 -moz-border-end: solid #8050B0 6px;
322 .message[category=console][severity=error] > .icon::before,
323 .message[category=output][severity=error] > .icon::before {
324 background-position: -8px -24px;
327 .message[category=console][severity=warn] > .icon::before {
328 background-position: -16px -24px;
331 .message[category=console][severity=info] > .icon::before {
332 background-position: -24px -24px;
335 /* Input and output styles */
336 .message[category=input] > .indent,
337 .message[category=output] > .indent {
338 -moz-border-end: solid #A09090 6px;
341 .message[category=input] > .icon::before {
342 background-position: -32px -24px;
345 .message[category=output] > .icon::before {
346 background-position: -40px -24px;
352 .jsterm-complete-node {
353 -moz-padding-start: 16px;
355 background-color: transparent;
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;
364 @media (min-resolution: 2dppx) {
366 background-image: -moz-image-rect(url('chrome://browser/skin/devtools/commandline-icon@2x.png'), 0, 64, 32, 32);
370 :-moz-any(.jsterm-input-node,
371 .jsterm-complete-node) > .textbox-input-box > .textbox-textarea {
375 .inlined-variables-view .message-body {
377 flex-direction: column;
380 .inlined-variables-view iframe {
385 -moz-margin-end: 15px;
386 border: 1px solid #9C9CFF;
390 #webconsole-sidebar > tabs {
395 .devtools-side-splitter ~ #webconsole-sidebar[hidden] {
399 /* Security styles */
401 .message[category=security] > .indent {
402 -moz-border-end: solid #FF0000 6px;
405 .webconsole-filter-button[category="security"] > .toolbarbutton-menubutton-button:before {
406 background-color: #FF0000;
407 border-color: #FFCF00;
410 .message[category=security][severity=error] > .icon::before {
411 background-position: -8px -32px;
414 .message[category=security][severity=warn] > .icon::before {
415 background-position: -16px -32px;
420 background-color: #A09090;
426 .navigation-marker .url {
427 -moz-padding-end: 9px;
428 text-decoration: none;
434 padding: 0 1em 0 1.5em;
438 border: 1px solid #A09090;
442 .message[severity=error] .stacktrace {
443 background-color: #000000;
446 .message[open] .stacktrace {
450 .message .theme-twisty {
451 display: inline-block;
452 vertical-align: middle;
461 .stacktrace .function {
466 .cm-s-mozilla a[class] {
468 text-decoration: none;
471 .cm-s-mozilla a[class]:hover,
472 .cm-s-mozilla a[class]:focus {
473 text-decoration: underline;
476 /* Open DOMNode in inspector button */
478 background: url("chrome://browser/skin/devtools/vview-open-inspector.png") no-repeat 0 0;
484 .elementNode:hover .open-inspector,
485 .open-inspector:hover {
486 background-position: -32px 0;
489 .open-inspector:active {
490 background-position: -16px 0;
493 /* Replace these values with CSS variables as available */
494 .jsterm-input-container {
495 background-color: #000000; /* tabToolbarBackgroundColor */
496 border-color: #9C9CFF; /* mainBackgroundColor */
500 color: #E7ADE7; /* textColor */
503 .jsterm-complete-node {
504 color: #A09090; /* commentColor */
507 .navigation-marker .url {
508 background: #000000; /* mainBackgroundColor */
511 .inlined-variables-view iframe {
512 border-color: #A09090;
516 border-color: #A09090;
519 @media (max-width: 500px) {
520 .message > .timestamp {
523 .hud-console-filter-toolbar .webconsole-filter-button .toolbarbutton-text {
526 .hud-console-filter-toolbar .webconsole-filter-button {
529 .hud-console-filter-toolbar .webconsole-clear-console-button {
532 .webconsole-filter-button > .toolbarbutton-menubutton-button:before {
537 .toolbarbutton-menubutton-dropmarker {
542 @media (max-width: 300px) {
543 .hud-console-filter-toolbar {
544 -moz-box-orient: vertical;
546 .toolbarbutton-text {
549 .devtools-toolbarbutton {
552 .hud-console-filter-toolbar .hud-filter-box,
553 .hud-console-filter-toolbar .devtools-toolbarbutton {
558 /* === END webconsole.inc.css === */