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/. */ | |
351107c9 | 4 | |
b1eaa419 | 5 | /* ===== console.css ==================================================== |
d84b9613 | 6 | == Styles used by the Error Console window. |
b1eaa419 | 7 | ======================================================================= */ |
d84b9613 | 8 | |
c79d2bbe RK |
9 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
10 | ||
b1eaa419 | 11 | .console-box { |
12 | background-color: #000000; | |
13 | color: #FF9F00; | |
14 | } | |
c79d2bbe | 15 | |
b1eaa419 | 16 | /* ::::: console rows ::::: */ |
17 | ||
18 | .console-row { | |
19 | padding: 0px; | |
c79d2bbe | 20 | border-bottom: 1px solid #FF9F00; |
b1eaa419 | 21 | } |
22 | ||
23 | .console-row-icon { | |
24 | border-right: 1px solid #FF9F00; | |
25 | padding: 5px; | |
26 | background-color: #9C9CFF; | |
27 | -moz-box-align: start; | |
28 | } | |
29 | ||
a7145e95 | 30 | .console-row-msg > label:first-child, |
c79d2bbe RK |
31 | .console-row-file > label:first-child { |
32 | display: none; | |
33 | } | |
34 | ||
a7145e95 RK |
35 | .console-time { |
36 | font-weight: normal !important; | |
37 | } | |
38 | ||
b1eaa419 | 39 | .console-icon { |
c79d2bbe RK |
40 | list-style-image: inherit; |
41 | } | |
42 | ||
43 | .console-error-msg { | |
44 | margin-bottom: 2px; | |
b1eaa419 | 45 | } |
46 | ||
47 | /* ..... error rows ..... */ | |
48 | ||
49 | .console-row-code { | |
c79d2bbe RK |
50 | padding-top: 3px; |
51 | padding-bottom: 3px; | |
52 | -moz-padding-start: 3px; | |
53 | -moz-padding-end: 0px; | |
b1eaa419 | 54 | font-size: larger; |
55 | color: #E7ADE7; | |
56 | } | |
57 | ||
58 | .console-dots, | |
59 | .console-caret { | |
60 | height: 9px; | |
61 | } | |
62 | ||
63 | .console-dots { | |
64 | background: url("chrome://global/skin/console/console-error-dash.gif") repeat-x top; | |
65 | } | |
66 | ||
67 | .console-caret { | |
68 | width: 7px; | |
69 | background: url("chrome://global/skin/console/console-error-caret.gif") no-repeat top; | |
70 | } | |
71 | ||
72 | /* ..... message rows ..... */ | |
73 | ||
74 | .console-row[type="message"] { | |
8ad8bf83 | 75 | font-family: "Liberation Mono", Consolas, "Courier New", monospace; |
d84b9613 | 76 | } |
b1eaa419 | 77 | |
78 | /* ..... selected state ..... */ | |
79 | ||
80 | .console-row[selected="true"] { | |
81 | background-color: #FFCF00; | |
82 | color: #000000; | |
83 | } | |
351107c9 | 84 | |
85 | .console-row-code[selected="true"], | |
b1eaa419 | 86 | .console-row-content[selected="true"] > .console-row-file > .console-error-source > .text-link { |
87 | color: inherit !important; | |
88 | } | |
351107c9 | 89 | |
90 | /* ::::: icons ::::: */ | |
91 | ||
92 | .console-row[type="error"], | |
b1eaa419 | 93 | .console-row[type="exception"] { |
94 | list-style-image: url("chrome://global/skin/icons/alert-error.gif"); | |
95 | } | |
351107c9 | 96 | |
c79d2bbe RK |
97 | .console-row[type="error"] .console-row-msg, |
98 | .console-row[type="exception"] .console-row-msg { | |
99 | font-weight: bold; | |
100 | } | |
101 | ||
b1eaa419 | 102 | .console-row[type="warning"] { |
103 | list-style-image: url("chrome://global/skin/icons/alert-exclam.gif"); | |
104 | } | |
351107c9 | 105 | |
106 | .console-row[type="message"] { | |
b1eaa419 | 107 | list-style-image: url("chrome://global/skin/icons/alert-message.gif"); |
351107c9 | 108 | } |
109 | ||
110 | /* ::::: toolbars ::::: */ | |
111 | ||
b1eaa419 | 112 | #TextboxEval { |
02920d2b | 113 | margin: 1px 2px; |
b1eaa419 | 114 | } |
351107c9 | 115 | |
b1eaa419 | 116 | #ButtonEval { |
02920d2b RK |
117 | margin-top: 1px; |
118 | margin-bottom: 1px; | |
119 | -moz-margin-start: 0; | |
120 | -moz-margin-end: 2px; | |
b1eaa419 | 121 | } |
351107c9 | 122 | |
b1eaa419 | 123 | toolbarseparator { |
124 | min-height: 1em; | |
125 | } | |
c79d2bbe RK |
126 | |
127 | /* Toolbar icons */ | |
128 | ||
129 | #ToolbarMode toolbarbutton { | |
130 | min-width: 57px; | |
131 | padding: 0px 4px; | |
132 | /* XXX: don't support icons on those yet | |
133 | padding: 4px !important; | |
134 | */ | |
135 | } | |
136 | ||
137 | toolbar#ToolbarMode toolbarbutton:active, | |
138 | toolbar#ToolbarMode toolbarbutton[checked="true"] { | |
139 | -moz-padding-start: 5px !important; | |
140 | -moz-padding-end: 3px !important; | |
141 | } | |
142 | ||
143 | /* XXX: don't support icons on those yet | |
144 | ||
145 | ||
146 | toolbar#ToolbarMode toolbarbutton { | |
147 | list-style-image: url("chrome://global/skin/console/console-toolbar.png"); | |
148 | -moz-box-orient: horizontal; | |
149 | padding: 4px !important; | |
150 | } | |
151 | ||
152 | #Console\:modeAll { | |
153 | -moz-image-region: rect(0px 24px 24px 0px); | |
154 | } | |
155 | ||
156 | #Console\:modeAll:hover, | |
157 | #Console\:modeAll[checked="true"] { | |
158 | -moz-image-region: rect(24px 24px 48px 0px); | |
159 | } | |
160 | ||
161 | #Console\:modeErrors { | |
162 | -moz-image-region: rect(0px 96px 24px 72px); | |
163 | } | |
164 | ||
165 | #Console\:modeErrors:hover, | |
166 | #Console\:modeErrors[checked="true"] { | |
167 | -moz-image-region: rect(24px 96px 48px 72px); | |
168 | } | |
169 | ||
170 | #Console\:modeWarnings { | |
171 | -moz-image-region: rect(0px 72px 24px 48px); | |
172 | } | |
173 | ||
174 | #Console\:modeWarnings:hover, | |
175 | #Console\:modeWarnings[checked="true"] { | |
176 | -moz-image-region: rect(24px 72px 48px 48px); | |
177 | } | |
178 | ||
179 | #Console\:modeMessages { | |
180 | -moz-image-region: rect(0px 48px 24px 24px); | |
181 | } | |
182 | ||
183 | #Console\:modeMessages:hover, | |
184 | #Console\:modeMessages[checked="true"] { | |
185 | -moz-image-region: rect(24px 48px 48px 24px); | |
186 | } | |
187 | ||
188 | #Console\:clear { | |
189 | -moz-image-region: rect(0px 120px 24px 96px); | |
190 | } | |
191 | ||
192 | #Console\:clear:hover, | |
193 | #Console\:clear[checked="true"] { | |
194 | -moz-image-region: rect(24px 120px 48px 96px); | |
195 | } | |
196 | ||
197 | toolbar#ToolbarMode .toolbarbutton-icon { | |
198 | padding: 2px 0 !important; | |
199 | } | |
200 | ||
201 | toolbar#ToolbarMode .toolbarbutton-text { | |
202 | -moz-padding-end: 4px; | |
203 | } | |
204 | ||
205 | */ | |
206 | ||
207 | /* ::::: Fix Error Console toolbar button text spacing ::::: */ | |
208 | ||
209 | .toolbarbutton-text { | |
210 | -moz-padding-start: 0px; | |
211 | -moz-padding-end: 5px; | |
212 | } |