third part of syncing LCARStrek with Firefox 30 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;
35 flex: 0 0 auto;
36 -moz-margin-start: 6px;
37 -moz-margin-end: 8px;
38 width: calc(100% - 6px - 8px);
f0c3317f
RK
39}
40
b981e4fd
RK
41.message > .timestamp {
42 flex: 0 0 auto;
43 color: #8050B0;
44 margin: 4px 0;
a0885fa2
RK
45}
46
b981e4fd
RK
47.message > .icon {
48 background: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 0, 1, 0, 0) no-repeat;
49 background-position: center 0.5em;
50 flex: 0 0 auto;
a0885fa2 51 margin: 0 6px;
b981e4fd
RK
52 padding: 0 4px;
53 width: 8px;
54}
55
56.message > .body {
57 flex: 1 1 100%;
58 white-space: pre-wrap;
59 word-wrap: break-word;
60 margin-top: 4px;
a0885fa2
RK
61}
62
b981e4fd 63/* The red bubble that shows the number of times a message is repeated */
45dc7657 64.message-repeats {
b981e4fd
RK
65 -moz-user-select: none;
66 flex: 0 0 auto;
67 margin: 2px 6px;
68 padding: 0 6px;
69 height: 1.25em;
38b75e2e
RK
70 color: #000000;
71 background-color: #FF0000;
72 border-radius: 40px;
73 /* font: message-box; */
c29b709d 74 font-size: 0.9em;
38b75e2e
RK
75 font-weight: 600;
76}
77
45dc7657 78.message-repeats[value="1"] {
38b75e2e
RK
79 display: none;
80}
81
45dc7657 82.message-location {
b981e4fd 83 -moz-margin-start: 6px;
5a199ba1 84 display: flex;
b981e4fd
RK
85 flex: 0 0 auto;
86 align-self: flex-start;
5a199ba1 87 justify-content: flex-end;
8a933f1e 88 width: 10em;
b981e4fd 89 margin-top: 4px;
b27cc46e 90 color: #3333FF;
b981e4fd 91 text-decoration: none;
45dc7657 92 white-space: nowrap;
b27cc46e
RK
93}
94
45dc7657
RK
95.message-location:hover,
96.message-location:focus {
b981e4fd 97 text-decoration: underline;
1b13529a
RK
98}
99
45dc7657 100.message-location > .filename {
5a199ba1
RK
101 text-overflow: ellipsis;
102 text-align: end;
103 overflow: hidden;
104 white-space: nowrap;
105}
106
45dc7657 107.message-location > .line-number {
5a199ba1
RK
108 flex: 0 0 auto;
109}
110
8a933f1e
RK
111.hud-msg-node[selected="true"] > .webconsole-timestamp,
112.hud-msg-node[selected="true"] > .webconsole-location {
113 color: inherit;
f0c3317f
RK
114}
115
d2ce251d
RK
116.jsterm-input-container {
117 border-top-width: 1px;
118 border-top-style: solid;
119}
120
b981e4fd 121#output-wrapper {
b981e4fd 122 direction: ltr;
b981e4fd
RK
123 overflow: auto;
124}
125
126#output-container {
127 -moz-user-select: text;
128 -moz-box-flex: 1;
129 display: flex;
130 flex-direction: column;
131 align-items: flex-start;
f0c3317f
RK
132}
133
6dc70335
RK
134#output-container.hideTimestamps > .message > .timestamp {
135 display: none;
136}
137
b981e4fd
RK
138.filtered-by-type,
139.filtered-by-string {
706c344c
RK
140 display: none;
141}
142
c4460289
RK
143.hidden-message {
144 display: block;
145 visibility: hidden;
146 height: 0;
147 overflow: hidden;
148}
149
c29b709d 150/* WebConsole colored drops */
941d657f 151
b27cc46e
RK
152.webconsole-filter-button {
153 -moz-user-focus: normal;
154}
155
ed1a91c6 156.webconsole-filter-button[checked] {
c29b709d 157 /* color: white !important; */
72a6fd39
RK
158}
159
c29b709d
RK
160.webconsole-filter-button > .toolbarbutton-menubutton-button:before {
161 content: "";
162 display: inline-block;
163 height: 8px;
164 width: 8px;
165 border-radius: 50%;
166 margin-left: 5px;
167 border-width: 1px;
168 border-style: solid;
e0b5363a
RK
169}
170
171.webconsole-filter-button menuitem {
172 -moz-image-region: auto;
173}
174
175.hud-filter-box {
176 margin-top: 0;
177 margin-bottom: 0;
904e5040
RK
178}
179
8a933f1e 180/* Network styles */
c29b709d 181.webconsole-filter-button[category="net"] > .toolbarbutton-menubutton-button:before {
884ab557 182 background-image: linear-gradient(#BF9B00, #7F6700);
c29b709d 183 border-color: #FFCF00;
72a6fd39
RK
184}
185
b981e4fd 186.message[category=network] > .icon {
884ab557 187 -moz-border-start: solid #FFCF00 6px;
8a933f1e
RK
188}
189
b981e4fd
RK
190.message[category=network][severity=error] > .icon {
191 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 0, 16, 8, 8);
192}
193
194.message[category=network] > .body {
195 display: flex;
196}
197
198.message[category=network] .method {
199 flex: 0 0 auto;
200}
201
202.message[category=network]:not(.navigation-marker) .url {
203 flex: 1 1 auto;
204 /* Make sure the URL is very small initially, let flex change width as needed. */
205 width: 100px;
206 min-width: 5em;
207 white-space: nowrap;
208 overflow: hidden;
209 text-overflow: ellipsis;
210}
211
212.message[category=network] .status {
213 flex: 0 0 auto;
214 -moz-margin-start: 6px;
215}
216
217.message[category=network].mixed-content .url {
218 color: #FF0000;
219}
220
221.message .learn-more-link {
222 color: #3333FF;
223 margin: 0 6px;
8a933f1e
RK
224}
225
226/* CSS styles */
c29b709d 227.webconsole-filter-button[category="css"] > .toolbarbutton-menubutton-button:before {
884ab557 228 background-image: linear-gradient(#7575BF, #4E4E7F);
c29b709d 229 border-color: #9C9CFF;
72a6fd39
RK
230}
231
b981e4fd 232.message[category=cssparser] > .icon {
884ab557 233 -moz-border-start: solid #9C9CFF 6px;
8a933f1e
RK
234}
235
b981e4fd
RK
236.message[category=cssparser][severity=error] > .icon {
237 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 8, 16, 16, 8);
8a933f1e
RK
238}
239
b981e4fd
RK
240.message[category=cssparser][severity=warn] > .icon {
241 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 8, 24, 16, 16);
8a933f1e
RK
242}
243
244/* JS styles */
884ab557
RK
245.webconsole-filter-button[category="js"] > .toolbarbutton-menubutton-button:before {
246 background-image: linear-gradient(#BF7700, #7F4F00);
c29b709d 247 border-color: #FF9F00;
72a6fd39
RK
248}
249
b981e4fd 250.message[category=exception] > .icon {
884ab557 251 -moz-border-start: solid #FF9F00 6px;
8a933f1e
RK
252}
253
b981e4fd
RK
254.message[category=exception][severity=error] > .icon {
255 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 16, 16, 24, 8);
8a933f1e
RK
256}
257
b981e4fd
RK
258.message[category=exception][severity=warn] > .icon {
259 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 16, 24, 24, 16);
8a933f1e
RK
260}
261
262/* Web Developer styles */
c29b709d 263.webconsole-filter-button[category="logging"] > .toolbarbutton-menubutton-button:before {
884ab557 264 background-image: linear-gradient(#5F3B83, #3F2756);
c29b709d 265 border-color: #8050B0;
72a6fd39
RK
266}
267
b981e4fd 268.message[category=console] > .icon {
884ab557 269 -moz-border-start: solid #8050B0 6px;
8a933f1e
RK
270}
271
b981e4fd
RK
272.message[category=console][severity=error] > .icon,
273.message[category=output][severity=error] > .icon {
274 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 16, 32, 8);
8a933f1e
RK
275}
276
b981e4fd
RK
277.message[category=console][severity=warn] > .icon {
278 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 24, 32, 16);
8a933f1e
RK
279}
280
b981e4fd
RK
281.message[category=console][severity=info] > .icon {
282 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 32, 32, 24);
8a933f1e
RK
283}
284
285/* Input and output styles */
b981e4fd
RK
286.message[category=input] > .icon,
287.message[category=output] > .icon {
288 -moz-border-start: solid #A09090 6px;
8a933f1e
RK
289}
290
b981e4fd
RK
291.message[category=input] > .icon {
292 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 40, 32, 32);
a0885fa2
RK
293}
294
b981e4fd
RK
295.message[category=output] > .icon {
296 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 48, 32, 40);
a0885fa2 297}
72a6fd39 298
f0c3317f
RK
299/* JSTerm Styles */
300
e1313d59
RK
301.jsterm-input-node,
302.jsterm-complete-node {
c54ac991
RK
303 -moz-padding-start: 16px;
304 margin: 3px 0 0 0;
d2ce251d 305 background-color: transparent;
e1313d59
RK
306}
307
308.jsterm-input-node {
b27cc46e 309 background: -moz-image-rect(url("chrome://browser/skin/devtools/commandline-icon.png"), 0, 32, 16, 16) no-repeat;
f0c3317f
RK
310}
311
e1313d59
RK
312:-moz-any(.jsterm-input-node,
313 .jsterm-complete-node) > .textbox-input-box > .textbox-textarea {
941d657f 314 overflow-x: hidden;
f0c3317f
RK
315}
316
b981e4fd
RK
317.inlined-variables-view .body {
318 display: flex;
319 flex-direction: column;
320}
321
322.inlined-variables-view iframe {
323 display: block;
324 flex: 1;
de57e474 325 margin-top: 5px;
ed1a91c6
RK
326 margin-bottom: 15px;
327 -moz-margin-end: 15px;
b981e4fd 328 border: 1px solid #9C9CFF;
ed1a91c6
RK
329 border-radius: 4px;
330}
331
332#webconsole-sidebar > tabs {
333 height: 0;
334 border: none;
335}
336
45dc7657
RK
337.devtools-side-splitter ~ #webconsole-sidebar[hidden] {
338 display: none;
339}
340
e2734cc7
RK
341/* Security styles */
342
b981e4fd 343.message[category=security] > .icon {
ed1a91c6
RK
344 -moz-border-start: solid #FF0000 6px;
345}
346
347.webconsole-filter-button[category="security"] > .toolbarbutton-menubutton-button:before {
348 background-color: #FF0000;
349 border-color: #FFCF00;
350}
e2734cc7 351
b981e4fd
RK
352.message[category=security][severity=error] > .icon {
353 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 32, 16, 40, 8);
e2734cc7
RK
354}
355
b981e4fd
RK
356.message[category=security][severity=warn] > .icon {
357 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 32, 24, 40, 16);
e2734cc7 358}
fe524e0c
RK
359
360.navigation-marker {
361 color: #000000;
362 background-color: #A09090;
b981e4fd
RK
363 margin-top: 6px;
364 margin-bottom: 6px;
fe524e0c
RK
365 font-size: 0.9em;
366}
367
368.navigation-marker .url {
b981e4fd
RK
369 -moz-padding-end: 9px;
370 text-decoration: none;
fe524e0c 371}
d2ce251d 372
45dc7657
RK
373.consoleTrace .body > div {
374 display: flex;
375 margin-bottom: 5px;
376}
377
378.consoleTrace .title {
379 display: block;
380 flex: 1 1 auto;
381}
382
383.stacktrace {
384 list-style: none;
385 padding: 0 1em 0 1.5em;
386 margin: 0;
387 max-height: 10em;
388 overflow-y: auto;
389
390 border: 1px solid #A09090;
391 border-radius: 3px;
392}
393
394.stacktrace li {
395 display: flex;
396 margin: 0;
397}
398
399.stacktrace .function {
400 display: block;
401 flex: 1 1 auto;
402}
403
649b5d38
RK
404.cm-s-mozilla a[class] {
405 font-style: italic;
406 text-decoration: none;
407}
408
409.cm-s-mozilla a[class]:hover,
410.cm-s-mozilla a[class]:focus {
411 text-decoration: underline;
412}
413
414/* Open DOMNode in inspector button */
415.open-inspector {
416 background: url("chrome://browser/skin/devtools/vview-open-inspector.png") no-repeat 0 0;
417 padding-left: 16px;
418 margin-left: 5px;
419 cursor: pointer;
420}
421
422.elementNode:hover .open-inspector,
423.open-inspector:hover {
424 background-position: -32px 0;
425}
426
427.open-inspector:active {
428 background-position: -16px 0;
429}
430
d2ce251d
RK
431/* Replace these values with CSS variables as available */
432.theme-dark .jsterm-input-container {
433 background-color: #000000; /* tabToolbarBackgroundColor */
434 border-color: #9C9CFF; /* mainBackgroundColor */
435}
436
437.theme-dark .jsterm-input-node {
438 color: #E7ADE7; /* textColor */
439}
440
441.theme-dark .jsterm-complete-node {
442 color: #A09090; /* commentColor */
443}
444
445.theme-dark .navigation-marker .url {
446 background: #000000; /* mainBackgroundColor */
447}
448
de57e474
RK
449.theme-dark .inlined-variables-view iframe {
450 border-color: #A09090;
451}
452
45dc7657
RK
453.theme-dark .stacktrace {
454 border-color: #A09090;
455}
456
d2ce251d
RK
457.theme-light .jsterm-input-container {
458 background-color: #000000; /* tabToolbarBackgroundColor */
459 border-color: #9C9CFF; /* mainBackgroundColor */
460}
461
462.theme-light .jsterm-input-node {
463 color: #E7ADE7; /* textColor */
464}
465
466.theme-light .jsterm-complete-node {
467 color: #A09090; /* commentColor */
468}
469
470.theme-light .navigation-marker .url {
471 background: #000000; /* mainBackgroundColor */
472}
de57e474
RK
473
474.theme-light .inlined-variables-view iframe {
475 border-color: #A09090;
476}
45dc7657
RK
477
478.theme-dark .stacktrace {
479 border-color: #A09090;
480}
481
482@media (max-width: 500px) {
483 .message > .timestamp {
484 display: none;
485 }
486 .toolbarbutton-text {
487 display: none;
488 }
489 .hud-console-filter-toolbar .webconsole-filter-button {
490 min-width: 40px;
491 }
492 .hud-console-filter-toolbar .webconsole-clear-console-button {
493 min-width: 25px;
494 }
495 .webconsole-filter-button > .toolbarbutton-menubutton-button:before {
496 width: 16px;
497 height: 16px;
498 margin-left: 1px;
499 }
500 .toolbarbutton-menubutton-dropmarker {
501 margin: 0px;
502 }
503}
504
505@media (max-width: 300px) {
506 .hud-console-filter-toolbar {
507 -moz-box-orient: vertical;
508 }
509 .toolbarbutton-text {
510 display: -moz-box;
511 }
512 .devtools-toolbarbutton {
513 margin-top: 3px;
514 }
515 .hud-console-filter-toolbar .hud-filter-box,
516 .hud-console-filter-toolbar .devtools-toolbarbutton {
517 margin-top: 5px;
518 }
519}
520
521/* === END webconsole.inc.css === */