third part of syncing LCARStrek with Firefox 34 windows theme changes
[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;
a21f2959 148 flex: 1 1 main-size;
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 {
241 color: #FF0000;
242}
243
cac2a998
RK
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
589b5528
RK
251.message[category=network] > .indent {
252 -moz-border-end: solid #FF0000 6px;
8a933f1e
RK
253}
254
dccbbf95
RK
255.message[category=network][severity=error] > .icon::before {
256 background-position: -8px 0;
b981e4fd
RK
257}
258
589b5528 259.message[category=network] > .message-body {
b981e4fd
RK
260 display: flex;
261}
262
263.message[category=network] .method {
a21f2959 264 flex: none;
b981e4fd
RK
265}
266
267.message[category=network]:not(.navigation-marker) .url {
a21f2959 268 flex: 1 1 main-size;
b981e4fd
RK
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 {
a21f2959 278 flex: none;
b981e4fd
RK
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;
8a933f1e
RK
289}
290
291/* CSS styles */
c29b709d 292.webconsole-filter-button[category="css"] > .toolbarbutton-menubutton-button:before {
884ab557 293 background-image: linear-gradient(#7575BF, #4E4E7F);
c29b709d 294 border-color: #9C9CFF;
72a6fd39
RK
295}
296
589b5528
RK
297.message[category=cssparser] > .indent {
298 -moz-border-end: solid #9C9CFF 6px;
8a933f1e
RK
299}
300
dccbbf95
RK
301.message[category=cssparser][severity=error] > .icon::before {
302 background-position: -8px -8px;
8a933f1e
RK
303}
304
dccbbf95
RK
305.message[category=cssparser][severity=warn] > .icon::before {
306 background-position: -16px -8px;
8a933f1e
RK
307}
308
309/* JS styles */
884ab557
RK
310.webconsole-filter-button[category="js"] > .toolbarbutton-menubutton-button:before {
311 background-image: linear-gradient(#BF7700, #7F4F00);
c29b709d 312 border-color: #FF9F00;
72a6fd39
RK
313}
314
589b5528
RK
315.message[category=exception] > .indent {
316 -moz-border-end: solid #FF9F00 6px;
8a933f1e
RK
317}
318
dccbbf95
RK
319.message[category=exception][severity=error] > .icon::before {
320 background-position: -8px -16px;
8a933f1e
RK
321}
322
dccbbf95
RK
323.message[category=exception][severity=warn] > .icon::before {
324 background-position: -16px -16px;
8a933f1e
RK
325}
326
327/* Web Developer styles */
c29b709d 328.webconsole-filter-button[category="logging"] > .toolbarbutton-menubutton-button:before {
884ab557 329 background-image: linear-gradient(#5F3B83, #3F2756);
c29b709d 330 border-color: #8050B0;
72a6fd39
RK
331}
332
589b5528
RK
333.message[category=console] > .indent {
334 -moz-border-end: solid #8050B0 6px;
8a933f1e
RK
335}
336
dccbbf95
RK
337.message[category=console][severity=error] > .icon::before,
338.message[category=output][severity=error] > .icon::before {
339 background-position: -8px -24px;
8a933f1e
RK
340}
341
dccbbf95
RK
342.message[category=console][severity=warn] > .icon::before {
343 background-position: -16px -24px;
8a933f1e
RK
344}
345
dccbbf95
RK
346.message[category=console][severity=info] > .icon::before {
347 background-position: -24px -24px;
8a933f1e
RK
348}
349
350/* Input and output styles */
589b5528
RK
351.message[category=input] > .indent,
352.message[category=output] > .indent {
353 -moz-border-end: solid #A09090 6px;
8a933f1e
RK
354}
355
dccbbf95
RK
356.message[category=input] > .icon::before {
357 background-position: -32px -24px;
a0885fa2
RK
358}
359
dccbbf95
RK
360.message[category=output] > .icon::before {
361 background-position: -40px -24px;
a0885fa2 362}
72a6fd39 363
f0c3317f
RK
364/* JSTerm Styles */
365
e1313d59
RK
366.jsterm-input-node,
367.jsterm-complete-node {
c54ac991
RK
368 -moz-padding-start: 16px;
369 margin: 3px 0 0 0;
d2ce251d 370 background-color: transparent;
e1313d59
RK
371}
372
373.jsterm-input-node {
dccbbf95
RK
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 }
f0c3317f
RK
383}
384
e1313d59
RK
385:-moz-any(.jsterm-input-node,
386 .jsterm-complete-node) > .textbox-input-box > .textbox-textarea {
941d657f 387 overflow-x: hidden;
f0c3317f
RK
388}
389
589b5528 390.inlined-variables-view .message-body {
b981e4fd
RK
391 display: flex;
392 flex-direction: column;
393}
394
395.inlined-variables-view iframe {
396 display: block;
397 flex: 1;
de57e474 398 margin-top: 5px;
ed1a91c6
RK
399 margin-bottom: 15px;
400 -moz-margin-end: 15px;
b981e4fd 401 border: 1px solid #9C9CFF;
ed1a91c6
RK
402 border-radius: 4px;
403}
404
405#webconsole-sidebar > tabs {
406 height: 0;
407 border: none;
408}
409
45dc7657
RK
410.devtools-side-splitter ~ #webconsole-sidebar[hidden] {
411 display: none;
412}
413
e2734cc7
RK
414/* Security styles */
415
589b5528
RK
416.message[category=security] > .indent {
417 -moz-border-end: solid #FF0000 6px;
ed1a91c6
RK
418}
419
420.webconsole-filter-button[category="security"] > .toolbarbutton-menubutton-button:before {
421 background-color: #FF0000;
422 border-color: #FFCF00;
423}
e2734cc7 424
dccbbf95
RK
425.message[category=security][severity=error] > .icon::before {
426 background-position: -8px -32px;
e2734cc7
RK
427}
428
dccbbf95
RK
429.message[category=security][severity=warn] > .icon::before {
430 background-position: -16px -32px;
e2734cc7 431}
fe524e0c
RK
432
433.navigation-marker {
434 color: #000000;
435 background-color: #A09090;
b981e4fd
RK
436 margin-top: 6px;
437 margin-bottom: 6px;
fe524e0c
RK
438 font-size: 0.9em;
439}
440
441.navigation-marker .url {
b981e4fd
RK
442 -moz-padding-end: 9px;
443 text-decoration: none;
fe524e0c 444}
d2ce251d 445
45dc7657 446.stacktrace {
589b5528 447 display: none;
45dc7657
RK
448 list-style: none;
449 padding: 0 1em 0 1.5em;
589b5528 450 margin: 5px 0 0 0;
45dc7657
RK
451 max-height: 10em;
452 overflow-y: auto;
45dc7657
RK
453 border: 1px solid #A09090;
454 border-radius: 3px;
455}
cac2a998
RK
456
457.consoletable {
458 margin: 5px 0 0 0;
459}
460
589b5528
RK
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}
45dc7657
RK
474
475.stacktrace li {
476 display: flex;
477 margin: 0;
478}
479
480.stacktrace .function {
481 display: block;
a21f2959 482 flex: 1 1 main-size;
45dc7657
RK
483}
484
649b5d38
RK
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
d2ce251d 512/* Replace these values with CSS variables as available */
2b5a5147 513.jsterm-input-container {
d2ce251d
RK
514 background-color: #000000; /* tabToolbarBackgroundColor */
515 border-color: #9C9CFF; /* mainBackgroundColor */
516}
517
2b5a5147 518.jsterm-input-node {
d2ce251d
RK
519 color: #E7ADE7; /* textColor */
520}
521
2b5a5147 522.jsterm-complete-node {
d2ce251d
RK
523 color: #A09090; /* commentColor */
524}
525
2b5a5147 526.navigation-marker .url {
d2ce251d
RK
527 background: #000000; /* mainBackgroundColor */
528}
de57e474 529
2b5a5147 530.inlined-variables-view iframe {
de57e474
RK
531 border-color: #A09090;
532}
45dc7657 533
2b5a5147 534.stacktrace {
45dc7657
RK
535 border-color: #A09090;
536}
537
538@media (max-width: 500px) {
539 .message > .timestamp {
540 display: none;
541 }
2b5a5147 542 .hud-console-filter-toolbar .webconsole-filter-button .toolbarbutton-text {
45dc7657
RK
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 {
2b5a5147
RK
552 width: 12px;
553 height: 12x;
45dc7657
RK
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 === */