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