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 .theme-selected .console-string,
245 .theme-selected .cm-number,
246 .theme-selected .cm-variable,
247 .theme-selected .kind-ArrayLike {
248 color: #000000 !important; /* Selection Text Color */
251 .message[category=network] > .indent {
252 -moz-border-end: solid #FF0000 6px;
255 .message[category=network][severity=error] > .icon::before {
256 background-position: -8px 0;
259 .message[category=network] > .message-body {
263 .message[category=network] .method {
267 .message[category=network]:not(.navigation-marker) .url {
269 /* Make sure the URL is very small initially, let flex change width as needed. */
274 text-overflow: ellipsis;
277 .message[category=network] .status {
279 -moz-margin-start: 6px;
282 .message[category=network].mixed-content .url {
286 .message .learn-more-link {
292 .webconsole-filter-button[category="css"] > .toolbarbutton-menubutton-button:before {
293 background-image: linear-gradient(#7575BF, #4E4E7F);
294 border-color: #9C9CFF;
297 .message[category=cssparser] > .indent {
298 -moz-border-end: solid #9C9CFF 6px;
301 .message[category=cssparser][severity=error] > .icon::before {
302 background-position: -8px -8px;
305 .message[category=cssparser][severity=warn] > .icon::before {
306 background-position: -16px -8px;
310 .webconsole-filter-button[category="js"] > .toolbarbutton-menubutton-button:before {
311 background-image: linear-gradient(#BF7700, #7F4F00);
312 border-color: #FF9F00;
315 .message[category=exception] > .indent {
316 -moz-border-end: solid #FF9F00 6px;
319 .message[category=exception][severity=error] > .icon::before {
320 background-position: -8px -16px;
323 .message[category=exception][severity=warn] > .icon::before {
324 background-position: -16px -16px;
327 /* Web Developer styles */
328 .webconsole-filter-button[category="logging"] > .toolbarbutton-menubutton-button:before {
329 background-image: linear-gradient(#5F3B83, #3F2756);
330 border-color: #8050B0;
333 .message[category=console] > .indent {
334 -moz-border-end: solid #8050B0 6px;
337 .message[category=console][severity=error] > .icon::before,
338 .message[category=output][severity=error] > .icon::before {
339 background-position: -8px -24px;
342 .message[category=console][severity=warn] > .icon::before {
343 background-position: -16px -24px;
346 .message[category=console][severity=info] > .icon::before {
347 background-position: -24px -24px;
350 /* Input and output styles */
351 .message[category=input] > .indent,
352 .message[category=output] > .indent {
353 -moz-border-end: solid #A09090 6px;
356 .message[category=input] > .icon::before {
357 background-position: -32px -24px;
360 .message[category=output] > .icon::before {
361 background-position: -40px -24px;
367 .jsterm-complete-node {
368 -moz-padding-start: 16px;
370 background-color: transparent;
374 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/commandline-icon.png"), 0, 32, 16, 16);
375 background-repeat: no-repeat;
376 background-size: 16px 16px;
379 @media (min-resolution: 2dppx) {
381 background-image: -moz-image-rect(url('chrome://browser/skin/devtools/commandline-icon@2x.png'), 0, 64, 32, 32);
385 :-moz-any(.jsterm-input-node,
386 .jsterm-complete-node) > .textbox-input-box > .textbox-textarea {
390 .inlined-variables-view .message-body {
392 flex-direction: column;
395 .inlined-variables-view iframe {
400 -moz-margin-end: 15px;
401 border: 1px solid #9C9CFF;
405 #webconsole-sidebar > tabs {
410 .devtools-side-splitter ~ #webconsole-sidebar[hidden] {
414 /* Security styles */
416 .message[category=security] > .indent {
417 -moz-border-end: solid #FF0000 6px;
420 .webconsole-filter-button[category="security"] > .toolbarbutton-menubutton-button:before {
421 background-color: #FF0000;
422 border-color: #FFCF00;
425 .message[category=security][severity=error] > .icon::before {
426 background-position: -8px -32px;
429 .message[category=security][severity=warn] > .icon::before {
430 background-position: -16px -32px;
435 background-color: #A09090;
441 .navigation-marker .url {
442 -moz-padding-end: 9px;
443 text-decoration: none;
449 padding: 0 1em 0 1.5em;
453 border: 1px solid #A09090;
461 .message[severity=error] .stacktrace {
462 background-color: #000000;
465 .message[open] .stacktrace {
469 .message .theme-twisty {
470 display: inline-block;
471 vertical-align: middle;
480 .stacktrace .function {
485 .cm-s-mozilla a[class] {
487 text-decoration: none;
490 .cm-s-mozilla a[class]:hover,
491 .cm-s-mozilla a[class]:focus {
492 text-decoration: underline;
495 /* Open DOMNode in inspector button */
497 background: url("chrome://browser/skin/devtools/vview-open-inspector.png") no-repeat 0 0;
503 .elementNode:hover .open-inspector,
504 .open-inspector:hover {
505 background-position: -32px 0;
508 .open-inspector:active {
509 background-position: -16px 0;
512 /* Replace these values with CSS variables as available */
513 .jsterm-input-container {
514 background-color: #000000; /* tabToolbarBackgroundColor */
515 border-color: #9C9CFF; /* mainBackgroundColor */
519 color: #E7ADE7; /* textColor */
522 .jsterm-complete-node {
523 color: #A09090; /* commentColor */
526 .navigation-marker .url {
527 background: #000000; /* mainBackgroundColor */
530 .inlined-variables-view iframe {
531 border-color: #A09090;
535 border-color: #A09090;
538 @media (max-width: 500px) {
539 .message > .timestamp {
542 .hud-console-filter-toolbar .webconsole-filter-button .toolbarbutton-text {
545 .hud-console-filter-toolbar .webconsole-filter-button {
548 .hud-console-filter-toolbar .webconsole-clear-console-button {
551 .webconsole-filter-button > .toolbarbutton-menubutton-button:before {
556 .toolbarbutton-menubutton-dropmarker {
561 @media (max-width: 300px) {
562 .hud-console-filter-toolbar {
563 -moz-box-orient: vertical;
565 .toolbarbutton-text {
568 .devtools-toolbarbutton {
571 .hud-console-filter-toolbar .hud-filter-box,
572 .hud-console-filter-toolbar .devtools-toolbarbutton {
577 /* === END webconsole.inc.css === */