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/. */ | |
f6e0a33f | 4 | |
74d14f90 | 5 | /* ===== console.css ==================================================== |
d84b9613 | 6 | == Styles used by the Error Console window. |
74d14f90 | 7 | ======================================================================= */ |
8 | ||
df8c26c4 RK |
9 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
10 | ||
74d14f90 | 11 | .console-box { |
12 | background-color: #CCD0DD; | |
13 | color: #000000; | |
14 | } | |
df8c26c4 | 15 | |
74d14f90 | 16 | /* ::::: console rows ::::: */ |
f6e0a33f | 17 | |
74d14f90 | 18 | .console-row { |
19 | padding: 0px; | |
6daee013 | 20 | border-bottom: 1px solid #666699; |
74d14f90 | 21 | } |
f6e0a33f | 22 | |
74d14f90 | 23 | .console-row-icon { |
6daee013 | 24 | border-right: 1px solid #666699; |
74d14f90 | 25 | padding: 5px; |
26 | background-color: #CCCCCC; | |
27 | -moz-box-align: start; | |
28 | } | |
f6e0a33f | 29 | |
a7145e95 | 30 | .console-row-msg > label:first-child, |
df8c26c4 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 | ||
74d14f90 | 39 | .console-icon { |
df8c26c4 RK |
40 | list-style-image: inherit; |
41 | } | |
42 | ||
43 | .console-error-msg { | |
44 | margin-bottom: 2px; | |
74d14f90 | 45 | } |
f6e0a33f | 46 | |
74d14f90 | 47 | /* ..... error rows ..... */ |
f6e0a33f | 48 | |
74d14f90 | 49 | .console-row-code { |
df8c26c4 RK |
50 | padding-top: 3px; |
51 | padding-bottom: 3px; | |
52 | -moz-padding-start: 3px; | |
53 | -moz-padding-end: 0px; | |
74d14f90 | 54 | font-size: larger; |
55 | color: #0000BB; | |
56 | } | |
f6e0a33f | 57 | |
74d14f90 | 58 | .console-dots, |
59 | .console-caret { | |
60 | height: 9px; | |
61 | } | |
f6e0a33f | 62 | |
74d14f90 | 63 | .console-dots { |
64 | background: url("chrome://global/skin/console/console-error-dash.gif") repeat-x top; | |
65 | } | |
f6e0a33f | 66 | |
74d14f90 | 67 | .console-caret { |
68 | width: 7px; | |
69 | background: url("chrome://global/skin/console/console-error-caret.gif") no-repeat top; | |
70 | } | |
f6e0a33f | 71 | |
74d14f90 | 72 | /* ..... message rows ..... */ |
f6e0a33f | 73 | |
74d14f90 | 74 | .console-row[type="message"] { |
8ad8bf83 | 75 | font-family: "Liberation Mono", Consolas, "Courier New", monospace; |
df8c26c4 | 76 | } |
f6e0a33f | 77 | |
74d14f90 | 78 | /* ..... selected state ..... */ |
f6e0a33f | 79 | |
74d14f90 | 80 | .console-row[selected="true"] { |
81 | background-color: #336699; | |
df8c26c4 | 82 | color: #FFFFFF; |
74d14f90 | 83 | } |
f6e0a33f | 84 | |
85 | .console-row-code[selected="true"], | |
74d14f90 | 86 | .console-row-content[selected="true"] > .console-row-file > .console-error-source > .text-link { |
d84b9613 | 87 | color: inherit !important; |
74d14f90 | 88 | } |
f6e0a33f | 89 | |
90 | /* ::::: icons ::::: */ | |
91 | ||
92 | .console-row[type="error"], | |
d84b9613 | 93 | .console-row[type="exception"] { |
94 | list-style-image: url("chrome://global/skin/icons/alert-error.gif"); | |
95 | } | |
f6e0a33f | 96 | |
df8c26c4 RK |
97 | .console-row[type="error"] .console-row-msg, |
98 | .console-row[type="exception"] .console-row-msg { | |
99 | font-weight: bold; | |
100 | } | |
101 | ||
d84b9613 | 102 | .console-row[type="warning"] { |
103 | list-style-image: url("chrome://global/skin/icons/alert-exclam.gif"); | |
104 | } | |
f6e0a33f | 105 | |
106 | .console-row[type="message"] { | |
d84b9613 | 107 | list-style-image: url("chrome://global/skin/icons/alert-message.gif"); |
f6e0a33f | 108 | } |
109 | ||
110 | /* ::::: toolbars ::::: */ | |
111 | ||
74d14f90 | 112 | #TextboxEval { |
02920d2b | 113 | margin: 1px 2px; |
74d14f90 | 114 | } |
f6e0a33f | 115 | |
74d14f90 | 116 | #ButtonEval { |
02920d2b RK |
117 | margin-top: 1px; |
118 | margin-bottom: 1px; | |
119 | -moz-margin-start: 0; | |
120 | -moz-margin-end: 2px; | |
74d14f90 | 121 | } |
f6e0a33f | 122 | |
74d14f90 | 123 | toolbarseparator { |
124 | min-height: 1em; | |
125 | } | |
df8c26c4 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 | ||
4d12b027 | 152 | #Console\:modeAll { |
df8c26c4 RK |
153 | -moz-image-region: rect(0px 24px 24px 0px); |
154 | } | |
155 | ||
4d12b027 RK |
156 | #Console\:modeAll:hover, |
157 | #Console\:modeAll[checked="true"] { | |
df8c26c4 RK |
158 | -moz-image-region: rect(24px 24px 48px 0px); |
159 | } | |
160 | ||
4d12b027 | 161 | #Console\:modeErrors { |
df8c26c4 RK |
162 | -moz-image-region: rect(0px 96px 24px 72px); |
163 | } | |
164 | ||
4d12b027 RK |
165 | #Console\:modeErrors:hover, |
166 | #Console\:modeErrors[checked="true"] { | |
df8c26c4 RK |
167 | -moz-image-region: rect(24px 96px 48px 72px); |
168 | } | |
169 | ||
4d12b027 | 170 | #Console\:modeWarnings { |
df8c26c4 RK |
171 | -moz-image-region: rect(0px 72px 24px 48px); |
172 | } | |
173 | ||
4d12b027 RK |
174 | #Console\:modeWarnings:hover, |
175 | #Console\:modeWarnings[checked="true"] { | |
df8c26c4 RK |
176 | -moz-image-region: rect(24px 72px 48px 48px); |
177 | } | |
178 | ||
4d12b027 | 179 | #Console\:modeMessages { |
df8c26c4 RK |
180 | -moz-image-region: rect(0px 48px 24px 24px); |
181 | } | |
182 | ||
4d12b027 RK |
183 | #Console\:modeMessages:hover, |
184 | #Console\:modeMessages[checked="true"] { | |
df8c26c4 RK |
185 | -moz-image-region: rect(24px 48px 48px 24px); |
186 | } | |
187 | ||
4d12b027 | 188 | #Console\:clear { |
df8c26c4 RK |
189 | -moz-image-region: rect(0px 120px 24px 96px); |
190 | } | |
191 | ||
4d12b027 RK |
192 | #Console\:clear:hover, |
193 | #Console\:clear[checked="true"] { | |
df8c26c4 RK |
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 | } |