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