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 | ||
f0c3317f RK |
9 | .hud-outer-wrapper { |
10 | width: 100%; | |
11 | height: 100%; | |
12 | } | |
13 | ||
14 | .hud-console-wrapper { | |
15 | width: 100%; | |
16 | overflow: auto; | |
17 | } | |
18 | ||
8a933f1e RK |
19 | /* General output styles */ |
20 | ||
21 | .webconsole-timestamp { | |
22 | color: #8050B0; | |
23 | margin-top: 0; | |
24 | margin-bottom: 0; | |
c29b709d | 25 | font-family: "Liberation Mono", Consolas, "Courier New", monospace; |
8a933f1e RK |
26 | } |
27 | ||
a42b27e7 | 28 | .hud-msg-node { |
f128e38f | 29 | list-style-image: url("chrome://browser/skin/devtools/webconsole.png"); |
a0885fa2 | 30 | -moz-image-region: rect(0, 1px, 0, 0); |
a42b27e7 RK |
31 | } |
32 | ||
33 | .webconsole-msg-icon { | |
a0885fa2 RK |
34 | margin: 3px 4px; |
35 | width: 8px; | |
36 | height: 8px; | |
f0c3317f RK |
37 | } |
38 | ||
39 | .hud-output-node div { | |
40 | -moz-user-select: text; | |
3327253e | 41 | white-space: pre-wrap; |
941d657f | 42 | -moz-user-focus: normal; |
f0c3317f RK |
43 | } |
44 | ||
569543b3 | 45 | .hud-clickable { |
9162a092 | 46 | cursor: pointer; |
569543b3 RK |
47 | text-decoration: underline; |
48 | } | |
49 | ||
8a933f1e RK |
50 | .webconsole-msg-body { |
51 | margin-top: 0; | |
52 | margin-bottom: 3px; | |
53 | -moz-margin-start: 3px; | |
54 | -moz-margin-end: 6px; | |
a42b27e7 | 55 | white-space: pre-wrap; |
c29b709d | 56 | font-family: "Liberation Mono", Consolas, "Courier New", monospace; |
f0c3317f RK |
57 | } |
58 | ||
a0885fa2 RK |
59 | .webconsole-msg-body-piece { |
60 | margin: 0; | |
61 | } | |
62 | ||
63 | .webconsole-msg-url { | |
64 | margin: 0 6px; | |
65 | } | |
66 | ||
38b75e2e RK |
67 | /* Repeated messages */ |
68 | .webconsole-msg-repeat { | |
69 | margin: 2px 0; | |
70 | padding-left: 4px; | |
71 | padding-right: 4px; | |
38b75e2e RK |
72 | color: #000000; |
73 | background-color: #FF0000; | |
74 | border-radius: 40px; | |
75 | /* font: message-box; */ | |
c29b709d | 76 | font-size: 0.9em; |
38b75e2e RK |
77 | font-weight: 600; |
78 | } | |
79 | ||
80 | /* TODO move this and other functional rules to content - bug 635359 */ | |
81 | .webconsole-msg-repeat[value="1"] { | |
82 | display: none; | |
83 | } | |
84 | ||
8a933f1e RK |
85 | .webconsole-location { |
86 | margin-top: 0; | |
87 | margin-bottom: 0; | |
88 | -moz-margin-start: 0; | |
89 | -moz-margin-end: 6px; | |
90 | width: 10em; | |
91 | text-align: end; | |
f0c3317f RK |
92 | } |
93 | ||
8a933f1e RK |
94 | .hud-msg-node[selected="true"] > .webconsole-timestamp, |
95 | .hud-msg-node[selected="true"] > .webconsole-location { | |
96 | color: inherit; | |
f0c3317f RK |
97 | } |
98 | ||
8a933f1e RK |
99 | .jsterm-input-node, |
100 | .jsterm-complete-node { | |
c29b709d | 101 | font-family: "Liberation Mono", Consolas, "Courier New", monospace; |
f0c3317f RK |
102 | } |
103 | ||
104 | .hud-output-node { | |
8a933f1e RK |
105 | -moz-appearance: none; |
106 | border-bottom: 1px solid #9C9CFF; | |
107 | border-top: 1px solid #9C9CFF; | |
108 | margin: 0; | |
f0c3317f RK |
109 | } |
110 | ||
9162a092 RK |
111 | .hud-filtered-by-type, |
112 | .hud-filtered-by-string { | |
706c344c RK |
113 | display: none; |
114 | } | |
115 | ||
c29b709d | 116 | /* WebConsole colored drops */ |
941d657f | 117 | |
c29b709d RK |
118 | .webconsole-filter-button[checked=true] { |
119 | /* color: white !important; */ | |
72a6fd39 RK |
120 | } |
121 | ||
c29b709d RK |
122 | .webconsole-filter-button > .toolbarbutton-menubutton-button:before { |
123 | content: ""; | |
124 | display: inline-block; | |
125 | height: 8px; | |
126 | width: 8px; | |
127 | border-radius: 50%; | |
128 | margin-left: 5px; | |
129 | border-width: 1px; | |
130 | border-style: solid; | |
e0b5363a RK |
131 | } |
132 | ||
133 | .webconsole-filter-button menuitem { | |
134 | -moz-image-region: auto; | |
135 | } | |
136 | ||
137 | .hud-filter-box { | |
138 | margin-top: 0; | |
139 | margin-bottom: 0; | |
904e5040 RK |
140 | } |
141 | ||
8a933f1e | 142 | /* Network styles */ |
c29b709d | 143 | .webconsole-filter-button[category="net"] > .toolbarbutton-menubutton-button:before { |
884ab557 | 144 | background-image: linear-gradient(#BF9B00, #7F6700); |
c29b709d | 145 | border-color: #FFCF00; |
72a6fd39 RK |
146 | } |
147 | ||
8a933f1e | 148 | .webconsole-msg-network > .webconsole-msg-icon-container { |
884ab557 | 149 | -moz-border-start: solid #FFCF00 6px; |
8a933f1e RK |
150 | } |
151 | ||
a42b27e7 | 152 | .webconsole-msg-network.webconsole-msg-error { |
a0885fa2 | 153 | -moz-image-region: rect(0, 16px, 8px, 8px); |
8a933f1e RK |
154 | } |
155 | ||
156 | /* CSS styles */ | |
c29b709d | 157 | .webconsole-filter-button[category="css"] > .toolbarbutton-menubutton-button:before { |
884ab557 | 158 | background-image: linear-gradient(#7575BF, #4E4E7F); |
c29b709d | 159 | border-color: #9C9CFF; |
72a6fd39 RK |
160 | } |
161 | ||
8a933f1e | 162 | .webconsole-msg-cssparser > .webconsole-msg-icon-container { |
884ab557 | 163 | -moz-border-start: solid #9C9CFF 6px; |
8a933f1e RK |
164 | } |
165 | ||
a42b27e7 | 166 | .webconsole-msg-cssparser.webconsole-msg-error { |
a0885fa2 | 167 | -moz-image-region: rect(8px, 16px, 16px, 8px); |
8a933f1e RK |
168 | } |
169 | ||
a42b27e7 | 170 | .webconsole-msg-cssparser.webconsole-msg-warn { |
a0885fa2 | 171 | -moz-image-region: rect(8px, 24px, 16px, 16px); |
8a933f1e RK |
172 | } |
173 | ||
174 | /* JS styles */ | |
884ab557 RK |
175 | .webconsole-filter-button[category="js"] > .toolbarbutton-menubutton-button:before { |
176 | background-image: linear-gradient(#BF7700, #7F4F00); | |
c29b709d | 177 | border-color: #FF9F00; |
72a6fd39 RK |
178 | } |
179 | ||
8a933f1e | 180 | .webconsole-msg-exception > .webconsole-msg-icon-container { |
884ab557 | 181 | -moz-border-start: solid #FF9F00 6px; |
8a933f1e RK |
182 | } |
183 | ||
a42b27e7 | 184 | .webconsole-msg-exception.webconsole-msg-error { |
a0885fa2 | 185 | -moz-image-region: rect(16px, 16px, 24px, 8px); |
8a933f1e RK |
186 | } |
187 | ||
a42b27e7 | 188 | .webconsole-msg-exception.webconsole-msg-warn { |
a0885fa2 | 189 | -moz-image-region: rect(16px, 24px, 24px, 16px); |
8a933f1e RK |
190 | } |
191 | ||
192 | /* Web Developer styles */ | |
c29b709d | 193 | .webconsole-filter-button[category="logging"] > .toolbarbutton-menubutton-button:before { |
884ab557 | 194 | background-image: linear-gradient(#5F3B83, #3F2756); |
c29b709d | 195 | border-color: #8050B0; |
72a6fd39 RK |
196 | } |
197 | ||
8a933f1e | 198 | .webconsole-msg-console > .webconsole-msg-icon-container { |
884ab557 | 199 | -moz-border-start: solid #8050B0 6px; |
8a933f1e RK |
200 | } |
201 | ||
a42b27e7 RK |
202 | .webconsole-msg-console.webconsole-msg-error, |
203 | .webconsole-msg-output.webconsole-msg-error { | |
a0885fa2 | 204 | -moz-image-region: rect(24px, 16px, 32px, 8px); |
8a933f1e RK |
205 | } |
206 | ||
a42b27e7 | 207 | .webconsole-msg-console.webconsole-msg-warn { |
a0885fa2 | 208 | -moz-image-region: rect(24px, 24px, 32px, 16px); |
8a933f1e RK |
209 | } |
210 | ||
a42b27e7 | 211 | .webconsole-msg-console.webconsole-msg-info { |
a0885fa2 | 212 | -moz-image-region: rect(24px, 32px, 32px, 24px); |
8a933f1e RK |
213 | } |
214 | ||
889649fd RK |
215 | webconsole-mixed-content { |
216 | color: #FF0000; | |
217 | } | |
218 | ||
219 | .webconsole-mixed-content-link { | |
220 | color: #9C9CFF; | |
221 | margin: 0; | |
222 | } | |
223 | ||
8a933f1e RK |
224 | /* Input and output styles */ |
225 | .webconsole-msg-input > .webconsole-msg-icon-container, | |
226 | .webconsole-msg-output > .webconsole-msg-icon-container { | |
227 | border-left: solid #808080 6px; | |
228 | } | |
229 | ||
a42b27e7 | 230 | .webconsole-msg-input { |
a0885fa2 RK |
231 | -moz-image-region: rect(24px, 40px, 32px, 32px); |
232 | } | |
233 | ||
a42b27e7 | 234 | .webconsole-msg-output { |
a0885fa2 RK |
235 | -moz-image-region: rect(24px, 48px, 32px, 40px); |
236 | } | |
c29b709d | 237 | /* |
72a6fd39 RK |
238 | .webconsole-close-button { |
239 | border: none; | |
e0b5363a RK |
240 | padding-top: 4px; |
241 | padding-bottom: 5px; | |
242 | list-style-image: url("chrome://global/skin/icons/close-button.gif"); | |
72a6fd39 RK |
243 | } |
244 | ||
e0b5363a | 245 | .webconsole-close-button:hover, |
72a6fd39 | 246 | .webconsole-close-button:hover:active { |
e0b5363a | 247 | list-style-image: url("chrome://global/skin/icons/close-button-hover.gif"); |
72a6fd39 | 248 | } |
c29b709d | 249 | */ |
f0c3317f RK |
250 | /* JSTerm Styles */ |
251 | ||
e1313d59 RK |
252 | .jsterm-input-node, |
253 | .jsterm-complete-node { | |
c54ac991 RK |
254 | -moz-padding-start: 16px; |
255 | margin: 3px 0 0 0; | |
e1313d59 RK |
256 | } |
257 | ||
258 | .jsterm-input-node { | |
c54ac991 | 259 | background: url("chrome://browser/skin/devtools/commandline.png") 4px 3px no-repeat; |
f0c3317f RK |
260 | } |
261 | ||
e1313d59 RK |
262 | :-moz-any(.jsterm-input-node, |
263 | .jsterm-complete-node) > .textbox-input-box > .textbox-textarea { | |
941d657f | 264 | overflow-x: hidden; |
f0c3317f RK |
265 | } |
266 | ||
e1313d59 RK |
267 | .jsterm-complete-node > .textbox-input-box > .textbox-textarea { |
268 | color: #8050B0; | |
269 | } | |
270 | ||
c29b709d | 271 | /* Filter */ |
f993773d | 272 | |
c29b709d RK |
273 | /* |
274 | * This hardcoded width likely due to a toolkit Windows specific bug. | |
275 | * See http://hg.mozilla.org/mozilla-central/annotate/f38d6df93cad/toolkit/themes/winstripe/global/textbox-aero.css#l7 | |
276 | */ | |
f993773d | 277 | |
c29b709d RK |
278 | .hud-filter-box { |
279 | width: 200px; | |
e0b5363a | 280 | } |