add larger-size tab trobbers, make devtools/inspector work in Fx47+
[themes.git] / LCARStrek / 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: "";
dc9d5d64 62 background-image: url("chrome://devtools/skin/webconsole.svg");
2e389898 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 356.message[category=console][severity=error] > .icon::before,
e9fbfc3a
RK
357.message[category=output][severity=error] > .icon::before,
358.message[category=server][severity=error] > .icon::before {
2e389898 359 background-position: -12px -36px;
8a933f1e
RK
360}
361
e9fbfc3a
RK
362.message[category=console][severity=warn] > .icon::before,
363.message[category=server][severity=warn] > .icon::before {
2e389898 364 background-position: -24px -36px;
8a933f1e
RK
365}
366
e9fbfc3a
RK
367.message[category=console][severity=info] > .icon::before,
368.message[category=server][severity=info] > .icon::before {
2e389898 369 background-position: -36px -36px;
8a933f1e
RK
370}
371
e9fbfc3a
RK
372/* Server Logging Styles */
373
374.webconsole-filter-button[category="server"] > .toolbarbutton-menubutton-button:before {
375 background-image: linear-gradient(#006363, #004242);
376 border-color: #008484;
377}
378
379.message[category=server] > .indent {
380 -moz-border-end: solid #8050B0 6px;
381}
382
8a933f1e 383/* Input and output styles */
589b5528
RK
384.message[category=input] > .indent,
385.message[category=output] > .indent {
386 -moz-border-end: solid #A09090 6px;
8a933f1e
RK
387}
388
dccbbf95 389.message[category=input] > .icon::before {
2e389898 390 background-position: -48px -36px;
a0885fa2
RK
391}
392
dccbbf95 393.message[category=output] > .icon::before {
2e389898 394 background-position: -60px -36px;
a0885fa2 395}
72a6fd39 396
f0c3317f
RK
397/* JSTerm Styles */
398
e1313d59
RK
399.jsterm-input-node,
400.jsterm-complete-node {
c54ac991
RK
401 -moz-padding-start: 16px;
402 margin: 3px 0 0 0;
d2ce251d 403 background-color: transparent;
e1313d59
RK
404}
405
406.jsterm-input-node {
dc9d5d64 407 background-image: -moz-image-rect(url("chrome://devtools/skin/commandline-icon.png"), 0, 32, 16, 16);
dccbbf95
RK
408 background-repeat: no-repeat;
409 background-size: 16px 16px;
410}
411
024a65e9 412@media (min-resolution: 1.1dppx) {
dccbbf95 413 .jsterm-input-node {
dc9d5d64 414 background-image: -moz-image-rect(url('chrome://devtools/skin/commandline-icon@2x.png'), 0, 64, 32, 32);
dccbbf95 415 }
f0c3317f
RK
416}
417
e1313d59
RK
418:-moz-any(.jsterm-input-node,
419 .jsterm-complete-node) > .textbox-input-box > .textbox-textarea {
941d657f 420 overflow-x: hidden;
f0c3317f
RK
421}
422
589b5528 423.inlined-variables-view .message-body {
b981e4fd
RK
424 display: flex;
425 flex-direction: column;
d74db938
RK
426 resize: vertical;
427 overflow: auto;
428 min-height: 200px;
b981e4fd
RK
429}
430
431.inlined-variables-view iframe {
432 display: block;
433 flex: 1;
de57e474 434 margin-top: 5px;
ed1a91c6
RK
435 margin-bottom: 15px;
436 -moz-margin-end: 15px;
b981e4fd 437 border: 1px solid #9C9CFF;
ed1a91c6
RK
438 border-radius: 4px;
439}
440
441#webconsole-sidebar > tabs {
442 height: 0;
443 border: none;
444}
445
45dc7657
RK
446.devtools-side-splitter ~ #webconsole-sidebar[hidden] {
447 display: none;
448}
449
e2734cc7
RK
450/* Security styles */
451
589b5528
RK
452.message[category=security] > .indent {
453 -moz-border-end: solid #FF0000 6px;
ed1a91c6
RK
454}
455
456.webconsole-filter-button[category="security"] > .toolbarbutton-menubutton-button:before {
457 background-color: #FF0000;
458 border-color: #FFCF00;
459}
e2734cc7 460
dccbbf95 461.message[category=security][severity=error] > .icon::before {
2e389898 462 background-position: -12px -48px;
e2734cc7
RK
463}
464
dccbbf95 465.message[category=security][severity=warn] > .icon::before {
2e389898 466 background-position: -24px -48px;
e2734cc7 467}
fe524e0c
RK
468
469.navigation-marker {
470 color: #000000;
471 background-color: #A09090;
b981e4fd
RK
472 margin-top: 6px;
473 margin-bottom: 6px;
fe524e0c
RK
474 font-size: 0.9em;
475}
476
477.navigation-marker .url {
b981e4fd
RK
478 -moz-padding-end: 9px;
479 text-decoration: none;
fe524e0c 480}
d2ce251d 481
45dc7657 482.stacktrace {
589b5528 483 display: none;
45dc7657
RK
484 list-style: none;
485 padding: 0 1em 0 1.5em;
589b5528 486 margin: 5px 0 0 0;
45dc7657
RK
487 max-height: 10em;
488 overflow-y: auto;
45dc7657
RK
489 border: 1px solid #A09090;
490 border-radius: 3px;
491}
cac2a998
RK
492
493.consoletable {
494 margin: 5px 0 0 0;
495}
496
589b5528
RK
497.message[severity=error] .stacktrace {
498 background-color: #000000;
499}
500
501.message[open] .stacktrace {
502 display: block;
503}
504
505.message .theme-twisty {
506 display: inline-block;
507 vertical-align: middle;
508 margin: 0 3px 0 0;
509}
45dc7657
RK
510
511.stacktrace li {
512 display: flex;
513 margin: 0;
514}
515
516.stacktrace .function {
517 display: block;
86d9f20a 518 flex: 1 1 auto;
45dc7657
RK
519}
520
649b5d38
RK
521.cm-s-mozilla a[class] {
522 font-style: italic;
523 text-decoration: none;
524}
525
526.cm-s-mozilla a[class]:hover,
527.cm-s-mozilla a[class]:focus {
528 text-decoration: underline;
529}
530
531/* Open DOMNode in inspector button */
532.open-inspector {
dc9d5d64 533 background: url("chrome://devtools/skin/images/vview-open-inspector.png") no-repeat 0 0;
649b5d38
RK
534 padding-left: 16px;
535 margin-left: 5px;
536 cursor: pointer;
537}
538
539.elementNode:hover .open-inspector,
540.open-inspector:hover {
541 background-position: -32px 0;
542}
543
544.open-inspector:active {
545 background-position: -16px 0;
546}
547
d2ce251d 548/* Replace these values with CSS variables as available */
2b5a5147 549.jsterm-input-container {
28e80a05
RK
550 background-color: var(--theme-toolbar-background);
551 border-color: var(--theme-splitter-color);
d2ce251d
RK
552}
553
2b5a5147 554.jsterm-input-node {
28e80a05 555 color: var(--theme-highlight-pink);
d2ce251d
RK
556}
557
2b5a5147 558.jsterm-complete-node {
28e80a05 559 color: var(--theme-comment);
d2ce251d
RK
560}
561
2b5a5147 562.navigation-marker .url {
28e80a05 563 background: var(--theme-body-background);
d2ce251d 564}
de57e474 565
2b5a5147 566.inlined-variables-view iframe {
de57e474
RK
567 border-color: #A09090;
568}
45dc7657 569
2b5a5147 570.stacktrace {
45dc7657
RK
571 border-color: #A09090;
572}
573
574@media (max-width: 500px) {
575 .message > .timestamp {
576 display: none;
577 }
2b5a5147 578 .hud-console-filter-toolbar .webconsole-filter-button .toolbarbutton-text {
45dc7657
RK
579 display: none;
580 }
581 .hud-console-filter-toolbar .webconsole-filter-button {
582 min-width: 40px;
583 }
584 .hud-console-filter-toolbar .webconsole-clear-console-button {
585 min-width: 25px;
586 }
587 .webconsole-filter-button > .toolbarbutton-menubutton-button:before {
2b5a5147 588 width: 12px;
9e756f9d 589 height: 12px;
45dc7657
RK
590 margin-left: 1px;
591 }
592 .toolbarbutton-menubutton-dropmarker {
593 margin: 0px;
594 }
595}
596
597@media (max-width: 300px) {
598 .hud-console-filter-toolbar {
599 -moz-box-orient: vertical;
600 }
601 .toolbarbutton-text {
602 display: -moz-box;
603 }
2f2239a0 604 /*
45dc7657
RK
605 .devtools-toolbarbutton {
606 margin-top: 3px;
607 }
608 .hud-console-filter-toolbar .hud-filter-box,
609 .hud-console-filter-toolbar .devtools-toolbarbutton {
610 margin-top: 5px;
611 }
2f2239a0 612 */
45dc7657
RK
613}
614
615/* === END webconsole.inc.css === */