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 | |
5 | /* ===== global.css ===================================================== | |
6 | == Styles that apply everywhere. | |
7 | ======================================================================= */ | |
8 | ||
9 | /* all localizable skin settings shall live here */ | |
10 | @import url("chrome://global/locale/intl.css"); | |
11 | ||
f6e0a33f | 12 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
13 | ||
74d14f90 | 14 | /* ::::: XBL bindings ::::: */ |
f6e0a33f | 15 | |
74d14f90 | 16 | radio { |
64da60f3 | 17 | -moz-binding: url("chrome://global/skin/globalBindings.xml#radio"); |
f6e0a33f | 18 | } |
74d14f90 | 19 | |
e82e1bf4 | 20 | menulist > menupopup { |
74d14f90 | 21 | -moz-binding: url("chrome://global/content/bindings/popup.xml#popup-scrollbars"); |
f6e0a33f | 22 | } |
23 | ||
689d5552 RK |
24 | /* ::::: Variables ::::: */ |
25 | :root { | |
987dae1b RK |
26 | --arrowpanel-padding: 6px; |
27 | --arrowpanel-background: #CCD0DD; | |
28 | --arrowpanel-color: #000000; | |
29 | --arrowpanel-border-color: #CCD0DD; | |
689d5552 RK |
30 | } |
31 | ||
74d14f90 | 32 | /* ::::: root elements ::::: */ |
33 | ||
34 | window, | |
35 | page, | |
36 | dialog, | |
df8c26c4 RK |
37 | wizard, |
38 | prefwindow { | |
74d14f90 | 39 | background-color: #CCD0DD; |
40 | color: #000000; | |
4ed82c79 | 41 | font: 11px "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif; |
74d14f90 | 42 | } |
d36c7ec4 | 43 | |
76983f4c | 44 | window.dialog { |
02920d2b RK |
45 | padding-top: 8px; |
46 | padding-bottom: 10px; | |
dae45075 RK |
47 | padding-inline-start: 8px; |
48 | padding-inline-end: 10px; | |
74d14f90 | 49 | } |
50 | ||
74d14f90 | 51 | /* ::::: alert icons :::::*/ |
52 | ||
53 | .message-icon, | |
54 | .alert-icon, | |
55 | .error-icon, | |
6c5a63bb RK |
56 | .question-icon, |
57 | .authentication-icon { | |
74d14f90 | 58 | width: 32px; |
59 | height: 32px; | |
60 | } | |
128000f4 | 61 | |
74d14f90 | 62 | .message-icon { |
63 | list-style-image: url("chrome://global/skin/icons/alert-message.gif"); | |
64 | } | |
65 | ||
441d0294 | 66 | .alert-dialog #info\.icon, |
74d14f90 | 67 | .alert-icon { |
68 | list-style-image: url("chrome://global/skin/icons/alert-exclam.gif"); | |
69 | } | |
70 | ||
71 | .error-icon { | |
72 | list-style-image: url("chrome://global/skin/icons/alert-error.gif"); | |
73 | } | |
74 | ||
6c5a63bb RK |
75 | .question-icon, |
76 | .authentication-icon { | |
74d14f90 | 77 | list-style-image: url("chrome://global/skin/icons/alert-question.gif"); |
78 | } | |
79 | ||
80 | /* ::::: iframe ::::: */ | |
81 | ||
82 | iframe { | |
83 | border: none; | |
84 | width: 100px; | |
85 | height: 100px; | |
86 | min-width: 10px; | |
87 | min-height: 10px; | |
88 | } | |
89 | ||
90 | /* ::::: statusbar ::::: */ | |
91 | ||
92 | statusbar { | |
93 | border-top: 1px solid #9999CC; | |
94 | background-color: #666699; | |
95 | color: #CCD0DD; | |
df8c26c4 | 96 | min-height: 16px; |
74d14f90 | 97 | } |
98 | ||
99 | statusbarpanel { | |
100 | -moz-box-align: center; | |
101 | -moz-box-pack: center; | |
d8de8145 | 102 | padding: 0px 1px; |
74d14f90 | 103 | } |
104 | ||
a064a540 RK |
105 | statusbarpanel:not(.statusbar-resizerpanel):-moz-lwtheme { |
106 | -moz-appearance: none; | |
107 | border-top-style: none; | |
108 | border-bottom-style: none; | |
dae45075 | 109 | border-inline-start-style: none; |
a064a540 | 110 | } |
74d14f90 | 111 | |
112 | .statusbar-resizerpanel { | |
113 | -moz-box-align: end; | |
114 | -moz-box-pack: end; | |
115 | padding: 0px; | |
116 | } | |
117 | ||
7862e6ee RK |
118 | .statusbarpanel-iconic, |
119 | .statusbarpanel-iconic-text, | |
120 | .statusbarpanel-menu-iconic { | |
121 | padding: 0px 1px; | |
76983f4c | 122 | } |
74d14f90 | 123 | |
74d14f90 | 124 | .toolbar-focustarget { |
125 | -moz-user-focus: ignore !important; | |
3eaf1060 | 126 | } |
56029caf | 127 | |
18f5421a RK |
128 | toolbar[mode="text"] .toolbarbutton-text { |
129 | /* padding: 0 !important; | |
130 | margin: 3px 5px !important; */ | |
131 | } | |
132 | ||
7862e6ee RK |
133 | /* ::::: miscellaneous formatting ::::: */ |
134 | ||
918c9e49 | 135 | :root:-moz-lwtheme { |
3b1530c2 RK |
136 | -moz-appearance: none; |
137 | } | |
138 | ||
139 | :root:-moz-lwtheme-darktext { | |
24547055 | 140 | text-shadow: 0 -0.5px 1.5px #FFFFFF; |
3b1530c2 RK |
141 | } |
142 | ||
143 | :root:-moz-lwtheme-brighttext { | |
144 | text-shadow: 1px 1px 2px #000000; | |
145 | } | |
146 | ||
147 | statusbar:-moz-lwtheme, | |
148 | sidebarheader:-moz-lwtheme { | |
149 | -moz-appearance: none; | |
150 | background: none; | |
151 | border-style: none; | |
152 | } | |
153 | ||
7862e6ee RK |
154 | .inset { |
155 | border: 1px inset #CCD0DD; | |
02920d2b | 156 | /* margin: 0px 5px 5px; */ |
7862e6ee RK |
157 | } |
158 | ||
159 | .outset { | |
160 | border: 1px outset #CCD0DD; | |
161 | } | |
162 | ||
163 | /* separators */ | |
164 | separator:not([orient="vertical"]) { | |
165 | height: 1.5em; | |
166 | } | |
167 | ||
168 | separator[orient="vertical"] { | |
169 | width: 1.5em; | |
170 | } | |
171 | ||
172 | separator.thin:not([orient="vertical"]) { | |
173 | height: 0.5em; | |
174 | } | |
175 | ||
176 | separator.thin[orient="vertical"] { | |
177 | width: 0.5em; | |
178 | } | |
179 | ||
180 | separator.groove:not([orient="vertical"]) { | |
181 | border-top: 2px groove #CCD0DD; | |
182 | height: 0px; | |
183 | margin-top: 0.4em; | |
184 | margin-bottom: 0.4em; | |
185 | } | |
186 | ||
187 | separator.groove[orient="vertical"] { | |
188 | border-left: 2px groove #CCD0DD; | |
dae45075 RK |
189 | margin-inline-start: 0.4em; |
190 | margin-inline-end: 0.4em; | |
7862e6ee RK |
191 | } |
192 | ||
193 | /* groove separators (0 padding, for dividing effects) */ | |
194 | separator.groove-thin { | |
195 | border-top: 2px groove #CCD0DD; | |
196 | height: 0px; | |
197 | } | |
198 | ||
199 | separator[orient="vertical"].groove-thin { | |
200 | border-left: 2px groove #CCD0DD; | |
201 | } | |
202 | ||
203 | .small-margin { | |
204 | margin: 0px 1px; | |
205 | } | |
206 | ||
207 | .plain { | |
18f5421a | 208 | -moz-appearance: none; |
7862e6ee RK |
209 | margin: 0px !important; |
210 | border: none; | |
211 | padding: 0px; | |
212 | } | |
213 | ||
214 | description, label { | |
215 | cursor: default; | |
216 | margin: 1px 3px; | |
217 | } | |
218 | ||
219 | label[disabled="true"] { | |
220 | color: #808080; | |
221 | } | |
222 | ||
223 | description { | |
224 | /* margin-bottom: 4px; */ | |
225 | } | |
226 | ||
227 | .tooltip-label { | |
228 | margin: 0px; | |
229 | } | |
230 | ||
231 | .header { | |
232 | font-weight: bold; | |
233 | } | |
234 | ||
235 | .monospace { | |
8ad8bf83 | 236 | font-family: "Liberation Mono", Consolas, "Courier New", monospace; |
7862e6ee RK |
237 | } |
238 | ||
239 | .indent { | |
dae45075 RK |
240 | /* margin-inline-start: 23px; */ |
241 | margin-inline-start: 15px; | |
7862e6ee RK |
242 | } |
243 | ||
244 | .box-padded { | |
245 | padding: 5px; | |
246 | } | |
247 | ||
248 | .spaced { | |
249 | margin: 1px 3px; | |
250 | } | |
251 | ||
252 | .wizard-box { | |
02920d2b | 253 | padding: 15px 35px 10px; |
7862e6ee RK |
254 | } |
255 | ||
256 | .text-link { | |
257 | color: blue; | |
7862e6ee RK |
258 | cursor: pointer; |
259 | } | |
260 | ||
a6c8d0f5 RK |
261 | .text-link:hover { |
262 | text-decoration: underline; | |
263 | } | |
264 | ||
024ec655 | 265 | .text-link:-moz-focusring { |
7862e6ee RK |
266 | /* Don't specify the outline-color, we should always use initial value. */ |
267 | outline: 1px dotted; | |
268 | } | |
269 | ||
da3c2755 RK |
270 | popupnotificationcontent { |
271 | margin-top: .5em; | |
272 | } | |
273 | ||
a9f6369d RK |
274 | /* === BEGIN notification-popup.inc.css === */ |
275 | ||
276 | .popup-notification-panel > .panel-arrowcontainer > .panel-arrowcontent { | |
277 | /* In order to display the action buttons near the edge of the arrow panel we | |
278 | * have to reset its default padding and specify the padding in the individual | |
279 | * "popupnotification" elements instead. To keep the rounded borders of the | |
280 | * panel, we also have to ensure the contents are clipped to the border box | |
281 | * by hiding the overflow, and we have to override the "display" property so | |
282 | * that the height of the contents is computed correctly in that case. */ | |
283 | padding: 0; | |
284 | overflow: hidden; | |
285 | display: block; | |
286 | } | |
287 | ||
288 | /* === END notification-popup.inc.css === */ | |
289 | ||
56029caf RK |
290 | /* :::::: autoscroll popup ::::: */ |
291 | ||
18f5421a | 292 | .autoscroller { |
56029caf RK |
293 | height: 28px; |
294 | width: 28px; | |
295 | border: 0px; | |
296 | margin: -14px; | |
297 | padding: 0px; | |
c79d2bbe | 298 | background-image: url("chrome://global/skin/icons/autoscroll.png"); |
56029caf RK |
299 | background-color: transparent; |
300 | -moz-appearance: none; | |
301 | } | |
302 | ||
18f5421a | 303 | .autoscroller[scrolldir="NS"] { |
56029caf RK |
304 | background-position: left center; |
305 | } | |
306 | ||
18f5421a | 307 | .autoscroller[scrolldir="EW"] { |
56029caf RK |
308 | background-position: left bottom; |
309 | } | |
310 | ||
18f5421a | 311 | .autoscroller[transparent="true"] { |
56029caf RK |
312 | background-position: center top; |
313 | } | |
314 | ||
18f5421a | 315 | .autoscroller[transparent="true"][scrolldir="NS"] { |
56029caf RK |
316 | background-position: center center; |
317 | } | |
318 | ||
18f5421a | 319 | .autoscroller[transparent="true"][scrolldir="EW"] { |
56029caf RK |
320 | background-position: center bottom; |
321 | } | |
322 | ||
18f5421a | 323 | .autoscroller[translucent="true"] { |
56029caf RK |
324 | background-position: right top; |
325 | } | |
326 | ||
18f5421a | 327 | .autoscroller[translucent="true"][scrolldir="NS"] { |
56029caf RK |
328 | background-position: right center; |
329 | } | |
330 | ||
18f5421a | 331 | .autoscroller[translucent="true"][scrolldir="EW"] { |
56029caf RK |
332 | background-position: right bottom; |
333 | } |