fourth part of syncing LCARStrek with Firefox 42-44 windows theme changes
[themes.git] / LCARStrek / browser / devtools / webconsole.css
CommitLineData
9099c61d
RK
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/. */
f0c3317f 4
c54ac991
RK
5window {
6 padding: 0;
7}
8
b27cc46e
RK
9/*
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
12 */
13
14.hud-filter-box {
15 width: 200px;
16}
17
45dc7657 18/* === BEGIN webconsole.inc.css === */
b27cc46e 19
8a933f1e
RK
20/* General output styles */
21
b981e4fd
RK
22a {
23 -moz-user-focus: normal;
24 -moz-user-input: enabled;
9162a092 25 cursor: pointer;
569543b3
RK
26 text-decoration: underline;
27}
28
b981e4fd
RK
29/* Workaround for Bug 575675 - FindChildWithRules aRelevantLinkVisited
30 * assertion when loading HTML page with links in XUL iframe */
31*:visited { }
32
33.message {
34 display: flex;
a21f2959 35 flex: none;
589b5528
RK
36 padding: 0 7px;
37 width: 100%;
38 box-sizing: border-box;
f0c3317f
RK
39}
40
2e389898 41.message > .prefix,
b981e4fd 42.message > .timestamp {
a21f2959 43 flex: none;
b981e4fd 44 color: #8050B0;
2e389898 45 margin: 3px 6px 0 0;
589b5528
RK
46}
47
48.message > .indent {
a21f2959 49 flex: none;
a0885fa2
RK
50}
51
b981e4fd 52.message > .icon {
a21f2959 53 flex: none;
589b5528 54 margin: 3px 6px 0 0;
b981e4fd 55 padding: 0 4px;
589b5528
RK
56 height: 1em;
57 align-self: flex-start;
b981e4fd
RK
58}
59
dccbbf95
RK
60.message > .icon::before {
61 content: "";
2e389898
RK
62 background-image: url("chrome://browser/skin/devtools/webconsole.svg");
63 background-position: 12px 12px;
dccbbf95 64 background-repeat: no-repeat;
2e389898
RK
65 background-size: 72px 60px;
66 width: 12px;
67 height: 12px;
dccbbf95
RK
68 display: inline-block;
69}
70
589b5528 71.message > .message-body-wrapper {
b981e4fd 72 flex: 1 1 100%;
589b5528 73 margin: 3px;
a0885fa2
RK
74}
75
cac2a998
RK
76.message-body-wrapper .table-widget-body {
77 overflow: visible;
78}
79
b981e4fd 80/* The red bubble that shows the number of times a message is repeated */
45dc7657 81.message-repeats {
b981e4fd 82 -moz-user-select: none;
a21f2959 83 flex: none;
b981e4fd
RK
84 margin: 2px 6px;
85 padding: 0 6px;
86 height: 1.25em;
38b75e2e
RK
87 color: #000000;
88 background-color: #FF0000;
89 border-radius: 40px;
90 /* font: message-box; */
c29b709d 91 font-size: 0.9em;
38b75e2e
RK
92 font-weight: 600;
93}
94
45dc7657 95.message-repeats[value="1"] {
38b75e2e
RK
96 display: none;
97}
98
45dc7657 99.message-location {
5a199ba1 100 display: flex;
a21f2959 101 flex: none;
b981e4fd 102 align-self: flex-start;
5a199ba1 103 justify-content: flex-end;
8a933f1e 104 width: 10em;
589b5528 105 margin-top: 3px;
b27cc46e 106 color: #3333FF;
b981e4fd 107 text-decoration: none;
45dc7657 108 white-space: nowrap;
b27cc46e
RK
109}
110
45dc7657
RK
111.message-location:hover,
112.message-location:focus {
b981e4fd 113 text-decoration: underline;
1b13529a
RK
114}
115
45dc7657 116.message-location > .filename {
5a199ba1
RK
117 text-overflow: ellipsis;
118 text-align: end;
119 overflow: hidden;
120 white-space: nowrap;
121}
122
45dc7657 123.message-location > .line-number {
a21f2959 124 flex: none;
5a199ba1
RK
125}
126
8a933f1e
RK
127.hud-msg-node[selected="true"] > .webconsole-timestamp,
128.hud-msg-node[selected="true"] > .webconsole-location {
129 color: inherit;
f0c3317f
RK
130}
131
589b5528
RK
132.message-flex-body {
133 display: flex;
134}
135
20752032 136.message-body > * {
589b5528
RK
137 white-space: pre-wrap;
138 word-wrap: break-word;
139}
140
141.message-flex-body > .message-body {
142 display: block;
86d9f20a 143 flex: 1 1 auto;
589b5528
RK
144 vertical-align: middle;
145}
146
147.message-flex-body > .message-location {
148 margin-top: 0;
149}
150
d2ce251d
RK
151.jsterm-input-container {
152 border-top-width: 1px;
153 border-top-style: solid;
154}
155
b981e4fd 156#output-wrapper {
b981e4fd 157 direction: ltr;
b981e4fd
RK
158 overflow: auto;
159}
160
161#output-container {
162 -moz-user-select: text;
163 -moz-box-flex: 1;
164 display: flex;
165 flex-direction: column;
166 align-items: flex-start;
f0c3317f
RK
167}
168
589b5528
RK
169#output-container.hideTimestamps > .message {
170 -moz-padding-start: 0;
171 -moz-margin-start: 7px;
172 width: calc(100% - 7px);
173}
174
6dc70335
RK
175#output-container.hideTimestamps > .message > .timestamp {
176 display: none;
177}
178
589b5528 179#output-container.hideTimestamps > .message > .indent {
28e80a05 180 background-color: var(--theme-body-background);
589b5528
RK
181}
182
b981e4fd
RK
183.filtered-by-type,
184.filtered-by-string {
706c344c
RK
185 display: none;
186}
187
c4460289
RK
188.hidden-message {
189 display: block;
190 visibility: hidden;
191 height: 0;
192 overflow: hidden;
193}
194
c29b709d 195/* WebConsole colored drops */
941d657f 196
2f2239a0
RK
197.hud-console-filter-toolbar toolbarbutton > .toolbarbutton-text {
198 padding: 2px 2px 3px;
199}
200
b27cc46e
RK
201.webconsole-filter-button {
202 -moz-user-focus: normal;
203}
204
c29b709d
RK
205.webconsole-filter-button > .toolbarbutton-menubutton-button:before {
206 content: "";
207 display: inline-block;
208 height: 8px;
209 width: 8px;
210 border-radius: 50%;
2f2239a0
RK
211 -moz-margin-start: 2px;
212 -moz-margin-end: 2px;
c29b709d
RK
213 border-width: 1px;
214 border-style: solid;
e0b5363a
RK
215}
216
2f2239a0
RK
217.webconsole-filter-button > .toolbarbutton-menubutton-button {
218 -moz-box-orient: horizontal;
219}
220
e0b5363a
RK
221.webconsole-filter-button menuitem {
222 -moz-image-region: auto;
223}
224
225.hud-filter-box {
226 margin-top: 0;
227 margin-bottom: 0;
904e5040
RK
228}
229
8a933f1e 230/* Network styles */
c29b709d 231.webconsole-filter-button[category="net"] > .toolbarbutton-menubutton-button:before {
884ab557 232 background-image: linear-gradient(#BF9B00, #7F6700);
c29b709d 233 border-color: #FFCF00;
72a6fd39
RK
234}
235
9168a62c 236.message:hover {
8c6555e2 237 background-color: var(--theme-contrast-background);
9168a62c
RK
238}
239
589b5528
RK
240.message[severity=error] {
241 background-color: #FF0000;
242}
243
244.console-string {
28e80a05 245 color: var(--theme-highlight-orange);
f1d74fb1
RK
246}
247
248.message[severity=error] .console-string {
249 color: #000000;
589b5528
RK
250}
251
cac2a998
RK
252.theme-selected .console-string,
253.theme-selected .cm-number,
254.theme-selected .cm-variable,
255.theme-selected .kind-ArrayLike {
256 color: #000000 !important; /* Selection Text Color */
257}
258
589b5528
RK
259.message[category=network] > .indent {
260 -moz-border-end: solid #FF0000 6px;
8a933f1e
RK
261}
262
dccbbf95 263.message[category=network][severity=error] > .icon::before {
2e389898 264 background-position: -12px 0;
b981e4fd
RK
265}
266
589b5528 267.message[category=network] > .message-body {
b981e4fd
RK
268 display: flex;
269}
270
271.message[category=network] .method {
a21f2959 272 flex: none;
b981e4fd
RK
273}
274
275.message[category=network]:not(.navigation-marker) .url {
86d9f20a 276 flex: 1 1 auto;
b981e4fd
RK
277 /* Make sure the URL is very small initially, let flex change width as needed. */
278 width: 100px;
279 min-width: 5em;
280 white-space: nowrap;
281 overflow: hidden;
282 text-overflow: ellipsis;
283}
284
285.message[category=network] .status {
a21f2959 286 flex: none;
b981e4fd
RK
287 -moz-margin-start: 6px;
288}
289
290.message[category=network].mixed-content .url {
291 color: #FF0000;
292}
293
294.message .learn-more-link {
295 color: #3333FF;
296 margin: 0 6px;
8a933f1e
RK
297}
298
e184b661
RK
299.message[category=network] .xhr {
300 background-color: var(--theme-body-color-alt);
301 color: var(--theme-body-background);
302 border-radius: 3px;
303 font-weight: bold;
304 font-size: 10px;
305 padding: 2px;
306 line-height: 10px;
307 -moz-margin-end: 1ex;
308}
309
8a933f1e 310/* CSS styles */
c29b709d 311.webconsole-filter-button[category="css"] > .toolbarbutton-menubutton-button:before {
884ab557 312 background-image: linear-gradient(#7575BF, #4E4E7F);
c29b709d 313 border-color: #9C9CFF;
72a6fd39
RK
314}
315
589b5528
RK
316.message[category=cssparser] > .indent {
317 -moz-border-end: solid #9C9CFF 6px;
8a933f1e
RK
318}
319
dccbbf95 320.message[category=cssparser][severity=error] > .icon::before {
2e389898 321 background-position: -12px -12px;
8a933f1e
RK
322}
323
dccbbf95 324.message[category=cssparser][severity=warn] > .icon::before {
2e389898 325 background-position: -24px -12px;
8a933f1e
RK
326}
327
328/* JS styles */
884ab557
RK
329.webconsole-filter-button[category="js"] > .toolbarbutton-menubutton-button:before {
330 background-image: linear-gradient(#BF7700, #7F4F00);
c29b709d 331 border-color: #FF9F00;
72a6fd39
RK
332}
333
589b5528
RK
334.message[category=exception] > .indent {
335 -moz-border-end: solid #FF9F00 6px;
8a933f1e
RK
336}
337
dccbbf95 338.message[category=exception][severity=error] > .icon::before {
2e389898 339 background-position: -12px -24px;
8a933f1e
RK
340}
341
dccbbf95 342.message[category=exception][severity=warn] > .icon::before {
2e389898 343 background-position: -24px -24px;
8a933f1e
RK
344}
345
346/* Web Developer styles */
c29b709d 347.webconsole-filter-button[category="logging"] > .toolbarbutton-menubutton-button:before {
884ab557 348 background-image: linear-gradient(#5F3B83, #3F2756);
c29b709d 349 border-color: #8050B0;
72a6fd39
RK
350}
351
589b5528
RK
352.message[category=console] > .indent {
353 -moz-border-end: solid #8050B0 6px;
8a933f1e
RK
354}
355
dccbbf95
RK
356.message[category=console][severity=error] > .icon::before,
357.message[category=output][severity=error] > .icon::before {
2e389898 358 background-position: -12px -36px;
8a933f1e
RK
359}
360
dccbbf95 361.message[category=console][severity=warn] > .icon::before {
2e389898 362 background-position: -24px -36px;
8a933f1e
RK
363}
364
dccbbf95 365.message[category=console][severity=info] > .icon::before {
2e389898 366 background-position: -36px -36px;
8a933f1e
RK
367}
368
369/* Input and output styles */
589b5528
RK
370.message[category=input] > .indent,
371.message[category=output] > .indent {
372 -moz-border-end: solid #A09090 6px;
8a933f1e
RK
373}
374
dccbbf95 375.message[category=input] > .icon::before {
2e389898 376 background-position: -48px -36px;
a0885fa2
RK
377}
378
dccbbf95 379.message[category=output] > .icon::before {
2e389898 380 background-position: -60px -36px;
a0885fa2 381}
72a6fd39 382
f0c3317f
RK
383/* JSTerm Styles */
384
e1313d59
RK
385.jsterm-input-node,
386.jsterm-complete-node {
c54ac991
RK
387 -moz-padding-start: 16px;
388 margin: 3px 0 0 0;
d2ce251d 389 background-color: transparent;
e1313d59
RK
390}
391
392.jsterm-input-node {
dccbbf95
RK
393 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/commandline-icon.png"), 0, 32, 16, 16);
394 background-repeat: no-repeat;
395 background-size: 16px 16px;
396}
397
024a65e9 398@media (min-resolution: 1.1dppx) {
dccbbf95
RK
399 .jsterm-input-node {
400 background-image: -moz-image-rect(url('chrome://browser/skin/devtools/commandline-icon@2x.png'), 0, 64, 32, 32);
401 }
f0c3317f
RK
402}
403
e1313d59
RK
404:-moz-any(.jsterm-input-node,
405 .jsterm-complete-node) > .textbox-input-box > .textbox-textarea {
941d657f 406 overflow-x: hidden;
f0c3317f
RK
407}
408
589b5528 409.inlined-variables-view .message-body {
b981e4fd
RK
410 display: flex;
411 flex-direction: column;
d74db938
RK
412 resize: vertical;
413 overflow: auto;
414 min-height: 200px;
b981e4fd
RK
415}
416
417.inlined-variables-view iframe {
418 display: block;
419 flex: 1;
de57e474 420 margin-top: 5px;
ed1a91c6
RK
421 margin-bottom: 15px;
422 -moz-margin-end: 15px;
b981e4fd 423 border: 1px solid #9C9CFF;
ed1a91c6
RK
424 border-radius: 4px;
425}
426
427#webconsole-sidebar > tabs {
428 height: 0;
429 border: none;
430}
431
45dc7657
RK
432.devtools-side-splitter ~ #webconsole-sidebar[hidden] {
433 display: none;
434}
435
e2734cc7
RK
436/* Security styles */
437
589b5528
RK
438.message[category=security] > .indent {
439 -moz-border-end: solid #FF0000 6px;
ed1a91c6
RK
440}
441
442.webconsole-filter-button[category="security"] > .toolbarbutton-menubutton-button:before {
443 background-color: #FF0000;
444 border-color: #FFCF00;
445}
e2734cc7 446
dccbbf95 447.message[category=security][severity=error] > .icon::before {
2e389898 448 background-position: -12px -48px;
e2734cc7
RK
449}
450
dccbbf95 451.message[category=security][severity=warn] > .icon::before {
2e389898 452 background-position: -24px -48px;
e2734cc7 453}
fe524e0c
RK
454
455.navigation-marker {
456 color: #000000;
457 background-color: #A09090;
b981e4fd
RK
458 margin-top: 6px;
459 margin-bottom: 6px;
fe524e0c
RK
460 font-size: 0.9em;
461}
462
463.navigation-marker .url {
b981e4fd
RK
464 -moz-padding-end: 9px;
465 text-decoration: none;
fe524e0c 466}
d2ce251d 467
45dc7657 468.stacktrace {
589b5528 469 display: none;
45dc7657
RK
470 list-style: none;
471 padding: 0 1em 0 1.5em;
589b5528 472 margin: 5px 0 0 0;
45dc7657
RK
473 max-height: 10em;
474 overflow-y: auto;
45dc7657
RK
475 border: 1px solid #A09090;
476 border-radius: 3px;
477}
cac2a998
RK
478
479.consoletable {
480 margin: 5px 0 0 0;
481}
482
589b5528
RK
483.message[severity=error] .stacktrace {
484 background-color: #000000;
485}
486
487.message[open] .stacktrace {
488 display: block;
489}
490
491.message .theme-twisty {
492 display: inline-block;
493 vertical-align: middle;
494 margin: 0 3px 0 0;
495}
45dc7657
RK
496
497.stacktrace li {
498 display: flex;
499 margin: 0;
500}
501
502.stacktrace .function {
503 display: block;
86d9f20a 504 flex: 1 1 auto;
45dc7657
RK
505}
506
649b5d38
RK
507.cm-s-mozilla a[class] {
508 font-style: italic;
509 text-decoration: none;
510}
511
512.cm-s-mozilla a[class]:hover,
513.cm-s-mozilla a[class]:focus {
514 text-decoration: underline;
515}
516
517/* Open DOMNode in inspector button */
518.open-inspector {
519 background: url("chrome://browser/skin/devtools/vview-open-inspector.png") no-repeat 0 0;
520 padding-left: 16px;
521 margin-left: 5px;
522 cursor: pointer;
523}
524
525.elementNode:hover .open-inspector,
526.open-inspector:hover {
527 background-position: -32px 0;
528}
529
530.open-inspector:active {
531 background-position: -16px 0;
532}
533
d2ce251d 534/* Replace these values with CSS variables as available */
2b5a5147 535.jsterm-input-container {
28e80a05
RK
536 background-color: var(--theme-toolbar-background);
537 border-color: var(--theme-splitter-color);
d2ce251d
RK
538}
539
2b5a5147 540.jsterm-input-node {
28e80a05 541 color: var(--theme-highlight-pink);
d2ce251d
RK
542}
543
2b5a5147 544.jsterm-complete-node {
28e80a05 545 color: var(--theme-comment);
d2ce251d
RK
546}
547
2b5a5147 548.navigation-marker .url {
28e80a05 549 background: var(--theme-body-background);
d2ce251d 550}
de57e474 551
2b5a5147 552.inlined-variables-view iframe {
de57e474
RK
553 border-color: #A09090;
554}
45dc7657 555
2b5a5147 556.stacktrace {
45dc7657
RK
557 border-color: #A09090;
558}
559
560@media (max-width: 500px) {
561 .message > .timestamp {
562 display: none;
563 }
2b5a5147 564 .hud-console-filter-toolbar .webconsole-filter-button .toolbarbutton-text {
45dc7657
RK
565 display: none;
566 }
567 .hud-console-filter-toolbar .webconsole-filter-button {
568 min-width: 40px;
569 }
570 .hud-console-filter-toolbar .webconsole-clear-console-button {
571 min-width: 25px;
572 }
573 .webconsole-filter-button > .toolbarbutton-menubutton-button:before {
2b5a5147 574 width: 12px;
9e756f9d 575 height: 12px;
45dc7657
RK
576 margin-left: 1px;
577 }
578 .toolbarbutton-menubutton-dropmarker {
579 margin: 0px;
580 }
581}
582
583@media (max-width: 300px) {
584 .hud-console-filter-toolbar {
585 -moz-box-orient: vertical;
586 }
587 .toolbarbutton-text {
588 display: -moz-box;
589 }
2f2239a0 590 /*
45dc7657
RK
591 .devtools-toolbarbutton {
592 margin-top: 3px;
593 }
594 .hud-console-filter-toolbar .hud-filter-box,
595 .hud-console-filter-toolbar .devtools-toolbarbutton {
596 margin-top: 5px;
597 }
2f2239a0 598 */
45dc7657
RK
599}
600
601/* === END webconsole.inc.css === */