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 */
36 -moz-margin-start: 6px;
38 width: calc(100% - 6px - 8px);
41 .message > .timestamp {
48 background: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 0, 1, 0, 0) no-repeat;
49 background-position: center 0.5em;
58 white-space: pre-wrap;
59 word-wrap: break-word;
63 /* The red bubble that shows the number of times a message is repeated */
65 -moz-user-select: none;
71 background-color: #FF0000;
73 /* font: message-box; */
78 .message-repeats[value="1"] {
83 -moz-margin-start: 6px;
86 align-self: flex-start;
87 justify-content: flex-end;
91 text-decoration: none;
95 .message-location:hover,
96 .message-location:focus {
97 text-decoration: underline;
100 .message-location > .filename {
101 text-overflow: ellipsis;
107 .message-location > .line-number {
111 .hud-msg-node[selected="true"] > .webconsole-timestamp,
112 .hud-msg-node[selected="true"] > .webconsole-location {
116 .jsterm-input-container {
117 border-top-width: 1px;
118 border-top-style: solid;
127 -moz-user-select: text;
130 flex-direction: column;
131 align-items: flex-start;
134 #output-container.hideTimestamps > .message > .timestamp {
139 .filtered-by-string {
150 /* WebConsole colored drops */
152 .webconsole-filter-button {
153 -moz-user-focus: normal;
156 .webconsole-filter-button[checked] {
157 /* color: white !important; */
160 .webconsole-filter-button > .toolbarbutton-menubutton-button:before {
162 display: inline-block;
171 .webconsole-filter-button menuitem {
172 -moz-image-region: auto;
181 .webconsole-filter-button[category="net"] > .toolbarbutton-menubutton-button:before {
182 background-image: linear-gradient(#BF9B00, #7F6700);
183 border-color: #FFCF00;
186 .message[category=network] > .icon {
187 -moz-border-start: solid #FFCF00 6px;
190 .message[category=network][severity=error] > .icon {
191 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 0, 16, 8, 8);
194 .message[category=network] > .body {
198 .message[category=network] .method {
202 .message[category=network]:not(.navigation-marker) .url {
204 /* Make sure the URL is very small initially, let flex change width as needed. */
209 text-overflow: ellipsis;
212 .message[category=network] .status {
214 -moz-margin-start: 6px;
217 .message[category=network].mixed-content .url {
221 .message .learn-more-link {
227 .webconsole-filter-button[category="css"] > .toolbarbutton-menubutton-button:before {
228 background-image: linear-gradient(#7575BF, #4E4E7F);
229 border-color: #9C9CFF;
232 .message[category=cssparser] > .icon {
233 -moz-border-start: solid #9C9CFF 6px;
236 .message[category=cssparser][severity=error] > .icon {
237 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 8, 16, 16, 8);
240 .message[category=cssparser][severity=warn] > .icon {
241 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 8, 24, 16, 16);
245 .webconsole-filter-button[category="js"] > .toolbarbutton-menubutton-button:before {
246 background-image: linear-gradient(#BF7700, #7F4F00);
247 border-color: #FF9F00;
250 .message[category=exception] > .icon {
251 -moz-border-start: solid #FF9F00 6px;
254 .message[category=exception][severity=error] > .icon {
255 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 16, 16, 24, 8);
258 .message[category=exception][severity=warn] > .icon {
259 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 16, 24, 24, 16);
262 /* Web Developer styles */
263 .webconsole-filter-button[category="logging"] > .toolbarbutton-menubutton-button:before {
264 background-image: linear-gradient(#5F3B83, #3F2756);
265 border-color: #8050B0;
268 .message[category=console] > .icon {
269 -moz-border-start: solid #8050B0 6px;
272 .message[category=console][severity=error] > .icon,
273 .message[category=output][severity=error] > .icon {
274 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 16, 32, 8);
277 .message[category=console][severity=warn] > .icon {
278 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 24, 32, 16);
281 .message[category=console][severity=info] > .icon {
282 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 32, 32, 24);
285 /* Input and output styles */
286 .message[category=input] > .icon,
287 .message[category=output] > .icon {
288 -moz-border-start: solid #A09090 6px;
291 .message[category=input] > .icon {
292 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 40, 32, 32);
295 .message[category=output] > .icon {
296 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 48, 32, 40);
302 .jsterm-complete-node {
303 -moz-padding-start: 16px;
305 background-color: transparent;
309 background: -moz-image-rect(url("chrome://browser/skin/devtools/commandline-icon.png"), 0, 32, 16, 16) no-repeat;
312 :-moz-any(.jsterm-input-node,
313 .jsterm-complete-node) > .textbox-input-box > .textbox-textarea {
317 .inlined-variables-view .body {
319 flex-direction: column;
322 .inlined-variables-view iframe {
327 -moz-margin-end: 15px;
328 border: 1px solid #9C9CFF;
332 #webconsole-sidebar > tabs {
337 .devtools-side-splitter ~ #webconsole-sidebar[hidden] {
341 /* Security styles */
343 .message[category=security] > .icon {
344 -moz-border-start: solid #FF0000 6px;
347 .webconsole-filter-button[category="security"] > .toolbarbutton-menubutton-button:before {
348 background-color: #FF0000;
349 border-color: #FFCF00;
352 .message[category=security][severity=error] > .icon {
353 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 32, 16, 40, 8);
356 .message[category=security][severity=warn] > .icon {
357 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 32, 24, 40, 16);
362 background-color: #A09090;
368 .navigation-marker .url {
369 -moz-padding-end: 9px;
370 text-decoration: none;
373 .consoleTrace .body > div {
378 .consoleTrace .title {
385 padding: 0 1em 0 1.5em;
390 border: 1px solid #A09090;
399 .stacktrace .function {
404 .cm-s-mozilla a[class] {
406 text-decoration: none;
409 .cm-s-mozilla a[class]:hover,
410 .cm-s-mozilla a[class]:focus {
411 text-decoration: underline;
414 /* Open DOMNode in inspector button */
416 background: url("chrome://browser/skin/devtools/vview-open-inspector.png") no-repeat 0 0;
422 .elementNode:hover .open-inspector,
423 .open-inspector:hover {
424 background-position: -32px 0;
427 .open-inspector:active {
428 background-position: -16px 0;
431 /* Replace these values with CSS variables as available */
432 .theme-dark .jsterm-input-container {
433 background-color: #000000; /* tabToolbarBackgroundColor */
434 border-color: #9C9CFF; /* mainBackgroundColor */
437 .theme-dark .jsterm-input-node {
438 color: #E7ADE7; /* textColor */
441 .theme-dark .jsterm-complete-node {
442 color: #A09090; /* commentColor */
445 .theme-dark .navigation-marker .url {
446 background: #000000; /* mainBackgroundColor */
449 .theme-dark .inlined-variables-view iframe {
450 border-color: #A09090;
453 .theme-dark .stacktrace {
454 border-color: #A09090;
457 .theme-light .jsterm-input-container {
458 background-color: #000000; /* tabToolbarBackgroundColor */
459 border-color: #9C9CFF; /* mainBackgroundColor */
462 .theme-light .jsterm-input-node {
463 color: #E7ADE7; /* textColor */
466 .theme-light .jsterm-complete-node {
467 color: #A09090; /* commentColor */
470 .theme-light .navigation-marker .url {
471 background: #000000; /* mainBackgroundColor */
474 .theme-light .inlined-variables-view iframe {
475 border-color: #A09090;
478 .theme-dark .stacktrace {
479 border-color: #A09090;
482 @media (max-width: 500px) {
483 .message > .timestamp {
486 .toolbarbutton-text {
489 .hud-console-filter-toolbar .webconsole-filter-button {
492 .hud-console-filter-toolbar .webconsole-clear-console-button {
495 .webconsole-filter-button > .toolbarbutton-menubutton-button:before {
500 .toolbarbutton-menubutton-dropmarker {
505 @media (max-width: 300px) {
506 .hud-console-filter-toolbar {
507 -moz-box-orient: vertical;
509 .toolbarbutton-text {
512 .devtools-toolbarbutton {
515 .hud-console-filter-toolbar .hud-filter-box,
516 .hud-console-filter-toolbar .devtools-toolbarbutton {
521 /* === END webconsole.inc.css === */