fourth part of syncing LCARStrek with Firefox 42-44 windows theme changes
[themes.git] / LCARStrek / browser / devtools / webconsole.css
... / ...
CommitLineData
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/. */
4
5window {
6 padding: 0;
7}
8
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
18/* === BEGIN webconsole.inc.css === */
19
20/* General output styles */
21
22a {
23 -moz-user-focus: normal;
24 -moz-user-input: enabled;
25 cursor: pointer;
26 text-decoration: underline;
27}
28
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: none;
36 padding: 0 7px;
37 width: 100%;
38 box-sizing: border-box;
39}
40
41.message > .prefix,
42.message > .timestamp {
43 flex: none;
44 color: #8050B0;
45 margin: 3px 6px 0 0;
46}
47
48.message > .indent {
49 flex: none;
50}
51
52.message > .icon {
53 flex: none;
54 margin: 3px 6px 0 0;
55 padding: 0 4px;
56 height: 1em;
57 align-self: flex-start;
58}
59
60.message > .icon::before {
61 content: "";
62 background-image: url("chrome://browser/skin/devtools/webconsole.svg");
63 background-position: 12px 12px;
64 background-repeat: no-repeat;
65 background-size: 72px 60px;
66 width: 12px;
67 height: 12px;
68 display: inline-block;
69}
70
71.message > .message-body-wrapper {
72 flex: 1 1 100%;
73 margin: 3px;
74}
75
76.message-body-wrapper .table-widget-body {
77 overflow: visible;
78}
79
80/* The red bubble that shows the number of times a message is repeated */
81.message-repeats {
82 -moz-user-select: none;
83 flex: none;
84 margin: 2px 6px;
85 padding: 0 6px;
86 height: 1.25em;
87 color: #000000;
88 background-color: #FF0000;
89 border-radius: 40px;
90 /* font: message-box; */
91 font-size: 0.9em;
92 font-weight: 600;
93}
94
95.message-repeats[value="1"] {
96 display: none;
97}
98
99.message-location {
100 display: flex;
101 flex: none;
102 align-self: flex-start;
103 justify-content: flex-end;
104 width: 10em;
105 margin-top: 3px;
106 color: #3333FF;
107 text-decoration: none;
108 white-space: nowrap;
109}
110
111.message-location:hover,
112.message-location:focus {
113 text-decoration: underline;
114}
115
116.message-location > .filename {
117 text-overflow: ellipsis;
118 text-align: end;
119 overflow: hidden;
120 white-space: nowrap;
121}
122
123.message-location > .line-number {
124 flex: none;
125}
126
127.hud-msg-node[selected="true"] > .webconsole-timestamp,
128.hud-msg-node[selected="true"] > .webconsole-location {
129 color: inherit;
130}
131
132.message-flex-body {
133 display: flex;
134}
135
136.message-body > * {
137 white-space: pre-wrap;
138 word-wrap: break-word;
139}
140
141.message-flex-body > .message-body {
142 display: block;
143 flex: 1 1 auto;
144 vertical-align: middle;
145}
146
147.message-flex-body > .message-location {
148 margin-top: 0;
149}
150
151.jsterm-input-container {
152 border-top-width: 1px;
153 border-top-style: solid;
154}
155
156#output-wrapper {
157 direction: ltr;
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;
167}
168
169#output-container.hideTimestamps > .message {
170 -moz-padding-start: 0;
171 -moz-margin-start: 7px;
172 width: calc(100% - 7px);
173}
174
175#output-container.hideTimestamps > .message > .timestamp {
176 display: none;
177}
178
179#output-container.hideTimestamps > .message > .indent {
180 background-color: var(--theme-body-background);
181}
182
183.filtered-by-type,
184.filtered-by-string {
185 display: none;
186}
187
188.hidden-message {
189 display: block;
190 visibility: hidden;
191 height: 0;
192 overflow: hidden;
193}
194
195/* WebConsole colored drops */
196
197.hud-console-filter-toolbar toolbarbutton > .toolbarbutton-text {
198 padding: 2px 2px 3px;
199}
200
201.webconsole-filter-button {
202 -moz-user-focus: normal;
203}
204
205.webconsole-filter-button > .toolbarbutton-menubutton-button:before {
206 content: "";
207 display: inline-block;
208 height: 8px;
209 width: 8px;
210 border-radius: 50%;
211 -moz-margin-start: 2px;
212 -moz-margin-end: 2px;
213 border-width: 1px;
214 border-style: solid;
215}
216
217.webconsole-filter-button > .toolbarbutton-menubutton-button {
218 -moz-box-orient: horizontal;
219}
220
221.webconsole-filter-button menuitem {
222 -moz-image-region: auto;
223}
224
225.hud-filter-box {
226 margin-top: 0;
227 margin-bottom: 0;
228}
229
230/* Network styles */
231.webconsole-filter-button[category="net"] > .toolbarbutton-menubutton-button:before {
232 background-image: linear-gradient(#BF9B00, #7F6700);
233 border-color: #FFCF00;
234}
235
236.message:hover {
237 background-color: var(--theme-contrast-background);
238}
239
240.message[severity=error] {
241 background-color: #FF0000;
242}
243
244.console-string {
245 color: var(--theme-highlight-orange);
246}
247
248.message[severity=error] .console-string {
249 color: #000000;
250}
251
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
259.message[category=network] > .indent {
260 -moz-border-end: solid #FF0000 6px;
261}
262
263.message[category=network][severity=error] > .icon::before {
264 background-position: -12px 0;
265}
266
267.message[category=network] > .message-body {
268 display: flex;
269}
270
271.message[category=network] .method {
272 flex: none;
273}
274
275.message[category=network]:not(.navigation-marker) .url {
276 flex: 1 1 auto;
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 {
286 flex: none;
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;
297}
298
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
310/* CSS styles */
311.webconsole-filter-button[category="css"] > .toolbarbutton-menubutton-button:before {
312 background-image: linear-gradient(#7575BF, #4E4E7F);
313 border-color: #9C9CFF;
314}
315
316.message[category=cssparser] > .indent {
317 -moz-border-end: solid #9C9CFF 6px;
318}
319
320.message[category=cssparser][severity=error] > .icon::before {
321 background-position: -12px -12px;
322}
323
324.message[category=cssparser][severity=warn] > .icon::before {
325 background-position: -24px -12px;
326}
327
328/* JS styles */
329.webconsole-filter-button[category="js"] > .toolbarbutton-menubutton-button:before {
330 background-image: linear-gradient(#BF7700, #7F4F00);
331 border-color: #FF9F00;
332}
333
334.message[category=exception] > .indent {
335 -moz-border-end: solid #FF9F00 6px;
336}
337
338.message[category=exception][severity=error] > .icon::before {
339 background-position: -12px -24px;
340}
341
342.message[category=exception][severity=warn] > .icon::before {
343 background-position: -24px -24px;
344}
345
346/* Web Developer styles */
347.webconsole-filter-button[category="logging"] > .toolbarbutton-menubutton-button:before {
348 background-image: linear-gradient(#5F3B83, #3F2756);
349 border-color: #8050B0;
350}
351
352.message[category=console] > .indent {
353 -moz-border-end: solid #8050B0 6px;
354}
355
356.message[category=console][severity=error] > .icon::before,
357.message[category=output][severity=error] > .icon::before {
358 background-position: -12px -36px;
359}
360
361.message[category=console][severity=warn] > .icon::before {
362 background-position: -24px -36px;
363}
364
365.message[category=console][severity=info] > .icon::before {
366 background-position: -36px -36px;
367}
368
369/* Input and output styles */
370.message[category=input] > .indent,
371.message[category=output] > .indent {
372 -moz-border-end: solid #A09090 6px;
373}
374
375.message[category=input] > .icon::before {
376 background-position: -48px -36px;
377}
378
379.message[category=output] > .icon::before {
380 background-position: -60px -36px;
381}
382
383/* JSTerm Styles */
384
385.jsterm-input-node,
386.jsterm-complete-node {
387 -moz-padding-start: 16px;
388 margin: 3px 0 0 0;
389 background-color: transparent;
390}
391
392.jsterm-input-node {
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
398@media (min-resolution: 1.1dppx) {
399 .jsterm-input-node {
400 background-image: -moz-image-rect(url('chrome://browser/skin/devtools/commandline-icon@2x.png'), 0, 64, 32, 32);
401 }
402}
403
404:-moz-any(.jsterm-input-node,
405 .jsterm-complete-node) > .textbox-input-box > .textbox-textarea {
406 overflow-x: hidden;
407}
408
409.inlined-variables-view .message-body {
410 display: flex;
411 flex-direction: column;
412 resize: vertical;
413 overflow: auto;
414 min-height: 200px;
415}
416
417.inlined-variables-view iframe {
418 display: block;
419 flex: 1;
420 margin-top: 5px;
421 margin-bottom: 15px;
422 -moz-margin-end: 15px;
423 border: 1px solid #9C9CFF;
424 border-radius: 4px;
425}
426
427#webconsole-sidebar > tabs {
428 height: 0;
429 border: none;
430}
431
432.devtools-side-splitter ~ #webconsole-sidebar[hidden] {
433 display: none;
434}
435
436/* Security styles */
437
438.message[category=security] > .indent {
439 -moz-border-end: solid #FF0000 6px;
440}
441
442.webconsole-filter-button[category="security"] > .toolbarbutton-menubutton-button:before {
443 background-color: #FF0000;
444 border-color: #FFCF00;
445}
446
447.message[category=security][severity=error] > .icon::before {
448 background-position: -12px -48px;
449}
450
451.message[category=security][severity=warn] > .icon::before {
452 background-position: -24px -48px;
453}
454
455.navigation-marker {
456 color: #000000;
457 background-color: #A09090;
458 margin-top: 6px;
459 margin-bottom: 6px;
460 font-size: 0.9em;
461}
462
463.navigation-marker .url {
464 -moz-padding-end: 9px;
465 text-decoration: none;
466}
467
468.stacktrace {
469 display: none;
470 list-style: none;
471 padding: 0 1em 0 1.5em;
472 margin: 5px 0 0 0;
473 max-height: 10em;
474 overflow-y: auto;
475 border: 1px solid #A09090;
476 border-radius: 3px;
477}
478
479.consoletable {
480 margin: 5px 0 0 0;
481}
482
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}
496
497.stacktrace li {
498 display: flex;
499 margin: 0;
500}
501
502.stacktrace .function {
503 display: block;
504 flex: 1 1 auto;
505}
506
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
534/* Replace these values with CSS variables as available */
535.jsterm-input-container {
536 background-color: var(--theme-toolbar-background);
537 border-color: var(--theme-splitter-color);
538}
539
540.jsterm-input-node {
541 color: var(--theme-highlight-pink);
542}
543
544.jsterm-complete-node {
545 color: var(--theme-comment);
546}
547
548.navigation-marker .url {
549 background: var(--theme-body-background);
550}
551
552.inlined-variables-view iframe {
553 border-color: #A09090;
554}
555
556.stacktrace {
557 border-color: #A09090;
558}
559
560@media (max-width: 500px) {
561 .message > .timestamp {
562 display: none;
563 }
564 .hud-console-filter-toolbar .webconsole-filter-button .toolbarbutton-text {
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 {
574 width: 12px;
575 height: 12px;
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 }
590 /*
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 }
598 */
599}
600
601/* === END webconsole.inc.css === */