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