1 /* ***** BEGIN LICENSE BLOCK *****
2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
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/
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
14 * The Original Code is DevTools code
16 * The Initial Developer of the Original Code is
18 * Portions created by the Initial Developer are Copyright (C) 2010
19 * the Initial Developer. All Rights Reserved.
22 * David Dahl <ddahl@mozilla.com>
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.
36 * ***** END LICENSE BLOCK ***** */
39 border-bottom: 3px solid #000000;
43 -moz-transition: height 100ms;
51 .hud-console-wrapper {
56 /* General output styles */
58 .webconsole-timestamp {
62 font: 12px "Liberation Mono", Consolas, "Courier New", monospace;
66 list-style-image: url("chrome://browser/skin/devtools/webconsole.png");
67 -moz-image-region: rect(0, 1px, 0, 0);
70 .webconsole-msg-icon {
76 .hud-output-node div {
77 -moz-user-select: text;
78 white-space: pre-wrap;
79 -moz-user-focus: normal;
84 text-decoration: underline;
87 .webconsole-msg-body {
90 -moz-margin-start: 3px;
92 white-space: pre-wrap;
93 font: 12px "Liberation Mono", Consolas, "Courier New", monospace;
96 .webconsole-msg-body-piece {
100 .webconsole-msg-url {
104 /* Repeated messages */
105 .webconsole-msg-repeat {
110 background-color: #FF0000;
112 /* font: message-box; */
117 /* TODO move this and other functional rules to content - bug 635359 */
118 .webconsole-msg-repeat[value="1"] {
122 .webconsole-location {
125 -moz-margin-start: 0;
126 -moz-margin-end: 6px;
131 .hud-msg-node[selected="true"] > .webconsole-timestamp,
132 .hud-msg-node[selected="true"] > .webconsole-location {
137 .jsterm-complete-node {
138 font: 12px "Liberation Mono", Consolas, "Courier New", monospace;
142 -moz-appearance: none;
143 border-bottom: 1px solid #9C9CFF;
144 border-top: 1px solid #9C9CFF;
148 .hud-filtered-by-type,
149 .hud-filtered-by-string {
153 .webconsole-clear-console-button > .toolbarbutton-icon {
157 .webconsole-filter-button > .toolbarbutton-menubutton-button {
158 -moz-box-orient: horizontal;
159 list-style-image: url("chrome://browser/skin/devtools/webconsole.png");
162 .webconsole-filter-button:hover:active > .toolbarbutton-menubutton-button,
163 .webconsole-filter-button[open="true"] > .toolbarbutton-menubutton-button {
166 .webconsole-filter-button {
167 -moz-margin-start: 3px;
168 padding: 0 !important;
171 .webconsole-filter-button menuitem {
172 -moz-image-region: auto;
181 .webconsole-filter-button[category="net"] {
182 -moz-image-region: rect(0, 8px, 8px, 0);
185 .webconsole-msg-network > .webconsole-msg-icon-container {
186 -moz-border-start: solid #000 6px;
189 .webconsole-msg-network.webconsole-msg-error {
190 -moz-image-region: rect(0, 16px, 8px, 8px);
194 .webconsole-filter-button[category="css"] {
195 -moz-image-region: rect(8px, 8px, 16px, 0);
198 .webconsole-msg-cssparser > .webconsole-msg-icon-container {
199 -moz-border-start: solid #00b6f0 6px;
202 .webconsole-msg-cssparser.webconsole-msg-error {
203 -moz-image-region: rect(8px, 16px, 16px, 8px);
206 .webconsole-msg-cssparser.webconsole-msg-warn {
207 -moz-image-region: rect(8px, 24px, 16px, 16px);
211 .webconsole-filter-button[category="js"] {
212 -moz-image-region: rect(16px, 8px, 24px, 0);
215 .webconsole-msg-exception > .webconsole-msg-icon-container {
216 -moz-border-start: solid #fb9500 6px;
219 .webconsole-msg-exception.webconsole-msg-error {
220 -moz-image-region: rect(16px, 16px, 24px, 8px);
223 .webconsole-msg-exception.webconsole-msg-warn {
224 -moz-image-region: rect(16px, 24px, 24px, 16px);
227 /* Web Developer styles */
228 .webconsole-filter-button[category="logging"] {
229 -moz-image-region: rect(24px, 8px, 32px, 0);
232 .webconsole-msg-console > .webconsole-msg-icon-container {
233 -moz-border-start: solid #cbcbcb 6px;
236 .webconsole-msg-console.webconsole-msg-error,
237 .webconsole-msg-output.webconsole-msg-error {
238 -moz-image-region: rect(24px, 16px, 32px, 8px);
241 .webconsole-msg-console.webconsole-msg-warn {
242 -moz-image-region: rect(24px, 24px, 32px, 16px);
245 .webconsole-msg-console.webconsole-msg-info {
246 -moz-image-region: rect(24px, 32px, 32px, 24px);
249 /* Input and output styles */
250 .webconsole-msg-input > .webconsole-msg-icon-container,
251 .webconsole-msg-output > .webconsole-msg-icon-container {
252 border-left: solid #808080 6px;
255 .webconsole-msg-input {
256 -moz-image-region: rect(24px, 40px, 32px, 32px);
259 .webconsole-msg-output {
260 -moz-image-region: rect(24px, 48px, 32px, 40px);
263 .webconsole-close-button {
267 list-style-image: url("chrome://global/skin/icons/close-button.gif");
270 .webconsole-close-button:hover,
271 .webconsole-close-button:hover:active {
272 list-style-image: url("chrome://global/skin/icons/close-button-hover.gif");
277 .jsterm-wrapper-node {
278 font-family: "Liberation Mono", Consolas, "Courier New", monospace;
280 background-color: #000;
281 border: 1px solid #333;
287 .jsterm-output-node {
291 background-color: black;
295 -moz-box-direction: reverse;
298 .jsterm-scroll-to-node {
299 height: 1px; width: 1px; position: relative; top: 92%; display: block;
303 .jsterm-complete-node {
309 background: url("chrome://global/skin/icons/commandline.png") 4px 3px no-repeat;
312 :-moz-any(.jsterm-input-node,
313 .jsterm-complete-node) > .textbox-input-box > .textbox-textarea {
317 .jsterm-complete-node > .textbox-input-box > .textbox-textarea {
321 .jsterm-output-line {
325 .hud-console-filter-toolbar {
326 -moz-box-align: center;
330 -moz-appearance: none;
331 background-color: black;
334 .web-console-panel > .hud-box {
337 background-color: black;