third 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 main-size;
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: #FF0000;
242}
243
244.theme-selected .console-string,
245.theme-selected .cm-number,
246.theme-selected .cm-variable,
247.theme-selected .kind-ArrayLike {
248 color: #000000 !important; /* Selection Text Color */
249}
250
251.message[category=network] > .indent {
252 -moz-border-end: solid #FF0000 6px;
253}
254
255.message[category=network][severity=error] > .icon::before {
256 background-position: -8px 0;
257}
258
259.message[category=network] > .message-body {
260 display: flex;
261}
262
263.message[category=network] .method {
264 flex: none;
265}
266
267.message[category=network]:not(.navigation-marker) .url {
268 flex: 1 1 main-size;
269 /* Make sure the URL is very small initially, let flex change width as needed. */
270 width: 100px;
271 min-width: 5em;
272 white-space: nowrap;
273 overflow: hidden;
274 text-overflow: ellipsis;
275}
276
277.message[category=network] .status {
278 flex: none;
279 -moz-margin-start: 6px;
280}
281
282.message[category=network].mixed-content .url {
283 color: #FF0000;
284}
285
286.message .learn-more-link {
287 color: #3333FF;
288 margin: 0 6px;
289}
290
291/* CSS styles */
292.webconsole-filter-button[category="css"] > .toolbarbutton-menubutton-button:before {
293 background-image: linear-gradient(#7575BF, #4E4E7F);
294 border-color: #9C9CFF;
295}
296
297.message[category=cssparser] > .indent {
298 -moz-border-end: solid #9C9CFF 6px;
299}
300
301.message[category=cssparser][severity=error] > .icon::before {
302 background-position: -8px -8px;
303}
304
305.message[category=cssparser][severity=warn] > .icon::before {
306 background-position: -16px -8px;
307}
308
309/* JS styles */
310.webconsole-filter-button[category="js"] > .toolbarbutton-menubutton-button:before {
311 background-image: linear-gradient(#BF7700, #7F4F00);
312 border-color: #FF9F00;
313}
314
315.message[category=exception] > .indent {
316 -moz-border-end: solid #FF9F00 6px;
317}
318
319.message[category=exception][severity=error] > .icon::before {
320 background-position: -8px -16px;
321}
322
323.message[category=exception][severity=warn] > .icon::before {
324 background-position: -16px -16px;
325}
326
327/* Web Developer styles */
328.webconsole-filter-button[category="logging"] > .toolbarbutton-menubutton-button:before {
329 background-image: linear-gradient(#5F3B83, #3F2756);
330 border-color: #8050B0;
331}
332
333.message[category=console] > .indent {
334 -moz-border-end: solid #8050B0 6px;
335}
336
337.message[category=console][severity=error] > .icon::before,
338.message[category=output][severity=error] > .icon::before {
339 background-position: -8px -24px;
340}
341
342.message[category=console][severity=warn] > .icon::before {
343 background-position: -16px -24px;
344}
345
346.message[category=console][severity=info] > .icon::before {
347 background-position: -24px -24px;
348}
349
350/* Input and output styles */
351.message[category=input] > .indent,
352.message[category=output] > .indent {
353 -moz-border-end: solid #A09090 6px;
354}
355
356.message[category=input] > .icon::before {
357 background-position: -32px -24px;
358}
359
360.message[category=output] > .icon::before {
361 background-position: -40px -24px;
362}
363
364/* JSTerm Styles */
365
366.jsterm-input-node,
367.jsterm-complete-node {
368 -moz-padding-start: 16px;
369 margin: 3px 0 0 0;
370 background-color: transparent;
371}
372
373.jsterm-input-node {
374 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/commandline-icon.png"), 0, 32, 16, 16);
375 background-repeat: no-repeat;
376 background-size: 16px 16px;
377}
378
379@media (min-resolution: 2dppx) {
380 .jsterm-input-node {
381 background-image: -moz-image-rect(url('chrome://browser/skin/devtools/commandline-icon@2x.png'), 0, 64, 32, 32);
382 }
383}
384
385:-moz-any(.jsterm-input-node,
386 .jsterm-complete-node) > .textbox-input-box > .textbox-textarea {
387 overflow-x: hidden;
388}
389
390.inlined-variables-view .message-body {
391 display: flex;
392 flex-direction: column;
393}
394
395.inlined-variables-view iframe {
396 display: block;
397 flex: 1;
398 margin-top: 5px;
399 margin-bottom: 15px;
400 -moz-margin-end: 15px;
401 border: 1px solid #9C9CFF;
402 border-radius: 4px;
403}
404
405#webconsole-sidebar > tabs {
406 height: 0;
407 border: none;
408}
409
410.devtools-side-splitter ~ #webconsole-sidebar[hidden] {
411 display: none;
412}
413
414/* Security styles */
415
416.message[category=security] > .indent {
417 -moz-border-end: solid #FF0000 6px;
418}
419
420.webconsole-filter-button[category="security"] > .toolbarbutton-menubutton-button:before {
421 background-color: #FF0000;
422 border-color: #FFCF00;
423}
424
425.message[category=security][severity=error] > .icon::before {
426 background-position: -8px -32px;
427}
428
429.message[category=security][severity=warn] > .icon::before {
430 background-position: -16px -32px;
431}
432
433.navigation-marker {
434 color: #000000;
435 background-color: #A09090;
436 margin-top: 6px;
437 margin-bottom: 6px;
438 font-size: 0.9em;
439}
440
441.navigation-marker .url {
442 -moz-padding-end: 9px;
443 text-decoration: none;
444}
445
446.stacktrace {
447 display: none;
448 list-style: none;
449 padding: 0 1em 0 1.5em;
450 margin: 5px 0 0 0;
451 max-height: 10em;
452 overflow-y: auto;
453 border: 1px solid #A09090;
454 border-radius: 3px;
455}
456
457.consoletable {
458 margin: 5px 0 0 0;
459}
460
461.message[severity=error] .stacktrace {
462 background-color: #000000;
463}
464
465.message[open] .stacktrace {
466 display: block;
467}
468
469.message .theme-twisty {
470 display: inline-block;
471 vertical-align: middle;
472 margin: 0 3px 0 0;
473}
474
475.stacktrace li {
476 display: flex;
477 margin: 0;
478}
479
480.stacktrace .function {
481 display: block;
482 flex: 1 1 main-size;
483}
484
485.cm-s-mozilla a[class] {
486 font-style: italic;
487 text-decoration: none;
488}
489
490.cm-s-mozilla a[class]:hover,
491.cm-s-mozilla a[class]:focus {
492 text-decoration: underline;
493}
494
495/* Open DOMNode in inspector button */
496.open-inspector {
497 background: url("chrome://browser/skin/devtools/vview-open-inspector.png") no-repeat 0 0;
498 padding-left: 16px;
499 margin-left: 5px;
500 cursor: pointer;
501}
502
503.elementNode:hover .open-inspector,
504.open-inspector:hover {
505 background-position: -32px 0;
506}
507
508.open-inspector:active {
509 background-position: -16px 0;
510}
511
512/* Replace these values with CSS variables as available */
513.jsterm-input-container {
514 background-color: #000000; /* tabToolbarBackgroundColor */
515 border-color: #9C9CFF; /* mainBackgroundColor */
516}
517
518.jsterm-input-node {
519 color: #E7ADE7; /* textColor */
520}
521
522.jsterm-complete-node {
523 color: #A09090; /* commentColor */
524}
525
526.navigation-marker .url {
527 background: #000000; /* mainBackgroundColor */
528}
529
530.inlined-variables-view iframe {
531 border-color: #A09090;
532}
533
534.stacktrace {
535 border-color: #A09090;
536}
537
538@media (max-width: 500px) {
539 .message > .timestamp {
540 display: none;
541 }
542 .hud-console-filter-toolbar .webconsole-filter-button .toolbarbutton-text {
543 display: none;
544 }
545 .hud-console-filter-toolbar .webconsole-filter-button {
546 min-width: 40px;
547 }
548 .hud-console-filter-toolbar .webconsole-clear-console-button {
549 min-width: 25px;
550 }
551 .webconsole-filter-button > .toolbarbutton-menubutton-button:before {
552 width: 12px;
553 height: 12x;
554 margin-left: 1px;
555 }
556 .toolbarbutton-menubutton-dropmarker {
557 margin: 0px;
558 }
559}
560
561@media (max-width: 300px) {
562 .hud-console-filter-toolbar {
563 -moz-box-orient: vertical;
564 }
565 .toolbarbutton-text {
566 display: -moz-box;
567 }
568 .devtools-toolbarbutton {
569 margin-top: 3px;
570 }
571 .hud-console-filter-toolbar .hud-filter-box,
572 .hud-console-filter-toolbar .devtools-toolbarbutton {
573 margin-top: 5px;
574 }
575}
576
577/* === END webconsole.inc.css === */