Commit | Line | Data |
---|---|---|
351107c9 | 1 | /* ***** BEGIN LICENSE BLOCK ***** |
2 | * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | |
3 | * | |
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/ | |
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 "Classic" theme of mozilla.org code. | |
15 | * | |
16 | * The Initial Developer of the Original Code is | |
17 | * the Mozilla Organization. | |
18 | * Portions created by the Initial Developer are Copyright (C) 1998-2001 | |
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 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. | |
35 | * | |
36 | * ***** END LICENSE BLOCK ***** */ | |
37 | ||
3d6dd546 | 38 | /** Contains style definitions for the navigator application |
351107c9 | 39 | **/ |
40 | ||
b1eaa419 | 41 | @import url("chrome://navigator/content/navigator.css"); |
42 | @import url("chrome://communicator/skin/"); | |
b1eaa419 | 43 | @import url("chrome://communicator/skin/bookmarks/bookmarksToolbar.css"); |
351107c9 | 44 | |
45 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); | |
46 | ||
47 | /********** resource bundle binding **********/ | |
48 | ||
b1eaa419 | 49 | /* ::::: primary toolbar buttons ::::: */ |
351107c9 | 50 | |
b1eaa419 | 51 | #back-button { |
e10e7add RK |
52 | list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png"); |
53 | -moz-image-region: rect(42px 25px 63px 0px); | |
b1eaa419 | 54 | } |
351107c9 | 55 | |
c710949d RK |
56 | #back-button[disabled="true"] { |
57 | -moz-image-region: rect(42px 50px 63px 25px); | |
b1eaa419 | 58 | } |
59 | ||
c710949d RK |
60 | #back-button:not([disabled="true"]):hover, |
61 | #back-button:not([disabled="true"]):hover:active, | |
62 | #back-button[open="true"] { | |
63 | -moz-image-region: rect(42px 75px 63px 50px); | |
b1eaa419 | 64 | } |
65 | ||
66 | #forward-button { | |
e10e7add RK |
67 | list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png"); |
68 | -moz-image-region: rect(63px 25px 84px 0px); | |
b1eaa419 | 69 | } |
351107c9 | 70 | |
c710949d RK |
71 | #forward-button[disabled="true"] { |
72 | -moz-image-region: rect(63px 50px 84px 25px); | |
b1eaa419 | 73 | } |
351107c9 | 74 | |
c710949d RK |
75 | #forward-button:not([disabled="true"]):hover, |
76 | #forward-button:not([disabled="true"]):hover:active, | |
77 | #forward-button[open="true"] { | |
78 | -moz-image-region: rect(63px 75px 84px 50px); | |
b1eaa419 | 79 | } |
80 | ||
81 | #reload-button { | |
c710949d RK |
82 | list-style-image: url("chrome://navigator/skin/icons/navigatoricons.png"); |
83 | -moz-image-region: rect(0px 25px 21px 0px); | |
b1eaa419 | 84 | } |
351107c9 | 85 | |
c710949d RK |
86 | #reload-button[disabled="true"] { |
87 | -moz-image-region: rect(0px 50px 21px 25px); | |
b1eaa419 | 88 | } |
89 | ||
c710949d RK |
90 | #reload-button:not([disabled="true"]):hover, |
91 | #reload-button:not([disabled="true"]):hover:active { | |
92 | -moz-image-region: rect(0px 75px 21px 50px); | |
b1eaa419 | 93 | } |
94 | ||
95 | #stop-button { | |
e10e7add RK |
96 | list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png"); |
97 | -moz-image-region: rect(21px 25px 42px 0px); | |
b1eaa419 | 98 | } |
351107c9 | 99 | |
c710949d RK |
100 | #stop-button[disabled="true"] { |
101 | -moz-image-region: rect(21px 50px 42px 25px); | |
3d6dd546 | 102 | } |
351107c9 | 103 | |
c710949d RK |
104 | #stop-button:not([disabled="true"]):hover, |
105 | #stop-button:not([disabled="true"]):hover:active { | |
106 | -moz-image-region: rect(21px 75px 42px 50px); | |
3d6dd546 | 107 | } |
b1eaa419 | 108 | |
109 | #print-button { | |
e10e7add RK |
110 | list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png"); |
111 | -moz-image-region: rect(0px 25px 21px 0px); | |
b1eaa419 | 112 | } |
351107c9 | 113 | |
c710949d RK |
114 | #print-button[disabled="true"] { |
115 | -moz-image-region: rect(0px 50px 21px 25px); | |
b1eaa419 | 116 | } |
117 | ||
c710949d RK |
118 | #print-button:not([disabled="true"]):hover, |
119 | #print-button:not([disabled="true"]):hover:active, | |
120 | #print-button[open="true"] { | |
121 | -moz-image-region: rect(0px 75px 21px 50px); | |
b1eaa419 | 122 | } |
351107c9 | 123 | |
0ef1663c RK |
124 | #home-button { |
125 | list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png"); | |
126 | -moz-image-region: rect(84px 25px 105px 0px); | |
127 | } | |
128 | ||
129 | #home-button[disabled="true"] { | |
130 | -moz-image-region: rect(84px 50px 105px 25px); | |
131 | } | |
132 | ||
133 | #home-button:not([disabled="true"]):hover, | |
134 | #home-button:not([disabled="true"]):hover:active { | |
135 | -moz-image-region: rect(84px 75px 105px 50px); | |
136 | } | |
137 | ||
b1e5c9b1 | 138 | #clear-button { |
139 | list-style-image: url("chrome://global/skin/icons/close-button.gif"); | |
140 | } | |
141 | ||
61290d60 | 142 | #clear-button:hover { |
143 | list-style-image: url("chrome://global/skin/icons/close-button-hover.gif"); | |
144 | } | |
145 | ||
80916bc4 | 146 | /* ::::: small primary toolbar buttons ::::: */ |
147 | ||
7a7b11b3 RK |
148 | #nav-bar[inFullscreen="true"] .toolbar-grippy { |
149 | /* display: none; */ | |
80916bc4 | 150 | } |
151 | ||
0ef1663c RK |
152 | toolbar[iconsize="small"] > #back-button { |
153 | list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png"); | |
154 | -moz-image-region: rect(32px 16px 48px 0); | |
155 | } | |
156 | ||
157 | toolbar[iconsize="small"] > #back-button[disabled="true"] { | |
158 | -moz-image-region: rect(32px 32px 48px 16px) !important; | |
159 | } | |
160 | ||
161 | toolbar[iconsize="small"] > #back-button:not([disabled="true"]):hover, | |
162 | toolbar[iconsize="small"] > #back-button:not([disabled="true"]):hover:active { | |
163 | -moz-image-region: rect(32px 48px 48px 32px); | |
164 | } | |
165 | ||
166 | toolbar[iconsize="small"] > #forward-button { | |
167 | list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png"); | |
168 | -moz-image-region: rect(48px 16px 64px 0); | |
169 | } | |
170 | ||
171 | toolbar[iconsize="small"] > #forward-button[disabled="true"] { | |
172 | -moz-image-region: rect(48px 32px 64px 16px) !important; | |
173 | } | |
174 | ||
175 | toolbar[iconsize="small"] > #forward-button:not([disabled="true"]):hover, | |
176 | toolbar[iconsize="small"] > #forward-button:not([disabled="true"]):hover:active { | |
177 | -moz-image-region: rect(48px 48px 64px 32px); | |
178 | } | |
179 | ||
180 | toolbar[iconsize="small"] > #reload-button { | |
181 | list-style-image: url("chrome://navigator/skin/icons/navigatoricons-small.png"); | |
182 | -moz-image-region: rect(0 16px 16px 0); | |
183 | } | |
184 | ||
185 | toolbar[iconsize="small"] > #reload-button[disabled="true"] { | |
186 | -moz-image-region: rect(0 32px 16px 16px) !important; | |
187 | } | |
188 | ||
189 | toolbar[iconsize="small"] > #reload-button:not([disabled="true"]):hover, | |
190 | toolbar[iconsize="small"] > #reload-button:not([disabled="true"]):hover:active { | |
191 | -moz-image-region: rect(0 48px 16px 32px); | |
192 | } | |
193 | ||
194 | toolbar[iconsize="small"] > #stop-button { | |
195 | list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png"); | |
196 | -moz-image-region: rect(16px 16px 32px 0); | |
197 | } | |
198 | ||
199 | toolbar[iconsize="small"] > #stop-button[disabled="true"] { | |
200 | -moz-image-region: rect(16px 32px 32px 16px) !important; | |
201 | } | |
202 | ||
203 | toolbar[iconsize="small"] > #stop-button:not([disabled="true"]):hover, | |
204 | toolbar[iconsize="small"] > #stop-button:not([disabled="true"]):hover:active { | |
205 | -moz-image-region: rect(16px 48px 32px 32px); | |
206 | } | |
207 | ||
208 | toolbar[iconsize="small"] > #print-button { | |
209 | list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png"); | |
210 | -moz-image-region: rect(0 16px 16px 0); | |
211 | } | |
212 | ||
213 | toolbar[iconsize="small"] > #print-button[disabled="true"] { | |
214 | -moz-image-region: rect(0 32px 16px 16px) !important; | |
215 | } | |
216 | ||
217 | toolbar[iconsize="small"] > #print-button:not([disabled="true"]):hover, | |
218 | toolbar[iconsize="small"] > #print-button:not([disabled="true"]):hover:active { | |
219 | -moz-image-region: rect(0 48px 16px 32px); | |
220 | } | |
221 | ||
222 | toolbar[iconsize="small"] > #home-button { | |
223 | list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png"); | |
224 | -moz-image-region: rect(64px 16px 80px 0); | |
225 | } | |
226 | ||
227 | toolbar[iconsize="small"] > #home-button[disabled="true"] { | |
228 | -moz-image-region: rect(64px 32px 80px 16px) !important; | |
229 | } | |
230 | ||
231 | toolbar[iconsize="small"] > #home-button:not([disabled="true"]):hover, | |
232 | toolbar[iconsize="small"] > #home-button:not([disabled="true"]):hover:active { | |
233 | -moz-image-region: rect(64px 48px 80px 32px); | |
234 | } | |
235 | ||
80916bc4 | 236 | /* ::::: fullscreen window controls ::::: */ |
237 | ||
238 | #window-controls { | |
239 | -moz-box-align: center; | |
862a6f44 | 240 | padding: 0 1px; |
e20d243c | 241 | border-left: 3px solid #000000; |
862a6f44 | 242 | -moz-margin-start: 2px; |
e20d243c | 243 | } |
244 | ||
245 | #window-controls > toolbarbutton { | |
862a6f44 RK |
246 | padding: 3px; |
247 | -moz-padding-start: 2px; | |
248 | -moz-padding-end: 1px; | |
80916bc4 | 249 | } |
250 | ||
7a7b11b3 RK |
251 | toolbar[mode="text"] > #window-controls > toolbarbutton > .toolbarbutton-icon { |
252 | display: -moz-box; | |
253 | } | |
254 | ||
80916bc4 | 255 | #minimize-button { |
256 | list-style-image: url("chrome://navigator/skin/icons/win-minimize.gif"); | |
257 | } | |
258 | ||
e20d243c | 259 | #minimize-button:hover { |
260 | list-style-image: url("chrome://navigator/skin/icons/win-minimize-hover.gif"); | |
261 | } | |
262 | ||
80916bc4 | 263 | #restore-button { |
264 | list-style-image: url("chrome://navigator/skin/icons/win-restore.gif"); | |
265 | } | |
266 | ||
e20d243c | 267 | #restore-button:hover { |
268 | list-style-image: url("chrome://navigator/skin/icons/win-restore-hover.gif"); | |
269 | } | |
270 | ||
80916bc4 | 271 | #close-button { |
272 | list-style-image: url("chrome://navigator/skin/icons/win-close.gif"); | |
273 | } | |
274 | ||
e20d243c | 275 | #close-button:hover { |
276 | list-style-image: url("chrome://navigator/skin/icons/win-close-hover.gif"); | |
277 | } | |
278 | ||
b1eaa419 | 279 | /* ::::: nav-bar-inner ::::: */ |
280 | ||
281 | #nav-bar-inner { | |
c710949d RK |
282 | -moz-padding-start: 1px; |
283 | -moz-padding-end: 1px; | |
b1eaa419 | 284 | min-width: 0px; |
c710949d | 285 | -moz-box-align: center; |
b1eaa419 | 286 | } |
287 | ||
288 | #urlbar { | |
7c6f4fb9 | 289 | -moz-border-radius: 5px; |
c710949d RK |
290 | margin: 0; |
291 | -moz-margin-start: 3px; | |
2c8f3260 RK |
292 | } |
293 | ||
294 | #urlbar > .autocomplete-textbox-container { | |
295 | -moz-border-radius: 3px 0 0 3px; | |
296 | padding: 2px; | |
b1eaa419 | 297 | } |
298 | ||
d84b9613 | 299 | #urlbar[level="high"] > .autocomplete-textbox-container, |
300 | #urlbar[level="low"] > .autocomplete-textbox-container { | |
301 | background-color: #FFCF00; | |
302 | color: #000000; | |
303 | } | |
304 | ||
b1eaa419 | 305 | /* ::::: page proxy icon ::::: */ |
3d6dd546 | 306 | |
b1eaa419 | 307 | #page-proxy-deck, |
308 | #page-proxy-favicon, | |
309 | #page-proxy-button { | |
310 | width: 16px; | |
311 | height: 16px; | |
312 | } | |
351107c9 | 313 | |
314 | #page-proxy-deck { | |
d2f0d128 | 315 | cursor: -moz-grab; |
2c8f3260 | 316 | margin: 0; |
3d6dd546 | 317 | } |
351107c9 | 318 | |
b1eaa419 | 319 | #page-proxy-button { |
3d6dd546 | 320 | list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-item.gif"); |
b1eaa419 | 321 | padding-top: 2px; |
322 | padding-bottom: 2px; | |
3d6dd546 | 323 | } |
324 | ||
b1eaa419 | 325 | #page-proxy-favicon { |
326 | list-style-image: none; | |
3d6dd546 | 327 | } |
351107c9 | 328 | |
b1eaa419 | 329 | /* ::::: autocomplete ::::: */ |
330 | ||
01fc5c11 | 331 | .autocomplete-treebody::-moz-tree-cell-text(value) { |
b1eaa419 | 332 | padding-left: 13px; |
333 | } | |
334 | ||
01fc5c11 | 335 | .autocomplete-treebody::-moz-tree-cell-text(comment) { |
b1eaa419 | 336 | color: #E7ADE7; |
337 | /* font-style: italic; */ | |
351107c9 | 338 | } |
339 | ||
b1eaa419 | 340 | .autocomplete-search-box { |
341 | border-top: 1px solid #FF9F00; | |
342 | background-color: #9C9CFF; | |
343 | color: #000000; | |
3d6dd546 | 344 | } |
351107c9 | 345 | |
b1eaa419 | 346 | .autocomplete-result-popup[nomatch] > .autocomplete-search-box { |
347 | border-top: 1px solid #9C9CFF; | |
351107c9 | 348 | } |
351107c9 | 349 | |
b1eaa419 | 350 | .autocomplete-search-engine { |
351 | padding: 2px; | |
3d6dd546 | 352 | } |
351107c9 | 353 | |
b1eaa419 | 354 | .autocomplete-search-engine[menuactive="true"] { |
355 | background-color: #008484; | |
356 | color: #FFCF00; | |
3d6dd546 | 357 | } |
351107c9 | 358 | |
b1eaa419 | 359 | .autocomplete-search-engine-img { |
360 | margin-right: 4px; | |
361 | } | |
362 | ||
f8bb6584 RK |
363 | .autocomplete-history-dropmarker:hover { |
364 | background-color: #FFCF00; | |
365 | } | |
366 | ||
367 | .autocomplete-history-dropmarker:hover:active, | |
368 | .autocomplete-history-dropmarker[open="true"] { | |
369 | background-color: #FF9F00; | |
370 | } | |
371 | ||
b1eaa419 | 372 | /* ::::: go and searchbuttons ::::: */ |
373 | ||
3d6dd546 | 374 | #search-button, |
351107c9 | 375 | #go-button { |
c710949d | 376 | margin: 0; |
2834b9ef | 377 | padding: 1px 0; |
c710949d | 378 | -moz-margin-start: 2px; |
b1eaa419 | 379 | font-weight: bold; |
380 | background-color: #000000; | |
351107c9 | 381 | } |
382 | ||
3d6dd546 | 383 | #search-button:hover, |
351107c9 | 384 | #go-button:hover { |
b1eaa419 | 385 | background-color: #FFCF00; |
351107c9 | 386 | } |
387 | ||
2c8f3260 RK |
388 | /* care that those buttons base on the same min height of 16px that the urlbar |
389 | autocomplete box gets through site icon and urlbar icons at the right */ | |
390 | #search-button > .button-box , | |
391 | #go-button > .button-box { | |
392 | min-height: 16px; | |
393 | } | |
394 | ||
b1eaa419 | 395 | #search-button { |
396 | /* list-style-image: url("chrome://communicator/skin/icons/search.gif"); */ | |
397 | font-weight: bold; | |
398 | } | |
351107c9 | 399 | |
7a7b11b3 RK |
400 | /* |
401 | toolbar[mode="text"] #search-button > .button-box > .button-icon, | |
402 | toolbar[mode="icons"] #search-button > .button-box > .button-text { | |
403 | display: none; | |
404 | } | |
405 | */ | |
406 | ||
31e46317 RK |
407 | /* ::::: throbber ::::: */ |
408 | ||
409 | #throbber-box { | |
410 | -moz-margin-start: 2px; | |
411 | } | |
412 | ||
dc8e1207 | 413 | /* ::::: security button ::::: */ |
351107c9 | 414 | |
dc8e1207 | 415 | #security-button { |
416 | list-style-image:url("chrome://communicator/skin/icons/lock-insecure.gif"); | |
31e46317 | 417 | -moz-margin-start: 2px; |
b1eaa419 | 418 | } |
351107c9 | 419 | |
57d23eae | 420 | /* |high| and |low| styles could be different, to better reflect the secure level... */ |
421 | #security-button[level="high"], | |
dc8e1207 | 422 | #security-button[level="low"] { |
423 | list-style-image:url("chrome://communicator/skin/icons/lock-secure.gif"); | |
424 | } | |
425 | ||
426 | #security-button[level="broken"] { | |
427 | list-style-image:url("chrome://communicator/skin/icons/lock-broken.gif"); | |
b1eaa419 | 428 | } |
351107c9 | 429 | |
a3b3d4d6 | 430 | #popupIcon { |
431 | list-style-image:url("chrome://navigator/skin/icons/popup-blocked.gif"); | |
432 | } | |
433 | ||
dc8e1207 | 434 | /* ::::: personal toolbar ::::: */ |
351107c9 | 435 | |
dc8e1207 | 436 | #bookmarks-button { |
437 | list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-closed.gif"); | |
b1eaa419 | 438 | } |
351107c9 | 439 | |
dc8e1207 | 440 | #bookmarks-button[open="true"] { |
441 | list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-open.gif"); | |
b1eaa419 | 442 | } |
351107c9 | 443 | |
c710949d | 444 | toolbarbutton.chevron { |
e10e7add | 445 | list-style-image: url("chrome://navigator/skin/icons/chevron.gif") !important; |
ac1cdf20 | 446 | } |
447 | ||
c710949d RK |
448 | toolbarbutton.chevron:hover, |
449 | toolbarbutton.chevron[open="true"] { | |
e10e7add | 450 | list-style-image: url("chrome://navigator/skin/icons/chevron-hover.gif") !important; |
ac1cdf20 | 451 | } |
452 | ||
7a7b11b3 | 453 | toolbarbutton.chevron > .toolbarbutton-menu-dropmarker { |
ac1cdf20 | 454 | display: none; |
455 | } | |
e10e7add | 456 | |
7a7b11b3 RK |
457 | toolbarbutton.chevron > .toolbarbutton-text { |
458 | display: none; /* hide chevron label which has a width even if blank */ | |
459 | } | |
460 | ||
461 | toolbar[mode="text"] toolbarbutton.chevron > .toolbarbutton-icon { | |
462 | display: -moz-box; /* display chevron icon in text mode */ | |
463 | } | |
464 | ||
465 | /* Prevent [mode="icons"|"text"] from hiding the label and icon */ | |
466 | #bookmarks-ptf .bookmark-item > .toolbarbutton-text, | |
467 | #bookmarks-ptf .bookmark-item > .toolbarbutton-icon { | |
468 | display: -moz-box !important; | |
469 | } | |
470 | ||
0ef1663c RK |
471 | #PersonalToolbar[iconsize="small"] > #home-button > .toolbarbutton-icon { |
472 | /* width: 16px; | |
473 | height: 16px; */ | |
474 | } | |
475 | ||
476 | #PersonalToolbar > #home-button { | |
477 | cursor: pointer; | |
478 | } | |
479 | ||
480 | #PersonalToolbar > #home-button[disabled="true"] { | |
481 | cursor: default !important; | |
482 | } | |
483 | ||
e10e7add RK |
484 | /* ::::: feeds ::::: */ |
485 | ||
486 | #feedsMenu { | |
487 | list-style-image: url("chrome://navigator/skin/linkButtons/feeds.png") !important; | |
488 | -moz-image-region: rect(0px 16px 16px 0px); | |
489 | } | |
490 | ||
491 | #feedsMenu[disabled="true"] { | |
492 | -moz-image-region: rect(32px 16px 48px 0px); | |
493 | } | |
494 | ||
495 | #feedsButton { | |
496 | list-style-image: url("chrome://navigator/skin/linkButtons/feeds.png"); | |
497 | -moz-image-region: rect(0px 32px 16px 16px); | |
498 | } | |
499 | ||
500 | #feedsButton:hover { | |
501 | -moz-image-region: rect(16px 32px 32px 16px); | |
502 | } | |
503 | ||
504 | #feedsButton:hover:active { | |
505 | -moz-image-region: rect(48px 32px 64px 16px); | |
506 | } |