Commit | Line | Data |
---|---|---|
f0c3317f RK |
1 | /* ***** BEGIN LICENSE BLOCK ***** |
2 | * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | |
3 | * | |
4 | * The contents of this file are subject to the Mozilla Public License Version | |
5 | * 1.1 (the "License"); you may not use this file except in compliance with | |
6 | * the License. You may obtain a copy of the License at | |
7 | * http://www.mozilla.org/MPL/ | |
8 | * | |
9 | * Software distributed under the License is distributed on an "AS IS" basis, | |
10 | * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License | |
11 | * for the specific language governing rights and limitations under the | |
12 | * License. | |
13 | * | |
14 | * The Original Code is DevTools code | |
15 | * | |
16 | * The Initial Developer of the Original Code is | |
17 | * Mozilla Corporation | |
18 | * Portions created by the Initial Developer are Copyright (C) 2010 | |
19 | * the Initial Developer. All Rights Reserved. | |
20 | * | |
21 | * Contributor(s): | |
22 | * David Dahl <ddahl@mozilla.com> | |
23 | ||
24 | * Alternatively, the contents of this file may be used under the terms of | |
25 | * either the GNU General Public License Version 2 or later (the "GPL"), or | |
26 | * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), | |
27 | * in which case the provisions of the GPL or the LGPL are applicable instead | |
28 | * of those above. If you wish to allow use of your version of this file only | |
29 | * under the terms of either the GPL or the LGPL, and not to allow others to | |
30 | * use your version of this file under the terms of the MPL, indicate your | |
31 | * decision by deleting the provisions above and replace them with the notice | |
32 | * and other provisions required by the GPL or the LGPL. If you do not delete | |
33 | * the provisions above, a recipient may use your version of this file under | |
34 | * the terms of any one of the MPL, the GPL or the LGPL. | |
35 | * | |
36 | * ***** END LICENSE BLOCK ***** */ | |
37 | ||
38 | .hud-box { | |
39 | border-bottom: 3px solid #000000; | |
40 | } | |
41 | ||
9162a092 | 42 | .hud-box.animated { |
72a6fd39 | 43 | -moz-transition: height 100ms; |
569543b3 RK |
44 | } |
45 | ||
f0c3317f RK |
46 | .hud-outer-wrapper { |
47 | width: 100%; | |
48 | height: 100%; | |
49 | } | |
50 | ||
51 | .hud-console-wrapper { | |
52 | width: 100%; | |
53 | overflow: auto; | |
54 | } | |
55 | ||
8a933f1e RK |
56 | /* General output styles */ |
57 | ||
58 | .webconsole-timestamp { | |
59 | color: #8050B0; | |
60 | margin-top: 0; | |
61 | margin-bottom: 0; | |
62 | } | |
63 | ||
a42b27e7 RK |
64 | .hud-msg-node { |
65 | list-style-image: url("chrome://global/skin/icons/webconsole.png"); | |
a0885fa2 | 66 | -moz-image-region: rect(0, 1px, 0, 0); |
a42b27e7 RK |
67 | } |
68 | ||
69 | .webconsole-msg-icon { | |
a0885fa2 RK |
70 | margin: 3px 4px; |
71 | width: 8px; | |
72 | height: 8px; | |
f0c3317f RK |
73 | } |
74 | ||
75 | .hud-output-node div { | |
76 | -moz-user-select: text; | |
3327253e | 77 | white-space: pre-wrap; |
941d657f | 78 | -moz-user-focus: normal; |
f0c3317f RK |
79 | } |
80 | ||
569543b3 | 81 | .hud-clickable { |
9162a092 | 82 | cursor: pointer; |
569543b3 RK |
83 | text-decoration: underline; |
84 | } | |
85 | ||
8a933f1e RK |
86 | .webconsole-msg-body { |
87 | margin-top: 0; | |
88 | margin-bottom: 3px; | |
89 | -moz-margin-start: 3px; | |
90 | -moz-margin-end: 6px; | |
a42b27e7 | 91 | white-space: pre-wrap; |
f0c3317f RK |
92 | } |
93 | ||
a0885fa2 RK |
94 | .webconsole-msg-body-piece { |
95 | margin: 0; | |
96 | } | |
97 | ||
98 | .webconsole-msg-url { | |
99 | margin: 0 6px; | |
100 | } | |
101 | ||
38b75e2e RK |
102 | /* Repeated messages */ |
103 | .webconsole-msg-repeat { | |
104 | margin: 2px 0; | |
105 | padding-left: 4px; | |
106 | padding-right: 4px; | |
38b75e2e RK |
107 | color: #000000; |
108 | background-color: #FF0000; | |
109 | border-radius: 40px; | |
110 | /* font: message-box; */ | |
111 | font-size: 10px; | |
112 | font-weight: 600; | |
113 | } | |
114 | ||
115 | /* TODO move this and other functional rules to content - bug 635359 */ | |
116 | .webconsole-msg-repeat[value="1"] { | |
117 | display: none; | |
118 | } | |
119 | ||
8a933f1e RK |
120 | .webconsole-location { |
121 | margin-top: 0; | |
122 | margin-bottom: 0; | |
123 | -moz-margin-start: 0; | |
124 | -moz-margin-end: 6px; | |
125 | width: 10em; | |
126 | text-align: end; | |
f0c3317f RK |
127 | } |
128 | ||
8a933f1e RK |
129 | .hud-msg-node[selected="true"] > .webconsole-timestamp, |
130 | .hud-msg-node[selected="true"] > .webconsole-location { | |
131 | color: inherit; | |
f0c3317f RK |
132 | } |
133 | ||
8a933f1e RK |
134 | .hud-output-node, |
135 | .jsterm-input-node, | |
136 | .jsterm-complete-node { | |
4c765db1 | 137 | font: 12px monospace; |
f0c3317f RK |
138 | } |
139 | ||
140 | .hud-output-node { | |
8a933f1e RK |
141 | -moz-appearance: none; |
142 | border-bottom: 1px solid #9C9CFF; | |
143 | border-top: 1px solid #9C9CFF; | |
144 | margin: 0; | |
f0c3317f RK |
145 | } |
146 | ||
9162a092 RK |
147 | .hud-filtered-by-type, |
148 | .hud-filtered-by-string { | |
706c344c RK |
149 | display: none; |
150 | } | |
151 | ||
72a6fd39 | 152 | .webconsole-clear-console-button > .toolbarbutton-icon { |
941d657f RK |
153 | display: none; |
154 | } | |
155 | ||
a0885fa2 | 156 | .webconsole-filter-button > .toolbarbutton-menubutton-button { |
72a6fd39 RK |
157 | -moz-box-orient: horizontal; |
158 | list-style-image: url("chrome://global/skin/icons/webconsole.png"); | |
159 | } | |
160 | ||
904e5040 RK |
161 | .webconsole-filter-button > .toolbarbutton-menubutton-button, |
162 | .webconsole-filter-button > .toolbarbutton-menubutton-button:hover:active { | |
163 | -moz-padding-start: 6px; | |
164 | -moz-padding-end: 3px; | |
165 | } | |
166 | ||
167 | .webconsole-filter-button { | |
168 | -moz-margin-start: 3px; | |
169 | -moz-margin-end: 3px; | |
170 | } | |
171 | ||
8a933f1e | 172 | /* Network styles */ |
72a6fd39 | 173 | .webconsole-filter-button[category="net"] { |
a0885fa2 | 174 | -moz-image-region: rect(0, 8px, 8px, 0); |
72a6fd39 RK |
175 | } |
176 | ||
8a933f1e RK |
177 | .webconsole-msg-network > .webconsole-msg-icon-container { |
178 | -moz-border-start: solid #000 6px; | |
179 | } | |
180 | ||
a42b27e7 | 181 | .webconsole-msg-network.webconsole-msg-error { |
a0885fa2 | 182 | -moz-image-region: rect(0, 16px, 8px, 8px); |
8a933f1e RK |
183 | } |
184 | ||
185 | /* CSS styles */ | |
72a6fd39 | 186 | .webconsole-filter-button[category="css"] { |
a0885fa2 | 187 | -moz-image-region: rect(8px, 8px, 16px, 0); |
72a6fd39 RK |
188 | } |
189 | ||
8a933f1e RK |
190 | .webconsole-msg-cssparser > .webconsole-msg-icon-container { |
191 | -moz-border-start: solid #00b6f0 6px; | |
192 | } | |
193 | ||
a42b27e7 | 194 | .webconsole-msg-cssparser.webconsole-msg-error { |
a0885fa2 | 195 | -moz-image-region: rect(8px, 16px, 16px, 8px); |
8a933f1e RK |
196 | } |
197 | ||
a42b27e7 | 198 | .webconsole-msg-cssparser.webconsole-msg-warn { |
a0885fa2 | 199 | -moz-image-region: rect(8px, 24px, 16px, 16px); |
8a933f1e RK |
200 | } |
201 | ||
202 | /* JS styles */ | |
72a6fd39 | 203 | .webconsole-filter-button[category="js"] { |
a0885fa2 | 204 | -moz-image-region: rect(16px, 8px, 24px, 0); |
72a6fd39 RK |
205 | } |
206 | ||
8a933f1e RK |
207 | .webconsole-msg-exception > .webconsole-msg-icon-container { |
208 | -moz-border-start: solid #fb9500 6px; | |
209 | } | |
210 | ||
a42b27e7 | 211 | .webconsole-msg-exception.webconsole-msg-error { |
a0885fa2 | 212 | -moz-image-region: rect(16px, 16px, 24px, 8px); |
8a933f1e RK |
213 | } |
214 | ||
a42b27e7 | 215 | .webconsole-msg-exception.webconsole-msg-warn { |
a0885fa2 | 216 | -moz-image-region: rect(16px, 24px, 24px, 16px); |
8a933f1e RK |
217 | } |
218 | ||
219 | /* Web Developer styles */ | |
72a6fd39 | 220 | .webconsole-filter-button[category="webdev"] { |
a0885fa2 | 221 | -moz-image-region: rect(24px, 8px, 32px, 0); |
72a6fd39 RK |
222 | } |
223 | ||
8a933f1e RK |
224 | .webconsole-msg-console > .webconsole-msg-icon-container { |
225 | -moz-border-start: solid #cbcbcb 6px; | |
226 | } | |
227 | ||
a42b27e7 RK |
228 | .webconsole-msg-console.webconsole-msg-error, |
229 | .webconsole-msg-output.webconsole-msg-error { | |
a0885fa2 | 230 | -moz-image-region: rect(24px, 16px, 32px, 8px); |
8a933f1e RK |
231 | } |
232 | ||
a42b27e7 | 233 | .webconsole-msg-console.webconsole-msg-warn { |
a0885fa2 | 234 | -moz-image-region: rect(24px, 24px, 32px, 16px); |
8a933f1e RK |
235 | } |
236 | ||
a42b27e7 | 237 | .webconsole-msg-console.webconsole-msg-info { |
a0885fa2 | 238 | -moz-image-region: rect(24px, 32px, 32px, 24px); |
8a933f1e RK |
239 | } |
240 | ||
241 | /* Input and output styles */ | |
242 | .webconsole-msg-input > .webconsole-msg-icon-container, | |
243 | .webconsole-msg-output > .webconsole-msg-icon-container { | |
244 | border-left: solid #808080 6px; | |
245 | } | |
246 | ||
a42b27e7 | 247 | .webconsole-msg-input { |
a0885fa2 RK |
248 | -moz-image-region: rect(24px, 40px, 32px, 32px); |
249 | } | |
250 | ||
a42b27e7 | 251 | .webconsole-msg-output { |
a0885fa2 RK |
252 | -moz-image-region: rect(24px, 48px, 32px, 40px); |
253 | } | |
254 | ||
72a6fd39 RK |
255 | .webconsole-close-button { |
256 | border: none; | |
257 | padding: 3px; | |
258 | list-style-image: url("chrome://global/skin/icons/close.png"); | |
259 | -moz-image-region: rect(0, 16px, 16px, 0); | |
260 | -moz-appearance: none; | |
261 | } | |
262 | ||
263 | .webconsole-close-button:hover { | |
264 | -moz-image-region: rect(0, 32px, 16px, 16px); | |
265 | } | |
266 | ||
267 | .webconsole-close-button:hover:active { | |
268 | -moz-image-region: rect(0, 48px, 16px, 32px); | |
269 | } | |
270 | ||
f0c3317f RK |
271 | /* JSTerm Styles */ |
272 | ||
273 | .jsterm-wrapper-node { | |
274 | font-family: monospace; | |
275 | font-size: 1em; | |
276 | background-color: #000; | |
277 | border: 1px solid #333; | |
278 | padding: 0.1em; | |
279 | width: 100%; | |
280 | height: 400px; | |
281 | } | |
282 | ||
283 | .jsterm-output-node { | |
284 | width: 100%; | |
285 | height: 400px; | |
286 | color: white; | |
287 | background-color: black; | |
288 | overflow: auto; | |
289 | overflow-x: auto; | |
290 | position: absolute; | |
291 | -moz-box-direction: reverse; | |
292 | } | |
293 | ||
f0c3317f RK |
294 | .jsterm-scroll-to-node { |
295 | height: 1px; width: 1px; position: relative; top: 92%; display: block; | |
296 | } | |
297 | ||
e1313d59 RK |
298 | .jsterm-input-node, |
299 | .jsterm-complete-node { | |
9162a092 | 300 | border: none; |
e1313d59 RK |
301 | padding: 0 0 0 16px; |
302 | } | |
303 | ||
304 | .jsterm-input-node { | |
305 | background: url("chrome://global/skin/icons/commandline.png") 4px 3px no-repeat; | |
f0c3317f RK |
306 | } |
307 | ||
e1313d59 RK |
308 | :-moz-any(.jsterm-input-node, |
309 | .jsterm-complete-node) > .textbox-input-box > .textbox-textarea { | |
941d657f | 310 | overflow-x: hidden; |
f0c3317f RK |
311 | } |
312 | ||
e1313d59 RK |
313 | .jsterm-complete-node > .textbox-input-box > .textbox-textarea { |
314 | color: #8050B0; | |
315 | } | |
316 | ||
941d657f | 317 | .jsterm-output-line { |
569543b3 | 318 | font-size: 1em; |
f0c3317f RK |
319 | } |
320 | ||
321 | .hud-console-filter-toolbar { | |
904e5040 | 322 | padding: 1px 2px; |
f0c3317f RK |
323 | -moz-box-align: center; |
324 | } | |
f993773d RK |
325 | |
326 | .web-console-panel { | |
327 | -moz-appearance: none; | |
328 | background-color: black; | |
329 | } | |
330 | ||
331 | .web-console-panel > .hud-box { | |
332 | height: 100%; | |
333 | width: 100%; | |
334 | background-color: black; | |
335 | } |