add fitting tabbrowser icons - leave original connection/loading APNGs as it's hard...
[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 /* ::::: primary toolbar buttons ::::: */
48
49 #back-button {
50   list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
51   -moz-image-region: rect(42px 25px 63px 0px);
52 }
53
54 #back-button[disabled="true"] {
55   -moz-image-region: rect(42px 50px 63px 25px);
56 }
57
58 #back-button:not([disabled="true"]):hover,
59 #back-button:not([disabled="true"]):hover:active,
60 #back-button[open="true"] {
61   -moz-image-region: rect(42px 75px 63px 50px);
62 }
63
64 #forward-button {
65   list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
66   -moz-image-region: rect(63px 25px 84px 0px);
67 }
68
69 #forward-button[disabled="true"] {
70   -moz-image-region: rect(63px 50px 84px 25px);
71 }
72
73 #forward-button:not([disabled="true"]):hover,
74 #forward-button:not([disabled="true"]):hover:active,
75 #forward-button[open="true"] {
76   -moz-image-region: rect(63px 75px 84px 50px);
77 }
78
79 #reload-button {
80   list-style-image: url("chrome://navigator/skin/icons/navigatoricons.png");
81   -moz-image-region: rect(0px 25px 21px 0px);
82 }
83
84 #reload-button[disabled="true"] {
85   -moz-image-region: rect(0px 50px 21px 25px);
86 }
87
88 #reload-button:not([disabled="true"]):hover,
89 #reload-button:not([disabled="true"]):hover:active {
90   -moz-image-region: rect(0px 75px 21px 50px);
91 }
92
93 #stop-button {
94   list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
95   -moz-image-region: rect(21px 25px 42px 0px);
96 }
97
98 #stop-button[disabled="true"] {
99   -moz-image-region: rect(21px 50px 42px 25px);
100 }
101
102 #stop-button:not([disabled="true"]):hover,
103 #stop-button:not([disabled="true"]):hover:active {
104   -moz-image-region: rect(21px 75px 42px 50px);
105 }
106
107 #print-button {
108   list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
109   -moz-image-region: rect(0px 25px 21px 0px);
110 }
111
112 #print-button[disabled="true"] {
113   -moz-image-region: rect(0px 50px 21px 25px);
114 }
115
116 #print-button:not([disabled="true"]):hover,
117 #print-button:not([disabled="true"]):hover:active,
118 #print-button[open="true"] {
119   -moz-image-region: rect(0px 75px 21px 50px);
120 }
121
122 #home-button {
123   list-style-image: url("chrome://communicator/skin/icons/communicatoricons.png");
124   -moz-image-region: rect(84px 25px 105px 0px);
125 }
126
127 #home-button[disabled="true"] {
128   -moz-image-region: rect(84px 50px 105px 25px);
129 }
130
131 #home-button:not([disabled="true"]):hover,
132 #home-button:not([disabled="true"]):hover:active {
133   -moz-image-region: rect(84px 75px 105px 50px);
134 }
135
136 #sync-button {
137   list-style-image: url("chrome://communicator/skin/sync/sync-32.png");
138 }
139
140 #sync-button[status=active] {
141   list-style-image: url("chrome://communicator/skin/sync/sync-32-throbber.png");
142 }
143
144 #clear-button {
145   list-style-image: url("chrome://global/skin/icons/close-button.gif");
146 }
147
148 #clear-button:hover {
149   list-style-image: url("chrome://global/skin/icons/close-button-hover.gif");
150 }
151
152 /* ::::: small primary toolbar buttons ::::: */
153
154 toolbar[iconsize="small"] > #back-button {
155   list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
156   -moz-image-region: rect(32px 16px 48px 0);
157 }
158
159 toolbar[iconsize="small"] > #back-button[disabled="true"] {
160   -moz-image-region: rect(32px 32px 48px 16px) !important;
161 }
162
163 toolbar[iconsize="small"] > #back-button:not([disabled="true"]):hover,
164 toolbar[iconsize="small"] > #back-button:not([disabled="true"]):hover:active {
165   -moz-image-region: rect(32px 48px 48px 32px);
166 }
167
168 toolbar[iconsize="small"] > #forward-button {
169   list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
170   -moz-image-region: rect(48px 16px 64px 0);
171 }
172
173 toolbar[iconsize="small"] > #forward-button[disabled="true"] {
174   -moz-image-region: rect(48px 32px 64px 16px) !important;
175 }
176
177 toolbar[iconsize="small"] > #forward-button:not([disabled="true"]):hover,
178 toolbar[iconsize="small"] > #forward-button:not([disabled="true"]):hover:active {
179   -moz-image-region: rect(48px 48px 64px 32px);
180 }
181
182 toolbar[iconsize="small"] > #reload-button {
183   list-style-image: url("chrome://navigator/skin/icons/navigatoricons-small.png");
184   -moz-image-region: rect(0 16px 16px 0);
185 }
186
187 toolbar[iconsize="small"] > #reload-button[disabled="true"] {
188   -moz-image-region: rect(0 32px 16px 16px) !important;
189 }
190
191 toolbar[iconsize="small"] > #reload-button:not([disabled="true"]):hover,
192 toolbar[iconsize="small"] > #reload-button:not([disabled="true"]):hover:active {
193   -moz-image-region: rect(0 48px 16px 32px);
194 }
195
196 toolbar[iconsize="small"] > #stop-button {
197   list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
198   -moz-image-region: rect(16px 16px 32px 0);
199 }
200
201 toolbar[iconsize="small"] > #stop-button[disabled="true"] {
202   -moz-image-region: rect(16px 32px 32px 16px) !important;
203 }
204
205 toolbar[iconsize="small"] > #stop-button:not([disabled="true"]):hover,
206 toolbar[iconsize="small"] > #stop-button:not([disabled="true"]):hover:active {
207   -moz-image-region: rect(16px 48px 32px 32px);
208 }
209
210 toolbar[iconsize="small"] > #print-button {
211   list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
212   -moz-image-region: rect(0 16px 16px 0);
213 }
214
215 toolbar[iconsize="small"] > #print-button[disabled="true"] {
216   -moz-image-region: rect(0 32px 16px 16px) !important;
217 }
218
219 toolbar[iconsize="small"] > #print-button:not([disabled="true"]):hover,
220 toolbar[iconsize="small"] > #print-button:not([disabled="true"]):hover:active {
221   -moz-image-region: rect(0 48px 16px 32px);
222 }
223
224 toolbar[iconsize="small"] > #home-button {
225   list-style-image: url("chrome://communicator/skin/icons/communicatoricons-small.png");
226   -moz-image-region: rect(64px 16px 80px 0);
227 }
228
229 toolbar[iconsize="small"] > #home-button[disabled="true"] {
230   -moz-image-region: rect(64px 32px 80px 16px) !important;
231 }
232
233 toolbar[iconsize="small"] > #home-button:not([disabled="true"]):hover,
234 toolbar[iconsize="small"] > #home-button:not([disabled="true"]):hover:active {
235   -moz-image-region: rect(64px 48px 80px 32px);
236 }
237
238 toolbar[iconsize="small"] > toolbarpaletteitem > #sync-button,
239 toolbar[iconsize="small"] > #sync-button {
240   list-style-image: url("chrome://communicator/skin/sync/sync-16.png");
241 }
242
243 toolbar[iconsize="small"] > toolbarpaletteitem > #sync-button[status=active],
244 toolbar[iconsize="small"] > #sync-button[status=active] {
245   list-style-image: url("chrome://communicator/skin/sync/sync-16-throbber.png");
246 }
247
248 /* ::::: fullscreen window controls ::::: */
249
250 #window-controls {
251   -moz-box-align: center;
252   padding: 0 1px;
253   border-left: 3px solid #000000;
254   -moz-margin-start: 2px;
255 }
256
257 #window-controls > toolbarbutton {
258   padding: 3px;
259   -moz-padding-start: 2px;
260   -moz-padding-end: 1px;
261 }
262
263 toolbar[mode="text"] > #window-controls > toolbarbutton > .toolbarbutton-icon {
264   display: -moz-box;
265 }
266
267 #minimize-button {
268   list-style-image: url("chrome://navigator/skin/icons/win-minimize.gif");
269 }
270
271 #minimize-button:hover {
272   list-style-image: url("chrome://navigator/skin/icons/win-minimize-hover.gif");
273 }
274
275 #restore-button {
276   list-style-image: url("chrome://navigator/skin/icons/win-restore.gif");
277 }
278
279 #restore-button:hover {
280   list-style-image: url("chrome://navigator/skin/icons/win-restore-hover.gif");
281 }
282
283 #close-button {
284   list-style-image: url("chrome://navigator/skin/icons/win-close.gif");
285 }
286
287 #close-button:hover {
288   list-style-image: url("chrome://navigator/skin/icons/win-close-hover.gif");
289 }
290
291 /* ::::: nav-bar-inner ::::: */
292
293 .nav-bar-class {
294   -moz-padding-start: 1px;
295   -moz-padding-end: 1px;
296   min-width: 0px;
297   -moz-box-align: center;
298 }
299
300 #urlbar {
301   border-radius: 5px;
302   margin: 0;
303   -moz-margin-start: 3px;
304 }
305
306 .urlbar-security-level {
307   border-radius: 3px 0 0 3px;
308   padding: 2px;
309 }
310
311 .urlbar-security-level[level="high"],
312 .urlbar-security-level[level="low"] {
313   background-color: #FFCF00;
314   color: #000000;
315 }
316
317 #wrapper-nav-bar-inner[place="palette"] > #nav-bar-inner > .button-toolbar,
318 #wrapper-nav-bar-inner[place="palette"] > #nav-bar-inner > #urlbar > .urlbar-icons {
319   display: none;
320 }
321
322 /* ::::: notification popups ::::: */
323
324 .popup-notification-icon {
325   width: 64px;
326   height: 64px;
327   -moz-margin-end: 10px;
328 }
329
330 .popup-notification-icon[popupid="geolocation"] {
331   list-style-image: url("chrome://communicator/skin/icons/geolocation-64.png");
332 }
333
334 .popup-notification-icon[popupid="addon-install-disabled"],
335 .popup-notification-icon[popupid="addon-install-blocked"],
336 .popup-notification-icon[popupid="addon-install-started"],
337 .popup-notification-icon[popupid="addon-install-cancelled"],
338 .popup-notification-icon[popupid="addon-install-failed"],
339 .popup-notification-icon[popupid="addon-install-complete"] {
340   list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric.png");
341   width: 32px;
342   height: 32px;
343 }
344
345 .popup-notification-icon[popupid="indexedDB-permissions-prompt"],
346 .popup-notification-icon[popupid="indexedDB-quota-prompt"] {
347   list-style-image: url("chrome://global/skin/icons/question-64.png");
348 }
349
350 .popup-notification-icon[popupid="password-change"],
351 .popup-notification-icon[popupid="password-save"] {
352   list-style-image: url("chrome://mozapps/skin/passwordmgr/key-64.png");
353 }
354
355 /* Notification icon box */
356 #notification-popup-box {
357   -moz-margin-end: 3px;
358 }
359
360 .notification-anchor-icon:-moz-focusring {
361   outline: 1px dotted;
362 }
363
364 #default-notification-icon {
365   list-style-image: url("chrome://global/skin/icons/information-16.png");
366   width: 16px;
367   height: 16px;
368 }
369
370 #geo-notification-icon {
371   list-style-image: url("chrome://communicator/skin/icons/geolocation-16.png");
372   width: 16px;
373   height: 16px;
374 }
375
376 #addons-notification-icon {
377   list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric-16.png");
378   width: 16px;
379   height: 16px;
380 }
381
382 #indexedDB-notification-icon {
383   list-style-image: url("chrome://global/skin/icons/question-16.png");
384   width: 16px;
385   height: 16px;
386 }
387
388 #password-notification-icon {
389   list-style-image: url("chrome://mozapps/skin/passwordmgr/key-16.png");
390   width: 16px;
391   height: 16px;
392 }
393
394 /* ::::: page proxy icon ::::: */
395
396 #page-proxy-deck,
397 #page-proxy-favicon,
398 #page-proxy-button {
399   width: 16px;
400   height: 16px;
401 }
402
403 #page-proxy-deck {
404   cursor: -moz-grab;
405   margin: 0;
406 }
407
408 #page-proxy-button {
409   list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-item.gif");
410 }
411
412 #page-proxy-favicon {
413   list-style-image: none;
414 }
415
416 /* ::::: autocomplete ::::: */
417
418 .autocomplete-treebody::-moz-tree-cell-text(value) {
419   -moz-padding-start: 13px;
420 }
421
422 .autocomplete-treebody::-moz-tree-cell-text(comment) {
423   color: #E7ADE7;
424 /*  font-style: italic; */
425 }
426
427 .autocomplete-search-box {
428   border-top: 1px solid #FF9F00;
429   background-color: #9C9CFF;
430   color: #000000;
431 }
432
433 .autocomplete-result-popup[nomatch] > .autocomplete-search-box {
434   border-top: 1px solid #9C9CFF;
435 }
436
437 .autocomplete-search-engine {
438   padding: 2px;
439 }
440
441 .autocomplete-search-engine[menuactive="true"] {
442   background-color: #008484;
443   color: #FFCF00;
444 }
445
446 .autocomplete-search-engine-img {
447   -moz-margin-end: 4px;
448 }
449
450 .autocomplete-history-dropmarker:hover {
451   background-color: #FFCF00;
452 }
453
454 .autocomplete-history-dropmarker:hover:active,
455 .autocomplete-history-dropmarker[open="true"] {
456   background-color: #FF9F00;
457 }
458
459 .autocomplete-treebody::-moz-tree-cell-text(treecolAutoCompleteComment) {
460   color: #E7ADE7;
461 }
462
463 /* ::::: go and searchbuttons ::::: */
464
465 #search-button,
466 #go-button {
467   margin: 0;
468   padding: 2px 0;
469   -moz-margin-start: 2px;
470   background-color: #000000;
471 }
472
473 #search-button:hover,
474 #go-button:hover {
475   background-color: #FFCF00;
476 }
477
478 /* care that those buttons base on the same min height of 16px that the urlbar
479    autocomplete box gets through site icon and urlbar icons at the right */
480 #search-button > .button-box,
481 #go-button > .button-box {
482   min-height: 16px;
483 }
484
485 #search-button {
486 /*  list-style-image: url("chrome://communicator/skin/icons/search.gif"); */
487 }
488
489 /*
490 toolbar[mode="text"] #search-button > .button-box > .button-icon,
491 toolbar[mode="icons"] #search-button > .button-box > .button-text {
492   display: none;
493 }
494 */
495
496 /* ::::: search bar ::::: */
497
498 .autocomplete-treebody::-moz-tree-cell-text(suggesthint, treecolAutoCompleteComment),
499 .autocomplete-treebody::-moz-tree-cell-text(suggestfirst, treecolAutoCompleteComment) {
500   color: #E7ADE7;
501   font-size: smaller;
502 }
503
504 .autocomplete-treebody::-moz-tree-cell(suggesthint) {
505   border-top: 1px solid #E7ADE7;
506 }
507
508 /* ::::: throbber ::::: */
509
510 #throbber-box {
511   -moz-margin-start: 2px;
512 }
513
514 /* ::::: security button ::::: */
515
516 #security-button {
517   list-style-image: url("chrome://communicator/skin/icons/lock-insecure.gif");
518 }
519
520 #security-button > .statusbarpanel-contentbox > .statusbarpanel-text {
521   margin: 0px;
522 }
523
524 /* |high| and |low| styles could be different, to better reflect the secure level... */
525 #security-button[level="high"] > .statusbarpanel-contentbox,
526 #security-button[level="low"] > .statusbarpanel-contentbox {
527   list-style-image: url("chrome://communicator/skin/icons/lock-secure-hover.png");
528   background-color: #FFCF00;
529 }
530
531 #security-button[level="broken"] > .statusbarpanel-contentbox {
532   list-style-image: url("chrome://communicator/skin/icons/lock-broken.gif");
533   background-color: #FF0000;
534 }
535
536 #security-button[label][level="high"] > .statusbarpanel-contentbox {
537   list-style-image: url("chrome://communicator/skin/icons/lock-secure.gif");
538   background-color: #008484;
539   color: #FFCF00;
540 }
541
542 #ev-button {
543   list-style-image: url("chrome://communicator/skin/icons/identity.png");
544 }
545
546 #popupIcon {
547   list-style-image:url("chrome://navigator/skin/icons/popup-blocked.gif");
548 }
549
550 #invalid-form-popup {
551   border: 1px solid #FFCF00;
552   border : 1px outset #FFFFCC;
553   padding: 2px 3px 0px 3px;
554   max-width: 40em;
555   background-color: #9C9CFF;
556   color: #000000;
557   font-weight: bold;
558 }
559
560 /* ::::: personal toolbar ::::: */
561
562 #bookmarks-button {
563   list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-closed.gif");
564 }
565
566 #bookmarks-button[open="true"] {
567   list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-open.gif");
568 }
569
570 toolbarbutton.chevron {
571   list-style-image: url("chrome://navigator/skin/icons/chevron.gif") !important;
572 }
573
574 toolbarbutton.chevron:hover,
575 toolbarbutton.chevron[open="true"] {
576   list-style-image: url("chrome://navigator/skin/icons/chevron-hover.gif") !important;
577 }
578
579 toolbarbutton.chevron > .toolbarbutton-menu-dropmarker {
580   display: none;
581 }
582
583 toolbarbutton.chevron > .toolbarbutton-text {
584   display: none; /* hide chevron label which has a width even if blank */
585 }
586
587 toolbar[mode="text"] toolbarbutton.chevron > .toolbarbutton-icon {
588   display: -moz-box; /* display chevron icon in text mode */
589 }
590
591 /* Prevent [mode="icons"|"text"] from hiding the label and icon */
592 #bookmarks-ptf .bookmark-item > .toolbarbutton-text,
593 #bookmarks-ptf .bookmark-item > .toolbarbutton-icon {
594   display: -moz-box !important;
595 }
596
597 #PersonalToolbar[iconsize="small"] > toolbarpaletteitem > #home-button > .toolbarbutton-icon,
598 #PersonalToolbar[iconsize="small"] > #home-button > .toolbarbutton-icon {
599   /* width: 16px;
600   height: 16px; */
601 }
602
603 #PersonalToolbar > #home-button {
604   cursor: pointer;
605 }
606
607 #PersonalToolbar > #home-button[disabled="true"] {
608   cursor: default !important;
609 }
610
611 /*
612   In customize mode we hide the normal bookmark items and show a placeholder
613   for the drag/drop UI.
614 */
615 .bookmarks-toolbar-customize {
616   list-style-image: url("chrome://communicator/skin/bookmarks/bookmarksToolbar.png");
617   display: none;
618   max-width: 15em !important;
619 }
620
621 #wrapper-personal-bookmarks[place="palette"] > .toolbarpaletteitem-box {
622   width: 16px;
623   height: 16px;
624   background: url("chrome://communicator/skin/bookmarks/bookmarksToolbar.png") no-repeat;
625 }
626
627 /* ::::: star button ::::: */
628
629 #star-button {
630   list-style-image: url("chrome://communicator/skin/bookmarks/bookmark.png");
631   -moz-image-region: rect(16px 16px 32px 0px);
632 }
633
634 #star-button:hover {
635   -moz-image-region: rect(16px 32px 32px 16px);
636 }
637
638 #star-button:hover:active {
639   -moz-image-region: rect(16px 48px 32px 32px);
640 }
641
642 #star-button[starred="true"] {
643   -moz-image-region: rect(0px 16px 16px 0px);
644 }
645
646 #star-button[starred="true"]:hover {
647   -moz-image-region: rect(0px 32px 16px 16px);
648 }
649
650 #star-button[starred="true"]:hover:active {
651   -moz-image-region: rect(0px 48px 16px 32px);
652 }
653
654 #editBookmarkPanelStarIcon {
655   list-style-image: url("chrome://communicator/skin/bookmarks/bookmark.png");
656   -moz-image-region: rect(0px 16px 16px 0px);
657 }
658
659 /* ::::: feeds ::::: */
660
661 .feedsMenu {
662   list-style-image: url("chrome://navigator/skin/linkButtons/feeds.png");
663   -moz-image-region: rect(0px 16px 16px 0px);
664 }
665
666 .feedsMenu[disabled="true"] {
667   -moz-image-region: rect(32px 16px 48px 0px);
668 }
669
670 .feedsButton {
671   list-style-image: url("chrome://navigator/skin/linkButtons/feeds.png");
672   -moz-image-region: rect(0px 32px 16px 16px);
673 }
674
675 .feedsButton:hover {
676   -moz-image-region: rect(16px 32px 32px 16px);
677 }
678
679 .feedsButton:hover:active {
680   -moz-image-region: rect(48px 32px 64px 16px);
681 }