aadd47c82400d5312ace3d8678ead7694b5baef2
[themes.git] / LCARStrek / navigator / navigator.css
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
38 /** Contains style definitions for the navigator application
39  **/
40
41 @import url("chrome://navigator/content/navigator.css");
42 @import url("chrome://communicator/skin/");
43 @import url("chrome://communicator/skin/bookmarks/bookmarksToolbar.css");
44
45 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
46
47 /********** resource bundle binding **********/
48
49 /* ::::: primary toolbar buttons ::::: */
50
51 #back-button {
52   list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
53   -moz-image-region: rect(42px 25px 63px 0px);
54 }
55
56 #back-button[disabled="true"] {
57   -moz-image-region: rect(42px 50px 63px 25px);
58 }
59
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);
64 }
65
66 #forward-button {
67   list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
68   -moz-image-region: rect(63px 25px 84px 0px);
69 }
70
71 #forward-button[disabled="true"] {
72   -moz-image-region: rect(63px 50px 84px 25px);
73 }
74
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);
79 }
80
81 #reload-button {
82   list-style-image: url("chrome://navigator/skin/icons/navigatoricons.png");
83   -moz-image-region: rect(0px 25px 21px 0px);
84 }
85
86 #reload-button[disabled="true"] {
87   -moz-image-region: rect(0px 50px 21px 25px);
88 }
89
90 #reload-button:not([disabled="true"]):hover,
91 #reload-button:not([disabled="true"]):hover:active {
92   -moz-image-region: rect(0px 75px 21px 50px);
93 }
94
95 #stop-button {
96   list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
97   -moz-image-region: rect(21px 25px 42px 0px);
98 }
99
100 #stop-button[disabled="true"] {
101   -moz-image-region: rect(21px 50px 42px 25px);
102 }
103
104 #stop-button:not([disabled="true"]):hover,
105 #stop-button:not([disabled="true"]):hover:active {
106   -moz-image-region: rect(21px 75px 42px 50px);
107 }
108
109 #print-button {
110   list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
111   -moz-image-region: rect(0px 25px 21px 0px);
112 }
113
114 #print-button[disabled="true"] {
115   -moz-image-region: rect(0px 50px 21px 25px);
116 }
117
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);
122 }
123
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
138 #clear-button {
139   list-style-image: url("chrome://global/skin/icons/close-button.gif");
140 }
141
142 #clear-button:hover {
143   list-style-image: url("chrome://global/skin/icons/close-button-hover.gif");
144 }
145
146 /* ::::: small primary toolbar buttons ::::: */
147
148 toolbar[iconsize="small"] > #back-button {
149   list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
150   -moz-image-region: rect(32px 16px 48px 0);
151 }
152
153 toolbar[iconsize="small"] > #back-button[disabled="true"] {
154   -moz-image-region: rect(32px 32px 48px 16px) !important;
155 }
156
157 toolbar[iconsize="small"] > #back-button:not([disabled="true"]):hover,
158 toolbar[iconsize="small"] > #back-button:not([disabled="true"]):hover:active {
159   -moz-image-region: rect(32px 48px 48px 32px);
160 }
161
162 toolbar[iconsize="small"] > #forward-button {
163   list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
164   -moz-image-region: rect(48px 16px 64px 0);
165 }
166
167 toolbar[iconsize="small"] > #forward-button[disabled="true"] {
168   -moz-image-region: rect(48px 32px 64px 16px) !important;
169 }
170
171 toolbar[iconsize="small"] > #forward-button:not([disabled="true"]):hover,
172 toolbar[iconsize="small"] > #forward-button:not([disabled="true"]):hover:active {
173   -moz-image-region: rect(48px 48px 64px 32px);
174 }
175
176 toolbar[iconsize="small"] > #reload-button {
177   list-style-image: url("chrome://navigator/skin/icons/navigatoricons-small.png");
178   -moz-image-region: rect(0 16px 16px 0);
179 }
180
181 toolbar[iconsize="small"] > #reload-button[disabled="true"] {
182   -moz-image-region: rect(0 32px 16px 16px) !important;
183 }
184
185 toolbar[iconsize="small"] > #reload-button:not([disabled="true"]):hover,
186 toolbar[iconsize="small"] > #reload-button:not([disabled="true"]):hover:active {
187   -moz-image-region: rect(0 48px 16px 32px);
188 }
189
190 toolbar[iconsize="small"] > #stop-button {
191   list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
192   -moz-image-region: rect(16px 16px 32px 0);
193 }
194
195 toolbar[iconsize="small"] > #stop-button[disabled="true"] {
196   -moz-image-region: rect(16px 32px 32px 16px) !important;
197 }
198
199 toolbar[iconsize="small"] > #stop-button:not([disabled="true"]):hover,
200 toolbar[iconsize="small"] > #stop-button:not([disabled="true"]):hover:active {
201   -moz-image-region: rect(16px 48px 32px 32px);
202 }
203
204 toolbar[iconsize="small"] > #print-button {
205   list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
206   -moz-image-region: rect(0 16px 16px 0);
207 }
208
209 toolbar[iconsize="small"] > #print-button[disabled="true"] {
210   -moz-image-region: rect(0 32px 16px 16px) !important;
211 }
212
213 toolbar[iconsize="small"] > #print-button:not([disabled="true"]):hover,
214 toolbar[iconsize="small"] > #print-button:not([disabled="true"]):hover:active {
215   -moz-image-region: rect(0 48px 16px 32px);
216 }
217
218 toolbar[iconsize="small"] > #home-button {
219   list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
220   -moz-image-region: rect(64px 16px 80px 0);
221 }
222
223 toolbar[iconsize="small"] > #home-button[disabled="true"] {
224   -moz-image-region: rect(64px 32px 80px 16px) !important;
225 }
226
227 toolbar[iconsize="small"] > #home-button:not([disabled="true"]):hover,
228 toolbar[iconsize="small"] > #home-button:not([disabled="true"]):hover:active {
229   -moz-image-region: rect(64px 48px 80px 32px);
230 }
231
232 /* ::::: fullscreen window controls ::::: */
233
234 #window-controls {
235   -moz-box-align: center;
236   padding: 0 1px;
237   border-left: 3px solid #000000;
238   -moz-margin-start: 2px;
239 }
240
241 #window-controls > toolbarbutton {
242   padding: 3px;
243   -moz-padding-start: 2px;
244   -moz-padding-end: 1px;
245 }
246
247 toolbar[mode="text"] > #window-controls > toolbarbutton > .toolbarbutton-icon {
248   display: -moz-box;
249 }
250
251 #minimize-button {
252   list-style-image: url("chrome://navigator/skin/icons/win-minimize.gif");
253 }
254
255 #minimize-button:hover {
256   list-style-image: url("chrome://navigator/skin/icons/win-minimize-hover.gif");
257 }
258
259 #restore-button {
260   list-style-image: url("chrome://navigator/skin/icons/win-restore.gif");
261 }
262
263 #restore-button:hover {
264   list-style-image: url("chrome://navigator/skin/icons/win-restore-hover.gif");
265 }
266
267 #close-button {
268   list-style-image: url("chrome://navigator/skin/icons/win-close.gif");
269 }
270
271 #close-button:hover {
272   list-style-image: url("chrome://navigator/skin/icons/win-close-hover.gif");
273 }
274
275 /* ::::: nav-bar-inner ::::: */
276
277 .nav-bar-class {
278   -moz-padding-start: 1px;
279   -moz-padding-end: 1px;
280   min-width: 0px;
281   -moz-box-align: center;
282 }
283
284 #urlbar:-moz-lwtheme:not([focused="true"]),
285 .tabbrowser-tab:-moz-lwtheme:not([selected="true"]) {
286   opacity: .8;
287 }
288
289 .tabbrowser-tab:-moz-lwtheme {
290   text-shadow: none;
291 }
292
293 #urlbar {
294   -moz-border-radius: 5px;
295   margin: 0;
296   -moz-margin-start: 3px;
297 }
298
299 #urlbar > .autocomplete-textbox-container {
300   -moz-border-radius: 3px 0 0 3px;
301   padding: 2px;
302 }
303
304 #urlbar[level="high"] > .autocomplete-textbox-container,
305 #urlbar[level="low"] > .autocomplete-textbox-container {
306   background-color: #FFCF00;
307   color: #000000;
308 }
309
310 #wrapper-nav-bar-inner[place="palette"] > #nav-bar-inner > .button-toolbar,
311 #wrapper-nav-bar-inner[place="palette"] > #nav-bar-inner > #urlbar > .urlbar-icons {
312   display: none;
313 }
314
315 /* ::::: page proxy icon ::::: */
316
317 #page-proxy-deck,
318 #page-proxy-favicon,
319 #page-proxy-button {
320   width: 16px;
321   height: 16px;
322 }
323
324 #page-proxy-deck {
325   cursor: -moz-grab;
326   margin: 0;
327 }
328
329 #page-proxy-button {
330   list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-item.gif");
331   padding-top: 2px;
332   padding-bottom: 2px;
333 }
334
335 #page-proxy-favicon {
336   list-style-image: none;
337 }
338
339 /* ::::: autocomplete ::::: */
340
341 .autocomplete-treebody::-moz-tree-cell-text(value) {
342   -moz-padding-start: 13px;
343 }
344
345 .autocomplete-treebody::-moz-tree-cell-text(comment) {
346   color: #E7ADE7;
347 /*  font-style: italic; */
348 }
349
350 .autocomplete-search-box {
351   border-top: 1px solid #FF9F00;
352   background-color: #9C9CFF;
353   color: #000000;
354 }
355
356 .autocomplete-result-popup[nomatch] > .autocomplete-search-box {
357   border-top: 1px solid #9C9CFF;
358 }
359
360 .autocomplete-search-engine {
361   padding: 2px;
362 }
363
364 .autocomplete-search-engine[menuactive="true"] {
365   background-color: #008484;
366   color: #FFCF00;
367 }
368
369 .autocomplete-search-engine-img {
370   -moz-margin-end: 4px;
371 }
372
373 .autocomplete-history-dropmarker:hover {
374   background-color: #FFCF00;
375 }
376
377 .autocomplete-history-dropmarker:hover:active,
378 .autocomplete-history-dropmarker[open="true"] {
379   background-color: #FF9F00;
380 }
381
382 /* ::::: go and searchbuttons ::::: */
383
384 #search-button,
385 #go-button {
386   margin: 0;
387   padding: 2px 0;
388   -moz-margin-start: 2px;
389   background-color: #000000;
390 }
391
392 #search-button:hover,
393 #go-button:hover {
394   background-color: #FFCF00;
395 }
396
397 /* care that those buttons base on the same min height of 16px that the urlbar
398    autocomplete box gets through site icon and urlbar icons at the right */
399 #search-button > .button-box,
400 #go-button > .button-box {
401   min-height: 16px;
402 }
403
404 #search-button:-moz-lwtheme,
405 #go-button:-moz-lwtheme {
406   opacity: .8;
407 }
408
409 #search-button {
410 /*  list-style-image: url("chrome://communicator/skin/icons/search.gif"); */
411 }
412
413 /*
414 toolbar[mode="text"] #search-button > .button-box > .button-icon,
415 toolbar[mode="icons"] #search-button > .button-box > .button-text {
416   display: none;
417 }
418 */
419
420 /* ::::: throbber ::::: */
421
422 #throbber-box {
423   -moz-margin-start: 2px;
424 }
425
426 /* ::::: security button ::::: */
427
428 #security-button {
429   list-style-image: url("chrome://communicator/skin/icons/lock-insecure.gif");
430 }
431
432 #security-button > .statusbarpanel-text {
433   margin: 0px;
434 }
435
436 /* |high| and |low| styles could be different, to better reflect the secure level... */
437 #security-button[level="high"] > .statusbarpanel-contentbox,
438 #security-button[level="low"] > .statusbarpanel-contentbox {
439   list-style-image: url("chrome://communicator/skin/icons/lock-secure-hover.png");
440   background-color: #FFCF00;
441 }
442
443 #security-button[level="broken"] > .statusbarpanel-contentbox {
444   list-style-image: url("chrome://communicator/skin/icons/lock-broken.gif");
445   background-color: #FF0000;
446 }
447
448 #security-button[label][level="high"] > .statusbarpanel-contentbox {
449   list-style-image: url("chrome://communicator/skin/icons/lock-secure.gif");
450   background-color: #008484;
451   color: #FFCF00;
452 }
453
454 #ev-button {
455   list-style-image: url("chrome://communicator/skin/icons/identity.png");
456 }
457
458 #popupIcon {
459   list-style-image:url("chrome://navigator/skin/icons/popup-blocked.gif");
460 }
461
462 /* ::::: personal toolbar ::::: */
463
464 #bookmarks-button {
465   list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-closed.gif");
466 }
467
468 #bookmarks-button[open="true"] {
469   list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-open.gif");
470 }
471
472 toolbarbutton.chevron {
473   list-style-image: url("chrome://navigator/skin/icons/chevron.gif") !important;
474 }
475
476 toolbarbutton.chevron:hover,
477 toolbarbutton.chevron[open="true"] {
478   list-style-image: url("chrome://navigator/skin/icons/chevron-hover.gif") !important;
479 }
480
481 toolbarbutton.chevron > .toolbarbutton-menu-dropmarker {
482   display: none;
483 }
484
485 toolbarbutton.chevron > .toolbarbutton-text {
486   display: none; /* hide chevron label which has a width even if blank */
487 }
488
489 toolbar[mode="text"] toolbarbutton.chevron > .toolbarbutton-icon {
490   display: -moz-box; /* display chevron icon in text mode */
491 }
492
493 /* Prevent [mode="icons"|"text"] from hiding the label and icon */
494 #bookmarks-ptf .bookmark-item > .toolbarbutton-text,
495 #bookmarks-ptf .bookmark-item > .toolbarbutton-icon {
496   display: -moz-box !important;
497 }
498
499 #PersonalToolbar[iconsize="small"] > toolbarpaletteitem > #home-button > .toolbarbutton-icon,
500 #PersonalToolbar[iconsize="small"] > #home-button > .toolbarbutton-icon {
501   /* width: 16px;
502   height: 16px; */
503 }
504
505 #PersonalToolbar > #home-button {
506   cursor: pointer;
507 }
508
509 #PersonalToolbar > #home-button[disabled="true"] {
510   cursor: default !important;
511 }
512
513 /*
514   In customize mode we hide the normal bookmark items and show a placeholder
515   for the drag/drop UI.
516 */
517 .bookmarks-toolbar-customize {
518   list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-open.gif");
519   display: none;
520   max-width: 15em !important;
521 }
522
523 toolbarpaletteitem[place] > #personal-bookmarks > .bookmarks-toolbar-customize {
524   display: -moz-box;
525 }
526
527 toolbarpaletteitem[place="palette"] > #personal-bookmarks > .bookmarks-toolbar-customize {
528   -moz-box-orient: vertical;
529 }
530
531 toolbarpaletteitem[place="toolbar"] > #personal-bookmarks > .bookmarks-toolbar-overflow-items,
532 toolbarpaletteitem[place="toolbar"] > #personal-bookmarks > .bookmarks-toolbar-items {
533   visibility: collapse;
534 }
535
536 toolbarpaletteitem[place="palette"] > #personal-bookmarks > .bookmarks-toolbar-overflow-items,
537 toolbarpaletteitem[place="palette"] > #personal-bookmarks > .bookmarks-toolbar-items {
538   display: none;
539 }
540
541 /* ::::: feeds ::::: */
542
543 #feedsMenu {
544   list-style-image: url("chrome://navigator/skin/linkButtons/feeds.png") !important;
545   -moz-image-region: rect(0px 16px 16px 0px);
546 }
547
548 #feedsMenu[disabled="true"] {
549   -moz-image-region: rect(32px 16px 48px 0px);
550 }
551
552 #feedsButton {
553   list-style-image: url("chrome://navigator/skin/linkButtons/feeds.png");
554   -moz-image-region: rect(0px 32px 16px 16px);
555 }
556
557 #feedsButton:hover {
558   -moz-image-region: rect(16px 32px 32px 16px);
559 }
560
561 #feedsButton:hover:active {
562   -moz-image-region: rect(48px 32px 64px 16px);
563 }