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