first part of synching LCARStrek with windows theme changes in Firefox 28 cycle
[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
18/* === webconsole.inc.css === */
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
RK
63/* The red bubble that shows the number of times a message is repeated */
64.message > .repeats {
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
b981e4fd 78.message > .repeats[value="1"] {
38b75e2e
RK
79 display: none;
80}
81
b981e4fd
RK
82.message > .location {
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;
b27cc46e
RK
92}
93
b981e4fd
RK
94.message > .location:hover,
95.message > .location:focus {
96 text-decoration: underline;
1b13529a
RK
97}
98
5a199ba1
RK
99.message > .location > .filename {
100 text-overflow: ellipsis;
101 text-align: end;
102 overflow: hidden;
103 white-space: nowrap;
104}
105
106.message > .location > .line-number {
107 flex: 0 0 auto;
108}
109
8a933f1e
RK
110.hud-msg-node[selected="true"] > .webconsole-timestamp,
111.hud-msg-node[selected="true"] > .webconsole-location {
112 color: inherit;
f0c3317f
RK
113}
114
b981e4fd
RK
115#output-wrapper {
116 background: #000000;
117 color: #FF9F00;
118 direction: ltr;
8a933f1e 119 border-bottom: 1px solid #9C9CFF;
b981e4fd
RK
120 overflow: auto;
121}
122
123#output-container {
124 -moz-user-select: text;
125 -moz-box-flex: 1;
126 display: flex;
127 flex-direction: column;
128 align-items: flex-start;
f0c3317f
RK
129}
130
b981e4fd
RK
131.filtered-by-type,
132.filtered-by-string {
706c344c
RK
133 display: none;
134}
135
c4460289
RK
136.hidden-message {
137 display: block;
138 visibility: hidden;
139 height: 0;
140 overflow: hidden;
141}
142
c29b709d 143/* WebConsole colored drops */
941d657f 144
b27cc46e
RK
145.webconsole-filter-button {
146 -moz-user-focus: normal;
147}
148
ed1a91c6 149.webconsole-filter-button[checked] {
c29b709d 150 /* color: white !important; */
72a6fd39
RK
151}
152
c29b709d
RK
153.webconsole-filter-button > .toolbarbutton-menubutton-button:before {
154 content: "";
155 display: inline-block;
156 height: 8px;
157 width: 8px;
158 border-radius: 50%;
159 margin-left: 5px;
160 border-width: 1px;
161 border-style: solid;
e0b5363a
RK
162}
163
164.webconsole-filter-button menuitem {
165 -moz-image-region: auto;
166}
167
168.hud-filter-box {
169 margin-top: 0;
170 margin-bottom: 0;
904e5040
RK
171}
172
8a933f1e 173/* Network styles */
c29b709d 174.webconsole-filter-button[category="net"] > .toolbarbutton-menubutton-button:before {
884ab557 175 background-image: linear-gradient(#BF9B00, #7F6700);
c29b709d 176 border-color: #FFCF00;
72a6fd39
RK
177}
178
b981e4fd 179.message[category=network] > .icon {
884ab557 180 -moz-border-start: solid #FFCF00 6px;
8a933f1e
RK
181}
182
b981e4fd
RK
183.message[category=network][severity=error] > .icon {
184 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 0, 16, 8, 8);
185}
186
187.message[category=network] > .body {
188 display: flex;
189}
190
191.message[category=network] .method {
192 flex: 0 0 auto;
193}
194
195.message[category=network]:not(.navigation-marker) .url {
196 flex: 1 1 auto;
197 /* Make sure the URL is very small initially, let flex change width as needed. */
198 width: 100px;
199 min-width: 5em;
200 white-space: nowrap;
201 overflow: hidden;
202 text-overflow: ellipsis;
203}
204
205.message[category=network] .status {
206 flex: 0 0 auto;
207 -moz-margin-start: 6px;
208}
209
210.message[category=network].mixed-content .url {
211 color: #FF0000;
212}
213
214.message .learn-more-link {
215 color: #3333FF;
216 margin: 0 6px;
8a933f1e
RK
217}
218
219/* CSS styles */
c29b709d 220.webconsole-filter-button[category="css"] > .toolbarbutton-menubutton-button:before {
884ab557 221 background-image: linear-gradient(#7575BF, #4E4E7F);
c29b709d 222 border-color: #9C9CFF;
72a6fd39
RK
223}
224
b981e4fd 225.message[category=cssparser] > .icon {
884ab557 226 -moz-border-start: solid #9C9CFF 6px;
8a933f1e
RK
227}
228
b981e4fd
RK
229.message[category=cssparser][severity=error] > .icon {
230 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 8, 16, 16, 8);
8a933f1e
RK
231}
232
b981e4fd
RK
233.message[category=cssparser][severity=warn] > .icon {
234 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 8, 24, 16, 16);
8a933f1e
RK
235}
236
237/* JS styles */
884ab557
RK
238.webconsole-filter-button[category="js"] > .toolbarbutton-menubutton-button:before {
239 background-image: linear-gradient(#BF7700, #7F4F00);
c29b709d 240 border-color: #FF9F00;
72a6fd39
RK
241}
242
b981e4fd 243.message[category=exception] > .icon {
884ab557 244 -moz-border-start: solid #FF9F00 6px;
8a933f1e
RK
245}
246
b981e4fd
RK
247.message[category=exception][severity=error] > .icon {
248 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 16, 16, 24, 8);
8a933f1e
RK
249}
250
b981e4fd
RK
251.message[category=exception][severity=warn] > .icon {
252 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 16, 24, 24, 16);
8a933f1e
RK
253}
254
255/* Web Developer styles */
c29b709d 256.webconsole-filter-button[category="logging"] > .toolbarbutton-menubutton-button:before {
884ab557 257 background-image: linear-gradient(#5F3B83, #3F2756);
c29b709d 258 border-color: #8050B0;
72a6fd39
RK
259}
260
b981e4fd 261.message[category=console] > .icon {
884ab557 262 -moz-border-start: solid #8050B0 6px;
8a933f1e
RK
263}
264
b981e4fd
RK
265.message[category=console][severity=error] > .icon,
266.message[category=output][severity=error] > .icon {
267 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 16, 32, 8);
8a933f1e
RK
268}
269
b981e4fd
RK
270.message[category=console][severity=warn] > .icon {
271 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 24, 32, 16);
8a933f1e
RK
272}
273
b981e4fd
RK
274.message[category=console][severity=info] > .icon {
275 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 32, 32, 24);
8a933f1e
RK
276}
277
278/* Input and output styles */
b981e4fd
RK
279.message[category=input] > .icon,
280.message[category=output] > .icon {
281 -moz-border-start: solid #A09090 6px;
8a933f1e
RK
282}
283
b981e4fd
RK
284.message[category=input] > .icon {
285 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 40, 32, 32);
a0885fa2
RK
286}
287
b981e4fd
RK
288.message[category=output] > .icon {
289 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 24, 48, 32, 40);
a0885fa2 290}
72a6fd39 291
f0c3317f
RK
292/* JSTerm Styles */
293
e1313d59
RK
294.jsterm-input-node,
295.jsterm-complete-node {
c54ac991
RK
296 -moz-padding-start: 16px;
297 margin: 3px 0 0 0;
e1313d59
RK
298}
299
300.jsterm-input-node {
b27cc46e 301 background: -moz-image-rect(url("chrome://browser/skin/devtools/commandline-icon.png"), 0, 32, 16, 16) no-repeat;
fe524e0c 302 background-position: 0%;
f0c3317f
RK
303}
304
e1313d59
RK
305:-moz-any(.jsterm-input-node,
306 .jsterm-complete-node) > .textbox-input-box > .textbox-textarea {
941d657f 307 overflow-x: hidden;
f0c3317f
RK
308}
309
e1313d59
RK
310.jsterm-complete-node > .textbox-input-box > .textbox-textarea {
311 color: #8050B0;
312}
313
b981e4fd
RK
314.inlined-variables-view .body {
315 display: flex;
316 flex-direction: column;
317}
318
319.inlined-variables-view iframe {
320 display: block;
321 flex: 1;
ed1a91c6
RK
322 margin-bottom: 15px;
323 -moz-margin-end: 15px;
b981e4fd 324 border: 1px solid #9C9CFF;
ed1a91c6
RK
325 border-radius: 4px;
326}
327
328#webconsole-sidebar > tabs {
329 height: 0;
330 border: none;
331}
332
e2734cc7
RK
333/* Security styles */
334
b981e4fd 335.message[category=security] > .icon {
ed1a91c6
RK
336 -moz-border-start: solid #FF0000 6px;
337}
338
339.webconsole-filter-button[category="security"] > .toolbarbutton-menubutton-button:before {
340 background-color: #FF0000;
341 border-color: #FFCF00;
342}
e2734cc7 343
b981e4fd
RK
344.message[category=security][severity=error] > .icon {
345 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 32, 16, 40, 8);
e2734cc7
RK
346}
347
b981e4fd
RK
348.message[category=security][severity=warn] > .icon {
349 background-image: -moz-image-rect(url("chrome://browser/skin/devtools/webconsole.png"), 32, 24, 40, 16);
e2734cc7 350}
fe524e0c
RK
351
352.navigation-marker {
353 color: #000000;
354 background-color: #A09090;
b981e4fd
RK
355 margin-top: 6px;
356 margin-bottom: 6px;
fe524e0c
RK
357 font-size: 0.9em;
358}
359
360.navigation-marker .url {
361 background-color: #000000;
b981e4fd
RK
362 -moz-padding-end: 9px;
363 text-decoration: none;
fe524e0c 364}