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