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