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 | ||
64 | .webconsole-msg-icon { | |
65 | list-style-image: url(chrome://global/skin/icons/webconsole.png); | |
a0885fa2 RK |
66 | -moz-image-region: rect(0, 1px, 0, 0); |
67 | margin: 3px 4px; | |
68 | width: 8px; | |
69 | height: 8px; | |
f0c3317f RK |
70 | } |
71 | ||
72 | .hud-output-node div { | |
73 | -moz-user-select: text; | |
3327253e | 74 | white-space: pre-wrap; |
941d657f | 75 | -moz-user-focus: normal; |
f0c3317f RK |
76 | } |
77 | ||
569543b3 | 78 | .hud-clickable { |
9162a092 | 79 | cursor: pointer; |
569543b3 RK |
80 | text-decoration: underline; |
81 | } | |
82 | ||
8a933f1e RK |
83 | .webconsole-msg-body { |
84 | margin-top: 0; | |
85 | margin-bottom: 3px; | |
86 | -moz-margin-start: 3px; | |
87 | -moz-margin-end: 6px; | |
f0c3317f RK |
88 | } |
89 | ||
a0885fa2 RK |
90 | .webconsole-msg-body-piece { |
91 | margin: 0; | |
92 | } | |
93 | ||
94 | .webconsole-msg-url { | |
95 | margin: 0 6px; | |
96 | } | |
97 | ||
38b75e2e RK |
98 | /* Repeated messages */ |
99 | .webconsole-msg-repeat { | |
100 | margin: 2px 0; | |
101 | padding-left: 4px; | |
102 | padding-right: 4px; | |
103 | width: 1em; | |
104 | color: #000000; | |
105 | background-color: #FF0000; | |
106 | border-radius: 40px; | |
107 | /* font: message-box; */ | |
108 | font-size: 10px; | |
109 | font-weight: 600; | |
110 | } | |
111 | ||
112 | /* TODO move this and other functional rules to content - bug 635359 */ | |
113 | .webconsole-msg-repeat[value="1"] { | |
114 | display: none; | |
115 | } | |
116 | ||
8a933f1e RK |
117 | .webconsole-location { |
118 | margin-top: 0; | |
119 | margin-bottom: 0; | |
120 | -moz-margin-start: 0; | |
121 | -moz-margin-end: 6px; | |
122 | width: 10em; | |
123 | text-align: end; | |
f0c3317f RK |
124 | } |
125 | ||
8a933f1e RK |
126 | .hud-msg-node[selected="true"] > .webconsole-timestamp, |
127 | .hud-msg-node[selected="true"] > .webconsole-location { | |
128 | color: inherit; | |
f0c3317f RK |
129 | } |
130 | ||
8a933f1e RK |
131 | .hud-output-node, |
132 | .jsterm-input-node, | |
133 | .jsterm-complete-node { | |
134 | font: 12px Consolas, Lucida Console, monospace; | |
f0c3317f RK |
135 | } |
136 | ||
137 | .hud-output-node { | |
8a933f1e RK |
138 | -moz-appearance: none; |
139 | border-bottom: 1px solid #9C9CFF; | |
140 | border-top: 1px solid #9C9CFF; | |
141 | margin: 0; | |
f0c3317f RK |
142 | } |
143 | ||
9162a092 RK |
144 | .hud-filtered-by-type, |
145 | .hud-filtered-by-string { | |
706c344c RK |
146 | display: none; |
147 | } | |
148 | ||
72a6fd39 | 149 | .webconsole-clear-console-button > .toolbarbutton-icon { |
941d657f RK |
150 | display: none; |
151 | } | |
152 | ||
a0885fa2 | 153 | .webconsole-filter-button > .toolbarbutton-menubutton-button { |
72a6fd39 RK |
154 | -moz-box-orient: horizontal; |
155 | list-style-image: url("chrome://global/skin/icons/webconsole.png"); | |
156 | } | |
157 | ||
8a933f1e | 158 | /* Network styles */ |
72a6fd39 | 159 | .webconsole-filter-button[category="net"] { |
a0885fa2 | 160 | -moz-image-region: rect(0, 8px, 8px, 0); |
72a6fd39 RK |
161 | } |
162 | ||
8a933f1e RK |
163 | .webconsole-msg-network > .webconsole-msg-icon-container { |
164 | -moz-border-start: solid #000 6px; | |
165 | } | |
166 | ||
167 | .webconsole-msg-network.webconsole-msg-error > .webconsole-msg-icon-container > .webconsole-msg-icon { | |
a0885fa2 | 168 | -moz-image-region: rect(0, 16px, 8px, 8px); |
8a933f1e RK |
169 | } |
170 | ||
171 | /* CSS styles */ | |
72a6fd39 | 172 | .webconsole-filter-button[category="css"] { |
a0885fa2 | 173 | -moz-image-region: rect(8px, 8px, 16px, 0); |
72a6fd39 RK |
174 | } |
175 | ||
8a933f1e RK |
176 | .webconsole-msg-cssparser > .webconsole-msg-icon-container { |
177 | -moz-border-start: solid #00b6f0 6px; | |
178 | } | |
179 | ||
180 | .webconsole-msg-cssparser.webconsole-msg-error > .webconsole-msg-icon-container > .webconsole-msg-icon { | |
a0885fa2 | 181 | -moz-image-region: rect(8px, 16px, 16px, 8px); |
8a933f1e RK |
182 | } |
183 | ||
184 | .webconsole-msg-cssparser.webconsole-msg-warn > .webconsole-msg-icon-container > .webconsole-msg-icon { | |
a0885fa2 | 185 | -moz-image-region: rect(8px, 24px, 16px, 16px); |
8a933f1e RK |
186 | } |
187 | ||
188 | /* JS styles */ | |
72a6fd39 | 189 | .webconsole-filter-button[category="js"] { |
a0885fa2 | 190 | -moz-image-region: rect(16px, 8px, 24px, 0); |
72a6fd39 RK |
191 | } |
192 | ||
8a933f1e RK |
193 | .webconsole-msg-exception > .webconsole-msg-icon-container { |
194 | -moz-border-start: solid #fb9500 6px; | |
195 | } | |
196 | ||
197 | .webconsole-msg-exception.webconsole-msg-error > .webconsole-msg-icon-container > .webconsole-msg-icon { | |
a0885fa2 | 198 | -moz-image-region: rect(16px, 16px, 24px, 8px); |
8a933f1e RK |
199 | } |
200 | ||
201 | .webconsole-msg-exception.webconsole-msg-warn > .webconsole-msg-icon-container > .webconsole-msg-icon { | |
a0885fa2 | 202 | -moz-image-region: rect(16px, 24px, 24px, 16px); |
8a933f1e RK |
203 | } |
204 | ||
205 | /* Web Developer styles */ | |
72a6fd39 | 206 | .webconsole-filter-button[category="webdev"] { |
a0885fa2 | 207 | -moz-image-region: rect(24px, 8px, 32px, 0); |
72a6fd39 RK |
208 | } |
209 | ||
8a933f1e RK |
210 | .webconsole-msg-console > .webconsole-msg-icon-container { |
211 | -moz-border-start: solid #cbcbcb 6px; | |
212 | } | |
213 | ||
214 | .webconsole-msg-console.webconsole-msg-error > .webconsole-msg-icon-container > .webconsole-msg-icon, | |
215 | .webconsole-msg-output.webconsole-msg-error > .webconsole-msg-icon-container > .webconsole-msg-icon { | |
a0885fa2 | 216 | -moz-image-region: rect(24px, 16px, 32px, 8px); |
8a933f1e RK |
217 | } |
218 | ||
219 | .webconsole-msg-console.webconsole-msg-warn > .webconsole-msg-icon-container > .webconsole-msg-icon { | |
a0885fa2 | 220 | -moz-image-region: rect(24px, 24px, 32px, 16px); |
8a933f1e RK |
221 | } |
222 | ||
223 | .webconsole-msg-console.webconsole-msg-info > .webconsole-msg-icon-container > .webconsole-msg-icon { | |
a0885fa2 | 224 | -moz-image-region: rect(24px, 32px, 32px, 24px); |
8a933f1e RK |
225 | } |
226 | ||
227 | /* Input and output styles */ | |
228 | .webconsole-msg-input > .webconsole-msg-icon-container, | |
229 | .webconsole-msg-output > .webconsole-msg-icon-container { | |
230 | border-left: solid #808080 6px; | |
231 | } | |
232 | ||
a0885fa2 RK |
233 | .webconsole-msg-input > .webconsole-msg-icon-container > .webconsole-msg-icon { |
234 | -moz-image-region: rect(24px, 40px, 32px, 32px); | |
235 | } | |
236 | ||
237 | .webconsole-msg-output > .webconsole-msg-icon-container > .webconsole-msg-icon { | |
238 | -moz-image-region: rect(24px, 48px, 32px, 40px); | |
239 | } | |
240 | ||
72a6fd39 RK |
241 | .webconsole-close-button { |
242 | border: none; | |
243 | padding: 3px; | |
244 | list-style-image: url("chrome://global/skin/icons/close.png"); | |
245 | -moz-image-region: rect(0, 16px, 16px, 0); | |
246 | -moz-appearance: none; | |
247 | } | |
248 | ||
249 | .webconsole-close-button:hover { | |
250 | -moz-image-region: rect(0, 32px, 16px, 16px); | |
251 | } | |
252 | ||
253 | .webconsole-close-button:hover:active { | |
254 | -moz-image-region: rect(0, 48px, 16px, 32px); | |
255 | } | |
256 | ||
f0c3317f RK |
257 | /* JSTerm Styles */ |
258 | ||
259 | .jsterm-wrapper-node { | |
260 | font-family: monospace; | |
261 | font-size: 1em; | |
262 | background-color: #000; | |
263 | border: 1px solid #333; | |
264 | padding: 0.1em; | |
265 | width: 100%; | |
266 | height: 400px; | |
267 | } | |
268 | ||
269 | .jsterm-output-node { | |
270 | width: 100%; | |
271 | height: 400px; | |
272 | color: white; | |
273 | background-color: black; | |
274 | overflow: auto; | |
275 | overflow-x: auto; | |
276 | position: absolute; | |
277 | -moz-box-direction: reverse; | |
278 | } | |
279 | ||
f0c3317f RK |
280 | .jsterm-scroll-to-node { |
281 | height: 1px; width: 1px; position: relative; top: 92%; display: block; | |
282 | } | |
283 | ||
e1313d59 RK |
284 | .jsterm-input-node, |
285 | .jsterm-complete-node { | |
9162a092 | 286 | border: none; |
e1313d59 RK |
287 | padding: 0 0 0 16px; |
288 | } | |
289 | ||
290 | .jsterm-input-node { | |
291 | background: url("chrome://global/skin/icons/commandline.png") 4px 3px no-repeat; | |
f0c3317f RK |
292 | } |
293 | ||
e1313d59 RK |
294 | :-moz-any(.jsterm-input-node, |
295 | .jsterm-complete-node) > .textbox-input-box > .textbox-textarea { | |
941d657f | 296 | overflow-x: hidden; |
f0c3317f RK |
297 | } |
298 | ||
e1313d59 RK |
299 | .jsterm-complete-node > .textbox-input-box > .textbox-textarea { |
300 | color: #8050B0; | |
301 | } | |
302 | ||
941d657f | 303 | .jsterm-output-line { |
569543b3 | 304 | font-size: 1em; |
f0c3317f RK |
305 | } |
306 | ||
307 | .hud-console-filter-toolbar { | |
308 | padding: 1px 0px; | |
309 | -moz-box-align: center; | |
310 | } | |
f993773d RK |
311 | |
312 | .web-console-panel { | |
313 | -moz-appearance: none; | |
314 | background-color: black; | |
315 | } | |
316 | ||
317 | .web-console-panel > .hud-box { | |
318 | height: 100%; | |
319 | width: 100%; | |
320 | background-color: black; | |
321 | } |