very small first step to sync LCARStrek with Firefox 11 browser winstripe changes
[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  *   Paul Rouget (paul@mozilla.com)
32  *   Rob Campbell (rcampbell@mozilla.com)
33  *
34  * Alternatively, the contents of this file may be used under the terms of
35  * either the GNU General Public License Version 2 or later (the "GPL"), or
36  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
37  * in which case the provisions of the GPL or the LGPL are applicable instead
38  * of those above. If you wish to allow use of your version of this file only
39  * under the terms of either the GPL or the LGPL, and not to allow others to
40  * use your version of this file under the terms of the MPL, indicate your
41  * decision by deleting the provisions above and replace them with the notice
42  * and other provisions required by the GPL or the LGPL. If you do not delete
43  * the provisions above, a recipient may use your version of this file under
44  * the terms of any one of the MPL, the GPL or the LGPL.
45  *
46  * ***** END LICENSE BLOCK ***** */
47
48 @import url("chrome://global/skin/");
49
50 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
51 @namespace html url("http://www.w3.org/1999/xhtml");
52
53 toolbar {
54   -moz-binding: url("chrome://global/skin/globalBindings.xml#toolbar");
55 }
56
57 toolbar[type="menubar"][autohide="true"] {
58   -moz-binding: url("chrome://global/skin/globalBindings.xml#toolbar-menubar-autohide");
59 }
60
61 menubar {
62   -moz-binding: url("chrome://global/skin/globalBindings.xml#menubar");
63 }
64
65 #menubar-items {
66   -moz-box-orient: vertical; /* for flex hack */
67 }
68
69 #main-menubar {
70   -moz-box-flex: 1; /* make menu items expand to fill toolbar height */
71 }
72
73 /* ::::: primary toolbar ::::: */
74
75 .toolbar-primary > .toolbar-box > .toolbar-holder {
76   background-color: #FF9F00;
77 }
78
79 .toolbar-primary > .toolbar-box > .toolbar-startcap,
80 .toolbar-primary > .toolbar-box > .toolbar-endcap {
81   background-color: #9C9CFF;
82 }
83
84
85 #navigator-toolbox {
86 }
87
88 #navigator-toolbox::after {
89   content: "";
90   display: -moz-box;
91   -moz-box-ordinal-group: 101; /* tabs toolbar is 100 */
92   height: 1px;
93 }
94 #navigator-toolbox[tabsontop=false]::after,
95 #main-window[disablechrome] #navigator-toolbox::after {
96   visibility: collapse;
97 }
98
99 #navigator-toolbox > toolbar:not(:-moz-lwtheme) {
100 }
101
102 #main-window[tabsintitlebar]:not([inFullscreen]) #toolbar-menubar[inactive] ~ #TabsToolbar:not(:-moz-lwtheme) {
103   /* like menubar */
104   background-color: #6000CF;
105   color: #FF9F00;
106 }
107 #main-window[tabsintitlebar]:not([inFullscreen]) #toolbar-menubar[inactive] ~ #TabsToolbar:not(:-moz-lwtheme):-moz-window-inactive {
108   background-color: #8050B0;
109   color: #FF9F00;
110 }
111
112 #main-window[tabsintitlebar] #titlebar:-moz-lwtheme {
113   visibility: hidden;
114 }
115 #main-window[tabsintitlebar] #titlebar-content:-moz-lwtheme {
116   -moz-binding: url("chrome://global/content/bindings/general.xml#windowdragbox");
117   visibility: visible;
118 }
119
120 #navigator-toolbox[tabsontop="true"] > #nav-bar,
121 #navigator-toolbox[tabsontop="true"]:not([customizing]) > #nav-bar[collapsed="true"] + toolbar,
122 #navigator-toolbox[tabsontop="true"]:not([customizing]) > #nav-bar[collapsed="true"] + #customToolbars + #PersonalToolbar {
123   /* background-image: -moz-linear-gradient(@toolbarHighlight@, rgba(255,255,255,0)); */
124 }
125
126 #personal-bookmarks {
127 /*  min-height: 24px; */
128 }
129
130 #print-preview-toolbar:not(:-moz-lwtheme) {
131   /* -moz-appearance: toolbox; */
132 }
133
134 /* ::::: app menu button ::::: */
135
136 #appmenu-button {
137   background-color: #FF9F00;
138   background-clip: padding-box;
139   border-radius: 0;
140   border: none;
141   border-right: 3px solid #000000;
142   color: #000000;
143   font-weight: bold;
144   padding: 1px 1.5em;
145   margin: 0;
146 }
147
148 #appmenu-button:-moz-locale-dir(rtl) {
149   border-left: 3px solid #000000;
150   border-right: none;
151 }
152
153 #main-window[privatebrowsingmode=temporary] #appmenu-button {
154   background-color: #6000CF;
155   color: #FFCF00;
156 }
157
158 #appmenu-button:hover:not(:active):not([open]) {
159 }
160
161 #main-window[privatebrowsingmode=temporary] #appmenu-button:hover:not(:active):not([open]) {
162 }
163
164 #appmenu-button:hover,
165 #appmenu-button:hover:active,
166 #appmenu-button[open] {
167   background-color: #FFCF00;
168   color: #000000;
169 }
170
171 #appmenu-button > .button-box > .button-menu-dropmarker {
172   list-style-image: url("chrome://global/skin/arrow/arrow-down-hover.gif");
173   width: auto;
174   height: auto;
175   padding: 0;
176   margin: 0;
177   border: none;
178   background-color: transparent;
179   -moz-margin-start: .5em;
180 }
181
182 #main-window[privatebrowsingmode=temporary] #appmenu-button > .button-box > .button-menu-dropmarker {
183   list-style-image: url("chrome://global/skin/arrow/arrow-down.gif");
184 }
185
186 #appmenuPrimaryPane > menuitem,
187 #appmenuSecondaryPane > menuitem,
188 #appmenuPrimaryPane > menu {
189   padding: 2px;
190 }
191
192 .splitmenu-menuitem {
193   -moz-padding-start: 2px;
194   padding-top: 2px;
195   padding-bottom: 2px;
196   -moz-margin-end: 1px;
197 }
198
199 .splitmenu-menu {
200   padding-top: 2px;
201   padding-bottom: 2px;
202   -moz-box-pack: end;
203 }
204
205 .appmenu-edit-button {
206 }
207
208 .appmenu-edit-button[disabled="true"] {
209 }
210
211 #appmenuPrimaryPane {
212   -moz-border-end: 1px solid #9C9CFF;
213 }
214 /*
215   #appmenu-popup {
216   }
217   #appmenuPrimaryPane {
218   }
219   #appmenuSecondaryPane {
220   }
221   #appmenuSecondaryPane:-moz-locale-dir(rtl) {
222   }
223
224   #appmenuSecondaryPane menupopup {
225   }
226
227   .appmenu-menuseparator {
228   }
229
230   .appmenu-edit-button:not([disabled]):hover {
231   }
232 */
233 #appmenuSecondaryPane-spacer {
234   min-height: 1em;
235 }
236
237 #appmenu-editmenu {
238   -moz-box-pack: end;
239 }
240
241 #appmenu_print,
242 #appmenu_print_popup,
243 .appmenu-edit-button,
244 #appmenu-editmenu-cut,
245 #appmenu-editmenu-copy,
246 #appmenu-editmenu-paste,
247 #appmenu-quit {
248   list-style-image: url("appmenu-icons.png");
249 }
250
251 #appmenu-cut,
252 #appmenu-editmenu-cut {
253   -moz-image-region: rect(0 16px 16px 0);
254 }
255
256 #appmenu-cut:hover:not([disabled="true"]),
257 #appmenu-editmenu-cut:hover:not([disabled="true"]) {
258   -moz-image-region: rect(16px 16px 32px 0);
259 }
260
261 #appmenu-cut[disabled="true"],
262 #appmenu-editmenu-cut[disabled="true"] {
263   -moz-image-region: rect(32px 16px 48px 0);
264 }
265
266 #appmenu-copy,
267 #appmenu-editmenu-copy {
268   -moz-image-region: rect(0 32px 16px 16px);
269 }
270
271 #appmenu-copy:hover:not([disabled="true"]),
272 #appmenu-editmenu-copy:hover:not([disabled="true"]) {
273   -moz-image-region: rect(16px 32px 32px 16px);
274 }
275
276 #appmenu-copy[disabled="true"],
277 #appmenu-editmenu-copy[disabled="true"] {
278   -moz-image-region: rect(32px 32px 48px 16px);
279 }
280
281 #appmenu-paste,
282 #appmenu-editmenu-paste {
283   -moz-image-region: rect(0 48px 16px 32px);
284 }
285
286 #appmenu-paste:hover:not([disabled="true"]),
287 #appmenu-editmenu-paste:hover:not([disabled="true"]) {
288   -moz-image-region: rect(16px 48px 32px 32px);
289 }
290
291 #appmenu-paste[disabled="true"],
292 #appmenu-editmenu-paste[disabled="true"] {
293   -moz-image-region: rect(32px 48px 48px 32px);
294 }
295
296 #appmenu_print,
297 #appmenu_print_popup {
298   -moz-image-region: rect(0 64px 16px 48px);
299 }
300
301 #appmenu_print:hover:not([disabled="true"]),
302 #appmenu_print[open="true"],
303 #appmenu_print_popup:hover:not([disabled="true"]) {
304   -moz-image-region: rect(16px 64px 32px 48px);
305 }
306
307 #appmenu-print[disabled="true"],
308 #appmenu_print_popup[disabled="true"] {
309   -moz-image-region: rect(32px 64px 48px 48px);
310 }
311
312 #appmenu-quit {
313   -moz-image-region: rect(0 80px 16px 64px);
314 }
315
316 #appmenu-quit:hover {
317   -moz-image-region: rect(16px 80px 32px 64px);
318 }
319
320 #appmenu-edit-label {
321   -moz-appearance: none;
322   background: transparent;
323   font-style: italic;
324 }
325
326 #appmenu_bookmarks {
327   list-style-image: url("chrome://browser/skin/places/bookmark.png");
328   -moz-image-region: rect(0px 48px 16px 32px);
329 }
330
331 #appmenu_privateBrowsing {
332   list-style-image: url("chrome://browser/skin/Privacy-16.png");
333 }
334
335 #appmenu_addons {
336   list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric-16.png");
337 }
338
339 #BMB_bookmarkThisPage,
340 #appmenu_bookmarkThisPage {
341   list-style-image: url("chrome://browser/skin/places/bookmark.png");
342   -moz-image-region: rect(0 16px 16px 0);
343 }
344
345 /* ::::: titlebar ::::: */
346
347 #titlebar {
348   /* like menubar */
349   background-color: #6000CF;
350   color: #FF9F00;
351 }
352 #titlebar:-moz-window-inactive {
353   background-color: #8050B0;
354   color: #FF9F00;
355 }
356
357 #main-window[sizemode="normal"] > #titlebar {
358   margin-top: -3px;
359   margin-bottom: 3px;
360 }
361
362 #main-window[sizemode="maximized"] > #titlebar {
363   margin-top: 4px;
364 }
365
366 #titlebar-buttonbox {
367   margin-top: 5px;
368   -moz-margin-end: 3px;
369 }
370
371 #main-window[sizemode="maximized"] #titlebar-buttonbox {
372 }
373
374 .titlebar-placeholder[type="appmenu-button"] {
375   margin-left: 4px;
376 }
377
378 .titlebar-placeholder[type="caption-buttons"] {
379   margin-left: 10px;
380 }
381
382 /* titlebar command buttons */
383
384 #titlebar-min {
385   list-style-image: url("chrome://navigator/skin/icons/win-minimize.gif");
386 }
387
388 #titlebar-min:hover {
389   list-style-image: url("chrome://navigator/skin/icons/win-minimize-hover.gif");
390 }
391
392 #titlebar-max {
393   list-style-image: url("chrome://browser/skin/win-maximize.gif");
394 }
395
396 #titlebar-max:hover {
397   list-style-image: url("chrome://browser/skin/win-maximize-hover.gif");
398 }
399
400 #main-window[sizemode="maximized"] #titlebar-max {
401   list-style-image: url("chrome://navigator/skin/icons/win-restore.gif");
402 }
403
404 #main-window[sizemode="maximized"] #titlebar-max:hover {
405   list-style-image: url("chrome://navigator/skin/icons/win-restore-hover.gif");
406 }
407
408 #titlebar-close {
409   list-style-image: url("chrome://navigator/skin/icons/win-close.gif");
410 }
411
412 #titlebar-close:hover {
413   list-style-image: url("chrome://navigator/skin/icons/win-close-hover.gif");
414 }
415
416 /* ::::: bookmark buttons ::::: */
417
418 .bookmark-item > .toolbarbutton-icon {
419   width: 16px;
420   height: 16px;
421 }
422
423 /* Prevent [mode="icons"] from hiding the label */
424 .bookmark-item > .toolbarbutton-text {
425   display: -moz-box !important;
426 }
427
428 .bookmark-item > .toolbarbutton-menu-dropmarker {
429   display: none;
430 }
431
432 #wrapper-personal-bookmarks[place="palette"] > .toolbarpaletteitem-box {
433   width: 16px;
434   height: 16px;
435   background: url("chrome://communicator/skin/bookmarks/bookmarksToolbar.png") no-repeat;
436 }
437
438 .bookmarks-toolbar-customize {
439   max-width: 15em !important;
440   list-style-image: url("chrome://communicator/skin/bookmarks/bookmarksToolbar.png") !important;
441 }
442
443 /* ::::: bookmark menus ::::: */
444
445 menu.bookmark-item,
446 menuitem.bookmark-item {
447   min-width: 0;
448   max-width: 32em;
449 }
450
451 .bookmark-item > .menu-iconic-left {
452   margin-top: 0;
453   margin-bottom: 0;
454 }
455
456 .bookmark-item > .menu-iconic-left > .menu-iconic-icon {
457   -moz-padding-start: 0px;
458 }
459
460 /* ::::: bookmark items ::::: */
461
462 .bookmark-item  {
463   list-style-image: url("chrome://mozapps/skin/places/defaultFavicon.png");
464   -moz-image-region: auto;
465 }
466
467 .bookmark-item[container] {
468   list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-closed.gif");
469   -moz-image-region: auto;
470 }
471
472 .bookmark-item[container][open] {
473   list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-open.gif");
474   -moz-image-region: auto;
475 }
476
477 .bookmark-item[container][livemark] {
478   list-style-image: url("chrome://communicator/skin/bookmarks/livemark-folder.png");
479   -moz-image-region: auto;
480 }
481
482 .bookmark-item[container][livemark] .bookmark-item {
483   list-style-image: url("chrome://communicator/skin/bookmarks/livemark-item.png");
484   -moz-image-region: auto;
485 }
486
487 .bookmark-item[container][query] {
488   list-style-image: url("chrome://communicator/skin/bookmarks/query.png");
489   -moz-image-region: auto;
490 }
491
492 .bookmark-item[query][tagContainer] {
493   list-style-image: url("chrome://mozapps/skin/places/tagContainerIcon.png");
494   -moz-image-region: auto;
495 }
496
497 .bookmark-item[query][dayContainer] {
498   list-style-image: url("chrome://communicator/skin/history/calendar.png");
499   -moz-image-region: auto;
500 }
501
502 .bookmark-item[query][hostContainer] {
503   list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-closed.gif");
504   -moz-image-region: auto;
505 }
506
507 .bookmark-item[query][hostContainer][open] {
508   list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-open.gif");
509   -moz-image-region: auto;
510 }
511
512 .bookmark-item[cutting] > .toolbarbutton-icon,
513 .bookmark-item[cutting] > .menu-iconic-left > .menu-iconic-icon {
514   opacity: 0.5;
515 }
516
517 .bookmark-item[cutting] > .toolbarbutton-text,
518 .bookmark-item[cutting] > .menu-iconic-left > .menu-iconic-text {
519   opacity: 0.7;
520 }
521
522 /* ::::: primary toolbar buttons ::::: */
523
524 .toolbarbutton-1 {
525   list-style-image: url("chrome://browser/skin/Toolbar.png");
526 }
527
528 .toolbarbutton-1:not([type="menu-button"]) {
529   -moz-box-orient: vertical;
530 }
531
532 .toolbarbutton-1,
533 .toolbarbutton-1 > .toolbarbutton-menubutton-button {
534   min-width: 36px;
535   min-height: 36px;
536 }
537
538 .toolbarbutton-1:not([type="menu-button"]) {
539   -moz-box-orient: vertical;
540 }
541
542 .toolbarbutton-1,
543 .toolbarbutton-1 > .toolbarbutton-menubutton-button,
544 .toolbarbutton-1[disabled="true"]:hover:active,
545 .toolbarbutton-1[disabled="true"]:hover:active > .toolbarbutton-menubutton-button {
546   padding: 1px 2px;
547 }
548
549 .toolbarbutton-1:hover:active,
550 .toolbarbutton-1[open="true"],
551 .toolbarbutton-1:hover:active > .toolbarbutton-menubutton-button {
552   padding-top: 2px;
553   padding-bottom: 0px;
554   -moz-padding-start: 3px;
555   -moz-padding-end: 1px;
556 }
557
558 /* ::::: small primary toolbar buttons ::::: */
559
560 #nav-bar {
561   /* force iconsize="small" on this toolbar */
562   counter-reset: smallicons;
563 }
564
565 toolbar[mode="text"] .toolbarbutton-1,
566 toolbar[mode="icons"] .toolbarbutton-1,
567 toolbar[iconsize="small"] .toolbarbutton-1,
568 :-moz-any(#TabsToolbar, #addon-bar) .toolbarbutton-1,
569 toolbar[mode="text"] .toolbarbutton-menubutton-button,
570 toolbar[mode="icons"] .toolbarbutton-menubutton-button,
571 toolbar[iconsize="small"] .toolbarbutton-menubutton-button,
572 :-moz-any(#TabsToolbar, #addon-bar) .toolbarbutton-1 > .toolbarbutton-menubutton-button {
573   min-width: 0px;
574   min-height: 0px;
575 }
576
577 toolbar[mode="text"] .toolbarbutton-menubutton-dropmarker {
578   padding-top: 4px;
579   padding-bottom: 8px;
580   -moz-padding-start: 1px;
581   -moz-padding-end: 1px;
582 }
583
584 toolbar[mode="icons"] .toolbarbutton-menubutton-dropmarker,
585 toolbar[iconsize="small"] .toolbarbutton-menubutton-dropmarker,
586 :-moz-any(#TabsToolbar, #addon-bar) .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker {
587   padding-top: 0px;
588   padding-bottom: 13px;
589   -moz-padding-start: 1px;
590   -moz-padding-end: 1px;
591 }
592
593 toolbar[mode="text"] .toolbarbutton-1[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
594 toolbar[mode="text"] .toolbarbutton-1[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker {
595   padding-top: 5px;
596   padding-bottom: 7px;
597   -moz-padding-start: 0px;
598   -moz-padding-end: 2px;
599 }
600
601 toolbar[mode="icons"] .toolbarbutton-1[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
602 toolbar[mode="icons"] .toolbarbutton-1[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker,
603 toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
604 toolbar[iconsize="small"] .toolbarbutton-1[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker,
605 :-moz-any(#TabsToolbar, #addon-bar) .toolbarbutton-1[type="menu-button"]:hover:active > .toolbarbutton-menubutton-dropmarker,
606 :-moz-any(#TabsToolbar, #addon-bar) .toolbarbutton-1[type="menu-button"][open="true"] > .toolbarbutton-menubutton-dropmarker {
607   padding-top: 1px;
608   padding-bottom: 12px;
609   -moz-padding-start: 0px;
610   -moz-padding-end: 2px;
611 }
612
613 toolbar[mode="text"] .toolbarbutton-menubutton-dropmarker[disabled="true"] {
614   padding-top: 4px !important;
615   padding-bottom: 8px !important;
616   -moz-padding-start: 1px !important;
617   -moz-padding-end: 1px !important;
618 }
619
620 toolbar[mode="icons"] .toolbarbutton-menubutton-dropmarker[disabled="true"],
621 toolbar[iconsize="small"] > .toolbarbutton-menubutton-dropmarker[disabled="true"] {
622   padding-top: 0px !important;
623   padding-bottom: 13px !important;
624   -moz-padding-start: 1px !important;
625   -moz-padding-end: 1px !important;
626 }
627
628 toolbar[mode="icons"] .toolbarbutton-text,
629 toolbar[mode="text"] .toolbarbutton-icon {
630   display: none;
631 }
632
633 toolbar[mode="text"] .toolbarbutton-text {
634   padding: 4px 0;
635 }
636
637 toolbar[mode="text"] .toolbarbutton-1,
638 toolbar[mode="text"] .toolbarbutton-1 > .toolbarbutton-menubutton-button {
639   -moz-box-orient: horizontal;
640 }
641
642 toolbar[mode="full"] .toolbarbutton-1,
643 toolbar[mode="full"] .toolbarbutton-1 > .toolbarbutton-menubutton-button {
644   min-width: 30px;
645 }
646
647 #navigator-toolbox[iconsize=small] > #nav-bar {
648 }
649
650 #navigator-toolbox[iconsize=large][mode=icons] > #nav-bar {
651 }
652
653
654 /* unified back/forward button */
655
656 #back-button {
657   -moz-image-region: rect(0, 18px, 18px, 0);
658   -moz-margin-end: 0;
659 }
660
661 #back-button:not([disabled="true"]):hover {
662   -moz-image-region: rect(18px, 18px, 36px, 0);
663 }
664
665 #back-button[disabled="true"] {
666   -moz-image-region: rect(36px, 18px, 54px, 0);
667 }
668
669 #forward-button {
670   -moz-image-region: rect(0, 36px, 18px, 18px);
671   border-left: none;
672   -moz-margin-start: 0;
673 }
674
675 #forward-button:not([disabled="true"]):hover {
676   -moz-image-region: rect(18px, 36px, 36px, 18px);
677 }
678
679 #forward-button[disabled="true"] {
680   -moz-image-region: rect(36px, 36px, 54px, 18px);
681 }
682
683 #back-button:-moz-locale-dir(rtl) > .toolbarbutton-icon,
684 #forward-button:-moz-locale-dir(rtl),
685 #forward-button:-moz-locale-dir(rtl) > .toolbarbutton-text {
686   -moz-transform: scaleX(-1);
687 }
688
689 #nav-bar #back-button {
690   -moz-margin-end: 0 !important;
691 }
692
693 #nav-bar #forward-button {
694   border-left-style: none;
695   -moz-margin-start: 0 !important;
696 }
697
698 #nav-bar #back-button:-moz-locale-dir(ltr) {
699   border-top-right-radius: 0;
700   border-bottom-right-radius: 0;
701 }
702
703 #nav-bar #back-button:-moz-locale-dir(rtl),
704 #nav-bar #forward-button {
705   border-top-left-radius: 0;
706   border-bottom-left-radius: 0;
707 }
708
709 #navigator-toolbox[iconsize="large"][mode="icons"] > #nav-bar #back-button {
710   border-radius: 10000px;
711   width: 30px;
712   height: 30px;
713   position: relative;
714   z-index: 1;
715   margin-top: -2px;
716   margin-bottom: -2px;
717   border: none;
718   -moz-image-region: rect(54px, 20px, 74px, 0);
719 }
720
721 #navigator-toolbox[iconsize="large"][mode="icons"] > #nav-bar #back-button:not([disabled="true"]):hover,
722 #navigator-toolbox[iconsize="large"][mode="icons"] > #nav-bar #back-button[open="true"] {
723   -moz-image-region: rect(54px, 40px, 74px, 20px);
724 }
725
726 #navigator-toolbox[iconsize="large"][mode="icons"] > #nav-bar #back-button[disabled="true"] {
727   -moz-image-region: rect(54px, 60px, 74px, 40px);
728 }
729
730 #navigator-toolbox[iconsize="large"][mode="icons"] > #nav-bar #back-button:not([disabled="true"]):not([open="true"]):not(:active):hover {
731 }
732
733 #navigator-toolbox[iconsize="large"][mode="icons"] > #nav-bar #back-button:not([disabled="true"]):hover:active,
734 #navigator-toolbox[iconsize="large"][mode="icons"] > #nav-bar #back-button[open="true"] {
735 }
736
737 #navigator-toolbox[iconsize="large"][mode="icons"] > #nav-bar[currentset*="unified-back-forward-button"],
738 #navigator-toolbox[iconsize="large"][mode="icons"] > #nav-bar:not([currentset]) {
739 /*  padding-top: 3px;
740   padding-bottom: 5px; */
741 }
742
743 #navigator-toolbox[iconsize="large"][mode="icons"][tabsontop="true"] > #nav-bar[currentset*="unified-back-forward-button"],
744 #navigator-toolbox[iconsize="large"][mode="icons"][tabsontop="true"] > #nav-bar:not([currentset]) {
745 /*  padding-top: 5px; */
746 }
747
748 #navigator-toolbox[iconsize="large"][mode="icons"] > #nav-bar #forward-button {
749   /*mask: url(keyhole-forward-mask.svg#mask); XXX: this regresses twinopen */
750   mask: url("chrome://browser/content/browser.xul#winstripe-keyhole-forward-mask");
751   -moz-margin-start: -6px !important;
752   padding-left: 7px;
753   padding-right: 3px;
754   margin-top: 2px;
755   margin-bottom: 2px;
756 }
757
758 #navigator-toolbox[iconsize="large"][mode="icons"] > #nav-bar #forward-button:-moz-locale-dir(ltr) {
759   border-top-right-radius: 11px;
760   border-bottom-right-radius: 11px;
761 }
762
763 #navigator-toolbox[iconsize="large"][mode="icons"] > #nav-bar #forward-button:-moz-locale-dir(rtl) {
764   border-top-left-radius: 11px;
765   border-bottom-left-radius: 11px;
766 }
767
768 #navigator-toolbox[iconsize="large"][mode="icons"] > #nav-bar #forward-button:not([disabled="true"]):not(:active):hover {
769   /*mask: url(keyhole-forward-mask.svg#mask-hover);*/
770   mask: url("chrome://browser/content/browser.xul#winstripe-keyhole-forward-mask-hover");
771 }
772
773 .unified-nav-back[_moz-menuactive]:-moz-locale-dir(ltr),
774 .unified-nav-forward[_moz-menuactive]:-moz-locale-dir(rtl) {
775   list-style-image: url("chrome://global/skin/arrow/arrow-left.gif") !important;
776 }
777
778 .unified-nav-back[_moz-menuactive]:-moz-locale-dir(ltr):hover,
779 .unified-nav-forward[_moz-menuactive]:-moz-locale-dir(rtl):hover {
780   list-style-image: url("chrome://global/skin/arrow/arrow-left-hover.gif") !important;
781 }
782
783 .unified-nav-forward[_moz-menuactive]:-moz-locale-dir(ltr),
784 .unified-nav-back[_moz-menuactive]:-moz-locale-dir(rtl) {
785   list-style-image: url("chrome://global/skin/arrow/arrow-right.gif") !important;
786 }
787
788 .unified-nav-forward[_moz-menuactive]:-moz-locale-dir(ltr):hover,
789 .unified-nav-back[_moz-menuactive]:-moz-locale-dir(rtl):hover {
790   list-style-image: url("chrome://global/skin/arrow/arrow-right.gif") !important;
791 }
792
793 window:not([chromehidden~=toolbar]) #navigator-toolbox[iconsize=large][mode=icons] >
794     :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"],#nav-bar:not([currentset])) >
795     #unified-back-forward-button > #forward-button {
796 /*  border-top-right-radius: 0;
797   border-bottom-right-radius: 0;
798   -moz-margin-end: 0; */
799 }
800
801 window:not([chromehidden~=toolbar]) #navigator-toolbox[iconsize=large][mode=icons] >
802     :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"],#nav-bar:not([currentset])) >
803     #unified-back-forward-button:not([switchingtabs]) > #forward-button {
804   -moz-transition: opacity 150ms ease-out;
805 }
806
807 window:not([chromehidden~=toolbar]) #navigator-toolbox[iconsize=large][mode=icons] >
808     :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"],#nav-bar:not([currentset])) >
809     #unified-back-forward-button:not(:hover) > #forward-button[disabled] {
810   opacity: 0;
811 }
812
813 window:not([chromehidden~=toolbar]) #navigator-toolbox[iconsize=large][mode=icons] >
814     :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"],#nav-bar:not([currentset])) >
815     #unified-back-forward-button:hover > #forward-button[disabled] {
816   background-color: transparent;
817 }
818
819 /* stop button */
820
821 #stop-button {
822   -moz-image-region: rect(0, 54px, 18px, 36px);
823 }
824
825 #stop-button:not([disabled="true"]):hover {
826   -moz-image-region: rect(18px, 54px, 36px, 36px);
827 }
828
829 #stop-button[disabled="true"] {
830   -moz-image-region: rect(36px, 54px, 54px, 36px);
831 }
832
833 /* reload button */
834
835 #reload-button {
836   -moz-image-region: rect(0, 72px, 18px, 54px);
837 }
838
839 #reload-button:not([disabled="true"]):hover {
840   -moz-image-region: rect(18px, 72px, 36px, 54px);
841 }
842
843 #reload-button[disabled="true"] {
844   -moz-image-region: rect(36px, 72px, 54px, 54px);
845 }
846
847 /* home button */
848
849 #home-button.bookmark-item {
850   list-style-image: url("chrome://browser/skin/Toolbar.png");
851 }
852 #home-button {
853   -moz-image-region: rect(0, 90px, 18px, 72px);
854 }
855
856 #home-button:not([disabled="true"]):hover {
857   -moz-image-region: rect(18px, 90px, 36px, 72px);
858 }
859
860 #home-button[disabled="true"] {
861   -moz-image-region: rect(36px, 90px, 54px, 72px);
862 }
863
864 /* tabview button */
865
866 #tabview-button,
867 #menu_tabview {
868   list-style-image: url("chrome://browser/skin/tabview/tabview.png");
869 }
870
871 #tabview-button {
872   -moz-image-region: rect(0, 90px, 18px, 72px);
873 }
874
875 #tabview-button[groups="0"] {
876   -moz-image-region: rect(0, 18px, 18px, 0);
877 }
878
879 #tabview-button[groups="1"] {
880   -moz-image-region: rect(0, 36px, 18px, 18px);
881 }
882
883 #tabview-button[groups="2"] {
884   -moz-image-region: rect(0, 54px, 18px, 36px);
885 }
886
887 #tabview-button[groups="3"] {
888   -moz-image-region: rect(0, 72px, 18px, 54px);
889 }
890
891 #menu_tabview {
892   -moz-image-region: rect(1px, 89px, 17px, 73px);
893 }
894
895 #menu_tabview[groups="0"] {
896   -moz-image-region: rect(1px, 17px, 17px, 1px);
897 }
898
899 #menu_tabview[groups="1"] {
900   -moz-image-region: rect(1px, 35px, 17px, 19px);
901 }
902
903 #menu_tabview[groups="2"] {
904   -moz-image-region: rect(1px, 53px, 17px, 37px);
905 }
906
907 #menu_tabview[groups="3"] {
908   -moz-image-region: rect(1px, 71px, 17px, 55px);
909 }
910
911 /* download manager button */
912
913 #downloads-button {
914   -moz-image-region: rect(0, 108px, 18px, 90px);
915 }
916
917 #downloads-button:not([disabled="true"]):hover {
918   -moz-image-region: rect(18px, 108px, 36px, 90px);
919 }
920
921 #downloads-button[disabled="true"] {
922   -moz-image-region: rect(36px, 108px, 54px, 90px);
923 }
924
925 /* history sidebar button */
926
927 #history-button {
928   -moz-image-region: rect(0, 126px, 18px, 108px);
929 }
930
931 #history-button:not([disabled="true"]):hover {
932   -moz-image-region: rect(18px, 126px, 36px, 108px);
933 }
934
935 #history-button[disabled="true"] {
936   -moz-image-region: rect(36px, 126px, 54px, 108px);
937 }
938
939 /* bookmark sidebar & menu buttons */
940
941 #bookmarks-button,
942 #bookmarks-menu-button {
943   list-style-image: url("chrome://browser/skin/Toolbar.png") !important; /* for making the palette work */
944   -moz-image-region: rect(0, 144px, 18px, 126px);
945 }
946
947 #bookmarks-menu-button.bookmark-item {
948   /* list-style-image: url("chrome://browser/skin/Toolbar.png"); */
949 }
950
951 #bookmarks-menu-button.toolbarbutton-1 {
952   -moz-box-orient: horizontal;
953 }
954
955 #bookmarks-button:not([disabled="true"]):hover,
956 #bookmarks-menu-button[open="true"],
957 #bookmarks-menu-button:not([disabled="true"]):hover {
958   -moz-image-region: rect(18px, 144px, 36px, 126px);
959 }
960
961 #bookmarks-button[disabled="true"],
962 #bookmarks-menu-button[disabled="true"] {
963   -moz-image-region: rect(36px, 144px, 54px, 126px);
964 }
965
966 /* print button */
967
968 #print-button {
969   -moz-image-region: rect(0, 162px, 18px, 144px);
970 }
971
972 #print-button:not([disabled="true"]):hover {
973   -moz-image-region: rect(18px, 162px, 36px, 144px);
974 }
975
976 #print-button[disabled="true"] {
977   -moz-image-region: rect(36px, 162px, 54px, 144px);
978 }
979
980 /* toolbar new tab button */
981
982 #new-tab-button {
983   -moz-image-region: rect(0, 180px, 18px, 162px);
984 }
985
986 #print-button:not([disabled="true"]):hover {
987   -moz-image-region: rect(18px, 162px, 36px, 144px);
988 }
989
990 #print-button[disabled="true"] {
991   -moz-image-region: rect(36px, 162px, 54px, 144px);
992 }
993
994 /* new window button */
995
996 #new-window-button {
997   -moz-image-region: rect(0, 198px, 18px, 180px);
998 }
999
1000 #new-window-button:not([disabled="true"]):hover {
1001   -moz-image-region: rect(18px, 198px, 36px, 180px);
1002 }
1003
1004 #new-window-button[disabled="true"] {
1005   -moz-image-region: rect(36px, 198px, 54px, 180px);
1006 }
1007
1008 /* cut button */
1009
1010 #cut-button {
1011   -moz-image-region: rect(0, 216px, 18px, 198px);
1012 }
1013
1014 #cut-button:not([disabled="true"]):hover {
1015   -moz-image-region: rect(18px, 216px, 36px, 198px);
1016 }
1017
1018 #cut-button[disabled="true"] {
1019   -moz-image-region: rect(36px, 216px, 54px, 198px);
1020 }
1021
1022 /* copy button */
1023
1024 #copy-button {
1025   -moz-image-region: rect(0, 234px, 18px, 216px);
1026 }
1027
1028 #copy-button:not([disabled="true"]):hover {
1029   -moz-image-region: rect(18px, 234px, 36px, 216px);
1030 }
1031
1032 #copy-button[disabled="true"] {
1033   -moz-image-region: rect(36px, 234px, 54px, 216px);
1034 }
1035
1036 /* paste button */
1037
1038 #paste-button {
1039   -moz-image-region: rect(0, 252px, 18px, 234px);
1040 }
1041
1042 #paste-button:not([disabled="true"]):hover {
1043   -moz-image-region: rect(18px, 252px, 36px, 234px);
1044 }
1045
1046 #paste-button[disabled="true"] {
1047   -moz-image-region: rect(36px, 252px, 54px, 234px);
1048 }
1049
1050 /* fullscreen button */
1051
1052 #fullscreen-button {
1053   -moz-image-region: rect(0, 270px, 18px, 252px);
1054 }
1055
1056 #fullscreen-button:not([disabled="true"]):hover {
1057   -moz-image-region: rect(18px, 270px, 36px, 252px);
1058 }
1059
1060 #fullscreen-button[disabled="true"] {
1061   -moz-image-region: rect(36px, 270px, 54px, 252px);
1062 }
1063
1064 /* zoom controls */
1065
1066 #zoom-out-button {
1067   -moz-image-region: rect(0, 288px, 18px, 270px);
1068   -moz-margin-end: 0;
1069 }
1070
1071 #zoom-in-button {
1072   -moz-image-region: rect(0, 306px, 18px, 288px);
1073 }
1074
1075 #nav-bar #zoom-out-button {
1076   -moz-margin-end: 0;
1077 }
1078
1079 #nav-bar #zoom-in-button {
1080   -moz-border-start: none;
1081   -moz-margin-start: 0;
1082 }
1083
1084 #nav-bar #zoom-out-button:-moz-locale-dir(ltr),
1085 #nav-bar #zoom-in-button:-moz-locale-dir(rtl) {
1086   border-top-right-radius: 0;
1087   border-bottom-right-radius: 0;
1088 }
1089
1090 #nav-bar #zoom-out-button:-moz-locale-dir(rtl),
1091 #nav-bar #zoom-in-button:-moz-locale-dir(ltr) {
1092   border-top-left-radius: 0;
1093   border-bottom-left-radius: 0;
1094 }
1095
1096 #zoom-out-button:not([disabled="true"]):hover {
1097   -moz-image-region: rect(18px, 288px, 36px, 270px);
1098 }
1099
1100 #zoom-out-button[disabled="true"] {
1101   -moz-image-region: rect(36px, 288px, 54px, 270px);
1102 }
1103
1104 #zoom-in-button:not([disabled="true"]):hover {
1105   -moz-image-region: rect(18px, 306px, 36px, 288px);
1106 }
1107
1108 #zoom-in-button[disabled="true"] {
1109   -moz-image-region: rect(36px, 306px, 54px, 288px);
1110 }
1111
1112 /* sync button */
1113
1114 #sync-button:not([status]) {
1115   list-style-image: url("chrome://browser/skin/Toolbar.png") !important; /* for making the palette work */
1116   -moz-image-region: rect(0, 324px, 18px, 306px);
1117 }
1118
1119 #sync-button[status="active"] {
1120   list-style-image: url("chrome://browser/skin/sync-throbber.png");
1121   -moz-image-region: rect(0, 18px, 18px, 0);
1122 }
1123
1124 #sync-button[disabled="true"] {
1125   -moz-image-region: rect(36px, 324px, 54px, 306px);
1126 }
1127
1128 /* feed button */
1129
1130 #feed-button {
1131   -moz-image-region: rect(0, 342px, 18px, 324px);
1132 }
1133
1134 #feed-button[disabled="true"] {
1135   -moz-image-region: rect(36px, 342px, 54px, 324px);
1136 }
1137
1138 /* ::::: fullscreen window controls ::::: */
1139
1140 #TabsToolbar > #window-controls {
1141   -moz-margin-start: 4px;
1142 }
1143
1144 #minimize-button,
1145 #restore-button,
1146 #close-button {
1147 /*  padding: 0; */
1148 }
1149
1150 #minimize-button {
1151   list-style-image: url("chrome://navigator/skin/icons/win-minimize.gif");
1152 }
1153
1154 #minimize-button:hover {
1155   list-style-image: url("chrome://navigator/skin/icons/win-minimize-hover.gif");
1156 }
1157
1158 #restore-button {
1159   list-style-image: url("chrome://navigator/skin/icons/win-restore.gif");
1160 }
1161
1162 #restore-button:hover {
1163   list-style-image: url("chrome://navigator/skin/icons/win-restore-hover.gif");
1164 }
1165
1166 #close-button {
1167   list-style-image: url("chrome://navigator/skin/icons/win-close.gif");
1168 }
1169
1170 #close-button:hover {
1171   list-style-image: url("chrome://navigator/skin/icons/win-close-hover.gif");
1172 }
1173
1174 /* ::::: Location Bar ::::: */
1175
1176 #urlbar,
1177 .searchbar-textbox {
1178   border-radius: 5px;
1179   margin: 0;
1180   -moz-margin-start: 3px;
1181 }
1182
1183 #urlbar {
1184   width: 7em;
1185   min-width: 7em;
1186 }
1187
1188 #urlbar:-moz-lwtheme,
1189 .searchbar-textbox:-moz-lwtheme {
1190   /* background-color: rgba(255,255,255,.8);
1191   @navbarTextboxCustomBorder@
1192   color: black; */
1193 }
1194
1195 window:not([chromehidden~=toolbar]) #navigator-toolbox[iconsize=large][mode=icons] >
1196     :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"],#nav-bar:not([currentset])) >
1197     #unified-back-forward-button + #urlbar-container {
1198   padding-left: 22px;
1199   -moz-margin-start: -22px;
1200   position: relative;
1201   pointer-events: none;
1202 }
1203
1204 window:not([chromehidden~=toolbar]) #navigator-toolbox[iconsize=large][mode=icons] >
1205     :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"],#nav-bar:not([currentset])) >
1206     #unified-back-forward-button + #urlbar-container > #urlbar {
1207 /*  -moz-border-start: none;
1208   margin-left: 0; */
1209   pointer-events: all;
1210 }
1211
1212 window:not([chromehidden~=toolbar]) #navigator-toolbox[iconsize=large][mode=icons] >
1213     :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"],#nav-bar:not([currentset])) >
1214     #unified-back-forward-button:not([switchingtabs]) + #urlbar-container > #urlbar {
1215   -moz-transition: margin-left 150ms ease-out;
1216 }
1217
1218 window:not([chromehidden~=toolbar]) #navigator-toolbox[iconsize=large][mode=icons] >
1219     :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"],#nav-bar:not([currentset])) >
1220     #unified-back-forward-button + #urlbar-container > #urlbar:-moz-locale-dir(ltr) {
1221 /*  border-top-left-radius: 0;
1222   border-bottom-left-radius: 0; */
1223 }
1224
1225 window:not([chromehidden~=toolbar]) #navigator-toolbox[iconsize=large][mode=icons] >
1226     :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"],#nav-bar:not([currentset])) >
1227     #unified-back-forward-button + #urlbar-container > #urlbar:-moz-locale-dir(rtl) {
1228 /*  border-top-right-radius: 0;
1229   border-bottom-right-radius: 0; */
1230 }
1231
1232 window:not([chromehidden~=toolbar]) #navigator-toolbox[iconsize=large][mode=icons] >
1233     :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"],#nav-bar:not([currentset])) >
1234     #unified-back-forward-button[forwarddisabled] + #urlbar-container {
1235   mask: url("chrome://browser/content/browser.xul#winstripe-urlbar-back-button-mask");
1236 }
1237
1238 window:not([chromehidden~=toolbar]) #navigator-toolbox[iconsize=large][mode=icons] >
1239     :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"],#nav-bar:not([currentset])) >
1240     #unified-back-forward-button[forwarddisabled] + #urlbar-container > #urlbar {
1241   margin-left: -22px;
1242 }
1243
1244 window:not([chromehidden~=toolbar]) #navigator-toolbox[iconsize=large][mode=icons] >
1245     :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"],#nav-bar:not([currentset])) >
1246     #unified-back-forward-button[forwarddisabled]:hover:not([switchingtabs]) + #urlbar-container > #urlbar {
1247   /* delay the hiding of the forward button when hovered to avoid accidental clicks on the url bar */
1248   -moz-transition-delay: 100s;
1249 }
1250
1251 window:not([chromehidden~=toolbar]) #navigator-toolbox[iconsize=large][mode=icons] >
1252     :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"],#nav-bar:not([currentset])) >
1253     #unified-back-forward-button[forwarddisabled]:not(:hover) + #urlbar-container > #urlbar {
1254   /* when not hovered anymore, trigger a new transition to hide the forward button immediately */
1255   margin-left: -22.01px;
1256 }
1257
1258 window:not([chromehidden~=toolbar]) #navigator-toolbox[iconsize=large][mode=icons] >
1259     :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"],#nav-bar:not([currentset])) >
1260     #unified-back-forward-button + #urlbar-container:-moz-locale-dir(rtl),
1261 window:not([chromehidden~=toolbar]) #navigator-toolbox[iconsize=large][mode=icons] >
1262     :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"],#nav-bar:not([currentset])) >
1263     #unified-back-forward-button + #urlbar-container > #urlbar:-moz-locale-dir(rtl) {
1264   /* let winstripe-urlbar-back-button-mask clip the urlbar's right side for RTL */
1265   -moz-transform: scaleX(-1);
1266 }
1267
1268 html|*.urlbar-input:-moz-lwtheme:-moz-placeholder,
1269 .searchbar-textbox:-moz-lwtheme > .autocomplete-textbox-container > .textbox-input-box > html|*.textbox-input:-moz-placeholder {
1270   color: #E7ADE7;
1271 }
1272
1273 #urlbar:-moz-lwtheme[focused="true"],
1274 .searchbar-textbox:-moz-lwtheme[focused="true"] {
1275 /*  background-color: white; */
1276 }
1277
1278 #urlbar-container {
1279   -moz-box-orient: horizontal;
1280   -moz-box-align: stretch;
1281 }
1282
1283 .urlbar-textbox-container {
1284   -moz-box-align: stretch;
1285 }
1286
1287 #urlbar-icons {
1288   -moz-box-align: center;
1289 }
1290
1291 .urlbar-icon {
1292   padding: 2px;
1293 }
1294
1295 .searchbar-engine-button,
1296 .search-go-container {
1297   padding: 2px;
1298 }
1299
1300 .search-go-container > .search-go-button {
1301   padding: 0;
1302 }
1303
1304 .urlbar-icon:-moz-system-metric(touch-enabled) {
1305   -moz-margin-end: 1px !important;
1306   padding: 0 3px !important;
1307 }
1308
1309 .urlbar-icon:hover {
1310 }
1311
1312 .urlbar-icon[open="true"],
1313 .urlbar-icon:hover:active {
1314 }
1315
1316 #urlbar-search-splitter {
1317   min-width: 6px;
1318   -moz-margin-start: -3px;
1319   border: none;
1320   background: transparent;
1321 }
1322
1323 #urlbar-search-splitter + #urlbar-container > #urlbar ,
1324 #urlbar-search-splitter + #search-container > #searchbar > .searchbar-textbox {
1325   -moz-margin-start: 0;
1326 }
1327
1328 #urlbar-display {
1329   -moz-border-end: 1px solid #9C9CFF;
1330   -moz-margin-end: 3px;
1331   margin-top: 0;
1332   margin-bottom: 0;
1333   color: #8050B0;
1334 }
1335
1336 /* identity box */
1337
1338 #identity-box {
1339   background-color: #000000;
1340   color: #FF9F00;
1341   border-radius: 2px;
1342 }
1343
1344 #notification-popup-box:not([hidden]) + #identity-box {
1345   -moz-padding-start: 10px;
1346   border-radius: 0;
1347 }
1348
1349 window:not([chromehidden~=toolbar]) #navigator-toolbox[iconsize=large][mode=icons] >
1350     :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"],#nav-bar:not([currentset])) >
1351     #unified-back-forward-button + #urlbar-container > #urlbar > #identity-box {
1352 /*   border-radius: 0; */
1353 }
1354
1355 window:not([chromehidden~=toolbar]) #navigator-toolbox[iconsize=large][mode=icons] >
1356     :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"],#nav-bar:not([currentset])) >
1357     #unified-back-forward-button[forwarddisabled] + #urlbar-container > #urlbar > #notification-popup-box[hidden] + #identity-box:-moz-locale-dir(ltr) {
1358   padding-left: 5px;
1359   -moz-transition: padding-left;
1360 }
1361
1362 window:not([chromehidden~=toolbar]) #navigator-toolbox[iconsize=large][mode=icons] >
1363     :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"],#nav-bar:not([currentset])) >
1364     #unified-back-forward-button[forwarddisabled] + #urlbar-container > #urlbar > #notification-popup-box[hidden] + #identity-box:-moz-locale-dir(rtl) {
1365   padding-right: 5px;
1366   -moz-transition: padding-right;
1367 }
1368
1369 window:not([chromehidden~=toolbar]) #navigator-toolbox[iconsize=large][mode=icons] >
1370     :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"],#nav-bar:not([currentset])) >
1371     #unified-back-forward-button[forwarddisabled]:hover:not([switchingtabs]) + #urlbar-container > #urlbar > #notification-popup-box[hidden] + #identity-box {
1372   /* forward button hiding is delayed when hovered */
1373   -moz-transition-delay: 100s;
1374 }
1375
1376 window:not([chromehidden~=toolbar]) #navigator-toolbox[iconsize=large][mode=icons] >
1377     :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"],#nav-bar:not([currentset])) >
1378     #unified-back-forward-button[forwarddisabled]:not(:hover) + #urlbar-container > #urlbar > #notification-popup-box[hidden] + #identity-box:-moz-locale-dir(ltr) {
1379   /* when not hovered anymore, trigger a new non-delayed transition to react to the forward button hiding */
1380   padding-left: 5.01px;
1381 }
1382
1383 window:not([chromehidden~=toolbar]) #navigator-toolbox[iconsize=large][mode=icons] >
1384     :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"],#nav-bar:not([currentset])) >
1385     #unified-back-forward-button[forwarddisabled]:not(:hover) + #urlbar-container > #urlbar > #notification-popup-box[hidden] + #identity-box:-moz-locale-dir(rtl) {
1386   /* when not hovered anymore, trigger a new non-delayed transition to react to the forward button hiding */
1387   padding-right: 5.01px;
1388 }
1389
1390 #identity-box:hover {
1391   background-color: #9C9CFF;
1392   color: #000000;
1393 }
1394
1395 #identity-box[open="true"],
1396 #identity-box:hover:active {
1397   background-color: #FF9F00;
1398   color: #000000;
1399 }
1400
1401 #identity-box.verifiedDomain {
1402   background-color: #FFCF00;
1403   color: #000000;
1404 }
1405
1406 #identity-box.verifiedIdentity {
1407   background-color: #008484;
1408   color: #000000;
1409 }
1410
1411 #identity-box:-moz-focusring {
1412   outline: 1px dotted #008484;
1413   outline-offset: -1px;
1414 }
1415
1416 #identity-box.verifiedDomain:-moz-focusring,
1417 #identity-box.verifiedIdentity:-moz-focusring {
1418   outline-color: #000000;
1419 }
1420
1421 #identity-icon-labels {
1422   -moz-margin-start: 1px;
1423   -moz-margin-end: 3px;
1424 }
1425
1426 /* Location bar dropmarker */
1427
1428 .urlbar-history-dropmarker:not(:hover):not([open="true"]) {
1429   background-color: transparent;
1430 }
1431
1432 #urlbar-container[combined="true"] > #urlbar > .urlbar-history-dropmarker {
1433   border: none;
1434   border-radius: 0px;
1435 }
1436
1437 .urlbar-history-dropmarker:hover {
1438 }
1439
1440 .urlbar-history-dropmarker:hover:active,
1441 .urlbar-history-dropmarker[open="true"] {
1442 }
1443
1444 /* page proxy icon */
1445
1446 #page-proxy-favicon {
1447   width: 16px;
1448   height: 16px;
1449 }
1450
1451 #page-proxy-stack {
1452   width: 24px;
1453   height: 18px;
1454   padding: 1px 4px;
1455 }
1456
1457 #page-proxy-favicon:not([src]) {
1458   list-style-image: url("chrome://mozapps/skin/places/defaultFavicon.png");
1459 }
1460
1461 #page-proxy-favicon[pageproxystate="invalid"] {
1462   opacity: 0.5;
1463 }
1464
1465 /* autocomplete */
1466
1467 #treecolAutoCompleteImage {
1468   max-width: 36px;
1469 }
1470
1471 .ac-result-type-bookmark,
1472 .autocomplete-treebody::-moz-tree-image(bookmark, treecolAutoCompleteImage) {
1473   list-style-image: url("chrome://browser/skin/places/bookmark.png");
1474   -moz-image-region: rect(0px 16px 16px 0px);
1475   width: 16px;
1476   height: 16px;
1477 }
1478
1479 .ac-result-type-keyword,
1480 .autocomplete-treebody::-moz-tree-image(keyword, treecolAutoCompleteImage) {
1481   list-style-image: url("chrome://global/skin/icons/Search-glass.png");
1482   -moz-image-region: rect(0px 32px 16px 16px);
1483   width: 16px;
1484   height: 16px;
1485 }
1486
1487 .ac-result-type-tag,
1488 .autocomplete-treebody::-moz-tree-image(tag, treecolAutoCompleteImage) {
1489   list-style-image: url("chrome://mozapps/skin/places/tagContainerIcon.png");
1490   width: 16px;
1491   height: 16px;
1492 }
1493
1494 .ac-comment {
1495   font-size: 1.15em;
1496 }
1497
1498 .ac-extra > .ac-comment {
1499   font-size: inherit;
1500 }
1501
1502 .ac-url-text,
1503 .ac-action-text {
1504   color: #9C9CFF;
1505 }
1506
1507 richlistitem[type~="action"][actiontype="switchtab"] > .ac-url-box > .ac-action-icon {
1508   list-style-image: url("chrome://browser/skin/actionicon-tab.png");
1509 }
1510
1511 .autocomplete-treebody::-moz-tree-cell-text(treecolAutoCompleteComment) {
1512   color: #8050B0;
1513 }
1514
1515 .ac-comment[selected="true"],
1516 .ac-url-text[selected="true"],
1517 .ac-action-text[selected="true"] {
1518   color: inherit !important;
1519 }
1520
1521 .autocomplete-treebody::-moz-tree-cell-text(suggesthint, treecolAutoCompleteComment),
1522 .autocomplete-treebody::-moz-tree-cell-text(suggestfirst, treecolAutoCompleteComment)
1523 {
1524   color: #8050B0;
1525   font-size: smaller;
1526 }
1527
1528 .autocomplete-treebody::-moz-tree-cell(suggesthint) {
1529   border-top: 1px solid #9C9CFF;
1530 }
1531
1532 /* combined go/reload/stop button in location bar */
1533
1534 #go-button,
1535 #urlbar > toolbarbutton {
1536   list-style-image: url("chrome://browser/skin/reload-stop-go.png");
1537   /* margin: -2px; */
1538   -moz-margin-start: 0;
1539   padding: 0 2px;
1540   background-origin: border-box;
1541   border: none;
1542   -moz-border-start: 1px solid #9C9CFF;
1543 }
1544
1545 #go-button {
1546   padding: 0 3px;
1547 }
1548
1549 #urlbar:-moz-locale-dir(ltr) > toolbarbutton {
1550   border-top-left-radius: 0px;
1551   border-bottom-left-radius: 0px;
1552 }
1553
1554 #urlbar:-moz-locale-dir(rtl) > toolbarbutton {
1555   border-top-right-radius: 0px;
1556   border-bottom-right-radius: 0px;
1557 }
1558
1559 #urlbar > toolbarbutton:not([disabled]):active:hover,
1560 #urlbar-reload-button:not(:hover) {
1561   -moz-border-start-style: none;
1562   -moz-padding-start: 3px;
1563 }
1564
1565 #urlbar > toolbarbutton:not([disabled]):active:hover {
1566 }
1567
1568 #urlbar-go-button {
1569   -moz-image-region: rect(0, 42px, 14px, 28px);
1570 }
1571
1572 #go-button:-moz-locale-dir(rtl) > .toolbarbutton-icon,
1573 #urlbar-go-button:-moz-locale-dir(rtl) > .toolbarbutton-icon {
1574   -moz-transform: scaleX(-1);
1575 }
1576
1577 #urlbar-go-button:hover,
1578 #go-button:hover {
1579   -moz-image-region: rect(14px, 42px, 28px, 28px);
1580 }
1581
1582 #urlbar-reload-button {
1583   -moz-image-region: rect(0px, 14px, 14px, 0px);
1584 }
1585
1586 #urlbar-reload-button[disabled] {
1587   -moz-image-region: rect(28px, 14px, 42px, 0px);
1588 }
1589
1590 #urlbar-reload-button:not([disabled]):hover {
1591   -moz-image-region: rect(14px, 14px, 28px, 0px);
1592 }
1593
1594 #urlbar-stop-button {
1595   -moz-image-region: rect(0px, 28px, 14px, 14px);
1596 }
1597
1598 #urlbar-stop-button:hover {
1599   -moz-image-region: rect(14px, 28px, 28px, 14px);
1600 }
1601
1602 /* popup blocker button */
1603
1604 #page-report-button {
1605   list-style-image: url("chrome://browser/skin/urlbar-popup-blocked.png");
1606   -moz-image-region: rect(0, 16px, 16px, 0);
1607 }
1608
1609 #page-report-button:hover ,
1610 #page-report-button:hover:active,
1611 #page-report-button[open="true"] {
1612   -moz-image-region: rect(0, 32px, 16px, 16px);
1613 }
1614
1615 /* star button */
1616
1617 #star-button {
1618   list-style-image: url("chrome://communicator/skin/bookmarks/bookmark.png");
1619   -moz-image-region: rect(16px 16px 32px 0px);
1620 }
1621
1622 #star-button:hover {
1623   -moz-image-region: rect(16px 32px 32px 16px);
1624 }
1625
1626 #star-button:hover:active {
1627   -moz-image-region: rect(16px 48px 32px 32px);
1628 }
1629
1630 #star-button[starred="true"] {
1631   -moz-image-region: rect(0px 16px 16px 0px);
1632 }
1633
1634 #star-button[starred="true"]:hover {
1635   -moz-image-region: rect(0px 32px 16px 16px);
1636 }
1637
1638 #star-button[starred="true"]:hover:active {
1639   -moz-image-region: rect(0px 48px 16px 32px);
1640 }
1641
1642 /* bookmarking panel */
1643 #editBookmarkPanelStarIcon {
1644   list-style-image: url("chrome://browser/skin/places/starred48.png");
1645   width: 48px;
1646   height: 48px;
1647 }
1648
1649 #editBookmarkPanelStarIcon[unstarred] {
1650   list-style-image: url("chrome://browser/skin/places/unstarred48.png");
1651 }
1652
1653 #editBookmarkPanelTitle {
1654   font-size: 130%;
1655 }
1656
1657 #editBookmarkPanelHeader,
1658 #editBookmarkPanelContent {
1659   margin-bottom: .5em;
1660 }
1661
1662 /* Implements editBookmarkPanel resizing on folderTree un-collapse. */
1663 #editBMPanel_folderTree {
1664   min-width: 27em;
1665 }
1666
1667 .panel-promo-box {
1668   margin: 5px -6px -6px -6px;
1669   padding: 5px;
1670   background-color: #000000;
1671   color: #FF9F00;
1672   border-bottom-left-radius: 5px;
1673   border-bottom-right-radius: 5px;
1674   border-top: 1px solid #9C9CFF;
1675 }
1676
1677 .panel-promo-icon {
1678   list-style-image: url("chrome://browser/skin/sync-notification-24.png");
1679   -moz-margin-end: 10px;
1680   vertical-align: middle;
1681 }
1682
1683 .panel-promo-closebutton {
1684   list-style-image: url("chrome://global/skin/icons/close-button.gif");
1685   -moz-margin-end: -3px;
1686   margin-top: -3px;
1687 }
1688
1689 .panel-promo-closebutton:hover {
1690   list-style-image: url("chrome://global/skin/icons/close-button-hover.gif");
1691 }
1692
1693 .panel-promo-closebutton:hover:active {
1694   list-style-image: url("chrome://global/skin/icons/close-button-hover.gif");
1695 }
1696
1697 .panel-promo-closebutton > .toolbarbutton-text {
1698   padding: 0;
1699   margin: 0;
1700 }
1701
1702 /* ::::: content area ::::: */
1703
1704 #sidebar {
1705   background-color: Window;
1706 }
1707
1708 #sidebar-title {
1709   -moz-padding-start: 0px;
1710 }
1711
1712 /* ::::: throbber ::::: */
1713
1714 #navigator-throbber {
1715   width: 16px;
1716   min-height: 16px;
1717   margin: 0 3px;
1718 }
1719
1720 #navigator-throbber[busy="true"] {
1721   list-style-image: url("chrome://communicator/skin/brand/throbber16-anim.gif");
1722 }
1723
1724 #navigator-throbber,
1725 #wrapper-navigator-throbber > #navigator-throbber {
1726   list-style-image: url("chrome://communicator/skin/brand/throbber16-single.gif");
1727 }
1728
1729 /* Tabstrip */
1730
1731 #TabsToolbar {
1732   min-height: 0;
1733   padding: 0;
1734   -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar");
1735 }
1736
1737 #TabsToolbar .toolbar-holder {
1738   background-color: #000000; /* correct effect of being an actual toolbar */
1739 }
1740
1741 #main-window[disablechrome] #TabsToolbar,
1742 #TabsToolbar[tabsontop="false"] {
1743   border-bottom: 1px solid #FF9F00;
1744 }
1745
1746 .tabbrowser-tab,
1747 .tabs-newtab-button {
1748   margin-top: 0px;
1749 }
1750
1751 .tabbrowser-tab:hover,
1752 .tabs-newtab-button:hover {
1753 }
1754
1755 .tabbrowser-tab[selected="true"] {
1756 }
1757
1758 #main-window[tabsontop=false]:not([disablechrome]) .tabbrowser-tab[selected=true]:not(:-moz-lwtheme) {
1759 }
1760
1761 .tabbrowser-tab:-moz-lwtheme {
1762 }
1763
1764 .tabbrowser-tab[selected="true"]:-moz-lwtheme {
1765 }
1766
1767 .tabbrowser-tab:-moz-lwtheme-brighttext:not([selected="true"]),
1768 .tabs-newtab-button:-moz-lwtheme-brighttext {
1769 }
1770
1771 .tabbrowser-tab:-moz-lwtheme-brighttext:not([selected="true"]):hover,
1772 .tabs-newtab-button:-moz-lwtheme-brighttext:hover {
1773 }
1774
1775 .tabbrowser-tab:-moz-lwtheme-darktext:not([selected="true"]),
1776 .tabs-newtab-button:-moz-lwtheme-darktext {
1777 }
1778
1779 .tabbrowser-tab:-moz-lwtheme-darktext:not([selected="true"]):hover,
1780 .tabs-newtab-button:-moz-lwtheme-darktext:hover {
1781 }
1782
1783 .tabbrowser-tab[pinned][titlechanged]:not([selected="true"]) {
1784   background-color: #E7ADE7;
1785 }
1786 .tabbrowser-tab[pinned][titlechanged]:not([selected="true"]):hover {
1787   background-color: #0000FF;
1788   color: #000000;
1789 }
1790
1791 .tab-throbber,
1792 .tab-icon-image {
1793   width: 16px;
1794   height: 16px;
1795   list-style-image: url("chrome://mozapps/skin/places/defaultFavicon.png");
1796   -moz-image-region: auto;
1797   -moz-margin-end: 3px;
1798 }
1799
1800 .tab-throbber {
1801   list-style-image: url("chrome://browser/skin/tabbrowser/connecting.png");
1802 }
1803
1804 .tab-throbber[progress] {
1805   list-style-image: url("chrome://browser/skin/tabbrowser/loading.png");
1806 }
1807
1808 #tabbrowser-tabs[positionpinnedtabs] > .tabbrowser-tab[pinned] {
1809   min-height: 16px; /* corresponds to the max. height of non-textual tab contents, i.e. the favicon */
1810 }
1811
1812 .tab-throbber[pinned],
1813 .tab-icon-image[pinned] {
1814   -moz-margin-start: 2px;
1815   -moz-margin-end: 2px;
1816 }
1817
1818 /* tabbrowser-tab focus ring */
1819 .tabbrowser-tab:focus > .tab-stack {
1820   outline: 1px dotted;
1821 }
1822
1823 /* Tab DnD indicator */
1824 .tab-drop-indicator {
1825   list-style-image: url("chrome://browser/skin/tabbrowser/tabDragIndicator.png");
1826   margin-bottom: -11px;
1827 }
1828
1829 /* Tab close button */
1830 .tab-close-button {
1831   border: none;
1832   padding: 0px;
1833   list-style-image: url("chrome://global/skin/icons/close-button.gif");
1834 }
1835
1836 .tab-close-button:-moz-system-metric(touch-enabled) {
1837   -moz-transform: scale(1.2);
1838 }
1839
1840 .tab-close-button:hover,
1841 .tab-close-button:hover[selected="true"] {
1842   list-style-image: url("chrome://global/skin/icons/close-button-hover.gif");
1843 }
1844
1845 .tab-close-button:hover:active,
1846 .tab-close-button:hover:active[selected="true"] {
1847   list-style-image: url("chrome://global/skin/icons/close-button-hover.gif");
1848 }
1849
1850 /* Tab scrollbox arrow, tabstrip new tab and all-tabs buttons */
1851
1852 @media all and (-moz-touch-enabled) {
1853   .tabbrowser-arrowscrollbox > .scrollbutton-up,
1854   .tabbrowser-arrowscrollbox > .scrollbutton-down,
1855   #TabsToolbar .toolbarbutton-1 {
1856     min-width: 8.1mozmm;
1857   }
1858
1859   .tabs-newtab-button {
1860     min-width: 10mozmm;
1861   }
1862
1863   .tab-content {
1864     min-height: -moz-calc(6.8mozmm - 7px); /* subtract borders from the desired height */
1865   }
1866 }
1867
1868 .tabbrowser-arrowscrollbox > .scrollbutton-up,
1869 .tabbrowser-arrowscrollbox > .scrollbutton-down {
1870   margin: 0;
1871   padding-top: 0;
1872   padding-bottom: 0;
1873 }
1874
1875 .tabbrowser-arrowscrollbox > .scrollbutton-down[notifybgtab] {
1876   background-color: #008484;
1877 }
1878
1879 .tabs-newtab-button > .toolbarbutton-icon {
1880   margin-top: -1px;
1881   margin-bottom: -1px;
1882 }
1883
1884 .tabs-newtab-button,
1885 #TabsToolbar > #new-tab-button,
1886 #TabsToolbar > toolbarpaletteitem > #new-tab-button {
1887   list-style-image: url("chrome://browser/skin/tabbrowser/newtab.png");
1888   -moz-image-region: rect(0, 16px, 18px, 0);
1889 }
1890
1891 .tabs-newtab-button {
1892   width: 28px;
1893 }
1894
1895 #TabsToolbar > #new-tab-button {
1896   width: 26px;
1897 }
1898
1899 .tabs-newtab-button:hover,
1900 #TabsToolbar > #new-tab-button:hover {
1901   -moz-image-region: rect(0, 32px, 18px, 16px);
1902 }
1903
1904 #alltabs-button {
1905   list-style-image: url("chrome://browser/skin/tabbrowser/alltabs.png");
1906   -moz-image-region: rect(0, 14px, 16px, 0);
1907 }
1908
1909 #alltabs-button:hover,
1910 #alltabs-button:hover:active {
1911   -moz-image-region: rect(0, 28px, 16px, 14px);
1912 }
1913
1914 #alltabs-button[type="menu"] {
1915   list-style-image: url("chrome://global/skin/arrow/arrow-down.gif");
1916   -moz-image-region: auto;
1917 }
1918
1919 #alltabs-button[type="menu"] > .toolbarbutton-menu-dropmarker {
1920   display: none;
1921 }
1922
1923 #alltabs-button[type="menu"]:hover,
1924 #alltabs-button[type="menu"]:hover:active,
1925 #alltabs-button[type="menu"][open="true"] {
1926   list-style-image: url("chrome://global/skin/arrow/arrow-down-hover.gif");
1927   -moz-image-region: auto;
1928 }
1929
1930 /* All tabs menupopup */
1931 .alltabs-item > .menu-iconic-left > .menu-iconic-icon {
1932   list-style-image: url("chrome://mozapps/skin/places/defaultFavicon.png");
1933   -moz-image-region: auto;
1934 }
1935
1936 .alltabs-item[selected="true"] {
1937   font-weight: bold;
1938 }
1939
1940 .alltabs-item[busy] > .menu-iconic-left > .menu-iconic-icon {
1941   list-style-image: url("chrome://global/skin/icons/loading.gif");
1942 }
1943
1944 .alltabs-item[tabIsVisible] {
1945   background-color: #402800;
1946 }
1947
1948 /* Tabstrip close button */
1949 .tabs-closebutton {
1950   -moz-box-flex: 1;
1951   margin: 0px;
1952   padding: 2px;
1953   list-style-image: url("chrome://global/skin/icons/close-button.gif");
1954 }
1955
1956 .tabs-closebutton > .toolbarbutton-icon {
1957 }
1958
1959 .tabs-closebutton > .toolbarbutton-text {
1960   display: none;
1961 }
1962
1963 .tabs-closebutton:hover,
1964 .tabs-closebutton:hover:active {
1965   list-style-image: url("chrome://global/skin/icons/close-button-hover.gif");
1966 }
1967
1968 toolbarbutton.chevron {
1969   list-style-image: url("chrome://global/skin/toolbar/chevron.gif") !important;
1970 }
1971
1972 toolbarbutton.chevron:hover {
1973   list-style-image: url("chrome://global/skin/toolbar/chevron-hover.gif") !important;
1974 }
1975
1976 toolbarbutton.chevron:-moz-locale-dir(rtl) > .toolbarbutton-icon,
1977 toolbarbutton.chevron:-moz-locale-dir(rtl):hover > .toolbarbutton-icon {
1978   -moz-transform: scaleX(-1);
1979 }
1980
1981 toolbarbutton.chevron > .toolbarbutton-text,
1982 toolbarbutton.chevron > .toolbarbutton-menu-dropmarker {
1983   display: none;
1984 }
1985
1986 toolbarbutton.chevron > .toolbarbutton-icon {
1987   margin: 0;
1988 }
1989
1990 toolbar[mode="text"] toolbarbutton.chevron > .toolbarbutton-icon {
1991   display: -moz-box; /* display chevron icon in text mode */
1992 }
1993
1994 #sidebar-throbber[loading="true"] {
1995   list-style-image: url("chrome://global/skin/icons/loading.gif");
1996   -moz-margin-end: 4px;
1997 }
1998
1999 /* Bookmarks toolbar */
2000 #PlacesToolbarDropIndicator {
2001   list-style-image: url("chrome://communicator/skin/bookmarks/toolbarDropMarker.png");
2002 }
2003
2004 toolbarbutton.bookmark-item[dragover="true"][open="true"] {
2005   background-color: #008484 !important;
2006   color: #FFCF00 !important;
2007 }
2008
2009 /* rules for menupopup drop indicators */
2010 .menupopup-drop-indicator-bar {
2011   position: relative;
2012   /* these two margins must together compensate the indicator's height */
2013   margin-top: -1px;
2014   margin-bottom: -1px;
2015 }
2016
2017 .menupopup-drop-indicator {
2018   list-style-image: none;
2019   height: 2px;
2020   -moz-margin-end: -4em;
2021   background-color: #008484;
2022 }
2023
2024 /* ::::: Identity Indicator Styling ::::: */
2025
2026 /* Popup Icons */
2027 #identity-popup-icon {
2028   height: 64px;
2029   width: 64px;
2030   padding: 0;
2031   list-style-image: url("chrome://browser/skin/identity.png");
2032   -moz-image-region: rect(0px, 64px, 64px, 0px);
2033 }
2034
2035 #identity-popup.verifiedDomain > #identity-popup-container > #identity-popup-icon {
2036   -moz-image-region: rect(64px, 64px, 128px, 0px);
2037 }
2038
2039 #identity-popup.verifiedIdentity > #identity-popup-container > #identity-popup-icon {
2040   -moz-image-region: rect(128px, 64px, 192px, 0px);
2041 }
2042
2043 /* Popup Body Text */
2044 .identity-popup-description {
2045   white-space: pre-wrap;
2046   -moz-padding-start: 15px;
2047   margin: 2px 0 4px;
2048 }
2049
2050 .identity-popup-label {
2051   white-space: pre-wrap;
2052   -moz-padding-start: 15px;
2053   margin: 0;
2054 }
2055
2056 #identity-popup-content-host ,
2057 #identity-popup-content-box.verifiedIdentity > #identity-popup-content-owner {
2058   font-size: 1.2em;
2059 }
2060
2061 #identity-popup-content-host {
2062   margin-top: 3px;
2063   margin-bottom: 5px;
2064   font-weight: bold;
2065   max-width: 300px;
2066 }
2067
2068 #identity-popup-content-owner {
2069   margin-top: 4px;
2070   margin-bottom: 0 !important;
2071   font-weight: bold;
2072   max-width: 300px;
2073 }
2074
2075 .verifiedDomain > #identity-popup-content-owner {
2076   font-weight: normal;
2077 }
2078
2079 #identity-popup-content-verifier {
2080   margin: 4px 0 2px;
2081 }
2082
2083 #identity-popup-content-box.verifiedIdentity > #identity-popup-encryption ,
2084 #identity-popup-content-box.verifiedDomain > #identity-popup-encryption {
2085   margin-top: 10px;
2086   -moz-margin-start: -24px;
2087 }
2088
2089 #identity-popup-content-box.verifiedIdentity > #identity-popup-encryption > vbox > #identity-popup-encryption-icon ,
2090 #identity-popup-content-box.verifiedDomain > #identity-popup-encryption > vbox > #identity-popup-encryption-icon {
2091   list-style-image: url("chrome://browser/skin/Secure24.png");
2092 }
2093
2094 #identity-popup-more-info-button {
2095   margin-top: 6px;
2096   margin-bottom: 0;
2097   -moz-margin-end: 0;
2098 }
2099
2100 .popup-notification-icon {
2101   width: 64px;
2102   height: 64px;
2103   -moz-margin-end: 10px;
2104 }
2105
2106 .popup-notification-icon[popupid="geolocation"] {
2107   list-style-image: url("chrome://browser/skin/Geolocation-64.png");
2108 }
2109
2110 .popup-notification-icon[popupid="xpinstall-disabled"],
2111 .popup-notification-icon[popupid="addon-progress"],
2112 .popup-notification-icon[popupid="addon-install-cancelled"],
2113 .popup-notification-icon[popupid="addon-install-blocked"],
2114 .popup-notification-icon[popupid="addon-install-failed"],
2115 .popup-notification-icon[popupid="addon-install-complete"] {
2116   list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric.png");
2117   width: 32px;
2118   height: 32px;
2119 }
2120
2121 .addon-progress-description {
2122   width: 350px;
2123   max-width: 350px;
2124 }
2125
2126 .popup-progress-label,
2127 .popup-progress-meter {
2128   -moz-margin-start: 0;
2129   -moz-margin-end: 0;
2130 }
2131
2132 .popup-progress-cancel {
2133   -moz-appearance: none;
2134   background: transparent;
2135   border: none;
2136   padding: 0;
2137   margin: 0;
2138   min-height: 0;
2139   min-width: 0;
2140   list-style-image: url("chrome://mozapps/skin/downloads/downloadButtons.png");
2141   -moz-image-region: rect(0px, 32px, 16px, 16px);
2142 }
2143
2144 .popup-progress-cancel:hover {
2145   -moz-image-region: rect(16px, 32px, 32px, 16px);
2146 }
2147
2148 .popup-progress-cancel:active {
2149   -moz-image-region: rect(32px, 32px, 48px, 16px);
2150 }
2151
2152 .popup-notification-icon[popupid="indexedDB-permissions-prompt"],
2153 .popup-notification-icon[popupid="indexedDB-quota-prompt"] {
2154   list-style-image: url("chrome://global/skin/icons/alert-question.gif");
2155 }
2156
2157 .popup-notification-icon[popupid="password-save"],
2158 .popup-notification-icon[popupid="password-change"] {
2159   list-style-image: url("chrome://mozapps/skin/passwordmgr/key-64.png");
2160 }
2161
2162 /* Notification icon box */
2163 #notification-popup-box {
2164   position: relative;
2165   background-color: #000000;
2166   background-clip: padding-box;
2167   padding-left: 3px;
2168   border-radius: 3px 0 0 3px;
2169   -moz-border-image: url("chrome://browser/skin/urlbar-arrow.png") 0 8 0 0 / 0 8px 0 0;
2170   -moz-margin-end: -8px;
2171 }
2172
2173 window:not([chromehidden~=toolbar]) #navigator-toolbox[iconsize=large][mode=icons] >
2174     :-moz-any(#nav-bar[currentset*="unified-back-forward-button,urlbar-container"],#nav-bar:not([currentset])) >
2175     #unified-back-forward-button[forwarddisabled] + #urlbar-container > #urlbar > #notification-popup-box {
2176   padding-left: 5px;
2177 }
2178
2179 #notification-popup-box:-moz-locale-dir(rtl),
2180 .notification-anchor-icon:-moz-locale-dir(rtl) {
2181   -moz-transform: scaleX(-1);
2182 }
2183
2184 .notification-anchor-icon {
2185   width: 16px;
2186   height: 16px;
2187 }
2188
2189 .notification-anchor-icon:-moz-focusring {
2190   outline: 1px dotted #008484;
2191 /*  outline-offset: -3px; */
2192 }
2193
2194 #default-notification-icon {
2195   list-style-image: url("chrome://global/skin/icons/information-16.png");
2196 }
2197
2198 #geo-notification-icon {
2199   list-style-image: url("chrome://browser/skin/Geolocation-16.png");
2200 }
2201
2202 #addons-notification-icon {
2203   list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric-16.png");
2204 }
2205
2206 #indexedDB-notification-icon {
2207   list-style-image: url("chrome://global/skin/icons/question-16.png");
2208 }
2209
2210 #password-notification-icon {
2211   list-style-image: url("chrome://mozapps/skin/passwordmgr/key-16.png");
2212 }
2213
2214 #identity-popup-container {
2215   min-width: 280px;
2216 }
2217
2218 #download-monitor {
2219   list-style-image: url("chrome://browser/skin/Toolbar.png");
2220   -moz-image-region: rect(0, 108px, 18px, 90px);
2221 }
2222
2223 /* Bookmarks roots menu-items */
2224 #appmenu_subscribeToPage:not([disabled]),
2225 #appmenu_subscribeToPageMenu,
2226 #subscribeToPageMenuitem:not([disabled]),
2227 #subscribeToPageMenupopup,
2228 #BMB_subscribeToPageMenuitem:not([disabled]),
2229 #BMB_subscribeToPageMenupopup {
2230   list-style-image: url("chrome://browser/skin/feeds/feedIcon16.png");
2231 }
2232
2233 #bookmarksToolbarFolderMenu,
2234 #appmenu_bookmarksToolbar,
2235 #BMB_bookmarksToolbar {
2236   list-style-image: url("chrome://communicator/skin/bookmarks/bookmarksToolbar.png");
2237   -moz-image-region: auto;
2238 }
2239
2240 #appmenu_unsortedBookmarks,
2241 #BMB_unsortedBookmarks {
2242   list-style-image: url("chrome://communicator/skin/bookmarks/unsortedBookmarks.png");
2243   -moz-image-region: auto;
2244 }
2245
2246 /* ::::: Keyboard UI Panel ::::: */
2247
2248 .KUI-panel {
2249   color: #FF9F00;
2250   border-style: none;
2251   border-radius: 20px;
2252 }
2253
2254 .KUI-panel[level="top"] {
2255   /*background-color: rgba(27%,27%,27%,.65);*/
2256 }
2257
2258 .KUI-panel-closebutton {
2259   list-style-image: url("KUI-close.png");
2260   width: 24px;
2261   height: 24px;
2262 }
2263
2264 .KUI-panel-closebutton:not(:hover) {
2265 }
2266
2267 .KUI-panel-closebutton > .toolbarbutton-icon {
2268 }
2269
2270 /* ::::: Ctrl-Tab and All Tabs Panels ::::: */
2271
2272 /* Ctrl-Tab */
2273
2274 #ctrlTab-panel {
2275   padding: 20px 10px 10px;
2276   font-weight: bold;
2277 }
2278
2279 .ctrlTab-favicon[src] {
2280   background-color: #000000;
2281   width: 20px;
2282   height: 20px;
2283   padding: 2px;
2284 }
2285
2286 .ctrlTab-preview-inner > .tabPreview-canvas {
2287 }
2288
2289 .ctrlTab-preview:not(#ctrlTab-showAll) > * > .ctrlTab-preview-inner > .tabPreview-canvas {
2290   margin-bottom: 2px;
2291 }
2292
2293 .ctrlTab-preview-inner {
2294   padding-bottom: 10px;
2295 }
2296
2297 #ctrlTab-showAll:not(:focus) > * > .ctrlTab-preview-inner {
2298   padding: 10px;
2299   background-color: #000000;
2300   border-radius: .5em;
2301 }
2302
2303 .ctrlTab-preview:focus > * > .ctrlTab-preview-inner {
2304   color: white;
2305   background-color: #000000;
2306   text-shadow: none;
2307   padding: 8px;
2308   border: 2px solid #9C9CFF;
2309   border-radius: .5em;
2310 }
2311
2312 .ctrlTab-preview:not(#ctrlTab-showAll):focus > * > .ctrlTab-preview-inner {
2313   margin: -10px -10px 0;
2314 }
2315
2316 #ctrlTab-showAll {
2317   margin-top: .5em;
2318 }
2319
2320 /* All Tabs */
2321
2322 #allTabs-panel {
2323   padding-bottom: 10px;
2324 }
2325
2326 #allTabs-meta {
2327   margin: 10px;
2328 }
2329
2330 #allTabs-filter {
2331   -moz-margin-start: 24px;
2332   -moz-margin-end: 0;
2333 }
2334
2335 #allTabs-tab-close-button > .toolbarbutton-icon {
2336   margin: 0;
2337 }
2338
2339 .allTabs-favicon[src] {
2340   width: 22px;
2341   height: 22px;
2342   padding-top: 1px;
2343   padding-bottom: 5px;
2344   -moz-padding-start: 1px;
2345   -moz-padding-end: 5px;
2346   margin-top: -2px;
2347   -moz-margin-start: -2px;
2348   border-bottom-right-radius: 4px;
2349 }
2350
2351 .allTabs-favicon[src]:-moz-locale-dir(rtl) {
2352   border-bottom-right-radius: 0;
2353   border-bottom-left-radius: 4px;
2354 }
2355
2356 .allTabs-preview-inner > .tabPreview-canvas {
2357   background-color: #E7ADE7;
2358 }
2359
2360 .allTabs-preview:not(:hover):not([closebuttonhover]) > html|canvas {
2361 }
2362
2363 .allTabs-preview:focus > * > .allTabs-preview-inner {
2364   outline: 1px dotted #008484;
2365 }
2366
2367 /* Inspector / Highlighter */
2368
2369 #highlighter-panel {
2370   -moz-window-shadow: none;
2371   background: #000000;
2372   border: none;
2373 }
2374
2375 listitem.style-selector {
2376   background-color: #9C9CFF;
2377   color: #000000;
2378 }
2379
2380 listitem.style-section {
2381   background-color: #E7ADE7;
2382   color: #000000;
2383   font-weight: bold;
2384 }
2385
2386 panel[dimmed="true"] {
2387   opacity: 0.5;
2388 }
2389
2390 /* Add-on bar */
2391
2392 #addon-bar {
2393   min-height: 20px;
2394   border-top: 3px solid #000000;
2395   border-bottom-width: 0;
2396 }
2397
2398 #addon-bar .toolbar-holder {
2399   background-color: #8050B0;
2400   color: #FFCF00;
2401 }
2402
2403 #addon-bar .toolbar-holder {
2404   background-color: #8050B0;
2405   color: #FFCF00;
2406 }
2407
2408 #addon-bar .toolbar-startcap,
2409 #addon-bar .toolbar-endcap{
2410   background-color: #6000CF;
2411 }
2412
2413 #status-bar {
2414   -moz-binding: url("chrome://global/content/bindings/general.xml#statusbar");
2415   margin-top: .3em;
2416   border-width: 0;
2417 }
2418
2419 #addon-bar[customizing] > #status-bar {
2420   opacity: .5;
2421 /*  background-image: -moz-repeating-linear-gradient(-45deg,
2422                                                    rgba(255,255,255,.3), rgba(255,255,255,.3) 5px,
2423                                                    rgba(0,0,0,.3) 5px, rgba(0,0,0,.3) 10px);*/
2424 }
2425
2426 /* Remove all borders from statusbarpanel children of
2427    the statusbar.
2428 #status-bar > statusbarpanel {
2429   border-width: 0;
2430 } */
2431
2432 #addonbar-closebutton {
2433   border: none;
2434   padding: 3px 5px;
2435   list-style-image: url("chrome://global/skin/icons/close-button.gif");
2436 }
2437
2438 #addonbar-closebutton:hover,
2439 #addonbar-closebutton:hover:active {
2440   list-style-image: url("chrome://global/skin/icons/close-button-hover.gif");
2441 }
2442
2443 /* Status panel */
2444
2445 .statuspanel-label {
2446   margin: 0;
2447   padding: 2px 4px;
2448   background: #404000;
2449   border: 1px none #9C9CFF;
2450   border-top-style: solid;
2451   color: #FF9F00;
2452   text-shadow: none;
2453 }
2454
2455 .statuspanel-label:-moz-locale-dir(ltr):not([mirror]),
2456 .statuspanel-label:-moz-locale-dir(rtl)[mirror] {
2457   border-right-style: solid;
2458   border-top-right-radius: .3em;
2459   margin-right: 1em;
2460 }
2461
2462 .statuspanel-label:-moz-locale-dir(rtl):not([mirror]),
2463 .statuspanel-label:-moz-locale-dir(ltr)[mirror] {
2464   border-left-style: solid;
2465   border-top-left-radius: .3em;
2466   margin-left: 1em;
2467 }
2468
2469 /* HACK to abolish devily color on main content */
2470
2471 #content {
2472   background-color: transparent !important;
2473 }
2474
2475 /* Highlighter */
2476
2477 .highlighter-veil {
2478   background-color: rgba(25, 25, 25, 0.5);
2479 }
2480
2481 #highlighter-closebutton {
2482   list-style-image: url("chrome://global/skin/icons/close-button.gif");
2483 }
2484
2485 #highlighter-closebutton:hover,
2486 #highlighter-closebutton:hover:active {
2487   list-style-image: url("chrome://global/skin/icons/close-button-hover.gif");
2488 }
2489
2490 highlighter-veil-transparentbox {
2491   box-shadow: 0 0 0 1px rgba(0,0,0,0.5);
2492   outline: 1px dashed rgba(255,255,255,0.5);
2493   outline-offset: -1px;
2494 }
2495
2496 #highlighter-veil-container[locked] > #highlighter-veil-middlebox > #highlighter-veil-transparentbox {
2497   box-shadow: 0 0 0 1px black;
2498   outline-color: white;
2499 }
2500
2501 /* Highlighter toolbar */
2502
2503 #inspector-toolbar {
2504   border-top: 3px solid #000000;
2505   border-bottom: none;
2506 }
2507
2508 #inspector-toolbar[treepanel-open] {
2509   padding-top: 0;
2510   -moz-padding-end: 0;
2511 }
2512
2513 #inspector-tools {
2514   -moz-padding-end: 2px;
2515   border-left: 3px solid #000000;
2516   border-right: 3px solid #000000;
2517   -moz-margin-start: 2px;
2518 }
2519
2520 /* Highlighter - toolbar resizers */
2521
2522 .inspector-resizer {
2523   -moz-appearance: none;
2524   cursor: n-resize;
2525 }
2526
2527 #inspector-top-resizer {
2528   background: none;
2529   height: 4px;
2530 }
2531
2532 #inspector-end-resizer {
2533   width: 12px;
2534   height: 8px;
2535   border-width: 1px 1px 0;
2536   border-style: solid;
2537   border-color: #008484;
2538   margin: 7px 7px 8px;
2539 }
2540
2541 /* Highlighter - Node Infobar */
2542
2543 /* Highlighter - Node Infobar - text */
2544
2545 #highlighter-nodeinfobar-tagname {
2546   color: #FFCF00;
2547 }
2548
2549 #highlighter-nodeinfobar-id {
2550   color: #9C9CFF;
2551 }
2552
2553 .highlighter-nodeinfobar-class {
2554   color: #FF9F00;
2555 }
2556
2557 /* Highlighter - Node Infobar - box & arrow */
2558
2559 #highlighter-nodeinfobar {
2560   border: 1px solid rgba(156, 156, 255, .5);
2561   border-radius: 3px;
2562   padding: 8px 16px;
2563   background: #000000 padding-box;
2564 }
2565
2566 .highlighter-nodeinfobar-arrow {
2567   width: 14px;
2568   height: 14px;
2569   -moz-margin-start: -moz-calc(50% - 7px);
2570   -moz-transform: rotate(-45deg);
2571   border: 1px solid transparent;
2572   background-clip: padding-box;
2573   background-repeat: no-repeat;
2574 }
2575
2576 #highlighter-nodeinfobar-arrow-top {
2577   margin-bottom: -8px;
2578   margin-top: 8px;
2579   border-right-color: rgba(0, 132, 132, .5);
2580   border-top-color: rgba(0, 132, 132, .5);
2581   background-image: -moz-linear-gradient(bottom left, transparent 50%, rgb(0, 132, 132) 50%);
2582 }
2583
2584 #highlighter-nodeinfobar-arrow-bottom {
2585   margin-top: -8px;
2586   margin-bottom: 8px;
2587   border-left-color: rgba(0, 132, 132, .5);
2588   border-bottom-color: rgba(0, 132, 132, .5);
2589   background-image: -moz-linear-gradient(top right, transparent 50%, rgb(0, 132, 132) 50%);
2590 }
2591
2592 #highlighter-nodeinfobar-container[position="top"] > #highlighter-nodeinfobar,
2593 #highlighter-nodeinfobar-container[position="overlap"] > #highlighter-nodeinfobar {
2594   box-shadow: 0 1px 0 hsla(0, 0%, 100%, .1) inset;
2595 }
2596
2597 #highlighter-nodeinfobar-container[hide-arrow] > #highlighter-nodeinfobar {
2598   margin: 7px 0;
2599 }
2600
2601 #full-screen-warning-message {
2602   background-color: #000000;
2603   color: #FF9F00;
2604   font-size: 32px;
2605   border-radius: 8px;
2606   margin-top: 30px;
2607   padding: 30px 50px;
2608   box-shadow: 0 0 2px #9C9CFF;
2609 }
2610
2611 #full-screen-warning-container[obscure-browser] {
2612   background-color: rgba(0,0,0,0.75);
2613 }
2614
2615 #full-screen-warning-container[stop-obscuring-browser] {
2616   -moz-transition-property: background-color;
2617   -moz-transition-duration: 500ms;
2618   background-color: rgba(0,0,0,0);
2619 }
2620
2621 /* Highlighter toolbar - breadcrumbs */
2622
2623 #inspector-breadcrumbs {
2624   padding: 0 6px;
2625 }
2626
2627 .inspector-breadcrumbs-button {
2628   /*background-color: transparent;*/
2629   border-width: 2px 13px !important;
2630   outline: none;
2631   /* color: hsl(210,30%,85%); */
2632   max-width: 85px;
2633   /* The content of the button can be larger than the button */
2634   overflow: hidden;
2635   min-height: 25px;
2636   margin: 0 -11px 0 0;
2637   padding: 0 9px;
2638 }
2639
2640 .inspector-breadcrumbs-button[checked] > .inspector-breadcrumbs-tag {
2641   /*color: hsl(208,100%,60%); */
2642 }
2643
2644 .inspector-breadcrumbs-button[checked] > .inspector-breadcrumbs-id {
2645   /*color: hsl(205,100%,70%); */
2646 }
2647
2648 .inspector-breadcrumbs-id,
2649 .inspector-breadcrumbs-classes {
2650   /*color: #8d99a6; */
2651 }
2652
2653 /* Highlighter toolbar - breadcrumbs - LTR */
2654
2655 .inspector-breadcrumbs-button:-moz-locale-dir(ltr):first-of-type {
2656   margin-left: 0;
2657 }
2658
2659 .inspector-breadcrumbs-button {
2660   -moz-border-image: url("chrome://browser/skin/devtools/breadcrumbs/ltr-middle.png") 2 13 2 13 stretch;
2661 }
2662
2663 .inspector-breadcrumbs-button[siblings-menu-open]:not([checked]),
2664 .inspector-breadcrumbs-button:not([checked]):hover:active {
2665   -moz-border-image: url("chrome://browser/skin/devtools/breadcrumbs/ltr-middle-pressed.png") 2 13 2 13 stretch;
2666 }
2667
2668 .inspector-breadcrumbs-button[checked] {
2669   -moz-border-image: url("chrome://browser/skin/devtools/breadcrumbs/ltr-middle-selected.png") 2 13 2 13 stretch;
2670 }
2671
2672 .inspector-breadcrumbs-button[checked][siblings-menu-open],
2673 .inspector-breadcrumbs-button[checked]:hover:active {
2674   -moz-border-image: url("chrome://browser/skin/devtools/breadcrumbs/ltr-middle-selected-pressed.png") 2 13 2 13 stretch;
2675 }
2676
2677 .inspector-breadcrumbs-button:first-of-type {
2678   -moz-border-image: url("chrome://browser/skin/devtools/breadcrumbs/ltr-start.png") 2 13 2 13 stretch;
2679 }
2680
2681 .inspector-breadcrumbs-button[siblings-menu-open]:first-of-type:not([checked]),
2682 .inspector-breadcrumbs-button:first-of-type:not([checked]):hover:active {
2683   -moz-border-image: url("chrome://browser/skin/devtools/breadcrumbs/ltr-start-pressed.png") 2 13 2 13 stretch;
2684 }
2685
2686 .inspector-breadcrumbs-button:first-of-type[checked] {
2687   -moz-border-image: url("chrome://browser/skin/devtools/breadcrumbs/ltr-start-selected.png") 2 13 2 13 stretch;
2688 }
2689
2690 .inspector-breadcrumbs-button[siblings-menu-open]:first-of-type[checked],
2691 .inspector-breadcrumbs-button:first-of-type[checked]:hover:active {
2692   -moz-border-image: url("chrome://browser/skin/devtools/breadcrumbs/ltr-start-selected-pressed.png") 2 13 2 13 stretch;
2693 }
2694
2695 .inspector-breadcrumbs-button:last-of-type {
2696   -moz-border-image: url("chrome://browser/skin/devtools/breadcrumbs/ltr-end.png") 2 13 2 13 stretch;
2697 }
2698
2699 .inspector-breadcrumbs-button[siblings-menu-open]:last-of-type:not([checked]),
2700 .inspector-breadcrumbs-button:last-of-type:not([checked]):hover:active {
2701   -moz-border-image: url("chrome://browser/skin/devtools/breadcrumbs/ltr-end-pressed.png") 2 13 2 13 stretch;
2702 }
2703
2704 .inspector-breadcrumbs-button:last-of-type[checked] {
2705   -moz-border-image: url("chrome://browser/skin/devtools/breadcrumbs/ltr-end-selected.png") 2 13 2 13 stretch;
2706 }
2707
2708 .inspector-breadcrumbs-button[siblings-menu-open]:last-of-type[checked],
2709 .inspector-breadcrumbs-button:last-of-type[checked]:hover:active {
2710   -moz-border-image: url("chrome://browser/skin/devtools/breadcrumbs/ltr-end-selected-pressed.png") 2 13 2 13 stretch;
2711 }
2712
2713 /* Highlighter toolbar - breadcrumbs - RTL */
2714
2715 .inspector-breadcrumbs-button:-moz-locale-dir(rtl):first-of-type {
2716   margin-right: 0;
2717 }
2718
2719 .inspector-breadcrumbs-button:-moz-locale-dir(rtl) {
2720   -moz-border-image: url("chrome://browser/skin/devtools/breadcrumbs/rtl-middle.png") 2 13 2 13 stretch;
2721 }
2722
2723 .inspector-breadcrumbs-button[siblings-menu-open]:not([checked]):-moz-locale-dir(rtl),
2724 .inspector-breadcrumbs-button:not([checked]):hover:active:-moz-locale-dir(rtl) {
2725   -moz-border-image: url("chrome://browser/skin/devtools/breadcrumbs/rtl-middle-pressed.png") 2 13 2 13 stretch;
2726 }
2727
2728 .inspector-breadcrumbs-button[checked]:-moz-locale-dir(rtl) {
2729   -moz-border-image: url("chrome://browser/skin/devtools/breadcrumbs/rtl-middle-selected.png") 2 13 2 13 stretch;
2730 }
2731
2732 .inspector-breadcrumbs-button[checked][siblings-menu-open]:-moz-locale-dir(rtl),
2733 .inspector-breadcrumbs-button[checked]:hover:active:-moz-locale-dir(rtl) {
2734   -moz-border-image: url("chrome://browser/skin/devtools/breadcrumbs/rtl-middle-selected-pressed.png") 2 13 2 13 stretch;
2735 }
2736
2737 .inspector-breadcrumbs-button:first-of-type:-moz-locale-dir(rtl) {
2738   -moz-border-image: url("chrome://browser/skin/devtools/breadcrumbs/rtl-start.png") 2 13 2 13 stretch;
2739 }
2740
2741 .inspector-breadcrumbs-button[siblings-menu-open]:first-of-type:not([checked]):-moz-locale-dir(rtl),
2742 .inspector-breadcrumbs-button:first-of-type:not([checked]):hover:active:-moz-locale-dir(rtl) {
2743   -moz-border-image: url("chrome://browser/skin/devtools/breadcrumbs/rtl-start-pressed.png") 2 13 2 13 stretch;
2744 }
2745
2746 .inspector-breadcrumbs-button:first-of-type[checked]:-moz-locale-dir(rtl) {
2747   -moz-border-image: url("chrome://browser/skin/devtools/breadcrumbs/rtl-start-selected.png") 2 13 2 13 stretch;
2748 }
2749
2750 .inspector-breadcrumbs-button[siblings-menu-open]:first-of-type[checked]:-moz-locale-dir(rtl),
2751 .inspector-breadcrumbs-button:first-of-type[checked]:hover:active:-moz-locale-dir(rtl) {
2752   -moz-border-image: url("chrome://browser/skin/devtools/breadcrumbs/rtl-start-selected-pressed.png") 2 13 2 13 stretch;
2753 }
2754
2755 .inspector-breadcrumbs-button:last-of-type:-moz-locale-dir(rtl) {
2756   -moz-border-image: url("chrome://browser/skin/devtools/breadcrumbs/rtl-end.png") 2 13 2 13 stretch;
2757 }
2758
2759 .inspector-breadcrumbs-button[siblings-menu-open]:last-of-type:not([checked]):-moz-locale-dir(rtl),
2760 .inspector-breadcrumbs-button:last-of-type:not([checked]):hover:active:-moz-locale-dir(rtl) {
2761   -moz-border-image: url("chrome://browser/skin/devtools/breadcrumbs/rtl-end-pressed.png") 2 13 2 13 stretch;
2762 }
2763
2764 .inspector-breadcrumbs-button:last-of-type[checked]:-moz-locale-dir(rtl) {
2765   -moz-border-image: url("chrome://browser/skin/devtools/breadcrumbs/rtl-end-selected.png") 2 13 2 13 stretch;
2766 }
2767
2768 .inspector-breadcrumbs-button[siblings-menu-open]:last-of-type[checked]:-moz-locale-dir(rtl),
2769 .inspector-breadcrumbs-button:last-of-type[checked]:hover:active:-moz-locale-dir(rtl) {
2770   -moz-border-image: url("chrome://browser/skin/devtools/breadcrumbs/rtl-end-selected-pressed.png") 2 13 2 13 stretch;
2771 }