a few more steps to get LCARStrek for Firefox 4 in shape
[themes.git] / LCARStrek / browser / browser.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 mozilla.org code.
15  *
16  * The Initial Developer of the Original Code is
17  * Netscape Communications Corporation.
18  * Portions created by the Initial Developer are Copyright (C) 1998-1999
19  * the Initial Developer. All Rights Reserved.
20  *
21  * Contributor(s):
22  *   Joe Hewitt (hewitt@netscape.com)
23  *   Jason Kersey (kerz@netscape.com)
24  *   Pierre Chanial (chanial@noos.fr)
25  *   Dean Tessman (dean_tessman@hotmail.com)
26  *   Blake Ross (blake@cs.stanford.edu)
27  *   Pamela Greene (pamg.bugs@gmail.com)
28  *   Dão Gottwald (dao@mozilla.com)
29  *   Jim Mathies (jmathies@mozilla.com)
30  *   Drew Willcoxon (adw@mozilla.com)
31  *
32  * Alternatively, the contents of this file may be used under the terms of
33  * either the GNU General Public License Version 2 or later (the "GPL"), or
34  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
35  * in which case the provisions of the GPL or the LGPL are applicable instead
36  * of those above. If you wish to allow use of your version of this file only
37  * under the terms of either the GPL or the LGPL, and not to allow others to
38  * use your version of this file under the terms of the MPL, indicate your
39  * decision by deleting the provisions above and replace them with the notice
40  * and other provisions required by the GPL or the LGPL. If you do not delete
41  * the provisions above, a recipient may use your version of this file under
42  * the terms of any one of the MPL, the GPL or the LGPL.
43  *
44  * ***** END LICENSE BLOCK ***** */
45
46 @import url("chrome://global/skin/");
47
48 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
49 @namespace html url("http://www.w3.org/1999/xhtml");
50
51 toolbar {
52   -moz-binding: url("chrome://global/skin/globalBindings.xml#toolbar");
53 }
54
55 toolbar[type="menubar"][autohide="true"] {
56   -moz-binding: url("chrome://global/skin/globalBindings.xml#toolbar-menubar-autohide");
57 }
58
59 menubar {
60   -moz-binding: url("chrome://global/skin/globalBindings.xml#menubar");
61 }
62
63 #menubar-items {
64   -moz-box-orient: vertical; /* for flex hack */
65 }
66
67 #main-menubar {
68   -moz-box-flex: 1; /* make menu items expand to fill toolbar height */
69 }
70
71 /* ::::: primary toolbar ::::: */
72
73 .toolbar-primary > .toolbar-box > .toolbar-holder {
74   background-color: #FF9F00;
75 }
76
77 .toolbar-primary > .toolbar-box > .toolbar-startcap,
78 .toolbar-primary > .toolbar-box > .toolbar-endcap {
79   background-color: #9C9CFF;
80 }
81
82
83 #navigator-toolbox {
84 }
85
86 #navigator-toolbox::after {
87   content: "";
88   display: -moz-box;
89   -moz-box-ordinal-group: 101; /* tabs toolbar is 100 */
90   height: 1px;
91 }
92 #navigator-toolbox[tabsontop=false]::after,
93 #main-window[disablechrome] #navigator-toolbox::after {
94   visibility: collapse;
95 }
96
97 #navigator-toolbox > toolbar:not(:-moz-lwtheme) {
98 }
99
100 #main-window[tabsintitlebar]:not([inFullscreen]) #toolbar-menubar[inactive] ~ #TabsToolbar:not(:-moz-lwtheme) {
101   /* like menubar */
102   background-color: #6000CF;
103   color: #FF9F00;
104 }
105 #main-window[tabsintitlebar]:not([inFullscreen]) #toolbar-menubar[inactive] ~ #TabsToolbar:not(:-moz-lwtheme):-moz-window-inactive {
106   background-color: #8050B0;
107   color: #FF9F00;
108 }
109
110 #main-window[tabsintitlebar] #titlebar:-moz-lwtheme {
111   visibility: hidden;
112 }
113 #main-window[tabsintitlebar] #titlebar-content:-moz-lwtheme {
114   -moz-binding: url("chrome://global/content/bindings/general.xml#windowdragbox");
115   visibility: visible;
116 }
117
118 #navigator-toolbox[tabsontop="true"] > #nav-bar,
119 #navigator-toolbox[tabsontop="true"]:not([customizing]) > #nav-bar[collapsed="true"] + toolbar,
120 #navigator-toolbox[tabsontop="true"]:not([customizing]) > #nav-bar[collapsed="true"] + #customToolbars + #PersonalToolbar {
121   /* background-image: -moz-linear-gradient(@toolbarHighlight@, rgba(255,255,255,0)); */
122 }
123
124 #personal-bookmarks {
125 /*  min-height: 24px; */
126 }
127
128 #print-preview-toolbar:not(:-moz-lwtheme) {
129   /* -moz-appearance: toolbox; */
130 }
131
132 /* ::::: app menu button ::::: */
133
134 #appmenu-button {
135   background-color: #FF9F00;
136   background-clip: padding-box;
137   border-radius: 0;
138   border: none;
139   border-left: 3px solid #000000;
140   border-right: 3px solid #000000;
141   color: #000000;
142   font-weight: bold;
143   padding: 0 1.5em .05em;
144   margin: 0 0 2px;
145 }
146
147 #main-window[privatebrowsingmode=temporary] #appmenu-button {
148   background-color: #6000CF;
149   color: #FFCF00;
150 }
151
152 #appmenu-button:hover:not(:active):not([open]) {
153 }
154
155 #main-window[privatebrowsingmode=temporary] #appmenu-button:hover:not(:active):not([open]) {
156 }
157
158 #appmenu-button:hover,
159 #appmenu-button:hover:active,
160 #appmenu-button[open] {
161   background-color: #FFCF00;
162   color: #000000;
163 }
164
165 #appmenu-button > .button-box > .button-menu-dropmarker {
166   list-style-image: url("appmenu-dropmarker.png");
167   width: auto;
168   height: auto;
169   padding: 0;
170   margin: 0;
171   -moz-margin-start: .5em;
172 }
173
174 #appmenuPrimaryPane > menuitem,
175 #appmenuSecondaryPane > menuitem,
176 #appmenuPrimaryPane > menu {
177   padding: 2px;
178 }
179
180 .splitmenu-menuitem {
181   -moz-padding-start: 2px;
182   padding-top: 2px;
183   padding-bottom: 2px;
184   -moz-margin-end: 1px;
185 }
186
187 .splitmenu-menu {
188   padding-top: 2px;
189   padding-bottom: 2px;
190   -moz-box-pack: end;
191 }
192
193 .appmenu-edit-button {
194 }
195
196 .appmenu-edit-button[disabled="true"] {
197 }
198
199 #appmenuPrimaryPane {
200   -moz-border-end: 1px solid #9C9CFF;
201 }
202 /*
203   #appmenu-popup {
204   }
205   #appmenuPrimaryPane {
206   }
207   #appmenuSecondaryPane {
208   }
209   #appmenuSecondaryPane:-moz-locale-dir(rtl) {
210   }
211
212   #appmenuSecondaryPane menupopup {
213   }
214
215   .appmenu-menuseparator {
216   }
217
218   .appmenu-edit-button:not([disabled]):hover {
219   }
220 */
221 #appmenuSecondaryPane-spacer {
222   min-height: 1em;
223 }
224
225 #appmenu-editmenu {
226   -moz-box-pack: end;
227 }
228
229 #appmenu_print,
230 #appmenu_print_popup,
231 .appmenu-edit-button,
232 #appmenu-editmenu-cut,
233 #appmenu-editmenu-copy,
234 #appmenu-editmenu-paste,
235 #appmenu-quit {
236   list-style-image: url("appmenu-icons.png");
237 }
238
239 #appmenu-cut,
240 #appmenu-editmenu-cut {
241   -moz-image-region: rect(0 16px 16px 0);
242 }
243
244 #appmenu-copy,
245 #appmenu-editmenu-copy {
246   -moz-image-region: rect(0 32px 16px 16px);
247 }
248
249 #appmenu-paste,
250 #appmenu-editmenu-paste {
251   -moz-image-region: rect(0 48px 16px 32px);
252 }
253
254 #appmenu_print,
255 #appmenu_print_popup {
256   -moz-image-region: rect(0 64px 16px 48px);
257 }
258
259 #appmenu-quit {
260   -moz-image-region: rect(0 80px 16px 64px);
261 }
262
263 #appmenu-edit-label {
264   -moz-appearance: none;
265   background: transparent;
266   font-style: italic;
267 }
268
269 #appmenu_bookmarks {
270   list-style-image: url("chrome://browser/skin/places/bookmark.png");
271   -moz-image-region: rect(0px 48px 16px 32px);
272 }
273
274 #appmenu_privateBrowsing {
275   list-style-image: url("chrome://browser/skin/Privacy-16.png");
276 }
277
278 #appmenu_addons {
279   list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric-16.png");
280 }
281
282 #BMB_bookmarkThisPage,
283 #appmenu_bookmarkThisPage {
284   list-style-image: url("chrome://browser/skin/places/bookmark.png");
285   -moz-image-region: rect(0 16px 16px 0);
286 }
287
288 /* ::::: titlebar ::::: */
289
290 #main-window[sizemode="normal"] > #titlebar {
291 }
292
293 #main-window[sizemode="maximized"] > #titlebar {
294 }
295
296 #titlebar-buttonbox {
297 }
298
299 #main-window[sizemode="maximized"] #titlebar-buttonbox {
300 }
301
302 .titlebar-placeholder[type="appmenu-button"] {
303   margin-left: 4px;
304 }
305
306 .titlebar-placeholder[type="caption-buttons"] {
307   margin-left: 10px;
308 }
309
310 /* titlebar command buttons */
311
312 #titlebar-min {
313 }
314
315 #titlebar-max {
316 }
317
318 #main-window[sizemode="maximized"] #titlebar-max {
319 }
320
321 #titlebar-close {
322 }
323
324 /* ::::: bookmark buttons ::::: */
325
326 .bookmark-item > .toolbarbutton-icon {
327   width: 16px;
328   height: 16px;
329 }
330
331 /* Prevent [mode="icons"] from hiding the label */
332 .bookmark-item > .toolbarbutton-text {
333   display: -moz-box !important;
334 }
335
336 .bookmark-item > .toolbarbutton-menu-dropmarker {
337   display: none;
338 }
339
340 #wrapper-personal-bookmarks[place="palette"] > .toolbarpaletteitem-box {
341   width: 16px;
342   height: 16px;
343   background: url("chrome://browser/skin/places/bookmarksToolbar.png") no-repeat;
344 }
345
346 .bookmarks-toolbar-customize {
347   max-width: 15em !important;
348   list-style-image: url("chrome://browser/skin/places/bookmarksToolbar.png") !important;
349 }
350
351 /* ::::: bookmark menus ::::: */
352
353 menu.bookmark-item,
354 menuitem.bookmark-item {
355   min-width: 0;
356   max-width: 32em;
357 }
358
359 .bookmark-item > .menu-iconic-left {
360   margin-top: 0;
361   margin-bottom: 0;
362 }
363
364 .bookmark-item > .menu-iconic-left > .menu-iconic-icon {
365   -moz-padding-start: 0px;
366 }
367
368 /* ::::: bookmark items ::::: */
369
370 .bookmark-item  {
371   list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-item.gif");
372 }
373
374 .bookmark-item[container] {
375   list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-closed.gif");
376 }
377
378 .bookmark-item[container][open] {
379   list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-open.gif");
380 }
381
382 .bookmark-item[container][livemark] { 
383   list-style-image: url("chrome://browser/skin/livemark-folder.png");
384   -moz-image-region: auto;
385 }
386
387 .bookmark-item[container][livemark] .bookmark-item {
388   list-style-image: url("chrome://browser/skin/livemark-item.png");
389   -moz-image-region: auto;
390 }
391
392 .bookmark-item[container][query] {
393   list-style-image: url("chrome://browser/skin/places/query.png");
394   -moz-image-region: auto;
395 }
396
397 .bookmark-item[query][tagContainer] {
398   list-style-image: url("chrome://mozapps/skin/places/tagContainerIcon.png");
399   -moz-image-region: auto;
400 }
401
402 .bookmark-item[query][dayContainer] {
403   list-style-image: url("chrome://browser/skin/places/calendar.png");
404   -moz-image-region: auto;
405 }
406
407 .bookmark-item[query][hostContainer] {
408   list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-closed.gif");
409 }
410
411 .bookmark-item[query][hostContainer][open] {
412   list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-open.gif");
413 }
414
415 /* ::::: primary toolbar buttons ::::: */
416
417 .toolbarbutton-1 {
418   list-style-image: url("chrome://browser/skin/Toolbar.png");
419 }
420
421 .toolbarbutton-1:not([type="menu-button"]) {
422   -moz-box-orient: vertical;
423 }
424
425 .toolbarbutton-1,
426 .toolbarbutton-1 > .toolbarbutton-menubutton-button {
427   min-width: 36px;
428   min-height: 36px;
429 }
430
431 .toolbarbutton-1:not([type="menu-button"]) {
432   -moz-box-orient: vertical;
433 }
434
435 .toolbarbutton-1,
436 .toolbarbutton-1 > .toolbarbutton-menubutton-button,
437 .toolbarbutton-1[disabled="true"]:hover:active,
438 .toolbarbutton-1[disabled="true"]:hover:active > .toolbarbutton-menubutton-button {
439   padding: 1px 2px;
440 }
441
442 .toolbarbutton-1:hover:active,
443 .toolbarbutton-1[open="true"],
444 .toolbarbutton-1:hover:active > .toolbarbutton-menubutton-button {
445   padding-top: 2px;
446   padding-bottom: 0px;
447   -moz-padding-start: 3px;
448   -moz-padding-end: 1px;
449 }
450
451 /* ::::: small primary toolbar buttons ::::: */
452
453 #nav-bar {
454   /* force iconsize="small" on this toolbar */
455   counter-reset: smallicons;
456 }
457
458 toolbar[mode="text"] .toolbarbutton-1,
459 toolbar[mode="icons"] .toolbarbutton-1,
460 toolbar[iconsize="small"] .toolbarbutton-1,
461 :-moz-any(#TabsToolbar, #addon-bar) .toolbarbutton-1,
462 toolbar[mode="text"] .toolbarbutton-menubutton-button,
463 toolbar[mode="icons"] .toolbarbutton-menubutton-button,
464 toolbar[iconsize="small"] .toolbarbutton-menubutton-button,
465 :-moz-any(#TabsToolbar, #addon-bar) .toolbarbutton-1 > .toolbarbutton-menubutton-button {
466   min-width: 0px;
467   min-height: 0px;
468 }
469
470 toolbar[mode="text"] .toolbarbutton-menubutton-dropmarker {
471   padding-top: 4px;
472   padding-bottom: 8px;
473   -moz-padding-start: 1px;
474   -moz-padding-end: 1px;
475 }
476
477 toolbar[mode="icons"] .toolbarbutton-menubutton-dropmarker,
478 toolbar[iconsize="small"] .toolbarbutton-menubutton-dropmarker,
479 :-moz-any(#TabsToolbar, #addon-bar) .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker {
480   padding-top: 0px;
481   padding-bottom: 13px;
482   -moz-padding-start: 1px;
483   -moz-padding-end: 1px;
484 }
485
486 toolbar[mode="text"] .toolbarbutton-1[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
487 toolbar[mode="text"] .toolbarbutton-1[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker {
488   padding-top: 5px;
489   padding-bottom: 7px;
490   -moz-padding-start: 0px;
491   -moz-padding-end: 2px;
492 }
493
494 toolbar[mode="icons"] .toolbarbutton-1[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
495 toolbar[mode="icons"] .toolbarbutton-1[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker,
496 toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
497 toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker,
498 :-moz-any(#TabsToolbar, #addon-bar) .toolbarbutton-1[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
499 :-moz-any(#TabsToolbar, #addon-bar) .toolbarbutton-1[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker {
500   padding-top: 1px;
501   padding-bottom: 12px;
502   -moz-padding-start: 0px;
503   -moz-padding-end: 2px;
504 }
505
506 toolbar[mode="text"] .toolbarbutton-menubutton-dropmarker[disabled="true"] {
507   padding-top: 4px !important;
508   padding-bottom: 8px !important;
509   -moz-padding-start: 1px !important;
510   -moz-padding-end: 1px !important;
511 }
512
513 toolbar[mode="icons"] .toolbarbutton-menubutton-dropmarker[disabled="true"],
514 toolbar[iconsize="small"] > .toolbarbutton-menubutton-dropmarker[disabled="true"] {
515   padding-top: 0px !important;
516   padding-bottom: 13px !important;
517   -moz-padding-start: 1px !important;
518   -moz-padding-end: 1px !important;
519 }
520
521 toolbar[mode="icons"] .toolbarbutton-text,
522 toolbar[mode="text"] .toolbarbutton-icon {
523   display: none;
524 }
525
526 toolbar[mode="text"] .toolbarbutton-text {
527   padding: 4px 0;
528 }
529
530 toolbar[mode="text"] .toolbarbutton-1,
531 toolbar[mode="text"] .toolbarbutton-1 > .toolbarbutton-menubutton-button {
532   -moz-box-orient: horizontal;
533 }
534
535 toolbar[mode="full"] .toolbarbutton-1,
536 toolbar[mode="full"] .toolbarbutton-1 > .toolbarbutton-menubutton-button {
537   min-width: 30px;
538 }
539
540 #navigator-toolbox[iconsize=small] > #nav-bar {
541 }
542
543 #navigator-toolbox[iconsize=large][mode=icons] > #nav-bar {
544 }
545
546
547 /* unified back/forward button */
548
549 #back-button {
550   -moz-image-region: rect(0, 18px, 18px, 0);
551   -moz-margin-end: 0;
552 }
553
554 #back-button:not([disabled="true"]):hover {
555   -moz-image-region: rect(18px, 18px, 36px, 0);
556 }
557
558 #back-button[disabled="true"] {
559   -moz-image-region: rect(36px, 18px, 54px, 0);
560 }
561
562 #forward-button {
563   -moz-image-region: rect(0, 36px, 18px, 18px);
564   border-left: none;
565   -moz-margin-start: 0;
566 }
567
568 #forward-button:not([disabled="true"]):hover {
569   -moz-image-region: rect(18px, 36px, 36px, 18px);
570 }
571
572 #forward-button[disabled="true"] {
573   -moz-image-region: rect(36px, 36px, 54px, 18px);
574 }
575
576 #back-button:-moz-locale-dir(rtl) > .toolbarbutton-icon,
577 #forward-button:-moz-locale-dir(rtl),
578 #forward-button:-moz-locale-dir(rtl) > .toolbarbutton-text {
579   -moz-transform: scaleX(-1);
580 }
581
582 #nav-bar #back-button {
583   -moz-margin-end: 0 !important;
584 }
585
586 #nav-bar #forward-button {
587   border-left-style: none;
588   -moz-margin-start: 0 !important;
589 }
590
591 #nav-bar #back-button:-moz-locale-dir(ltr) {
592   border-top-right-radius: 0;
593   border-bottom-right-radius: 0;
594 }
595
596 #nav-bar #back-button:-moz-locale-dir(rtl),
597 #nav-bar #forward-button {
598   border-top-left-radius: 0;
599   border-bottom-left-radius: 0;
600 }
601
602 #navigator-toolbox[iconsize="large"][mode="icons"] > #nav-bar #back-button {
603   border-radius: 10000px;
604   width: 30px;
605   height: 30px;
606   position: relative;
607   z-index: 1;
608   margin-top: -2px;
609   margin-bottom: -2px;
610   border: none;
611   -moz-image-region: rect(54px, 20px, 74px, 0);
612 }
613
614 #navigator-toolbox[iconsize="large"][mode="icons"] > #nav-bar #back-button:not([disabled="true"]):hover,
615 #navigator-toolbox[iconsize="large"][mode="icons"] > #nav-bar #back-button[open="true"] {
616   -moz-image-region: rect(54px, 40px, 74px, 20px);
617 }
618
619 #navigator-toolbox[iconsize="large"][mode="icons"] > #nav-bar #back-button[disabled="true"] {
620   -moz-image-region: rect(54px, 60px, 74px, 40px);
621 }
622
623 #navigator-toolbox[iconsize="large"][mode="icons"] > #nav-bar #back-button:not([disabled="true"]):not([open="true"]):not(:active):hover {
624 }
625
626 #navigator-toolbox[iconsize="large"][mode="icons"] > #nav-bar #back-button:not([disabled="true"]):hover:active,
627 #navigator-toolbox[iconsize="large"][mode="icons"] > #nav-bar #back-button[open="true"] {
628 }
629
630 #navigator-toolbox[iconsize="large"][mode="icons"] > #nav-bar[currentset*="unified-back-forward-button"],
631 #navigator-toolbox[iconsize="large"][mode="icons"] > #nav-bar:not([currentset]) {
632 /*  padding-top: 3px;
633   padding-bottom: 5px; */
634 }
635
636 #navigator-toolbox[iconsize="large"][mode="icons"][tabsontop="true"] > #nav-bar[currentset*="unified-back-forward-button"],
637 #navigator-toolbox[iconsize="large"][mode="icons"][tabsontop="true"] > #nav-bar:not([currentset]) {
638 /*  padding-top: 5px; */
639 }
640
641 #navigator-toolbox[iconsize="large"][mode="icons"] > #nav-bar #forward-button {
642   /*mask: url(keyhole-forward-mask.svg#mask); XXX: this regresses twinopen */
643   mask: url("chrome://browser/content/browser.xul#winstripe-keyhole-forward-mask");
644   -moz-margin-start: -6px !important;
645   padding-left: 7px;
646   padding-right: 3px;
647 }
648
649 #navigator-toolbox[iconsize="large"][mode="icons"] > #nav-bar #forward-button:not([disabled="true"]):not(:active):hover {
650   /*mask: url(keyhole-forward-mask.svg#mask-hover);*/
651   mask: url("chrome://browser/content/browser.xul#winstripe-keyhole-forward-mask-hover");
652 }
653
654 .unified-nav-back[_moz-menuactive]:-moz-locale-dir(ltr),
655 .unified-nav-forward[_moz-menuactive]:-moz-locale-dir(rtl) {
656   list-style-image: url("chrome://browser/skin/menu-back.png") !important;
657 }
658
659 .unified-nav-forward[_moz-menuactive]:-moz-locale-dir(ltr),
660 .unified-nav-back[_moz-menuactive]:-moz-locale-dir(rtl) {
661   list-style-image: url("chrome://browser/skin/menu-forward.png") !important;
662 }
663
664 /* stop button */
665
666 #stop-button {
667   -moz-image-region: rect(0, 54px, 18px, 36px);
668 }
669
670 /* reload button */
671
672 #reload-button {
673   -moz-image-region: rect(0, 72px, 18px, 54px);
674 }
675
676 /* home button */
677
678 #home-button.bookmark-item {
679   list-style-image: url("chrome://browser/skin/Toolbar.png");
680 }
681 #home-button {
682   -moz-image-region: rect(0, 90px, 18px, 72px);
683 }
684
685 /* tabview button */
686
687 #tabview-button,
688 #menu_tabview {
689   list-style-image: url("chrome://browser/skin/tabview/tabview.png");
690 }
691
692 #tabview-button {
693   -moz-image-region: rect(0, 90px, 18px, 72px);
694 }
695
696 #tabview-button[groups="0"] {
697   -moz-image-region: rect(0, 18px, 18px, 0);
698 }
699
700 #tabview-button[groups="1"] {
701   -moz-image-region: rect(0, 36px, 18px, 18px);
702 }
703
704 #tabview-button[groups="2"] {
705   -moz-image-region: rect(0, 54px, 18px, 36px);
706 }
707
708 #tabview-button[groups="3"] {
709   -moz-image-region: rect(0, 72px, 18px, 54px);
710 }
711
712 #menu_tabview {
713   -moz-image-region: rect(1px, 89px, 17px, 73px);
714 }
715
716 #menu_tabview[groups="0"] {
717   -moz-image-region: rect(1px, 17px, 17px, 1px);
718 }
719
720 #menu_tabview[groups="1"] {
721   -moz-image-region: rect(1px, 35px, 17px, 19px);
722 }
723
724 #menu_tabview[groups="2"] {
725   -moz-image-region: rect(1px, 53px, 17px, 37px);
726 }
727
728 #menu_tabview[groups="3"] {
729   -moz-image-region: rect(1px, 71px, 17px, 55px);
730 }
731
732 /* download manager button */
733
734 #downloads-button {
735   -moz-image-region: rect(0, 108px, 18px, 90px);
736 }
737
738 /* history sidebar button */
739
740 #history-button {
741   -moz-image-region: rect(0, 126px, 18px, 108px);
742 }
743
744 /* bookmark sidebar & menu buttons */
745
746 #bookmarks-button,
747 #bookmarks-menu-button {
748   -moz-image-region: rect(0, 144px, 18px, 126px);
749 }
750
751 #bookmarks-menu-button.bookmark-item {
752   list-style-image: url("chrome://browser/skin/Toolbar.png");
753 }
754
755 #bookmarks-menu-button.toolbarbutton-1 {
756   -moz-box-orient: horizontal;
757 }
758
759 /* print button */
760
761 #print-button {
762   -moz-image-region: rect(0, 162px, 18px, 144px);
763 }
764
765 /* toolbar new tab button */
766
767 #new-tab-button {
768   -moz-image-region: rect(0, 180px, 18px, 162px);
769 }
770
771 /* new window button */
772
773 #new-window-button {
774   -moz-image-region: rect(0, 198px, 18px, 180px);
775 }
776
777 /* cut button */
778
779 #cut-button {
780   -moz-image-region: rect(0, 216px, 18px, 198px);
781 }
782
783 /* copy button */
784
785 #copy-button {
786   -moz-image-region: rect(0, 234px, 18px, 216px);
787 }
788
789 /* paste button */
790
791 #paste-button {
792   -moz-image-region: rect(0, 252px, 18px, 234px);
793 }
794
795 /* fullscreen button */
796
797 #fullscreen-button {
798   -moz-image-region: rect(0, 270px, 18px, 252px);
799 }
800
801 /* zoom controls */
802
803 #zoom-out-button {
804   -moz-image-region: rect(0, 288px, 18px, 270px);
805   -moz-margin-end: 0;
806 }
807
808 #zoom-in-button {
809   -moz-image-region: rect(0, 306px, 18px, 288px);
810 }
811
812 #nav-bar #zoom-out-button {
813   -moz-margin-end: 0;
814 }
815
816 #nav-bar #zoom-in-button {
817   -moz-border-start: none;
818   -moz-margin-start: 0;
819 }
820
821 #nav-bar #zoom-out-button:-moz-locale-dir(ltr),
822 #nav-bar #zoom-in-button:-moz-locale-dir(rtl) {
823   border-top-right-radius: 0;
824   border-bottom-right-radius: 0;
825 }
826
827 #nav-bar #zoom-out-button:-moz-locale-dir(rtl),
828 #nav-bar #zoom-in-button:-moz-locale-dir(ltr) {
829   border-top-left-radius: 0;
830   border-bottom-left-radius: 0;
831 }
832
833 /* sync button */
834
835 #sync-button {
836   -moz-image-region: rect(0, 324px, 18px, 306px);
837 }
838
839 #sync-button[status="active"] {
840   list-style-image: url("chrome://browser/skin/sync-throbber.png");
841   -moz-image-region: rect(0, 18px, 18px, 0);
842 }
843
844 /* feed button */
845
846 #feed-button {
847   -moz-image-region: rect(0, 342px, 18px, 324px);
848 }
849
850 /* ::::: fullscreen window controls ::::: */
851
852 #TabsToolbar > #window-controls {
853   -moz-margin-start: 4px;
854 }
855
856 #minimize-button,
857 #restore-button,
858 #close-button {
859 /*  padding: 0; */
860 }
861
862 #minimize-button {
863   list-style-image: url("chrome://navigator/skin/icons/win-minimize.gif");
864 }
865
866 #minimize-button:hover {
867   list-style-image: url("chrome://navigator/skin/icons/win-minimize-hover.gif");
868 }
869
870 #restore-button {
871   list-style-image: url("chrome://navigator/skin/icons/win-restore.gif");
872 }
873
874 #restore-button:hover {
875   list-style-image: url("chrome://navigator/skin/icons/win-restore-hover.gif");
876 }
877
878 #close-button {
879   list-style-image: url("chrome://navigator/skin/icons/win-close.gif");
880 }
881
882 #close-button:hover {
883   list-style-image: url("chrome://navigator/skin/icons/win-close-hover.gif");
884 }
885
886 /* ::::: Location Bar ::::: */
887
888 #urlbar {
889   width: 7em;
890   min-width: 7em;
891 }
892
893 #urlbar,
894 .searchbar-textbox {
895   border-radius: 5px;
896   margin: 0;
897   -moz-margin-start: 3px;
898 }
899
900 #urlbar:-moz-lwtheme,
901 .searchbar-textbox:-moz-lwtheme {
902   /* background-color: rgba(255,255,255,.8);
903   @navbarTextboxCustomBorder@
904   color: black; */
905 }
906
907 html|*.urlbar-input:-moz-lwtheme:-moz-placeholder,
908 .searchbar-textbox:-moz-lwtheme > .autocomplete-textbox-container > .textbox-input-box > html|*.textbox-input:-moz-placeholder {
909   color: #E7ADE7;
910 }
911
912 #urlbar:-moz-lwtheme[focused="true"],
913 .searchbar-textbox:-moz-lwtheme[focused="true"] {
914 /*  background-color: white; */
915 }
916
917 #urlbar-container {
918   -moz-box-orient: horizontal;
919   -moz-box-align: stretch;
920 }
921
922 .urlbar-textbox-container {
923   -moz-box-align: stretch;
924 }
925
926 #urlbar-icons {
927   height: 18px;
928   -moz-box-align: center;
929 }
930
931 .urlbar-icon {
932   padding: 0 2px !important;
933 }
934
935 .urlbar-icon:-moz-system-metric(touch-enabled) {
936   -moz-margin-end: 1px !important;
937   padding: 0 3px !important;
938 }
939
940 #urlbar-search-splitter {
941   min-width: 6px;
942   -moz-margin-start: -3px;
943   border: none;
944   background: transparent;
945 }
946
947 #urlbar-search-splitter + #urlbar-container > #urlbar ,
948 #urlbar-search-splitter + #search-container > #searchbar > .searchbar-textbox {
949   -moz-margin-start: 0;
950 }
951
952 #urlbar-display {
953   margin-top: -2px;
954   margin-bottom: -2px;
955   -moz-border-end: 1px solid #9C9CFF;
956   -moz-margin-end: 3px;
957 }
958
959 #urlbar-display {
960   margin-top: 0;
961   margin-bottom: 0;
962   color: #8050B0;
963 }
964
965 /* identity box */
966
967 #identity-box {
968   background-color: #000000;
969   color: #FF9F00;
970   border-radius: 2px;
971 }
972
973 #identity-box:hover {
974   background-color: #9C9CFF;
975   color: #000000;
976 }
977
978 #identity-box[open="true"],
979 #identity-box:hover:active {
980   background-color: #FF9F00;
981   color: #000000;
982 }
983
984 #identity-box.verifiedDomain {
985   background-color: #FFCF00;
986   color: #000000;
987 }
988
989 #identity-box.verifiedIdentity {
990   background-color: #008484;
991   color: #000000;
992 }
993
994 #identity-box:-moz-focusring {
995   outline: 1px dotted #008484;
996   outline-offset: -3px;
997 }
998
999 #identity-box.verifiedDomain:-moz-focusring,
1000 #identity-box.verifiedIdentity:-moz-focusring {
1001   outline-color: #000000;
1002 }
1003
1004 #identity-icon-labels {
1005   -moz-margin-start: 1px;
1006   -moz-margin-end: 3px;
1007   -moz-transform: translate(0, -1px);
1008 }
1009
1010 /* Location bar dropmarker */
1011
1012 .urlbar-history-dropmarker:not(:hover):not([open="true"]) {
1013   background-color: transparent;
1014 }
1015
1016 #urlbar-container[combined="true"] > #urlbar > .urlbar-history-dropmarker {
1017   border: none;
1018   border-radius: 0px;
1019 }
1020
1021 /* page proxy icon */
1022
1023 #page-proxy-favicon,
1024 #urlbar-throbber {
1025   width: 16px;
1026   height: 16px;
1027 }
1028
1029 #page-proxy-stack {
1030   width: 24px;
1031   height: 18px;
1032   padding: 1px 4px;
1033   background: url("urlbar-favicon-glow.png") center center no-repeat;
1034 }
1035
1036 #page-proxy-favicon:not([src]) {
1037   list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-item.gif");
1038 }
1039
1040 #page-proxy-favicon[pageproxystate="invalid"] {
1041   list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-item.gif");
1042 }
1043
1044 #urlbar-throbber {
1045   list-style-image: url("chrome://global/skin/icons/loading.gif");
1046 }
1047
1048 /* autocomplete */
1049
1050 #treecolAutoCompleteImage {
1051   max-width: 36px;
1052 }
1053
1054 .ac-result-type-bookmark,
1055 .autocomplete-treebody::-moz-tree-image(bookmark, treecolAutoCompleteImage) {
1056   list-style-image: url("chrome://browser/skin/places/editBookmark.png");
1057   -moz-image-region: rect(0px 16px 16px 0px);
1058   width: 16px; 
1059   height: 16px;
1060 }
1061
1062 .ac-result-type-keyword,
1063 .autocomplete-treebody::-moz-tree-image(keyword, treecolAutoCompleteImage) {
1064   list-style-image: url("chrome://global/skin/icons/Search-glass.png");
1065   -moz-image-region: rect(0px 32px 16px 16px);
1066   width: 16px;
1067   height: 16px;
1068 }
1069
1070 .ac-result-type-tag,
1071 .autocomplete-treebody::-moz-tree-image(tag, treecolAutoCompleteImage) {
1072   list-style-image: url("chrome://browser/skin/places/tag.png");
1073   width: 16px; 
1074   height: 16px;
1075 }
1076
1077 .ac-comment {
1078   font-size: 1.15em;
1079 }
1080
1081 .ac-extra > .ac-comment {
1082   font-size: inherit;
1083 }
1084
1085 .ac-url-text,
1086 .ac-action-text {
1087   color: #9C9CFF;
1088 }
1089
1090 richlistitem[type~="action"][actiontype="switchtab"] > .ac-url-box > .ac-action-icon {
1091   list-style-image: url("chrome://browser/skin/actionicon-tab.png");
1092 }
1093
1094 .autocomplete-treebody::-moz-tree-cell-text(treecolAutoCompleteComment) {
1095   color: #8050B0;
1096 }
1097
1098 .ac-comment[selected="true"],
1099 .ac-url-text[selected="true"],
1100 .ac-action-text[selected="true"] {
1101   color: inherit !important;
1102 }
1103
1104 .autocomplete-treebody::-moz-tree-cell-text(suggesthint, treecolAutoCompleteComment), 
1105 .autocomplete-treebody::-moz-tree-cell-text(suggestfirst, treecolAutoCompleteComment) 
1106 {
1107   color: #8050B0;
1108   font-size: smaller;
1109 }
1110
1111 .autocomplete-treebody::-moz-tree-cell(suggesthint) {
1112   border-top: 1px solid #9C9CFF;
1113 }
1114
1115 /* go button */
1116
1117 #go-button {
1118   list-style-image: url("chrome://browser/skin/Go-arrow.png");
1119   -moz-image-region: rect(0px, 16px, 16px, 0px);
1120 }
1121
1122 #go-button:-moz-locale-dir(rtl) > .toolbarbutton-icon {
1123   -moz-transform: scaleX(-1);
1124 }
1125
1126 #go-button:hover {
1127   -moz-image-region: rect(16px, 16px, 32px, 0px);
1128 }
1129
1130 /* combined go/reload/stop button in location bar */
1131
1132 #urlbar > toolbarbutton {
1133   list-style-image: url("chrome://browser/skin/reload-stop-go.png");
1134   /* margin: -2px; */
1135   -moz-margin-start: 0;
1136   padding: 0 3px;
1137   background-origin: border-box;
1138   border: none;
1139   -moz-border-start: 1px solid #9C9CFF;
1140 }
1141
1142 #urlbar:-moz-locale-dir(ltr) > toolbarbutton {
1143   border-top-left-radius: 0px;
1144   border-bottom-left-radius: 0px;
1145 }
1146
1147 #urlbar:-moz-locale-dir(rtl) > toolbarbutton {
1148   border-top-right-radius: 0px;
1149   border-bottom-right-radius: 0px;
1150 }
1151
1152 #urlbar > toolbarbutton:not([disabled]):active:hover {
1153   -moz-padding-start: 4px;
1154   -moz-border-start: none;
1155 }
1156
1157 #urlbar-go-button {
1158   -moz-image-region: rect(0px, 56px, 14px, 42px);
1159 }
1160
1161 #urlbar-go-button:hover {
1162   -moz-image-region: rect(14px, 56px, 28px, 42px);
1163 }
1164
1165 #urlbar-reload-button {
1166   -moz-image-region: rect(0px, 28px, 14px, 14px);
1167 }
1168
1169 #urlbar-reload-button[disabled] {
1170   -moz-image-region: rect(0px, 14px, 14px, 0px);
1171 }
1172
1173 #urlbar-reload-button:not([disabled]):hover {
1174   -moz-image-region: rect(14px, 28px, 28px, 14px);
1175 }
1176
1177 #urlbar-stop-button {
1178   -moz-image-region: rect(0px, 42px, 14px, 28px);
1179 }
1180
1181 #urlbar-stop-button:hover {
1182   -moz-image-region: rect(14px, 42px, 28px, 28px);
1183 }
1184
1185 /* popup blocker button */
1186
1187 #page-report-button {
1188   list-style-image: url("chrome://browser/skin/urlbar-popup-blocked.png");
1189   -moz-image-region: rect(0, 16px, 16px, 0);
1190 }
1191
1192 #page-report-button:hover {
1193   -moz-image-region: rect(0, 32px, 16px, 16px);
1194 }
1195
1196 #page-report-button:hover:active,
1197 #page-report-button[open="true"] {
1198   -moz-image-region: rect(0, 48px, 16px, 32px);
1199 }
1200
1201 /* star button */
1202
1203 #star-button {
1204   list-style-image: url("chrome://browser/skin/places/bookmark.png");
1205   -moz-image-region: rect(0px 16px 16px 0px);
1206 }
1207
1208 #star-button:hover {
1209   -moz-image-region: rect(0px 32px 16px 16px);
1210 }
1211
1212 #star-button:hover:active {
1213   -moz-image-region: rect(0px 48px 16px 32px);
1214 }
1215
1216 #star-button[starred="true"] {
1217   list-style-image: url("chrome://browser/skin/places/editBookmark.png");
1218 }
1219
1220 /* bookmarking panel */
1221 #editBookmarkPanelStarIcon {
1222   list-style-image: url("chrome://browser/skin/places/starred48.png");
1223   width: 48px;
1224   height: 48px;
1225 }
1226
1227 #editBookmarkPanelStarIcon[unstarred] {
1228   list-style-image: url("chrome://browser/skin/places/unstarred48.png");
1229 }
1230
1231 #editBookmarkPanelTitle {
1232   font-size: 130%;
1233 }
1234
1235 #editBookmarkPanelHeader,
1236 #editBookmarkPanelContent {
1237   margin-bottom: .5em;
1238 }
1239
1240 /* Implements editBookmarkPanel resizing on folderTree un-collapse. */
1241 #editBMPanel_folderTree {
1242   min-width: 27em;
1243 }
1244
1245 /* ::::: content area ::::: */
1246
1247 #sidebar {
1248   background-color: Window;
1249 }
1250
1251 #sidebar-title {
1252   -moz-padding-start: 0px;
1253 }
1254
1255 /* ::::: throbber ::::: */
1256
1257 #navigator-throbber {
1258   width: 16px;
1259   min-height: 16px;
1260   margin: 0 3px;
1261 }
1262
1263 #navigator-throbber[busy="true"] {
1264   list-style-image: url("chrome://communicator/skin/brand/throbber16-anim.gif");
1265 }
1266
1267 #navigator-throbber,
1268 #wrapper-navigator-throbber > #navigator-throbber {
1269   list-style-image: url("chrome://communicator/skin/brand/throbber16-single.gif");
1270 }
1271
1272 /* Tabstrip */
1273
1274 #TabsToolbar {
1275   min-height: 0;
1276   padding: 0;
1277   -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar");
1278 }
1279
1280 #TabsToolbar .toolbar-holder {
1281   background-color: #000000; /* correct effect of being an actal toolbar */
1282 }
1283
1284 #main-window[disablechrome] #TabsToolbar,
1285 #TabsToolbar[tabsontop="false"] {
1286   border-bottom: 1px solid #FF9F00;
1287 }
1288
1289 .tabbrowser-tab,
1290 .tabs-newtab-button {
1291   margin-top: 0px;
1292 }
1293
1294 .tabbrowser-tab:hover,
1295 .tabs-newtab-button:hover {
1296 }
1297
1298 .tabbrowser-tab[selected="true"] {
1299 }
1300
1301 #main-window[tabsontop=false]:not([disablechrome]) .tabbrowser-tab[selected=true]:not(:-moz-lwtheme) {
1302 }
1303
1304 .tabbrowser-tab:-moz-lwtheme {
1305 }
1306
1307 .tabbrowser-tab[selected="true"]:-moz-lwtheme {
1308 }
1309
1310 .tabbrowser-tab:-moz-lwtheme-brighttext:not([selected="true"]),
1311 .tabs-newtab-button:-moz-lwtheme-brighttext {
1312 }
1313
1314 .tabbrowser-tab:-moz-lwtheme-brighttext:not([selected="true"]):hover,
1315 .tabs-newtab-button:-moz-lwtheme-brighttext:hover {
1316 }
1317
1318 .tabbrowser-tab:-moz-lwtheme-darktext:not([selected="true"]),
1319 .tabs-newtab-button:-moz-lwtheme-darktext {
1320 }
1321
1322 .tabbrowser-tab:-moz-lwtheme-darktext:not([selected="true"]):hover,
1323 .tabs-newtab-button:-moz-lwtheme-darktext:hover {
1324 }
1325
1326 .tabbrowser-tab[pinned][titlechanged]:not([selected="true"]) {
1327   background-color: #E7ADE7;
1328 }
1329 .tabbrowser-tab[pinned][titlechanged]:not([selected="true"]):hover {
1330   background-color: #0000FF;
1331   color: #000000;
1332 }
1333
1334 .tab-throbber,
1335 .tab-icon-image {
1336   width: 16px;
1337   height: 16px;
1338   list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-item.gif");
1339   -moz-image-region: rect(0px, 16px, 16px, 0px);
1340   -moz-margin-end: 3px;
1341 }
1342
1343 .tab-throbber {
1344   list-style-image: url("chrome://browser/skin/tabbrowser/connecting.png");
1345 }
1346
1347 .tab-throbber[progress] {
1348   list-style-image: url("chrome://browser/skin/tabbrowser/loading.png");
1349 }
1350
1351 #tabbrowser-tabs[positionpinnedtabs] > .tabbrowser-tab[pinned] {
1352   min-height: 16px; /* corresponds to the max. height of non-textual tab contents, i.e. the favicon */
1353 }
1354
1355 .tab-throbber[pinned],
1356 .tab-icon-image[pinned] {
1357   -moz-margin-start: 2px;
1358   -moz-margin-end: 2px;
1359 }
1360
1361 /* tabbrowser-tab focus ring */
1362 .tabbrowser-tab:focus > .tab-stack {
1363   outline: 1px dotted;
1364 }
1365
1366 /* Tab DnD indicator */
1367 .tab-drop-indicator {
1368   list-style-image: url("chrome://browser/skin/tabbrowser/tabDragIndicator.png");
1369   margin-bottom: -11px;
1370 }
1371
1372 /* Tab close button */
1373 .tab-close-button {
1374   border: none;
1375   padding: 0px;
1376   list-style-image: url("chrome://global/skin/icons/close-button.gif");
1377 }
1378
1379 .tab-close-button:-moz-system-metric(touch-enabled) {
1380   -moz-transform: scale(1.2);
1381 }
1382
1383 .tab-close-button:hover,
1384 .tab-close-button:hover[selected="true"] {
1385   list-style-image: url("chrome://global/skin/icons/close-button-hover.gif");
1386 }
1387
1388 .tab-close-button:hover:active,
1389 .tab-close-button:hover:active[selected="true"] {
1390   list-style-image: url("chrome://global/skin/icons/close-button-hover.gif");
1391 }
1392
1393 .tab-close-button:focus {
1394   outline: none !important;
1395 }
1396
1397 /* Tab scrollbox arrow, tabstrip new tab and all-tabs buttons */
1398
1399 @media all and (-moz-touch-enabled) {
1400   .tabbrowser-arrowscrollbox > .scrollbutton-up,
1401   .tabbrowser-arrowscrollbox > .scrollbutton-down,
1402   #TabsToolbar .toolbarbutton-1 {
1403     min-width: 8.1mozmm;
1404   }
1405
1406   .tabs-newtab-button {
1407     min-width: 10mozmm;
1408   }
1409
1410   .tab-content {
1411     min-height: -moz-calc(6.8mozmm - 7px); /* subtract borders from the desired height */
1412   }
1413 }
1414
1415 .tabbrowser-arrowscrollbox > .scrollbutton-up,
1416 .tabbrowser-arrowscrollbox > .scrollbutton-down {
1417   margin: 0;
1418   padding-top: 0;
1419   padding-bottom: 0;
1420 }
1421
1422 .tabbrowser-arrowscrollbox > .scrollbutton-down[notifybgtab] {
1423   background-color: #008484;
1424 }
1425
1426 .tabs-newtab-button > .toolbarbutton-icon {
1427   margin-top: -1px;
1428   margin-bottom: -1px;
1429 }
1430
1431 .tabs-newtab-button,
1432 #TabsToolbar > #new-tab-button,
1433 #TabsToolbar > toolbarpaletteitem > #new-tab-button {
1434   list-style-image: url("chrome://browser/skin/tabbrowser/newtab.png");
1435   -moz-image-region: rect(0, 16px, 18px, 0);
1436 }
1437
1438 .tabs-newtab-button {
1439   width: 31px;
1440 }
1441
1442 .tabs-newtab-button:hover,
1443 #TabsToolbar > #new-tab-button:hover {
1444   -moz-image-region: rect(0, 32px, 18px, 16px);
1445 }
1446
1447 #alltabs-button {
1448   list-style-image: url("chrome://browser/skin/tabbrowser/alltabs.png");
1449   -moz-image-region: rect(0, 14px, 16px, 0);
1450 }
1451
1452 #alltabs-button:hover:active {
1453   -moz-image-region: rect(0, 28px, 16px, 14px);
1454 }
1455
1456 #alltabs-button[type="menu"] {
1457   list-style-image: url("chrome://browser/skin/mainwindow-dropdown-arrow.png");
1458   -moz-image-region: rect(0, 13px, 11px, 0);
1459 }
1460
1461 #alltabs-button[type="menu"] > .toolbarbutton-icon {
1462   margin: 3px 0;
1463 }
1464
1465 #alltabs-button[type="menu"] > .toolbarbutton-menu-dropmarker {
1466   display: none;
1467 }
1468
1469 #alltabs-button[type="menu"]:hover:active,
1470 #alltabs-button[type="menu"][open="true"] {
1471   -moz-image-region: rect(0, 26px, 11px, 13px);
1472 }
1473
1474 /* All tabs menupopup */
1475 .alltabs-item > .menu-iconic-left > .menu-iconic-icon {
1476   list-style-image: url("chrome://global/skin/icons/folder-item.png");
1477   -moz-image-region: rect(0px, 16px, 16px, 0px);
1478 }
1479
1480 .alltabs-item[selected="true"] {
1481   font-weight: bold;
1482 }
1483
1484 .alltabs-item[busy] > .menu-iconic-left > .menu-iconic-icon {
1485   list-style-image: url("chrome://global/skin/icons/loading.gif");
1486 }
1487
1488 /* Tabstrip close button */
1489 .tabs-closebutton {
1490   -moz-box-flex: 1;
1491   margin: 0px;
1492   padding: 2px;
1493   list-style-image: url("chrome://global/skin/icons/close-button.gif");
1494 }
1495
1496 .tabs-closebutton > .toolbarbutton-icon {
1497 }
1498
1499 .tabs-closebutton:hover,
1500 .tabs-closebutton:hover:active {
1501   list-style-image: url("chrome://global/skin/icons/close-button-hover.gif");
1502 }
1503
1504 toolbarbutton.chevron {
1505   list-style-image: url("chrome://global/skin/toolbar/chevron.gif") !important;
1506 }
1507
1508 toolbarbutton.chevron:hover {
1509   list-style-image: url("chrome://global/skin/toolbar/chevron-hover.gif") !important;
1510 }
1511
1512 toolbarbutton.chevron:-moz-locale-dir(rtl) > .toolbarbutton-icon,
1513 toolbarbutton.chevron:-moz-locale-dir(rtl):hover > .toolbarbutton-icon {
1514   -moz-transform: scaleX(-1);
1515 }
1516
1517 toolbarbutton.chevron > .toolbarbutton-text,
1518 toolbarbutton.chevron > .toolbarbutton-menu-dropmarker {
1519   display: none;
1520 }
1521
1522 toolbarbutton.chevron > .toolbarbutton-icon {
1523   margin: 0;
1524 }
1525
1526 toolbar[mode="text"] toolbarbutton.chevron > .toolbarbutton-icon {
1527   display: -moz-box; /* display chevron icon in text mode */
1528 }
1529
1530 #sidebar-throbber[loading="true"] {
1531   list-style-image: url("chrome://global/skin/icons/loading.gif");
1532   -moz-margin-end: 4px;
1533 }
1534
1535 /* Bookmarks toolbar */
1536 #PlacesToolbarDropIndicator {
1537   list-style-image: url("chrome://browser/skin/places/toolbarDropMarker.png");
1538 }
1539
1540 toolbarbutton.bookmark-item[dragover="true"][open="true"] {
1541   background-color: #008484 !important;
1542   color: #FFCF00 !important;
1543 }
1544
1545 /* rules for menupopup drop indicators */
1546 .menupopup-drop-indicator-bar {
1547   position: relative;
1548   /* these two margins must together compensate the indicator's height */
1549   margin-top: -1px;
1550   margin-bottom: -1px;
1551 }
1552
1553 .menupopup-drop-indicator {
1554   list-style-image: none;
1555   height: 2px;
1556   -moz-margin-end: -4em;
1557   background-color: #008484;
1558 }
1559
1560 /* ::::: Identity Indicator Styling ::::: */
1561
1562 /* Popup Icons */
1563 #identity-popup-icon {
1564   height: 64px;
1565   width: 64px;
1566   padding: 0;
1567   list-style-image: url("chrome://browser/skin/identity.png");
1568   -moz-image-region: rect(0px, 64px, 64px, 0px);
1569 }
1570
1571 #identity-popup.verifiedDomain > #identity-popup-container > #identity-popup-icon {
1572   -moz-image-region: rect(64px, 64px, 128px, 0px);
1573 }
1574
1575 #identity-popup.verifiedIdentity > #identity-popup-container > #identity-popup-icon {
1576   -moz-image-region: rect(128px, 64px, 192px, 0px);
1577 }
1578
1579 /* Popup Body Text */
1580 .identity-popup-description {
1581   white-space: pre-wrap;
1582   -moz-padding-start: 15px;
1583   margin: 2px 0 4px;
1584 }
1585
1586 .identity-popup-label {
1587   white-space: pre-wrap;
1588   -moz-padding-start: 15px;
1589   margin: 0;
1590 }
1591
1592 #identity-popup-content-host ,
1593 #identity-popup-content-box.verifiedIdentity > #identity-popup-content-owner {
1594   font-size: 1.2em;
1595 }
1596
1597 #identity-popup-content-host {
1598   margin-top: 3px;
1599   margin-bottom: 5px;
1600   font-weight: bold;
1601   max-width: 300px;
1602 }
1603
1604 #identity-popup-content-owner {
1605   margin-top: 4px;
1606   margin-bottom: 0 !important;
1607   font-weight: bold;
1608   max-width: 300px;
1609 }
1610
1611 .verifiedDomain > #identity-popup-content-owner {
1612   font-weight: normal;
1613 }
1614
1615 #identity-popup-content-verifier {
1616   margin: 4px 0 2px;
1617 }
1618
1619 #identity-popup-content-box.verifiedIdentity > #identity-popup-encryption ,
1620 #identity-popup-content-box.verifiedDomain > #identity-popup-encryption {
1621   margin-top: 10px;
1622   -moz-margin-start: -24px;
1623 }
1624
1625 #identity-popup-content-box.verifiedIdentity > #identity-popup-encryption > vbox > #identity-popup-encryption-icon ,
1626 #identity-popup-content-box.verifiedDomain > #identity-popup-encryption > vbox > #identity-popup-encryption-icon {
1627   list-style-image: url("chrome://browser/skin/Secure24.png");
1628 }
1629
1630 #identity-popup-more-info-button {
1631   margin-top: 6px;
1632   margin-bottom: 0;
1633   -moz-margin-end: 0;
1634 }
1635
1636 .popup-notification-icon {
1637   width: 64px;
1638   height: 64px;
1639   -moz-margin-end: 10px;
1640 }
1641
1642 .popup-notification-icon[popupid="geolocation"] {
1643   list-style-image: url("chrome://browser/skin/Geolocation-64.png");
1644 }
1645
1646 .popup-notification-icon[popupid="xpinstall-disabled"],
1647 .popup-notification-icon[popupid="addon-progress"],
1648 .popup-notification-icon[popupid="addon-install-cancelled"],
1649 .popup-notification-icon[popupid="addon-install-blocked"],
1650 .popup-notification-icon[popupid="addon-install-failed"],
1651 .popup-notification-icon[popupid="addon-install-complete"] {
1652   list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric.png");
1653   width: 32px;
1654   height: 32px;
1655 }
1656
1657 .addon-progress-description {
1658   width: 350px;
1659   max-width: 350px;
1660 }
1661
1662 .popup-progress-label,
1663 .popup-progress-meter {
1664   -moz-margin-start: 0;
1665   -moz-margin-end: 0;
1666 }
1667
1668 .popup-progress-cancel {
1669   -moz-appearance: none;
1670   background: transparent;
1671   border: none;
1672   padding: 0;
1673   margin: 0;
1674   min-height: 0;
1675   min-width: 0;
1676   list-style-image: url("chrome://mozapps/skin/downloads/downloadButtons.png");
1677   -moz-image-region: rect(0px, 32px, 16px, 16px);
1678 }
1679
1680 .popup-progress-cancel:hover {
1681   -moz-image-region: rect(16px, 32px, 32px, 16px);
1682 }
1683
1684 .popup-progress-cancel:active {
1685   -moz-image-region: rect(32px, 32px, 48px, 16px);
1686 }
1687
1688 .popup-notification-icon[popupid="indexedDB-permissions-prompt"],
1689 .popup-notification-icon[popupid="indexedDB-quota-prompt"] {
1690   list-style-image: url("chrome://global/skin/icons/alert-question.gif");
1691 }
1692
1693 .popup-notification-icon[popupid="password-save"],
1694 .popup-notification-icon[popupid="password-change"] {
1695   list-style-image: url("chrome://mozapps/skin/passwordmgr/key-64.png");
1696 }
1697
1698 /* Notification icon box */
1699 #notification-popup-box {
1700   margin: 0 3px;
1701 }
1702
1703 .notification-anchor-icon {
1704   width: 16px;
1705   height: 16px;
1706 }
1707
1708 .notification-anchor-icon:-moz-focusring {
1709   outline: 1px dotted -moz-DialogText;
1710   outline-offset: -3px;
1711 }
1712
1713 #default-notification-icon {
1714   list-style-image: url("chrome://global/skin/icons/information-16.png");
1715 }
1716
1717 #geo-notification-icon {
1718   list-style-image: url("chrome://browser/skin/Geolocation-16.png");
1719 }
1720
1721 #addons-notification-icon {
1722   list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric-16.png");
1723 }
1724
1725 #indexedDB-notification-icon {
1726   list-style-image: url("chrome://global/skin/icons/question-16.png");
1727 }
1728
1729 #password-notification-icon {
1730   list-style-image: url("chrome://mozapps/skin/passwordmgr/key-16.png");
1731 }
1732
1733 #identity-popup-container {
1734   min-width: 280px;
1735 }
1736
1737 #download-monitor {
1738   list-style-image: url("chrome://browser/skin/Toolbar.png");
1739   -moz-image-region: rect(0, 108px, 18px, 90px);
1740 }
1741
1742 /* Bookmarks roots menu-items */
1743 #appmenu_subscribeToPage:not([disabled]),
1744 #appmenu_subscribeToPageMenu,
1745 #subscribeToPageMenuitem:not([disabled]),
1746 #subscribeToPageMenupopup,
1747 #BMB_subscribeToPageMenuitem:not([disabled]),
1748 #BMB_subscribeToPageMenupopup {
1749   list-style-image: url("chrome://browser/skin/feeds/feedIcon16.png");
1750 }
1751
1752 #bookmarksToolbarFolderMenu,
1753 #appmenu_bookmarksToolbar,
1754 #BMB_bookmarksToolbar {
1755   list-style-image: url("chrome://browser/skin/places/bookmarksToolbar.png");
1756   -moz-image-region: auto;
1757 }
1758
1759 #appmenu_unsortedBookmarks,
1760 #BMB_unsortedBookmarks {
1761   list-style-image: url("chrome://browser/skin/places/unsortedBookmarks.png");
1762   -moz-image-region: auto;
1763 }
1764
1765 /* ::::: Keyboard UI Panel ::::: */
1766
1767 .KUI-panel {
1768   color: #FF9F00;
1769   border-style: none;
1770   border-radius: 20px;
1771 }
1772
1773 .KUI-panel[level="top"] {
1774   /*background-color: rgba(27%,27%,27%,.65);*/
1775 }
1776
1777 .KUI-panel-closebutton {
1778   list-style-image: url("KUI-close.png");
1779   width: 24px;
1780   height: 24px;
1781 }
1782
1783 .KUI-panel-closebutton:not(:hover) {
1784 }
1785
1786 .KUI-panel-closebutton > .toolbarbutton-icon {
1787 }
1788
1789 /* ::::: Ctrl-Tab and All Tabs Panels ::::: */
1790
1791 /* Ctrl-Tab */
1792
1793 #ctrlTab-panel {
1794   padding: 20px 10px 10px;
1795   font-weight: bold;
1796 }
1797
1798 .ctrlTab-favicon[src] {
1799   background-color: #000000;
1800   width: 20px;
1801   height: 20px;
1802   padding: 2px;
1803 }
1804
1805 .ctrlTab-preview-inner > .tabPreview-canvas {
1806 }
1807
1808 .ctrlTab-preview:not(#ctrlTab-showAll) > * > .ctrlTab-preview-inner > .tabPreview-canvas {
1809   margin-bottom: 2px;
1810 }
1811
1812 .ctrlTab-preview-inner {
1813   padding-bottom: 10px;
1814 }
1815
1816 #ctrlTab-showAll:not(:focus) > * > .ctrlTab-preview-inner {
1817   padding: 10px;
1818   background-color: #000000;
1819   border-radius: .5em;
1820 }
1821
1822 .ctrlTab-preview:focus > * > .ctrlTab-preview-inner {
1823   color: white;
1824   background-color: #000000;
1825   text-shadow: none;
1826   padding: 8px;
1827   border: 2px solid #9C9CFF;
1828   border-radius: .5em;
1829 }
1830
1831 .ctrlTab-preview:not(#ctrlTab-showAll):focus > * > .ctrlTab-preview-inner {
1832   margin: -10px -10px 0;
1833 }
1834
1835 #ctrlTab-showAll {
1836   margin-top: .5em;
1837 }
1838
1839 /* All Tabs */
1840
1841 #allTabs-panel {
1842   padding-bottom: 10px;
1843 }
1844
1845 #allTabs-meta {
1846   margin: 10px;
1847 }
1848
1849 #allTabs-filter {
1850   -moz-margin-start: 24px;
1851   -moz-margin-end: 0;
1852 }
1853
1854 #allTabs-tab-close-button > .toolbarbutton-icon {
1855   margin: 0;
1856 }
1857
1858 .allTabs-favicon[src] {
1859   width: 22px;
1860   height: 22px;
1861   padding-top: 1px;
1862   padding-bottom: 5px;
1863   -moz-padding-start: 1px;
1864   -moz-padding-end: 5px;
1865   margin-top: -2px;
1866   -moz-margin-start: -2px;
1867   border-bottom-right-radius: 4px;
1868 }
1869
1870 .allTabs-favicon[src]:-moz-locale-dir(rtl) {
1871   border-bottom-right-radius: 0;
1872   border-bottom-left-radius: 4px;
1873 }
1874
1875 .allTabs-preview-inner > .tabPreview-canvas {
1876   background-color: #E7ADE7;
1877 }
1878
1879 .allTabs-preview:not(:hover):not([closebuttonhover]) > html|canvas {
1880 }
1881
1882 .allTabs-preview:focus > * > .allTabs-preview-inner {
1883   outline: 1px dotted #008484;
1884 }
1885
1886 /* Inspector / Highlighter */
1887
1888 #highlighter-panel {
1889   -moz-window-shadow: none;
1890   background: #000000;
1891   border: none;
1892 }
1893
1894 listitem.style-selector {
1895   background-color: #9C9CFF;
1896   color: #000000;
1897 }
1898
1899 listitem.style-section {
1900   background-color: #E7ADE7;
1901   color: #000000;
1902   font-weight: bold;
1903 }
1904
1905 panel[dimmed="true"] {
1906   opacity: 0.5;
1907 }
1908
1909 /* Add-on bar */
1910
1911 #addon-bar {
1912   min-height: 20px;
1913   border-top: 3px solid #000000;
1914 }
1915
1916 #addon-bar:not(:-moz-lwtheme) {
1917   -moz-appearance: statusbar;
1918 }
1919
1920 #addon-bar .toolbar-holder {
1921   background-color: #8050B0;
1922   color: #FFCF00;
1923 }
1924
1925 #addon-bar .toolbar-holder {
1926   background-color: #8050B0;
1927   color: #FFCF00;
1928 }
1929
1930 #addon-bar .toolbar-startcap,
1931 #addon-bar .toolbar-endcap{
1932   background-color: #6000CF;
1933 }
1934
1935 #status-bar {
1936   -moz-binding: url("chrome://global/content/bindings/general.xml#statusbar");
1937   margin-top: .3em;
1938   border-width: 0;
1939 }
1940
1941 /* Remove all borders from statusbarpanel children of
1942    the statusbar.
1943 #status-bar > statusbarpanel {
1944   border-width: 0;
1945 } */
1946
1947 #addonbar-closebutton {
1948   border: none;
1949   padding: 3px 5px;
1950   list-style-image: url("chrome://global/skin/icons/close-button.gif");
1951 }
1952
1953 #addonbar-closebutton:hover,
1954 #addonbar-closebutton:hover:active {
1955   list-style-image: url("chrome://global/skin/icons/close-button-hover.gif");
1956 }
1957
1958 /* Status panel */
1959
1960 .statuspanel-label {
1961   margin: 0;
1962   padding: 2px 4px;
1963   background: #404000;
1964   border: 1px none #9C9CFF;
1965   border-top-style: solid;
1966   color: #FF9F00;
1967   text-shadow: none;
1968 }
1969
1970 .statuspanel-label:-moz-locale-dir(ltr):not([mirror]),
1971 .statuspanel-label:-moz-locale-dir(rtl)[mirror] {
1972   border-right-style: solid;
1973   border-top-right-radius: .3em;
1974   margin-right: 1em;
1975 }
1976
1977 .statuspanel-label:-moz-locale-dir(rtl):not([mirror]),
1978 .statuspanel-label:-moz-locale-dir(ltr)[mirror] {
1979   border-left-style: solid;
1980   border-top-left-radius: .3em;
1981   margin-left: 1em;
1982 }