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