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/. */
5
/* This Source Code Form is subject to the terms of the Mozilla Public
6
* License, v. 2.0. If a copy of the MPL was not distributed with this
7
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
9
/* General output styles */
12
-moz-user-focus: normal;
13
-moz-user-input: enabled;
15
text-decoration: underline;
18
/* Workaround for Bug 575675 - FindChildWithRules aRelevantLinkVisited
19
* assertion when loading HTML page with links in XUL iframe */
27
box-sizing: border-box;
31
.message > .timestamp {
46
align-self: flex-start;
49
.message > .icon::before {
51
background-image: url(chrome://browser/skin/devtools/webconsole.svg);
52
background-position: 12px 12px;
53
background-repeat: no-repeat;
54
background-size: 72px 60px;
57
display: inline-block;
60
.theme-light .message > .icon::before {
61
background-image: url(chrome://browser/skin/devtools/webconsole.svg#light-icons);
64
.message > .message-body-wrapper {
69
.message-body-wrapper .table-widget-body {
73
/* The red bubble that shows the number of times a message is repeated */
75
-moz-user-select: none;
81
background-color: red;
88
.message-repeats[value="1"] {
95
align-self: flex-start;
96
justify-content: flex-end;
99
color: -moz-nativehyperlinktext;
100
text-decoration: none;
104
.message-location:hover,
105
.message-location:focus {
106
text-decoration: underline;
109
.message-location > .filename {
110
text-overflow: ellipsis;
115
.message-location > .line-number {
124
white-space: pre-wrap;
125
word-wrap: break-word;
128
.message-flex-body > .message-body {
131
vertical-align: middle;
134
.message-flex-body > .message-location {
138
.jsterm-input-container {
139
border-top-width: 1px;
140
border-top-style: solid;
149
-moz-user-select: text;
152
flex-direction: column;
153
align-items: flex-start;
156
#output-container.hideTimestamps > .message {
157
-moz-padding-start: 0;
158
-moz-margin-start: 7px;
159
width: calc(100% - 7px);
162
#output-container.hideTimestamps > .message > .timestamp {
166
#output-container.hideTimestamps > .message > .indent {
167
background-color: var(--theme-body-background);
171
.filtered-by-string {
182
/* WebConsole colored drops */
184
.webconsole-filter-button {
185
-moz-user-focus: normal;
188
.webconsole-filter-button > .toolbarbutton-menubutton-button:before {
190
display: inline-block;
200
.webconsole-filter-button[category="net"] > .toolbarbutton-menubutton-button:before {
201
background-image: linear-gradient(#444444, #000000);
206
background-color: var(--theme-selection-background-semitransparent) !important;
209
.theme-light .message[severity=error] {
210
background-color: rgba(255, 150, 150, 0.3);
213
.theme-dark .message[severity=error] {
214
background-color: rgba(235, 83, 104, 0.17);
218
color: var(--theme-highlight-lightorange);
221
.theme-selected .console-string,
222
.theme-selected .cm-number,
223
.theme-selected .cm-variable,
224
.theme-selected .kind-ArrayLike {
225
color: #f5f7fa !important; /* Selection Text Color */
228
.message[category=network] > .indent {
229
-moz-border-end: solid #000 6px;
232
.message[category=network][severity=error] > .icon::before {
233
background-position: -12px 0;
236
.message[category=network] > .message-body {
240
.message[category=network] .method {
244
.message[category=network]:not(.navigation-marker) .url {
246
/* Make sure the URL is very small initially, let flex change width as needed. */
251
text-overflow: ellipsis;
254
.message[category=network] .status {
256
-moz-margin-start: 6px;
259
.message[category=network].mixed-content .url {
263
.message .learn-more-link {
264
color: -moz-nativehyperlinktext;
268
.message[category=network] .xhr {
269
background-color: var(--theme-body-color-alt);
270
color: var(--theme-body-background);
276
-moz-margin-end: 1ex;
280
.webconsole-filter-button[category="css"] > .toolbarbutton-menubutton-button:before {
281
background-image: linear-gradient(#2DC3F3, #00B6F0);
282
border-color: #1BA2CC;
285
.message[category=cssparser] > .indent {
286
-moz-border-end: solid #00b6f0 6px;
289
.message[category=cssparser][severity=error] > .icon::before {
290
background-position: -12px -12px;
293
.message[category=cssparser][severity=warn] > .icon::before {
294
background-position: -24px -12px;
298
.webconsole-filter-button[category="js"] > .toolbarbutton-menubutton-button:before {
299
background-image: linear-gradient(#FCB142, #FB9500);
300
border-color: #E98A00;
303
.message[category=exception] > .indent {
304
-moz-border-end: solid #fb9500 6px;
307
.message[category=exception][severity=error] > .icon::before {
308
background-position: -12px -24px;
311
.message[category=exception][severity=warn] > .icon::before {
312
background-position: -24px -24px;
315
/* Web Developer styles */
316
.webconsole-filter-button[category="logging"] > .toolbarbutton-menubutton-button:before {
317
background-image: linear-gradient(#B9B9B9, #AAAAAA);
318
border-color: #929292;
321
.message[category=console] > .indent {
322
-moz-border-end: solid #cbcbcb 6px;
325
.message[category=console][severity=error] > .icon::before,
326
.message[category=output][severity=error] > .icon::before {
327
background-position: -12px -36px;
330
.message[category=console][severity=warn] > .icon::before {
331
background-position: -24px -36px;
334
.message[category=console][severity=info] > .icon::before {
335
background-position: -36px -36px;
338
/* Input and output styles */
339
.message[category=input] > .indent,
340
.message[category=output] > .indent {
341
-moz-border-end: solid #808080 6px;
344
.message[category=input] > .icon::before {
345
background-position: -48px -36px;
348
.message[category=output] > .icon::before {
349
background-position: -60px -36px;
354
.jsterm-complete-node {
357
-moz-appearance: none;
358
background-color: transparent;
362
background-image: -moz-image-rect(url("chrome://browser/skin/devtools/commandline-icon.png"), 0, 32, 16, 16);
363
background-repeat: no-repeat;
364
background-size: 16px 16px;
367
@media (min-resolution: 1.25dppx) {
369
background-image: -moz-image-rect(url('chrome://browser/skin/devtools/commandline-icon@2x.png'), 0, 64, 32, 32);
373
:-moz-any(.jsterm-input-node,
374
.jsterm-complete-node) > .textbox-input-box > .textbox-textarea {
378
.inlined-variables-view .message-body {
380
flex-direction: column;
385
.inlined-variables-view iframe {
390
-moz-margin-end: 15px;
391
border: 1px solid rgba(128, 128, 128, .5);
395
#webconsole-sidebar > tabs {
400
.devtools-side-splitter ~ #webconsole-sidebar[hidden] {
404
/* Security styles */
406
.message[category=security] > .indent {
407
-moz-border-end: solid red 6px;
410
.webconsole-filter-button[category="security"] > .toolbarbutton-menubutton-button:before {
411
background-image: linear-gradient(#FF3030, #FF7D7D);
412
border-color: #D12C2C;
415
.message[category=security][severity=error] > .icon::before {
416
background-position: -12px -48px;
419
.message[category=security][severity=warn] > .icon::before {
420
background-position: -24px -48px;
425
background: linear-gradient(#aaa, #aaa) no-repeat left 50%;
426
background-size: 100% 2px;
432
.navigation-marker .url {
433
-moz-padding-end: 9px;
434
text-decoration: none;
440
padding: 0 1em 0 1.5em;
444
border: 1px solid rgb(200,200,200);
452
.theme-light .message[severity=error] .stacktrace {
453
background-color: rgba(255, 255, 255, 0.5);
456
.theme-dark .message[severity=error] .stacktrace {
457
background-color: rgba(0, 0, 0, 0.5);
460
.message[open] .stacktrace {
464
.message .theme-twisty {
465
display: inline-block;
466
vertical-align: middle;
475
.stacktrace .function {
480
.cm-s-mozilla a[class] {
482
text-decoration: none;
485
.cm-s-mozilla a[class]:hover,
486
.cm-s-mozilla a[class]:focus {
487
text-decoration: underline;
490
/* Open DOMNode in inspector button */
492
background: url("chrome://browser/skin/devtools/vview-open-inspector.png") no-repeat 0 0;
498
.elementNode:hover .open-inspector,
499
.open-inspector:hover {
500
background-position: -32px 0;
503
.open-inspector:active {
504
background-position: -16px 0;
507
.jsterm-input-container {
508
background-color: var(--theme-tab-toolbar-background);
509
border-color: var(--theme-body-background);
513
color: var(--theme-content-color1);
516
.jsterm-complete-node {
517
color: var(--theme-comment);
520
.navigation-marker .url {
521
background: var(--theme-body-background);
524
.theme-dark .inlined-variables-view iframe {
528
.theme-dark .stacktrace {
532
.theme-light .jsterm-input-container {
533
/* For light theme use a white background for the input - it looks better
535
background-color: #fff;
536
border-color: ThreeDShadow;
538
.theme-light .navigation-marker .url {
542
.theme-light .inlined-variables-view iframe {
546
.theme-light .stacktrace {
550
@media (max-width: 500px) {
551
.message > .timestamp {
554
.hud-console-filter-toolbar .webconsole-filter-button .toolbarbutton-text {
557
.hud-console-filter-toolbar .webconsole-filter-button {
560
.hud-console-filter-toolbar .webconsole-clear-console-button {
563
.webconsole-filter-button > .toolbarbutton-menubutton-button:before {
568
.toolbarbutton-menubutton-dropmarker {
573
@media (max-width: 300px) {
574
.hud-console-filter-toolbar {
575
-moz-box-orient: vertical;
577
.toolbarbutton-text {
580
.devtools-toolbarbutton {
583
.hud-console-filter-toolbar .hud-filter-box,
584
.hud-console-filter-toolbar .devtools-toolbarbutton {