fifth part of syncing LCARStrek with Firefox 34 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 > .timestamp {
42 flex: none;
43 color: #8050B0;
44 margin: 4px 6px 0 0;
45}
46
47.message > .indent {
48 flex: none;
49}
50
51.message > .icon {
52 flex: none;
53 margin: 3px 6px 0 0;
54 padding: 0 4px;
55 height: 1em;
56 align-self: flex-start;
57}
58
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
76.message > .message-body-wrapper {
77 flex: 1 1 100%;
78 margin: 3px;
79}
80
81.message-body-wrapper .table-widget-body {
82 overflow: visible;
83}
84
85/* The red bubble that shows the number of times a message is repeated */
86.message-repeats {
87 -moz-user-select: none;
88 flex: none;
89 margin: 2px 6px;
90 padding: 0 6px;
91 height: 1.25em;
92 color: #000000;
93 background-color: #FF0000;
94 border-radius: 40px;
95 /* font: message-box; */
96 font-size: 0.9em;
97 font-weight: 600;
98}
99
100.message-repeats[value="1"] {
101 display: none;
102}
103
104.message-location {
105 display: flex;
106 flex: none;
107 align-self: flex-start;
108 justify-content: flex-end;
109 width: 10em;
110 margin-top: 3px;
111 color: #3333FF;
112 text-decoration: none;
113 white-space: nowrap;
114}
115
116.message-location:hover,
117.message-location:focus {
118 text-decoration: underline;
119}
120
121.message-location > .filename {
122 text-overflow: ellipsis;
123 text-align: end;
124 overflow: hidden;
125 white-space: nowrap;
126}
127
128.message-location > .line-number {
129 flex: none;
130}
131
132.hud-msg-node[selected="true"] > .webconsole-timestamp,
133.hud-msg-node[selected="true"] > .webconsole-location {
134 color: inherit;
135}
136
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;
148 flex: 1 1 auto;
149 vertical-align: middle;
150}
151
152.message-flex-body > .message-location {
153 margin-top: 0;
154}
155
156.jsterm-input-container {
157 border-top-width: 1px;
158 border-top-style: solid;
159}
160
161#output-wrapper {
162 direction: ltr;
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;
172}
173
174#output-container.hideTimestamps > .message {
175 -moz-padding-start: 0;
176 -moz-margin-start: 7px;
177 width: calc(100% - 7px);
178}
179
180#output-container.hideTimestamps > .message > .timestamp {
181 display: none;
182}
183
184#output-container.hideTimestamps > .message > .indent {
185 background-color: #000000; /* .theme-body */
186}
187
188.filtered-by-type,
189.filtered-by-string {
190 display: none;
191}
192
193.hidden-message {
194 display: block;
195 visibility: hidden;
196 height: 0;
197 overflow: hidden;
198}
199
200/* WebConsole colored drops */
201
202.webconsole-filter-button {
203 -moz-user-focus: normal;
204}
205
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;
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;
224}
225
226/* Network styles */
227.webconsole-filter-button[category="net"] > .toolbarbutton-menubutton-button:before {
228 background-image: linear-gradient(#BF9B00, #7F6700);
229 border-color: #FFCF00;
230}
231
232.message:hover {
233 background-color: #404000;
234}
235
236.message[severity=error] {
237 background-color: #FF0000;
238}
239
240.console-string {
241 color: #FF9F00;
242}
243
244.message[severity=error] .console-string {
245 color: #000000;
246}
247
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
255.message[category=network] > .indent {
256 -moz-border-end: solid #FF0000 6px;
257}
258
259.message[category=network][severity=error] > .icon::before {
260 background-position: -8px 0;
261}
262
263.message[category=network] > .message-body {
264 display: flex;
265}
266
267.message[category=network] .method {
268 flex: none;
269}
270
271.message[category=network]:not(.navigation-marker) .url {
272 flex: 1 1 auto;
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 {
282 flex: none;
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;
293}
294
295/* CSS styles */
296.webconsole-filter-button[category="css"] > .toolbarbutton-menubutton-button:before {
297 background-image: linear-gradient(#7575BF, #4E4E7F);
298 border-color: #9C9CFF;
299}
300
301.message[category=cssparser] > .indent {
302 -moz-border-end: solid #9C9CFF 6px;
303}
304
305.message[category=cssparser][severity=error] > .icon::before {
306 background-position: -8px -8px;
307}
308
309.message[category=cssparser][severity=warn] > .icon::before {
310 background-position: -16px -8px;
311}
312
313/* JS styles */
314.webconsole-filter-button[category="js"] > .toolbarbutton-menubutton-button:before {
315 background-image: linear-gradient(#BF7700, #7F4F00);
316 border-color: #FF9F00;
317}
318
319.message[category=exception] > .indent {
320 -moz-border-end: solid #FF9F00 6px;
321}
322
323.message[category=exception][severity=error] > .icon::before {
324 background-position: -8px -16px;
325}
326
327.message[category=exception][severity=warn] > .icon::before {
328 background-position: -16px -16px;
329}
330
331/* Web Developer styles */
332.webconsole-filter-button[category="logging"] > .toolbarbutton-menubutton-button:before {
333 background-image: linear-gradient(#5F3B83, #3F2756);
334 border-color: #8050B0;
335}
336
337.message[category=console] > .indent {
338 -moz-border-end: solid #8050B0 6px;
339}
340
341.message[category=console][severity=error] > .icon::before,
342.message[category=output][severity=error] > .icon::before {
343 background-position: -8px -24px;
344}
345
346.message[category=console][severity=warn] > .icon::before {
347 background-position: -16px -24px;
348}
349
350.message[category=console][severity=info] > .icon::before {
351 background-position: -24px -24px;
352}
353
354/* Input and output styles */
355.message[category=input] > .indent,
356.message[category=output] > .indent {
357 -moz-border-end: solid #A09090 6px;
358}
359
360.message[category=input] > .icon::before {
361 background-position: -32px -24px;
362}
363
364.message[category=output] > .icon::before {
365 background-position: -40px -24px;
366}
367
368/* JSTerm Styles */
369
370.jsterm-input-node,
371.jsterm-complete-node {
372 -moz-padding-start: 16px;
373 margin: 3px 0 0 0;
374 background-color: transparent;
375}
376
377.jsterm-input-node {
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 }
387}
388
389:-moz-any(.jsterm-input-node,
390 .jsterm-complete-node) > .textbox-input-box > .textbox-textarea {
391 overflow-x: hidden;
392}
393
394.inlined-variables-view .message-body {
395 display: flex;
396 flex-direction: column;
397}
398
399.inlined-variables-view iframe {
400 display: block;
401 flex: 1;
402 margin-top: 5px;
403 margin-bottom: 15px;
404 -moz-margin-end: 15px;
405 border: 1px solid #9C9CFF;
406 border-radius: 4px;
407}
408
409#webconsole-sidebar > tabs {
410 height: 0;
411 border: none;
412}
413
414.devtools-side-splitter ~ #webconsole-sidebar[hidden] {
415 display: none;
416}
417
418/* Security styles */
419
420.message[category=security] > .indent {
421 -moz-border-end: solid #FF0000 6px;
422}
423
424.webconsole-filter-button[category="security"] > .toolbarbutton-menubutton-button:before {
425 background-color: #FF0000;
426 border-color: #FFCF00;
427}
428
429.message[category=security][severity=error] > .icon::before {
430 background-position: -8px -32px;
431}
432
433.message[category=security][severity=warn] > .icon::before {
434 background-position: -16px -32px;
435}
436
437.navigation-marker {
438 color: #000000;
439 background-color: #A09090;
440 margin-top: 6px;
441 margin-bottom: 6px;
442 font-size: 0.9em;
443}
444
445.navigation-marker .url {
446 -moz-padding-end: 9px;
447 text-decoration: none;
448}
449
450.stacktrace {
451 display: none;
452 list-style: none;
453 padding: 0 1em 0 1.5em;
454 margin: 5px 0 0 0;
455 max-height: 10em;
456 overflow-y: auto;
457 border: 1px solid #A09090;
458 border-radius: 3px;
459}
460
461.consoletable {
462 margin: 5px 0 0 0;
463}
464
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}
478
479.stacktrace li {
480 display: flex;
481 margin: 0;
482}
483
484.stacktrace .function {
485 display: block;
486 flex: 1 1 auto;
487}
488
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
516/* Replace these values with CSS variables as available */
517.jsterm-input-container {
518 background-color: #000000; /* tabToolbarBackgroundColor */
519 border-color: #9C9CFF; /* mainBackgroundColor */
520}
521
522.jsterm-input-node {
523 color: #E7ADE7; /* textColor */
524}
525
526.jsterm-complete-node {
527 color: #A09090; /* commentColor */
528}
529
530.navigation-marker .url {
531 background: #000000; /* mainBackgroundColor */
532}
533
534.inlined-variables-view iframe {
535 border-color: #A09090;
536}
537
538.stacktrace {
539 border-color: #A09090;
540}
541
542@media (max-width: 500px) {
543 .message > .timestamp {
544 display: none;
545 }
546 .hud-console-filter-toolbar .webconsole-filter-button .toolbarbutton-text {
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 {
556 width: 12px;
557 height: 12x;
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 === */