Commit | Line | Data |
---|---|---|
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 |
5 | window { |
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 |
22 | a { |
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 | ||
20752032 | 141 | .message-body > * { |
589b5528 RK |
142 | white-space: pre-wrap; |
143 | word-wrap: break-word; | |
144 | } | |
145 | ||
146 | .message-flex-body > .message-body { | |
147 | display: block; | |
86d9f20a | 148 | flex: 1 1 auto; |
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 | 184 | #output-container.hideTimestamps > .message > .indent { |
28e80a05 | 185 | background-color: var(--theme-body-background); |
589b5528 RK |
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 | |
2f2239a0 RK |
202 | .hud-console-filter-toolbar toolbarbutton > .toolbarbutton-text { |
203 | padding: 2px 2px 3px; | |
204 | } | |
205 | ||
b27cc46e RK |
206 | .webconsole-filter-button { |
207 | -moz-user-focus: normal; | |
208 | } | |
209 | ||
c29b709d RK |
210 | .webconsole-filter-button > .toolbarbutton-menubutton-button:before { |
211 | content: ""; | |
212 | display: inline-block; | |
213 | height: 8px; | |
214 | width: 8px; | |
215 | border-radius: 50%; | |
2f2239a0 RK |
216 | -moz-margin-start: 2px; |
217 | -moz-margin-end: 2px; | |
c29b709d RK |
218 | border-width: 1px; |
219 | border-style: solid; | |
e0b5363a RK |
220 | } |
221 | ||
2f2239a0 RK |
222 | .webconsole-filter-button > .toolbarbutton-menubutton-button { |
223 | -moz-box-orient: horizontal; | |
224 | } | |
225 | ||
e0b5363a RK |
226 | .webconsole-filter-button menuitem { |
227 | -moz-image-region: auto; | |
228 | } | |
229 | ||
230 | .hud-filter-box { | |
231 | margin-top: 0; | |
232 | margin-bottom: 0; | |
904e5040 RK |
233 | } |
234 | ||
8a933f1e | 235 | /* Network styles */ |
c29b709d | 236 | .webconsole-filter-button[category="net"] > .toolbarbutton-menubutton-button:before { |
884ab557 | 237 | background-image: linear-gradient(#BF9B00, #7F6700); |
c29b709d | 238 | border-color: #FFCF00; |
72a6fd39 RK |
239 | } |
240 | ||
9168a62c | 241 | .message:hover { |
8c6555e2 | 242 | background-color: var(--theme-contrast-background); |
9168a62c RK |
243 | } |
244 | ||
589b5528 RK |
245 | .message[severity=error] { |
246 | background-color: #FF0000; | |
247 | } | |
248 | ||
249 | .console-string { | |
28e80a05 | 250 | color: var(--theme-highlight-orange); |
f1d74fb1 RK |
251 | } |
252 | ||
253 | .message[severity=error] .console-string { | |
254 | color: #000000; | |
589b5528 RK |
255 | } |
256 | ||
cac2a998 RK |
257 | .theme-selected .console-string, |
258 | .theme-selected .cm-number, | |
259 | .theme-selected .cm-variable, | |
260 | .theme-selected .kind-ArrayLike { | |
261 | color: #000000 !important; /* Selection Text Color */ | |
262 | } | |
263 | ||
589b5528 RK |
264 | .message[category=network] > .indent { |
265 | -moz-border-end: solid #FF0000 6px; | |
8a933f1e RK |
266 | } |
267 | ||
dccbbf95 RK |
268 | .message[category=network][severity=error] > .icon::before { |
269 | background-position: -8px 0; | |
b981e4fd RK |
270 | } |
271 | ||
589b5528 | 272 | .message[category=network] > .message-body { |
b981e4fd RK |
273 | display: flex; |
274 | } | |
275 | ||
276 | .message[category=network] .method { | |
a21f2959 | 277 | flex: none; |
b981e4fd RK |
278 | } |
279 | ||
280 | .message[category=network]:not(.navigation-marker) .url { | |
86d9f20a | 281 | flex: 1 1 auto; |
b981e4fd RK |
282 | /* Make sure the URL is very small initially, let flex change width as needed. */ |
283 | width: 100px; | |
284 | min-width: 5em; | |
285 | white-space: nowrap; | |
286 | overflow: hidden; | |
287 | text-overflow: ellipsis; | |
288 | } | |
289 | ||
290 | .message[category=network] .status { | |
a21f2959 | 291 | flex: none; |
b981e4fd RK |
292 | -moz-margin-start: 6px; |
293 | } | |
294 | ||
295 | .message[category=network].mixed-content .url { | |
296 | color: #FF0000; | |
297 | } | |
298 | ||
299 | .message .learn-more-link { | |
300 | color: #3333FF; | |
301 | margin: 0 6px; | |
8a933f1e RK |
302 | } |
303 | ||
e184b661 RK |
304 | .message[category=network] .xhr { |
305 | background-color: var(--theme-body-color-alt); | |
306 | color: var(--theme-body-background); | |
307 | border-radius: 3px; | |
308 | font-weight: bold; | |
309 | font-size: 10px; | |
310 | padding: 2px; | |
311 | line-height: 10px; | |
312 | -moz-margin-end: 1ex; | |
313 | } | |
314 | ||
8a933f1e | 315 | /* CSS styles */ |
c29b709d | 316 | .webconsole-filter-button[category="css"] > .toolbarbutton-menubutton-button:before { |
884ab557 | 317 | background-image: linear-gradient(#7575BF, #4E4E7F); |
c29b709d | 318 | border-color: #9C9CFF; |
72a6fd39 RK |
319 | } |
320 | ||
589b5528 RK |
321 | .message[category=cssparser] > .indent { |
322 | -moz-border-end: solid #9C9CFF 6px; | |
8a933f1e RK |
323 | } |
324 | ||
dccbbf95 RK |
325 | .message[category=cssparser][severity=error] > .icon::before { |
326 | background-position: -8px -8px; | |
8a933f1e RK |
327 | } |
328 | ||
dccbbf95 RK |
329 | .message[category=cssparser][severity=warn] > .icon::before { |
330 | background-position: -16px -8px; | |
8a933f1e RK |
331 | } |
332 | ||
333 | /* JS styles */ | |
884ab557 RK |
334 | .webconsole-filter-button[category="js"] > .toolbarbutton-menubutton-button:before { |
335 | background-image: linear-gradient(#BF7700, #7F4F00); | |
c29b709d | 336 | border-color: #FF9F00; |
72a6fd39 RK |
337 | } |
338 | ||
589b5528 RK |
339 | .message[category=exception] > .indent { |
340 | -moz-border-end: solid #FF9F00 6px; | |
8a933f1e RK |
341 | } |
342 | ||
dccbbf95 RK |
343 | .message[category=exception][severity=error] > .icon::before { |
344 | background-position: -8px -16px; | |
8a933f1e RK |
345 | } |
346 | ||
dccbbf95 RK |
347 | .message[category=exception][severity=warn] > .icon::before { |
348 | background-position: -16px -16px; | |
8a933f1e RK |
349 | } |
350 | ||
351 | /* Web Developer styles */ | |
c29b709d | 352 | .webconsole-filter-button[category="logging"] > .toolbarbutton-menubutton-button:before { |
884ab557 | 353 | background-image: linear-gradient(#5F3B83, #3F2756); |
c29b709d | 354 | border-color: #8050B0; |
72a6fd39 RK |
355 | } |
356 | ||
589b5528 RK |
357 | .message[category=console] > .indent { |
358 | -moz-border-end: solid #8050B0 6px; | |
8a933f1e RK |
359 | } |
360 | ||
dccbbf95 RK |
361 | .message[category=console][severity=error] > .icon::before, |
362 | .message[category=output][severity=error] > .icon::before { | |
363 | background-position: -8px -24px; | |
8a933f1e RK |
364 | } |
365 | ||
dccbbf95 RK |
366 | .message[category=console][severity=warn] > .icon::before { |
367 | background-position: -16px -24px; | |
8a933f1e RK |
368 | } |
369 | ||
dccbbf95 RK |
370 | .message[category=console][severity=info] > .icon::before { |
371 | background-position: -24px -24px; | |
8a933f1e RK |
372 | } |
373 | ||
374 | /* Input and output styles */ | |
589b5528 RK |
375 | .message[category=input] > .indent, |
376 | .message[category=output] > .indent { | |
377 | -moz-border-end: solid #A09090 6px; | |
8a933f1e RK |
378 | } |
379 | ||
dccbbf95 RK |
380 | .message[category=input] > .icon::before { |
381 | background-position: -32px -24px; | |
a0885fa2 RK |
382 | } |
383 | ||
dccbbf95 RK |
384 | .message[category=output] > .icon::before { |
385 | background-position: -40px -24px; | |
a0885fa2 | 386 | } |
72a6fd39 | 387 | |
f0c3317f RK |
388 | /* JSTerm Styles */ |
389 | ||
e1313d59 RK |
390 | .jsterm-input-node, |
391 | .jsterm-complete-node { | |
c54ac991 RK |
392 | -moz-padding-start: 16px; |
393 | margin: 3px 0 0 0; | |
d2ce251d | 394 | background-color: transparent; |
e1313d59 RK |
395 | } |
396 | ||
397 | .jsterm-input-node { | |
dccbbf95 RK |
398 | background-image: -moz-image-rect(url("chrome://browser/skin/devtools/commandline-icon.png"), 0, 32, 16, 16); |
399 | background-repeat: no-repeat; | |
400 | background-size: 16px 16px; | |
401 | } | |
402 | ||
403 | @media (min-resolution: 2dppx) { | |
404 | .jsterm-input-node { | |
405 | background-image: -moz-image-rect(url('chrome://browser/skin/devtools/commandline-icon@2x.png'), 0, 64, 32, 32); | |
406 | } | |
f0c3317f RK |
407 | } |
408 | ||
e1313d59 RK |
409 | :-moz-any(.jsterm-input-node, |
410 | .jsterm-complete-node) > .textbox-input-box > .textbox-textarea { | |
941d657f | 411 | overflow-x: hidden; |
f0c3317f RK |
412 | } |
413 | ||
589b5528 | 414 | .inlined-variables-view .message-body { |
b981e4fd RK |
415 | display: flex; |
416 | flex-direction: column; | |
417 | } | |
418 | ||
419 | .inlined-variables-view iframe { | |
420 | display: block; | |
421 | flex: 1; | |
de57e474 | 422 | margin-top: 5px; |
ed1a91c6 RK |
423 | margin-bottom: 15px; |
424 | -moz-margin-end: 15px; | |
b981e4fd | 425 | border: 1px solid #9C9CFF; |
ed1a91c6 RK |
426 | border-radius: 4px; |
427 | } | |
428 | ||
429 | #webconsole-sidebar > tabs { | |
430 | height: 0; | |
431 | border: none; | |
432 | } | |
433 | ||
45dc7657 RK |
434 | .devtools-side-splitter ~ #webconsole-sidebar[hidden] { |
435 | display: none; | |
436 | } | |
437 | ||
e2734cc7 RK |
438 | /* Security styles */ |
439 | ||
589b5528 RK |
440 | .message[category=security] > .indent { |
441 | -moz-border-end: solid #FF0000 6px; | |
ed1a91c6 RK |
442 | } |
443 | ||
444 | .webconsole-filter-button[category="security"] > .toolbarbutton-menubutton-button:before { | |
445 | background-color: #FF0000; | |
446 | border-color: #FFCF00; | |
447 | } | |
e2734cc7 | 448 | |
dccbbf95 RK |
449 | .message[category=security][severity=error] > .icon::before { |
450 | background-position: -8px -32px; | |
e2734cc7 RK |
451 | } |
452 | ||
dccbbf95 RK |
453 | .message[category=security][severity=warn] > .icon::before { |
454 | background-position: -16px -32px; | |
e2734cc7 | 455 | } |
fe524e0c RK |
456 | |
457 | .navigation-marker { | |
458 | color: #000000; | |
459 | background-color: #A09090; | |
b981e4fd RK |
460 | margin-top: 6px; |
461 | margin-bottom: 6px; | |
fe524e0c RK |
462 | font-size: 0.9em; |
463 | } | |
464 | ||
465 | .navigation-marker .url { | |
b981e4fd RK |
466 | -moz-padding-end: 9px; |
467 | text-decoration: none; | |
fe524e0c | 468 | } |
d2ce251d | 469 | |
45dc7657 | 470 | .stacktrace { |
589b5528 | 471 | display: none; |
45dc7657 RK |
472 | list-style: none; |
473 | padding: 0 1em 0 1.5em; | |
589b5528 | 474 | margin: 5px 0 0 0; |
45dc7657 RK |
475 | max-height: 10em; |
476 | overflow-y: auto; | |
45dc7657 RK |
477 | border: 1px solid #A09090; |
478 | border-radius: 3px; | |
479 | } | |
cac2a998 RK |
480 | |
481 | .consoletable { | |
482 | margin: 5px 0 0 0; | |
483 | } | |
484 | ||
589b5528 RK |
485 | .message[severity=error] .stacktrace { |
486 | background-color: #000000; | |
487 | } | |
488 | ||
489 | .message[open] .stacktrace { | |
490 | display: block; | |
491 | } | |
492 | ||
493 | .message .theme-twisty { | |
494 | display: inline-block; | |
495 | vertical-align: middle; | |
496 | margin: 0 3px 0 0; | |
497 | } | |
45dc7657 RK |
498 | |
499 | .stacktrace li { | |
500 | display: flex; | |
501 | margin: 0; | |
502 | } | |
503 | ||
504 | .stacktrace .function { | |
505 | display: block; | |
86d9f20a | 506 | flex: 1 1 auto; |
45dc7657 RK |
507 | } |
508 | ||
649b5d38 RK |
509 | .cm-s-mozilla a[class] { |
510 | font-style: italic; | |
511 | text-decoration: none; | |
512 | } | |
513 | ||
514 | .cm-s-mozilla a[class]:hover, | |
515 | .cm-s-mozilla a[class]:focus { | |
516 | text-decoration: underline; | |
517 | } | |
518 | ||
519 | /* Open DOMNode in inspector button */ | |
520 | .open-inspector { | |
521 | background: url("chrome://browser/skin/devtools/vview-open-inspector.png") no-repeat 0 0; | |
522 | padding-left: 16px; | |
523 | margin-left: 5px; | |
524 | cursor: pointer; | |
525 | } | |
526 | ||
527 | .elementNode:hover .open-inspector, | |
528 | .open-inspector:hover { | |
529 | background-position: -32px 0; | |
530 | } | |
531 | ||
532 | .open-inspector:active { | |
533 | background-position: -16px 0; | |
534 | } | |
535 | ||
d2ce251d | 536 | /* Replace these values with CSS variables as available */ |
2b5a5147 | 537 | .jsterm-input-container { |
28e80a05 RK |
538 | background-color: var(--theme-toolbar-background); |
539 | border-color: var(--theme-splitter-color); | |
d2ce251d RK |
540 | } |
541 | ||
2b5a5147 | 542 | .jsterm-input-node { |
28e80a05 | 543 | color: var(--theme-highlight-pink); |
d2ce251d RK |
544 | } |
545 | ||
2b5a5147 | 546 | .jsterm-complete-node { |
28e80a05 | 547 | color: var(--theme-comment); |
d2ce251d RK |
548 | } |
549 | ||
2b5a5147 | 550 | .navigation-marker .url { |
28e80a05 | 551 | background: var(--theme-body-background); |
d2ce251d | 552 | } |
de57e474 | 553 | |
2b5a5147 | 554 | .inlined-variables-view iframe { |
de57e474 RK |
555 | border-color: #A09090; |
556 | } | |
45dc7657 | 557 | |
2b5a5147 | 558 | .stacktrace { |
45dc7657 RK |
559 | border-color: #A09090; |
560 | } | |
561 | ||
562 | @media (max-width: 500px) { | |
563 | .message > .timestamp { | |
564 | display: none; | |
565 | } | |
2b5a5147 | 566 | .hud-console-filter-toolbar .webconsole-filter-button .toolbarbutton-text { |
45dc7657 RK |
567 | display: none; |
568 | } | |
569 | .hud-console-filter-toolbar .webconsole-filter-button { | |
570 | min-width: 40px; | |
571 | } | |
572 | .hud-console-filter-toolbar .webconsole-clear-console-button { | |
573 | min-width: 25px; | |
574 | } | |
575 | .webconsole-filter-button > .toolbarbutton-menubutton-button:before { | |
2b5a5147 | 576 | width: 12px; |
9e756f9d | 577 | height: 12px; |
45dc7657 RK |
578 | margin-left: 1px; |
579 | } | |
580 | .toolbarbutton-menubutton-dropmarker { | |
581 | margin: 0px; | |
582 | } | |
583 | } | |
584 | ||
585 | @media (max-width: 300px) { | |
586 | .hud-console-filter-toolbar { | |
587 | -moz-box-orient: vertical; | |
588 | } | |
589 | .toolbarbutton-text { | |
590 | display: -moz-box; | |
591 | } | |
2f2239a0 | 592 | /* |
45dc7657 RK |
593 | .devtools-toolbarbutton { |
594 | margin-top: 3px; | |
595 | } | |
596 | .hud-console-filter-toolbar .hud-filter-box, | |
597 | .hud-console-filter-toolbar .devtools-toolbarbutton { | |
598 | margin-top: 5px; | |
599 | } | |
2f2239a0 | 600 | */ |
45dc7657 RK |
601 | } |
602 | ||
603 | /* === END webconsole.inc.css === */ |