Commit | Line | Data |
---|---|---|
351107c9 | 1 | /* ***** BEGIN LICENSE BLOCK ***** |
2 | * Version: NPL 1.1/GPL 2.0/LGPL 2.1 | |
3 | * | |
4 | * The contents of this file are subject to the Netscape Public License | |
5 | * Version 1.1 (the "License"); you may not use this file except in | |
6 | * compliance with the License. You may obtain a copy of the License at | |
7 | * http://www.mozilla.org/NPL/ | |
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 mozilla.org code. | |
15 | * | |
16 | * The Initial Developer of the Original Code is | |
17 | * Netscape Communications Corporation. | |
18 | * Portions created by the Initial Developer are Copyright (C) 1998-1999 | |
19 | * the Initial Developer. All Rights Reserved. | |
20 | * | |
21 | * Contributor(s): | |
22 | * Robert Kaiser <KaiRo@KaiRo.at> | |
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 NPL, 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 NPL, the GPL or the LGPL. | |
35 | * | |
36 | * ***** END LICENSE BLOCK ***** */ | |
37 | ||
b1eaa419 | 38 | /* ===== console.css ==================================================== |
d84b9613 | 39 | == Styles used by the Error Console window. |
b1eaa419 | 40 | ======================================================================= */ |
d84b9613 | 41 | |
c79d2bbe RK |
42 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
43 | ||
b1eaa419 | 44 | .console-box { |
45 | background-color: #000000; | |
46 | color: #FF9F00; | |
47 | } | |
c79d2bbe | 48 | |
b1eaa419 | 49 | /* ::::: console rows ::::: */ |
50 | ||
51 | .console-row { | |
52 | padding: 0px; | |
c79d2bbe | 53 | border-bottom: 1px solid #FF9F00; |
b1eaa419 | 54 | } |
55 | ||
56 | .console-row-icon { | |
57 | border-right: 1px solid #FF9F00; | |
58 | padding: 5px; | |
59 | background-color: #9C9CFF; | |
60 | -moz-box-align: start; | |
61 | } | |
62 | ||
c79d2bbe RK |
63 | .console-row-msg > label, |
64 | .console-row-file > label:first-child { | |
65 | display: none; | |
66 | } | |
67 | ||
b1eaa419 | 68 | .console-icon { |
c79d2bbe RK |
69 | list-style-image: inherit; |
70 | } | |
71 | ||
72 | .console-error-msg { | |
73 | margin-bottom: 2px; | |
b1eaa419 | 74 | } |
75 | ||
76 | /* ..... error rows ..... */ | |
77 | ||
78 | .console-row-code { | |
c79d2bbe RK |
79 | padding-top: 3px; |
80 | padding-bottom: 3px; | |
81 | -moz-padding-start: 3px; | |
82 | -moz-padding-end: 0px; | |
b1eaa419 | 83 | font-size: larger; |
84 | color: #E7ADE7; | |
85 | } | |
86 | ||
87 | .console-dots, | |
88 | .console-caret { | |
89 | height: 9px; | |
90 | } | |
91 | ||
92 | .console-dots { | |
93 | background: url("chrome://global/skin/console/console-error-dash.gif") repeat-x top; | |
94 | } | |
95 | ||
96 | .console-caret { | |
97 | width: 7px; | |
98 | background: url("chrome://global/skin/console/console-error-caret.gif") no-repeat top; | |
99 | } | |
100 | ||
101 | /* ..... message rows ..... */ | |
102 | ||
103 | .console-row[type="message"] { | |
104 | font-family: monospace; | |
d84b9613 | 105 | } |
b1eaa419 | 106 | |
107 | /* ..... selected state ..... */ | |
108 | ||
109 | .console-row[selected="true"] { | |
110 | background-color: #FFCF00; | |
111 | color: #000000; | |
112 | } | |
351107c9 | 113 | |
114 | .console-row-code[selected="true"], | |
b1eaa419 | 115 | .console-row-content[selected="true"] > .console-row-file > .console-error-source > .text-link { |
116 | color: inherit !important; | |
117 | } | |
351107c9 | 118 | |
119 | /* ::::: icons ::::: */ | |
120 | ||
121 | .console-row[type="error"], | |
b1eaa419 | 122 | .console-row[type="exception"] { |
123 | list-style-image: url("chrome://global/skin/icons/alert-error.gif"); | |
124 | } | |
351107c9 | 125 | |
c79d2bbe RK |
126 | .console-row[type="error"] .console-row-msg, |
127 | .console-row[type="exception"] .console-row-msg { | |
128 | font-weight: bold; | |
129 | } | |
130 | ||
b1eaa419 | 131 | .console-row[type="warning"] { |
132 | list-style-image: url("chrome://global/skin/icons/alert-exclam.gif"); | |
133 | } | |
351107c9 | 134 | |
135 | .console-row[type="message"] { | |
b1eaa419 | 136 | list-style-image: url("chrome://global/skin/icons/alert-message.gif"); |
351107c9 | 137 | } |
138 | ||
139 | /* ::::: toolbars ::::: */ | |
140 | ||
b1eaa419 | 141 | #TextboxEval { |
142 | margin: 1px 2px 1px 2px ; | |
143 | } | |
351107c9 | 144 | |
b1eaa419 | 145 | #ButtonEval { |
146 | margin: 1px 2px 1px 0px; | |
147 | } | |
351107c9 | 148 | |
b1eaa419 | 149 | toolbarseparator { |
150 | min-height: 1em; | |
151 | } | |
c79d2bbe RK |
152 | |
153 | /* Toolbar icons */ | |
154 | ||
155 | #ToolbarMode toolbarbutton { | |
156 | min-width: 57px; | |
157 | padding: 0px 4px; | |
158 | /* XXX: don't support icons on those yet | |
159 | padding: 4px !important; | |
160 | */ | |
161 | } | |
162 | ||
163 | toolbar#ToolbarMode toolbarbutton:active, | |
164 | toolbar#ToolbarMode toolbarbutton[checked="true"] { | |
165 | -moz-padding-start: 5px !important; | |
166 | -moz-padding-end: 3px !important; | |
167 | } | |
168 | ||
169 | /* XXX: don't support icons on those yet | |
170 | ||
171 | ||
172 | toolbar#ToolbarMode toolbarbutton { | |
173 | list-style-image: url("chrome://global/skin/console/console-toolbar.png"); | |
174 | -moz-box-orient: horizontal; | |
175 | padding: 4px !important; | |
176 | } | |
177 | ||
178 | #Console\:modeAll { | |
179 | -moz-image-region: rect(0px 24px 24px 0px); | |
180 | } | |
181 | ||
182 | #Console\:modeAll:hover, | |
183 | #Console\:modeAll[checked="true"] { | |
184 | -moz-image-region: rect(24px 24px 48px 0px); | |
185 | } | |
186 | ||
187 | #Console\:modeErrors { | |
188 | -moz-image-region: rect(0px 96px 24px 72px); | |
189 | } | |
190 | ||
191 | #Console\:modeErrors:hover, | |
192 | #Console\:modeErrors[checked="true"] { | |
193 | -moz-image-region: rect(24px 96px 48px 72px); | |
194 | } | |
195 | ||
196 | #Console\:modeWarnings { | |
197 | -moz-image-region: rect(0px 72px 24px 48px); | |
198 | } | |
199 | ||
200 | #Console\:modeWarnings:hover, | |
201 | #Console\:modeWarnings[checked="true"] { | |
202 | -moz-image-region: rect(24px 72px 48px 48px); | |
203 | } | |
204 | ||
205 | #Console\:modeMessages { | |
206 | -moz-image-region: rect(0px 48px 24px 24px); | |
207 | } | |
208 | ||
209 | #Console\:modeMessages:hover, | |
210 | #Console\:modeMessages[checked="true"] { | |
211 | -moz-image-region: rect(24px 48px 48px 24px); | |
212 | } | |
213 | ||
214 | #Console\:clear { | |
215 | -moz-image-region: rect(0px 120px 24px 96px); | |
216 | } | |
217 | ||
218 | #Console\:clear:hover, | |
219 | #Console\:clear[checked="true"] { | |
220 | -moz-image-region: rect(24px 120px 48px 96px); | |
221 | } | |
222 | ||
223 | toolbar#ToolbarMode .toolbarbutton-icon { | |
224 | padding: 2px 0 !important; | |
225 | } | |
226 | ||
227 | toolbar#ToolbarMode .toolbarbutton-text { | |
228 | -moz-padding-end: 4px; | |
229 | } | |
230 | ||
231 | */ | |
232 | ||
233 | /* ::::: Fix Error Console toolbar button text spacing ::::: */ | |
234 | ||
235 | .toolbarbutton-text { | |
236 | -moz-padding-start: 0px; | |
237 | -moz-padding-end: 5px; | |
238 | } |