d648f6f3db6931ba3df86d86435389803bbc1821
[themes.git] / LCARStrek / browser / browser.css
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5 @import url("chrome://global/skin/");
6 @import url("downloads/indicator.css");
7
8 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
9 @namespace html url("http://www.w3.org/1999/xhtml");
10 @namespace svg url("http://www.w3.org/2000/svg");
11
12 toolbar {
13   -moz-binding: url("chrome://global/skin/globalBindings.xml#toolbar");
14 }
15
16 toolbar[customizable="true"] {
17   -moz-binding: url("chrome://global/skin/globalBindings.xml#toolbar-browsercustom");
18 }
19
20 @media (-moz-mac-graphite-theme), (-moz-mac-lion-theme), (-moz-mac-yosemite-theme) {
21   /* This is a hackish workaround to cover most of Mac OS until bug 1060941 gets fixed. */
22   toolbar[customizable="true"]:not([nowindowdrag="true"]) {
23     -moz-binding: url("chrome://global/skin/globalBindings.xml#toolbar-drag-browsercustom");
24   }
25 }
26
27 toolbar[type="menubar"][autohide="true"] {
28   -moz-binding: url("chrome://global/skin/globalBindings.xml#toolbar-menubar-autohide");
29 }
30
31 #toolbar-menubar[autohide="true"] {
32   -moz-binding: url("chrome://global/skin/globalBindings.xml#toolbar-menubar-autohide-browsercustom");
33 }
34
35 menubar {
36   -moz-binding: url("chrome://global/skin/globalBindings.xml#menubar");
37 }
38
39 #menubar-items {
40   -moz-box-orient: vertical; /* for flex hack */
41 }
42
43 #main-menubar {
44   -moz-box-flex: 1; /* make menu items expand to fill toolbar height */
45 }
46
47 /* ::::: primary toolbar ::::: */
48
49 .toolbar-primary > .toolbar-box > .toolbar-holder {
50   background-color: #A09090;
51 }
52
53 .toolbar-primary > .toolbar-box > .toolbar-startcap,
54 .toolbar-primary > .toolbar-box > .toolbar-endcap {
55   background-color: #9C9CFF;
56 }
57
58 /* Hides the titlebar-placeholder underneath the window caption buttons when we
59    are not autohiding the menubar. */
60 #toolbar-menubar:not([autohide="true"]) + #TabsToolbar > .titlebar-placeholder[type="caption-buttons"] {
61   display: none;
62 }
63
64 /* We want a 4px gap between the TabsToolbar and the toolbar-menubar when the
65    toolbar-menu is displayed, and a 16px gap when it is not. 1px is taken care
66    of by the (light) outer shadow of the tab, the remaining 3/15 are these margins. */
67 #toolbar-menubar:not([moz-collapsed=true]):not([autohide=true]) ~ #TabsToolbar,
68 #toolbar-menubar:not([moz-collapsed=true])[autohide=true]:not([inactive]) ~ #TabsToolbar {
69 /*  margin-top: 3px;*/
70 }
71
72 #main-window[tabsintitlebar][sizemode="normal"]:not([inFullscreen])[chromehidden~="menubar"] #toolbar-menubar ~ #TabsToolbar,
73 #main-window[tabsintitlebar][sizemode="normal"]:not([inFullscreen]) #toolbar-menubar[autohide="true"][inactive] ~ #TabsToolbar {
74 /*  margin-top: 15px;*/
75 }
76
77 @media (-moz-mac-graphite-theme: 0) and (-moz-mac-lion-theme: 0) {
78   /* This is a hackish workaround to exclude most of Mac OS until bug 1060941 gets fixed. */
79   #toolbar-menubar:not([autohide="true"]) {
80     -moz-binding: url("chrome://global/skin/globalBindings.xml#toolbar-drag-browsercustom");
81   }
82 }
83
84 @media (-moz-mac-graphite-theme), (-moz-mac-lion-theme) {
85   /* This is a hackish workaround to cover most of Mac OS until bug 1060941 gets fixed. */
86   #main-window[tabsintitlebar]:not([inFullscreen="true"]) #TabsToolbar {
87     padding-left: 60px;
88   }
89 }
90
91 #main-window[tabsintitlebar] #toolbar-menubar .toolbar-endcap {
92   /* the titlebar buttons are shown right over the endcap but we have no power over the buttonbox position just for this case, so hide the endcap */
93   display: none;
94 }
95
96 #main-window[customize-entered][tabsintitlebar]:not([inFullscreen]) #toolbar-menubar[customizing-dragovertarget].customization-target::before,
97 #main-window[customize-entered][tabsintitlebar]:not([inFullscreen]) #TabsToolbar[customizing-dragovertarget].customization-target::before,
98 #main-window[customize-entered][tabsintitlebar]:not([inFullscreen]) #toolbar-menubar.customization-target:hover::before,
99 #main-window[customize-entered][tabsintitlebar]:not([inFullscreen]) #TabsToolbar.customization-target:hover::before {
100   outline-color: #A09090;
101 }
102
103 #navigator-toolbox {
104 }
105
106 #navigator-toolbox::after {
107   content: "";
108   display: -moz-box;
109   -moz-box-ordinal-group: 101; /* tabs toolbar is 100 */
110   height: 1px;
111 }
112
113 #navigator-toolbox > toolbar:not(:-moz-lwtheme) {
114 }
115
116 #navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(:-moz-lwtheme) {
117 }
118
119 #navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(#nav-bar):not(#addon-bar) {
120   overflow: -moz-hidden-unscrollable;
121   max-height: 4em;
122   transition: min-height 170ms ease-out, max-height 170ms ease-out;
123 }
124
125 #navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(#nav-bar):not(#addon-bar)[collapsed=true] {
126   min-height: 0.1px;
127   max-height: 0;
128   transition: min-height 170ms ease-out, max-height 170ms ease-out, visibility 170ms linear;
129 }
130
131 @media (-moz-mac-graphite-theme: 0) and (-moz-mac-lion-theme: 0) {
132   /* This is a hackish workaround to exclude most of Mac OS until bug 1060941 gets fixed. */
133   /* Indent also due to non-applicable aero rule in original Windows theme. */
134   #main-window[tabsintitlebar]:not([inFullscreen]) #toolbar-menubar:not(:-moz-lwtheme),
135   #main-window[tabsintitlebar]:not([inFullscreen]) #TabsToolbar:not(:-moz-lwtheme) {
136     /* like menubar */
137     background-color: #6000CF;
138     color: #FF9F00;
139   }
140
141   #main-window[tabsintitlebar]:not([inFullscreen]) #toolbar-menubar:not(:-moz-lwtheme):-moz-window-inactive,
142   #main-window[tabsintitlebar]:not([inFullscreen]) #TabsToolbar:not(:-moz-lwtheme):-moz-window-inactive {
143     background-color: #8050B0;
144     color: #FF9F00;
145   }
146
147   #main-window[tabsintitlebar] #main-menubar > menu:not(:-moz-lwtheme) {
148     /*color: inherit;*/
149   }
150
151   #main-window[tabsintitlebar] #titlebar:-moz-lwtheme {
152     visibility: hidden;
153   }
154
155   #main-window[tabsintitlebar] #titlebar-content:-moz-lwtheme {
156     -moz-binding: url("chrome://global/content/bindings/general.xml#windowdragbox");
157     visibility: visible;
158   }
159 }
160
161 @media (-moz-mac-graphite-theme), (-moz-mac-lion-theme) {
162   /* This is a hackish workaround to cover most of Mac OS until bug 1060941 gets fixed. */
163   #titlebar-buttonbox > .titlebar-button {
164     display: none;
165   }
166 }
167
168 #nav-bar {
169   /* Position the toolbar above the bottom of background tabs */
170   position: relative;
171   z-index: 1;
172 }
173
174 #personal-bookmarks {
175 /*  min-height: 24px; */
176 }
177
178 #print-preview-toolbar:not(:-moz-lwtheme) {
179   /* -moz-appearance: toolbox; */
180 }
181
182 #browser-bottombox:not(:-moz-lwtheme) {
183 }
184
185 /* ::::: titlebar ::::: */
186
187 #titlebar {
188   /* like menubar */
189   background-color: #6000CF;
190   color: #FF9F00;
191 }
192 #titlebar:-moz-window-inactive {
193   background-color: #8050B0;
194   color: #FF9F00;
195 }
196
197 #main-window[sizemode="normal"] > #titlebar {
198   margin-top: -3px;
199   margin-bottom: 3px;
200 }
201
202 #main-window[sizemode="maximized"] > #titlebar {
203   margin-top: 4px;
204 }
205
206 @media (-moz-mac-graphite-theme), (-moz-mac-lion-theme) {
207   /* This is a hackish workaround to cover most of Mac OS until bug 1060941 gets fixed. */
208   #main-window[sizemode="normal"] > #titlebar,
209   #main-window[sizemode="maximized"] > #titlebar {
210     margin-top: 19px;
211     /* There is a margin-bottom set to -23 by code. */
212   }
213 }
214
215 /* The button box must appear on top of the navigator-toolbox in order for
216  * click and hover mouse events to work properly for the button in the restored
217  * window state. Otherwise, elements in the navigator-toolbox, like the menubar,
218  * can swallow those events. It will also place the buttons above the fog on
219  * themes with Aero Glass.
220  */
221 #titlebar-buttonbox {
222   -moz-appearance: none;
223   margin-top: 6px;
224   margin-top: 4px;
225   -moz-margin-end: 3px;
226   z-index: 1;
227 }
228
229 .titlebar-placeholder[type="appmenu-button"] {
230   margin-left: 4px;
231 }
232
233 .titlebar-placeholder[type="caption-buttons"] {
234   margin-left: 10px;
235 }
236
237 /* titlebar command buttons */
238
239 #titlebar-min {
240   list-style-image: url("chrome://navigator/skin/icons/win-minimize.gif");
241 }
242
243 #titlebar-min:hover {
244   list-style-image: url("chrome://navigator/skin/icons/win-minimize-hover.gif");
245 }
246
247 #titlebar-max {
248   list-style-image: url("chrome://browser/skin/win-maximize.gif");
249 }
250
251 #titlebar-max:hover {
252   list-style-image: url("chrome://browser/skin/win-maximize-hover.gif");
253 }
254
255 #main-window[sizemode="maximized"] #titlebar-max {
256   list-style-image: url("chrome://navigator/skin/icons/win-restore.gif");
257 }
258
259 #main-window[sizemode="maximized"] #titlebar-max:hover {
260   list-style-image: url("chrome://navigator/skin/icons/win-restore-hover.gif");
261 }
262
263 #titlebar-close {
264   list-style-image: url("chrome://navigator/skin/icons/win-close.gif");
265 }
266
267 #titlebar-close:hover {
268   list-style-image: url("chrome://navigator/skin/icons/win-close-hover.gif");
269 }
270
271 @media (-moz-mac-graphite-theme), (-moz-mac-lion-theme) {
272   /* This is a hackish workaround to cover most of Mac OS until bug 1060941 gets fixed. */
273   #titlebar-fullscreen-button {
274     -moz-appearance: none;
275     list-style-image: url("chrome://browser/skin/icons/mac-fullscreen-icon.png");
276     -moz-image-region: rect(0px, 16px, 16px, 0px);
277   }
278
279   #titlebar-fullscreen-button:hover {
280     -moz-image-region: rect(0px, 32px, 16px, 16px);
281   }
282
283   @media (min-resolution: 2dppx) {
284     #titlebar-fullscreen-button {
285       list-style-image: url("chrome://browser/skin/icons/mac-fullscreen-icon@2x.png");
286       -moz-image-region: rect(0px, 32px, 32px, 0px);
287     }
288
289     #titlebar-fullscreen-button:hover {
290       -moz-image-region: rect(0px, 64px, 32px, 32px);
291     }
292   }
293 }
294
295
296 /* ::::: bookmark buttons ::::: */
297
298 toolbarbutton.bookmark-item:not(.subviewbutton),
299 #personal-bookmarks[cui-areatype="toolbar"]:not([overflowedItem=true]) > #bookmarks-toolbar-placeholder {
300 /*  margin: 0;
301   padding: 2px 3px;*/
302 }
303
304 toolbarbutton.bookmark-item:not([disabled="true"]):not(.subviewbutton):hover:active,
305 toolbarbutton.bookmark-item[open="true"] {
306 /*  padding-top: 3px;
307   padding-bottom: 1px;
308   -moz-padding-start: 4px;
309   -moz-padding-end: 2px;*/
310 }
311
312 .bookmark-item > .toolbarbutton-icon,
313 #personal-bookmarks[cui-areatype="toolbar"] > #bookmarks-toolbar-placeholder > .toolbarbutton-icon {
314   width: 16px;
315   height: 16px;
316 }
317
318 /* Force the display of the label for bookmarks */
319 .bookmark-item > .toolbarbutton-text,
320 #personal-bookmarks[cui-areatype="toolbar"] > #bookmarks-toolbar-placeholder > .toolbarbutton-text {
321   display: -moz-box !important;
322 }
323
324 .bookmark-item > .toolbarbutton-menu-dropmarker {
325   display: none;
326 }
327
328 #bookmarks-toolbar-placeholder {
329   list-style-image: url("chrome://communicator/skin/bookmarks/bookmarksToolbar.png") !important;
330 }
331
332 toolbarpaletteitem[place="palette"] > #personal-bookmarks > #bookmarks-toolbar-placeholder,
333 #personal-bookmarks[cui-areatype="menu-panel"] > #bookmarks-toolbar-placeholder {
334   list-style-image: url("chrome://browser/skin/places/bookmarksToolbar-menuPanel.png") !important;
335 }
336
337 /* ----- BOOKMARK STAR ANIMATION ----- */
338
339 @keyframes animation-bookmarkAdded {
340   from { transform: rotate(0deg) translateX(-16px) rotate(0deg) scale(1); opacity: 0; }
341   60%  { transform: rotate(180deg) translateX(-16px) rotate(-180deg) scale(2.2); opacity: 1; }
342   80%  { opacity: 1; }
343   to   { transform: rotate(180deg) translateX(-16px) rotate(-180deg) scale(1); opacity: 0; }
344 }
345
346 @keyframes animation-bookmarkPulse {
347   from { transform: scale(1); }
348   50%  { transform: scale(1.3); }
349   to   { transform: scale(1); }
350 }
351
352 #bookmarked-notification-container {
353   min-height: 1px;
354   min-width: 1px;
355   height: 1px;
356   margin-bottom: -1px;
357   z-index: 5;
358   position: relative;
359 }
360
361 #bookmarked-notification {
362   background-size: 16px;
363   background-position: center;
364   background-repeat: no-repeat;
365   width: 16px;
366   height: 16px;
367   opacity: 0;
368 }
369
370 #bookmarked-notification-dropmarker-anchor {
371   z-index: -1;
372   position: relative;
373 }
374
375 #bookmarked-notification-dropmarker-icon {
376   width: 18px;
377   height: 18px;
378   visibility: hidden;
379 }
380
381 #bookmarked-notification-anchor[notification="finish"] > #bookmarked-notification {
382   background-image: url("chrome://browser/skin/places/bookmarks-notification-finish.png");
383   animation: animation-bookmarkAdded 800ms;
384   animation-timing-function: ease, ease, ease;
385 }
386
387 #bookmarks-menu-button[notification="finish"] > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
388   list-style-image: none !important;
389 }
390
391 #bookmarked-notification-dropmarker-anchor[notification="finish"] > #bookmarked-notification-dropmarker-icon {
392   visibility: visible;
393   animation: animation-bookmarkPulse 300ms;
394   animation-delay: 600ms;
395   animation-timing-function: ease-out;
396 }
397
398 /* ::::: bookmark menus ::::: */
399
400 menu.bookmark-item,
401 menuitem.bookmark-item {
402   min-width: 0;
403   max-width: 32em;
404 }
405
406 .bookmark-item:not(.subviewbutton) > .menu-iconic-left {
407   margin-top: 0;
408   margin-bottom: 0;
409 }
410
411 .bookmark-item > .menu-iconic-left > .menu-iconic-icon {
412   -moz-padding-start: 0px;
413 }
414
415 /* ::::: bookmark items ::::: */
416
417 .bookmark-item  {
418   list-style-image: url("chrome://mozapps/skin/places/defaultFavicon.png");
419   -moz-image-region: auto;
420 }
421
422 .bookmark-item[container] {
423   list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-closed.gif");
424   -moz-image-region: auto;
425 }
426
427 .bookmark-item[container][open] {
428   list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-open.gif");
429   -moz-image-region: auto;
430 }
431
432 .bookmark-item[container][livemark] {
433   list-style-image: url("chrome://communicator/skin/bookmarks/livemark-folder.png");
434   -moz-image-region: auto;
435 }
436
437 .bookmark-item[container][livemark] .bookmark-item {
438   list-style-image: url("chrome://communicator/skin/bookmarks/livemark-item.png");
439   -moz-image-region: rect(0px, 16px, 16px, 0px);
440 }
441
442 .bookmark-item[container][livemark] .bookmark-item[visited] {
443   -moz-image-region: rect(0px, 32px, 16px, 16px);
444 }
445
446 .bookmark-item[container][query] {
447   list-style-image: url("chrome://communicator/skin/bookmarks/query.png");
448   -moz-image-region: auto;
449 }
450
451 .bookmark-item[query][tagContainer] {
452   list-style-image: url("chrome://mozapps/skin/places/tagContainerIcon.png");
453   -moz-image-region: auto;
454 }
455
456 .bookmark-item[query][dayContainer] {
457   list-style-image: url("chrome://communicator/skin/history/calendar.png");
458   -moz-image-region: auto;
459 }
460
461 .bookmark-item[query][hostContainer] {
462   list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-closed.gif");
463   -moz-image-region: auto;
464 }
465
466 .bookmark-item[query][hostContainer][open] {
467   list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-open.gif");
468   -moz-image-region: auto;
469 }
470
471 .bookmark-item[cutting] > .toolbarbutton-icon,
472 .bookmark-item[cutting] > .menu-iconic-left > .menu-iconic-icon {
473   opacity: 0.5;
474 }
475
476 .bookmark-item[cutting] > .toolbarbutton-text,
477 .bookmark-item[cutting] > .menu-iconic-left > .menu-iconic-text {
478   opacity: 0.7;
479 }
480
481 /* ::::: primary toolbar buttons ::::: */
482
483 /* === BEGIN toolbarbuttons.inc.css === */
484
485 /* Whole section of this included file: */
486 :-moz-any(#back-button, #forward-button, #home-button, #print-button, #downloads-button, #bookmarks-menu-button,
487           #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #feed-button, #tabview-button,
488           #social-share-button, #open-file-button, #find-button, #developer-button,
489           #preferences-button, #privatebrowsing-button, #save-page-button, #switch-to-metro-button, #add-ons-button,
490           #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button,
491           #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button,
492           #copy-button, #paste-button, #e10s-button, #panic-button, #web-apps-button),
493
494 #bookmarks-menu-button > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
495   list-style-image: url("chrome://browser/skin/ToolbarFx.png");
496 }
497
498 #back-button {
499   -moz-image-region: rect(0, 36px, 18px, 18px);
500 }
501
502 #back-button:hover:not([disabled="true"]) {
503   -moz-image-region: rect(18px, 36px, 36px, 18px);
504 }
505
506 #back-button[disabled="true"] {
507   -moz-image-region: rect(36px, 36px, 54px, 18px);
508 }
509
510 #forward-button {
511   -moz-image-region: rect(0, 72px, 18px, 54px);
512 }
513
514 #forward-button:hover:not([disabled="true"]) {
515   -moz-image-region: rect(18px, 72px, 36px, 54px);
516 }
517
518 #forward-button[disabled="true"] {
519   -moz-image-region: rect(36px, 72px, 54px, 54px);
520 }
521
522 #back-button:-moz-locale-dir(rtl) > .toolbarbutton-icon,
523 #forward-button:-moz-locale-dir(rtl) {
524   transform: scaleX(-1);
525 }
526
527 #home-button[cui-areatype="toolbar"] {
528   -moz-image-region: rect(0, 126px, 18px, 108px);
529 }
530
531 #home-button[cui-areatype="toolbar"]:hover {
532   -moz-image-region: rect(18px, 126px, 36px, 108px);
533 }
534
535 #bookmarks-menu-button[cui-areatype="toolbar"] {
536   -moz-image-region: rect(0, 144px, 18px, 126px);
537 }
538
539 #bookmarks-menu-button[cui-areatype="toolbar"]:hover,
540 #bookmarks-menu-button[cui-areatype="toolbar"][open="true"] {
541   -moz-image-region: rect(18px, 144px, 36px, 126px);
542 }
543
544 /* When "new tab" page shows up, the menubutton-button (star button) is disabled */
545 #bookmarks-menu-button[cui-areatype="toolbar"] > .toolbarbutton-menubutton-button[disabled="true"] {
546   -moz-image-region: rect(36px, 144px, 54px, 126px) !important;
547   background-color: transparent !important;
548 }
549
550 #bookmarks-menu-button[cui-areatype="toolbar"][starred] {
551   -moz-image-region: rect(0, 162px, 18px, 144px);
552 }
553
554 #bookmarks-menu-button[cui-areatype="toolbar"][starred]:hover,
555 #bookmarks-menu-button[cui-areatype="toolbar"][starred][open="true"],
556 #bookmarks-menu-button[cui-areatype="toolbar"][starred] > .toolbarbutton-menubutton-button[open="true"] {
557   /* When starred and clicked (for edit/delete dialog),
558    * then only the menubutton-button itself is open, but not the whole menubutton. */
559   -moz-image-region: rect(18px, 162px, 36px, 144px);
560 }
561
562 #bookmarks-menu-button[cui-areatype="toolbar"] > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
563   -moz-image-region: rect(0, 630px, 18px, 612px);
564 }
565
566 #bookmarks-menu-button[cui-areatype="toolbar"] > .toolbarbutton-menubutton-dropmarker {
567   padding: 1px;
568   -moz-box-align: center;
569 }
570
571 #bookmarks-menu-button[cui-areatype="toolbar"]:hover > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon,
572 #bookmarks-menu-button[cui-areatype="toolbar"][open="true"] > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
573   -moz-image-region: rect(18px, 630px, 36px, 612px);
574 }
575
576 #bookmarks-menu-button[cui-areatype="toolbar"]:hover:active > .toolbarbutton-menubutton-dropmarker,
577 #bookmarks-menu-button[cui-areatype="toolbar"][open="true"] > .toolbarbutton-menubutton-dropmarker {
578   padding-top: 2px;
579   padding-bottom: 0px;
580   -moz-padding-start: 2px;
581   -moz-padding-end: 0px;
582 }
583
584 #history-panelmenu[cui-areatype="toolbar"] {
585   -moz-image-region: rect(0, 180px, 18px, 162px);
586 }
587
588 #history-panelmenu[cui-areatype="toolbar"]:hover,
589 #history-panelmenu[cui-areatype="toolbar"][open="true"] {
590   -moz-image-region: rect(18px, 180px, 36px, 162px);
591 }
592
593 #downloads-button[cui-areatype="toolbar"] {
594   -moz-image-region: rect(0, 198px, 18px, 180px);
595 }
596
597 #downloads-button[cui-areatype="toolbar"]:hover,
598 #downloads-button[cui-areatype="toolbar"][open="true"] {
599   -moz-image-region: rect(18px, 198px, 36px, 180px);
600 }
601
602 #add-ons-button[cui-areatype="toolbar"] {
603   -moz-image-region: rect(0, 216px, 18px, 198px);
604 }
605
606 #add-ons-button[cui-areatype="toolbar"]:hover {
607   -moz-image-region: rect(18px, 216px, 36px, 198px);
608 }
609
610 #open-file-button[cui-areatype="toolbar"] {
611   -moz-image-region: rect(0, 234px, 18px, 216px);
612 }
613
614 #open-file-button[cui-areatype="toolbar"]:hover {
615   -moz-image-region: rect(18px, 234px, 36px, 216px);
616 }
617
618 #save-page-button[cui-areatype="toolbar"] {
619   -moz-image-region: rect(0, 252px, 18px, 234px);
620 }
621
622 #save-page-button[cui-areatype="toolbar"]:hover {
623   -moz-image-region: rect(18px, 252px, 36px, 234px);
624 }
625
626 #sync-button[cui-areatype="toolbar"] {
627   -moz-image-region: rect(0, 270px, 18px, 252px);
628 }
629
630 #sync-button[cui-areatype="toolbar"]:hover {
631   -moz-image-region: rect(18px, 270px, 36px, 252px);
632 }
633
634 #sync-button[cui-areatype="toolbar"][status="active"],
635 #sync-button[cui-areatype="toolbar"][status="active"]:hover:active:not([disabled="true"]) {
636   list-style-image: url("chrome://browser/skin/syncProgress-toolbar.png");
637   -moz-image-region: rect(0, 18px, 18px, 0px);
638 }
639
640 /*
641 #sync-button[cui-areatype="toolbar"][status="active"]:-moz-lwtheme-brighttext,
642 #sync-button[cui-areatype="toolbar"][status="active"]:-moz-lwtheme-brighttext:hover:active:not([disabled="true"]) {
643   list-style-image: url("chrome://browser/skin/syncProgress-toolbar-inverted.png");
644 }
645 */
646
647 #feed-button[cui-areatype="toolbar"] {
648   -moz-image-region: rect(0, 288px, 18px, 270px);
649 }
650
651 #feed-button[cui-areatype="toolbar"]:hover:not([disabled="true"]) {
652   -moz-image-region: rect(18px, 288px, 36px, 270px);
653 }
654
655 #feed-button[cui-areatype="toolbar"][disabled="true"] {
656   -moz-image-region: rect(36px, 288px, 54px, 270px);
657 }
658
659 #social-share-button[cui-areatype="toolbar"] {
660   -moz-image-region: rect(0px, 306px, 18px, 288px);
661 }
662
663 #social-share-button[cui-areatype="toolbar"]:hover:not([disabled="true"]),
664 #social-share-button[cui-areatype="toolbar"][open="true"] {
665   -moz-image-region: rect(18px, 306px, 36px, 288px);
666 }
667
668 #social-share-button[cui-areatype="toolbar"][disabled="true"] {
669   -moz-image-region: rect(36px, 306px, 54px, 288px);
670 }
671
672 #characterencoding-button[cui-areatype="toolbar"] {
673   -moz-image-region: rect(0, 324px, 18px, 306px);
674 }
675
676 #characterencoding-button[cui-areatype="toolbar"]:hover:not([disabled="true"]),
677 #characterencoding-button[cui-areatype="toolbar"][open="true"] {
678   -moz-image-region: rect(18px, 324px, 36px, 306px);
679 }
680
681 #characterencoding-button[cui-areatype="toolbar"][disabled="true"] {
682   -moz-image-region: rect(36px, 324px, 54px, 306px);
683 }
684
685 #new-window-button[cui-areatype="toolbar"] {
686   -moz-image-region: rect(0, 342px, 18px, 324px);
687 }
688
689 #new-window-button[cui-areatype="toolbar"]:hover {
690   -moz-image-region: rect(18px, 342px, 36px, 324px);
691 }
692
693 #e10s-button[cui-areatype="toolbar"] {
694   -moz-image-region: rect(0, 342px, 18px, 324px);
695 }
696
697 #e10s-button[cui-areatype="toolbar"]:hover {
698   -moz-image-region: rect(18px, 342px, 36px, 324px);
699 }
700
701 #e10s-button > .toolbarbutton-icon {
702   transform: scaleY(-1);
703 }
704
705 #new-tab-button[cui-areatype="toolbar"] {
706   -moz-image-region: rect(0, 360px, 18px, 342px);
707 }
708
709 #new-tab-button[cui-areatype="toolbar"]:hover {
710   -moz-image-region: rect(18px, 360px, 36px, 342px);
711 }
712
713 #privatebrowsing-button[cui-areatype="toolbar"] {
714   -moz-image-region: rect(0, 378px, 18px, 360px);
715 }
716
717 #privatebrowsing-button[cui-areatype="toolbar"]:hover {
718   -moz-image-region: rect(18px, 378px, 36px, 360px);
719 }
720
721 #find-button[cui-areatype="toolbar"] {
722   -moz-image-region: rect(0, 396px, 18px, 378px);
723 }
724
725 #find-button[cui-areatype="toolbar"]:hover {
726   -moz-image-region: rect(18px, 396px, 36px, 378px);
727 }
728
729 #print-button[cui-areatype="toolbar"] {
730   -moz-image-region: rect(0, 414px, 18px, 396px);
731 }
732
733 #print-button[cui-areatype="toolbar"]:hover {
734   -moz-image-region: rect(18px, 414px, 36px, 396px);
735 }
736
737 #fullscreen-button[cui-areatype="toolbar"] {
738   -moz-image-region: rect(0, 432px, 18px, 414px);
739 }
740
741 #fullscreen-button[cui-areatype="toolbar"]:hover {
742   -moz-image-region: rect(18px, 432px, 36px, 414px);
743 }
744
745 #developer-button[cui-areatype="toolbar"] {
746   -moz-image-region: rect(0, 450px, 18px, 432px);
747 }
748
749 #developer-button[cui-areatype="toolbar"]:hover,
750 #developer-button[cui-areatype="toolbar"][open="true"] {
751   -moz-image-region: rect(18px, 450px, 36px, 432px);
752 }
753
754 #preferences-button[cui-areatype="toolbar"] {
755   -moz-image-region: rect(0, 468px, 18px, 450px);
756 }
757
758 #preferences-button[cui-areatype="toolbar"]:hover {
759   -moz-image-region: rect(18px, 468px, 36px, 450px);
760 }
761
762 #PanelUI-menu-button {
763   -moz-image-region: rect(0, 486px, 18px, 468px);
764 }
765
766 #PanelUI-menu-button:hover,
767 #PanelUI-menu-button[open="true"] {
768   -moz-image-region: rect(18px, 486px, 36px, 468px);
769 }
770
771 #edit-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #cut-button {
772   -moz-image-region: rect(0, 504px, 18px, 486px);
773 }
774
775 #edit-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #cut-button:hover:not([disabled="true"]) {
776   -moz-image-region: rect(18px, 504px, 36px, 486px);
777 }
778
779 #edit-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #cut-button[disabled="true"] {
780   -moz-image-region: rect(36px, 504px, 54px, 486px);
781 }
782
783 #edit-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #copy-button {
784   -moz-image-region: rect(0, 522px, 18px, 504px);
785 }
786
787 #edit-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #copy-button:hover:not([disabled="true"]) {
788   -moz-image-region: rect(18px, 522px, 36px, 504px);
789 }
790
791 #edit-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #copy-button[disabled="true"] {
792   -moz-image-region: rect(36px, 522px, 54px, 504px);
793 }
794
795 #edit-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #paste-button {
796   -moz-image-region: rect(0, 540px, 18px, 522px);
797 }
798
799 #edit-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #paste-button:hover:not([disabled="true"]) {
800   -moz-image-region: rect(18px, 540px, 36px, 522px);
801 }
802
803 #edit-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #paste-button[disabled="true"] {
804   -moz-image-region: rect(36px, 540px, 54px, 522px);
805 }
806
807 #zoom-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #zoom-out-button {
808   -moz-image-region: rect(0, 558px, 18px, 540px);
809 }
810
811 #zoom-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #zoom-out-button:hover:not([disabled="true"]) {
812   -moz-image-region: rect(18px, 558px, 36px, 540px);
813 }
814
815 #zoom-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #zoom-out-button[disabled="true"] {
816   -moz-image-region: rect(36px, 558px, 54px, 540px);
817 }
818
819 #zoom-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #zoom-in-button {
820   -moz-image-region: rect(0, 576px, 18px, 558px);
821 }
822
823 #zoom-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #zoom-in-button:hover:not([disabled="true"]) {
824   -moz-image-region: rect(18px, 576px, 36px, 558px);
825 }
826
827 #zoom-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #zoom-in-button[disabled="true"] {
828   -moz-image-region: rect(36px, 576px, 54px, 558px);
829 }
830
831 #nav-bar-overflow-button {
832   -moz-image-region: rect(0, 612px, 18px, 594px);
833 }
834
835 #nav-bar-overflow-button:hover,
836 #nav-bar-overflow-button[open="true"] {
837   -moz-image-region: rect(18px, 612px, 36px, 594px);
838 }
839
840 #nav-bar-overflow-button:-moz-locale-dir(rtl) > .toolbarbutton-icon {
841   transform: scaleX(-1);
842 }
843
844 #tabview-button {
845   -moz-image-region: rect(0, 648px, 18px, 630px);
846 }
847
848 #tabview-button:hover {
849   -moz-image-region: rect(18px, 648px, 36px, 630px);
850 }
851
852 #email-link-button[cui-areatype="toolbar"] {
853   -moz-image-region: rect(0, 666px, 18px, 648px);
854 }
855
856 #email-button[cui-areatype="toolbar"]:hover:not([disabled="true"]) {
857   -moz-image-region: rect(18px, 666px, 36px, 648px);
858 }
859
860 #email-button[cui-areatype="toolbar"][disabled="true"] {
861   -moz-image-region: rect(36px, 666px, 54px, 648px);
862 }
863
864 #sidebar-button[cui-areatype="toolbar"] {
865   -moz-image-region: rect(0, 684px, 18px, 666px);
866 }
867
868 #sidebar-button[cui-areatype="toolbar"]:hover {
869   -moz-image-region: rect(18px, 684px, 36px, 666px);
870 }
871
872 #panic-button[cui-areatype="toolbar"] {
873   -moz-image-region: rect(0, 702px, 18px, 684px);
874 }
875
876 #panic-button[cui-areatype="toolbar"]:hover,
877 #panic-button[cui-areatype="toolbar"][open] {
878   -moz-image-region: rect(18px, 702px, 36px, 684px);
879 }
880
881 #panic-button:-moz-locale-dir(rtl) > .toolbarbutton-icon {
882   transform: scaleX(-1);
883 }
884
885 #web-apps-button[cui-areatype="toolbar"] {
886   -moz-image-region: rect(0, 720px, 18px, 702px);
887 }
888
889 #web-apps-button[cui-areatype="toolbar"]:hover {
890   -moz-image-region: rect(18px, 720px, 36px, 702px);
891 }
892
893 #loop-call-button > .toolbarbutton-badge-container {
894   list-style-image: url("chrome://browser/skin/loop/toolbarfx.png");
895   -moz-image-region: rect(0, 18px, 18px, 0);
896 }
897
898 #loop-call-button:not([disabled="true"]):-moz-any(:hover,:hover:active,[open]) > .toolbarbutton-badge-container {
899   -moz-image-region: rect(0, 90px, 18px, 72px);
900 }
901
902 #loop-call-button[state="disabled"] > .toolbarbutton-badge-container,
903 #loop-call-button[disabled="true"] > .toolbarbutton-badge-container {
904   -moz-image-region: rect(0, 36px, 18px, 18px);
905 }
906
907 #loop-call-button[disabled="true"]:-moz-any(:hover,:hover:active,[open]) > .toolbarbutton-badge-container {
908   -moz-image-region: rect(0, 126px, 18px, 108px);
909 }
910
911 #loop-call-button:not([disabled="true"])[state="error"] > .toolbarbutton-badge-container {
912   -moz-image-region: rect(0, 54px, 18px, 36px);
913 }
914
915 #loop-call-button:not([disabled="true"])[state="action"] > .toolbarbutton-badge-container {
916   -moz-image-region: rect(0, 72px, 18px, 54px);
917 }
918
919 #loop-call-button:not([disabled="true"])[state="active"] > .toolbarbutton-badge-container {
920   -moz-image-region: rect(0, 108px, 18px, 90px);
921 }
922
923 /* === END toolbarbuttons.inc.css === */
924
925 /* === BEGIN menupanel.inc.css === */
926
927 /* Menu panel and palette styles */
928
929 toolbaritem[sdkstylewidget="true"] > toolbarbutton,
930 :-moz-any(#back-button, #forward-button, #home-button, #print-button, #downloads-button, #bookmarks-menu-button,
931           #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #feed-button, #tabview-button,
932           #social-share-button, #open-file-button, #find-button, #developer-button,
933           #preferences-button, #privatebrowsing-button, #save-page-button, #switch-to-metro-button, #add-ons-button,
934           #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button,
935           #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button,
936           #copy-button, #paste-button, #e10s-button, #panic-button, #web-apps-button)[cui-areatype="menu-panel"],
937 toolbarpaletteitem[place="palette"] > :-moz-any(#back-button, #forward-button, #home-button, #print-button, #downloads-button, #bookmarks-menu-button,
938           #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #feed-button, #tabview-button,
939           #social-share-button, #open-file-button, #find-button, #developer-button,
940           #preferences-button, #privatebrowsing-button, #save-page-button, #switch-to-metro-button, #add-ons-button,
941           #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button,
942           #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button,
943           #copy-button, #paste-button, #e10s-button, #panic-button, #web-apps-button) {
944   list-style-image: url("chrome://browser/skin/menuPanelFx.png"); /* avoid aero overrides with changed filename */
945 }
946
947 #home-button[cui-areatype="menu-panel"],
948 toolbarpaletteitem[place="palette"] > #home-button {
949   -moz-image-region: rect(0px, 128px, 32px, 96px);
950 }
951
952 #home-button[cui-areatype="menu-panel"]:hover,
953 toolbarpaletteitem[place="palette"] > #home-button:hover {
954   -moz-image-region: rect(32px, 128px, 64px, 96px);
955 }
956
957 #bookmarks-menu-button[cui-areatype="menu-panel"],
958 toolbarpaletteitem[place="palette"] > #bookmarks-menu-button {
959   -moz-image-region: rect(0px, 192px, 32px, 160px);
960 }
961
962 #bookmarks-menu-button[cui-areatype="menu-panel"]:hover,
963 toolbarpaletteitem[place="palette"] > #bookmarks-menu-button:hover {
964   -moz-image-region: rect(32px, 192px, 64px, 160px);
965 }
966
967 #bookmarks-menu-button[cui-areatype="menu-panel"][panel-multiview-anchor=true] {
968   -moz-image-region: rect(32px, 192px, 64px, 160px);
969 }
970
971 #history-panelmenu[cui-areatype="menu-panel"],
972 toolbarpaletteitem[place="palette"] > #history-panelmenu {
973   -moz-image-region: rect(0px, 224px, 32px, 192px);
974 }
975
976 #history-panelmenu[cui-areatype="menu-panel"]:hover,
977 toolbarpaletteitem[place="palette"] > #history-panelmenu:hover {
978   -moz-image-region: rect(32px, 224px, 64px, 192px);
979 }
980
981 #history-panelmenu[cui-areatype="menu-panel"][panel-multiview-anchor=true] {
982   -moz-image-region: rect(32px, 224px, 64px, 192px);
983 }
984
985 #downloads-button[cui-areatype="menu-panel"],
986 toolbarpaletteitem[place="palette"] > #downloads-button {
987   -moz-image-region: rect(0px, 256px, 32px, 224px);
988 }
989
990 #downloads-button[cui-areatype="menu-panel"]:hover,
991 toolbarpaletteitem[place="palette"] > #downloads-button:hover {
992   -moz-image-region: rect(32px, 256px, 64px, 224px);
993 }
994
995 #add-ons-button[cui-areatype="menu-panel"],
996 toolbarpaletteitem[place="palette"] > #add-ons-button {
997   -moz-image-region: rect(0px, 288px, 32px, 256px);
998 }
999
1000 #add-ons-button[cui-areatype="menu-panel"]:hover,
1001 toolbarpaletteitem[place="palette"] > #add-ons-button:hover {
1002   -moz-image-region: rect(32px, 288px, 64px, 256px);
1003 }
1004
1005 #open-file-button[cui-areatype="menu-panel"],
1006 toolbarpaletteitem[place="palette"] > #open-file-button {
1007   -moz-image-region: rect(0px, 320px, 32px, 288px);
1008 }
1009
1010 #open-file-button[cui-areatype="menu-panel"]:hover,
1011 toolbarpaletteitem[place="palette"] > #open-file-button:hover {
1012   -moz-image-region: rect(32px, 320px, 64px, 288px);
1013 }
1014
1015 #save-page-button[cui-areatype="menu-panel"],
1016 toolbarpaletteitem[place="palette"] > #save-page-button {
1017   -moz-image-region: rect(0px, 352px, 32px, 320px);
1018 }
1019
1020 #save-page-button[cui-areatype="menu-panel"]:hover,
1021 toolbarpaletteitem[place="palette"] > #save-page-button:hover {
1022   -moz-image-region: rect(32px, 352px, 64px, 320px);
1023 }
1024
1025 #sync-button[cui-areatype="menu-panel"],
1026 toolbarpaletteitem[place="palette"] > #sync-button {
1027   -moz-image-region: rect(0px, 384px, 32px, 352px);
1028 }
1029
1030 #sync-button[cui-areatype="menu-panel"]:hover,
1031 toolbarpaletteitem[place="palette"] > #sync-button:hover {
1032   -moz-image-region: rect(32px, 384px, 64px, 352px);
1033 }
1034
1035 #sync-button[cui-areatype="menu-panel"][status="active"] {
1036   list-style-image: url("chrome://browser/skin/syncProgress-menuPanel.png");
1037   -moz-image-region: rect(0px, 32px, 32px, 0px);
1038 }
1039
1040 #feed-button[cui-areatype="menu-panel"],
1041 toolbarpaletteitem[place="palette"] > #feed-button {
1042   -moz-image-region: rect(0px, 416px, 32px, 384px);
1043 }
1044
1045 #feed-button[cui-areatype="menu-panel"]:hover:not([disabled="true"]),
1046 toolbarpaletteitem[place="palette"] > #feed-button:hover:not([disabled="true"]) {
1047   -moz-image-region: rect(32px, 416px, 64px, 384px);
1048 }
1049
1050 #feed-button[cui-areatype="menu-panel"][disabled="true"],
1051 toolbarpaletteitem[place="palette"] > #feed-button[disabled="true"] {
1052   -moz-image-region: rect(64px, 416px, 96px, 384px);
1053 }
1054
1055 #social-share-button[cui-areatype="menu-panel"],
1056 toolbarpaletteitem[place="palette"] > #social-share-button {
1057   -moz-image-region: rect(0px, 448px, 32px, 416px);
1058 }
1059
1060 #social-share-button[cui-areatype="menu-panel"]:hover:not([disabled="true"]),
1061 toolbarpaletteitem[place="palette"] > #social-share-button:hover:not([disabled="true"]) {
1062   -moz-image-region: rect(32px, 448px, 64px, 416px);
1063 }
1064
1065 #social-share-button[cui-areatype="menu-panel"][disabled="true"],
1066 toolbarpaletteitem[place="palette"] > #social-share-button[disabled="true"] {
1067   -moz-image-region: rect(64px, 448px, 96px, 416px);
1068 }
1069
1070 #characterencoding-button[cui-areatype="menu-panel"],
1071 toolbarpaletteitem[place="palette"] > #characterencoding-button {
1072   -moz-image-region: rect(0px, 480px, 32px, 448px);
1073 }
1074
1075 #characterencoding-button[cui-areatype="menu-panel"]:hover:not([disabled="true"]),
1076 toolbarpaletteitem[place="palette"] > #characterencoding-button:hover:not([disabled="true"]) {
1077   -moz-image-region: rect(32px, 480px, 64px, 448px);
1078 }
1079
1080 #characterencoding-button[cui-areatype="menu-panel"][disabled="true"],
1081 toolbarpaletteitem[place="palette"] > #characterencoding-button[disabled="true"] {
1082   -moz-image-region: rect(64px, 480px, 96px, 448px);
1083 }
1084
1085 #characterencoding-button[cui-areatype="menu-panel"][panel-multiview-anchor=true] {
1086   -moz-image-region: rect(32px, 480px, 64px, 448px);
1087 }
1088
1089 #new-window-button[cui-areatype="menu-panel"],
1090 toolbarpaletteitem[place="palette"] > #new-window-button {
1091   -moz-image-region: rect(0px, 512px, 32px, 480px);
1092 }
1093
1094 #new-window-button[cui-areatype="menu-panel"]:hover,
1095 toolbarpaletteitem[place="palette"] > #new-window-button:hover {
1096   -moz-image-region: rect(32px, 512px, 64px, 480px);
1097 }
1098
1099 #e10s-button[cui-areatype="menu-panel"],
1100 toolbarpaletteitem[place="palette"] > #e10s-button {
1101   -moz-image-region: rect(0px, 512px, 32px, 480px);
1102 }
1103
1104 #e10s-button[cui-areatype="menu-panel"]:hover,
1105 toolbarpaletteitem[place="palette"] > #e10s-button:hover {
1106   -moz-image-region: rect(32px, 512px, 64px, 480px);
1107 }
1108
1109 #new-tab-button[cui-areatype="menu-panel"],
1110 toolbarpaletteitem[place="palette"] > #new-tab-button {
1111   -moz-image-region: rect(0px, 544px, 32px, 512px);
1112 }
1113
1114 #new-tab-button[cui-areatype="menu-panel"]:hover,
1115 toolbarpaletteitem[place="palette"] > #new-tab-button:hover {
1116   -moz-image-region: rect(32px, 544px, 64px, 512px);
1117 }
1118
1119 #privatebrowsing-button[cui-areatype="menu-panel"],
1120 toolbarpaletteitem[place="palette"] > #privatebrowsing-button {
1121   -moz-image-region: rect(0px, 576px, 32px, 544px);
1122 }
1123
1124 #privatebrowsing-button[cui-areatype="menu-panel"]:hover,
1125 toolbarpaletteitem[place="palette"] > #privatebrowsing-button:hover {
1126   -moz-image-region: rect(32px, 576px, 64px, 544px);
1127 }
1128
1129 #tabview-button[cui-areatype="menu-panel"],
1130 toolbarpaletteitem[place="palette"] > #tabview-button {
1131   -moz-image-region: rect(0px, 608px, 32px, 576px);
1132 }
1133
1134 #tabview-button[cui-areatype="menu-panel"]:hover,
1135 toolbarpaletteitem[place="palette"] > #tabview-button:hover {
1136   -moz-image-region: rect(32px, 608px, 64px, 576px);
1137 }
1138
1139 #find-button[cui-areatype="menu-panel"],
1140 toolbarpaletteitem[place="palette"] > #find-button {
1141   -moz-image-region: rect(0px, 640px, 32px, 608px);
1142 }
1143
1144 #find-button[cui-areatype="menu-panel"]:hover,
1145 toolbarpaletteitem[place="palette"] > #find-button:hover {
1146   -moz-image-region: rect(32px, 640px, 64px, 608px);
1147 }
1148
1149 #print-button[cui-areatype="menu-panel"],
1150 toolbarpaletteitem[place="palette"] > #print-button {
1151   -moz-image-region: rect(0px, 672px, 32px, 640px);
1152 }
1153
1154 #print-button[cui-areatype="menu-panel"]:hover,
1155 toolbarpaletteitem[place="palette"] > #print-button:hover {
1156   -moz-image-region: rect(32px, 672px, 64px, 640px);
1157 }
1158
1159 #fullscreen-button[cui-areatype="menu-panel"],
1160 toolbarpaletteitem[place="palette"] > #fullscreen-button {
1161   -moz-image-region: rect(0px, 704px, 32px, 672px);
1162 }
1163
1164 #fullscreen-button[cui-areatype="menu-panel"]:hover,
1165 toolbarpaletteitem[place="palette"] > #fullscreen-button:hover {
1166   -moz-image-region: rect(32px, 704px, 64px, 672px);
1167 }
1168
1169 #developer-button[cui-areatype="menu-panel"],
1170 toolbarpaletteitem[place="palette"] > #developer-button {
1171   -moz-image-region: rect(0px, 736px, 32px, 704px);
1172 }
1173
1174 #developer-button[cui-areatype="menu-panel"]:hover,
1175 toolbarpaletteitem[place="palette"] > #developer-button:hover {
1176   -moz-image-region: rect(32px, 736px, 64px, 704px);
1177 }
1178
1179 #developer-button[cui-areatype="menu-panel"][panel-multiview-anchor=true] {
1180   -moz-image-region: rect(32px, 736px, 64px, 704px);
1181 }
1182
1183 #preferences-button[cui-areatype="menu-panel"],
1184 toolbarpaletteitem[place="palette"] > #preferences-button {
1185   -moz-image-region: rect(0px, 768px, 32px, 736px);
1186 }
1187
1188 #preferences-button[cui-areatype="menu-panel"]:hover,
1189 toolbarpaletteitem[place="palette"] > #preferences-button:hover {
1190   -moz-image-region: rect(32px, 768px, 64px, 736px);
1191 }
1192
1193 #email-link-button[cui-areatype="menu-panel"],
1194 toolbarpaletteitem[place="palette"] > #email-link-button {
1195   -moz-image-region: rect(0, 800px, 32px, 768px);
1196 }
1197
1198 #email-link-button[cui-areatype="menu-panel"]:hover:not([disabled="true"]),
1199 toolbarpaletteitem[place="palette"] > #email-link-button:hover:not([disabled="true"]) {
1200   -moz-image-region: rect(32px, 800px, 64px, 768px);
1201 }
1202
1203 #email-link-button[cui-areatype="menu-panel"][disabled="true"],
1204 toolbarpaletteitem[place="palette"] > #email-link-button[disabled="true"] {
1205   -moz-image-region: rect(64px, 800px, 96px, 768px);
1206 }
1207
1208 #sidebar-button[cui-areatype="menu-panel"],
1209 toolbarpaletteitem[place="palette"] > #sidebar-button {
1210   -moz-image-region: rect(0, 864px, 32px, 832px);
1211 }
1212
1213 #sidebar-button[cui-areatype="menu-panel"]:hover,
1214 toolbarpaletteitem[place="palette"] > #sidebar-button:hover,
1215 #sidebar-button[cui-areatype="menu-panel"][panel-multiview-anchor=true] {
1216   -moz-image-region: rect(32px, 864px, 64px, 832px);
1217 }
1218
1219 #panic-button[cui-areatype="menu-panel"],
1220 toolbarpaletteitem[place="palette"] > #panic-button {
1221   -moz-image-region: rect(0, 896px, 32px, 864px);
1222 }
1223
1224 #panic-button[cui-areatype="menu-panel"]:hover,
1225 toolbarpaletteitem[place="palette"] > #panic-button:hover,
1226 #panic-button[cui-areatype="menu-panel"][panel-multiview-anchor=true] {
1227   -moz-image-region: rect(32px, 896px, 64px, 864px);
1228 }
1229
1230 #web-apps-button[cui-areatype="menu-panel"],
1231 toolbarpaletteitem[place="palette"] > #web-apps-button {
1232   -moz-image-region: rect(0, 928px, 32px, 896px);
1233 }
1234
1235 #web-apps-button[cui-areatype="menu-panel"]:hover,
1236 toolbarpaletteitem[place="palette"] > #web-apps-button:hover {
1237   -moz-image-region: rect(32px, 928px, 64px, 896px);
1238 }
1239
1240 toolbaritem[sdkstylewidget="true"] > toolbarbutton {
1241   -moz-image-region: rect(0, 832px, 32px, 800px);
1242 }
1243
1244 #loop-call-button[cui-areatype="menu-panel"] > .toolbarbutton-badge-container,
1245 toolbarpaletteitem[place="palette"] > #loop-call-button > .toolbarbutton-badge-container {
1246   list-style-image: url("chrome://browser/skin/loop/menuPanel.png");
1247   -moz-image-region: rect(0, 32px, 32px, 0);
1248 }
1249
1250 /* Make sure that the state icons are not shown in the customization palette. */
1251 toolbarpaletteitem[place="palette"] > #loop-call-button > .toolbarbutton-badge-container {
1252   -moz-image-region: rect(0, 32px, 32px, 0) !important;
1253 }
1254
1255 #loop-call-button[cui-areatype="menu-panel"]:not([disabled="true"]):-moz-any(:hover,:hover:active,[open]) > .toolbarbutton-badge-container {
1256   -moz-image-region: rect(0, 160px, 32px, 128px);
1257 }
1258
1259 #loop-call-button[cui-areatype="menu-panel"][state="disabled"] > .toolbarbutton-badge-container,
1260 #loop-call-button[cui-areatype="menu-panel"][disabled="true"] > .toolbarbutton-badge-container {
1261   -moz-image-region: rect(0, 64px, 32px, 32px);
1262 }
1263
1264 #loop-call-button[cui-areatype="menu-panel"][disabled="true"]:-moz-any(:hover,:hover:active,[open]) > .toolbarbutton-badge-container {
1265   -moz-image-region: rect(0, 224px, 32px, 192px);
1266 }
1267
1268 #loop-call-button[cui-areatype="menu-panel"]:not([disabled="true"])[state="error"] > .toolbarbutton-badge-container {
1269   -moz-image-region: rect(0, 96px, 32px, 64px);
1270 }
1271
1272 #loop-call-button[cui-areatype="menu-panel"]:not([disabled="true"])[state="action"] > .toolbarbutton-badge-container {
1273   -moz-image-region: rect(0, 128px, 32px, 96px);
1274 }
1275
1276 #loop-call-button[cui-areatype="menu-panel"]:not([disabled="true"])[state="active"] > .toolbarbutton-badge-container {
1277   -moz-image-region: rect(0, 192px, 32px, 160px);
1278 }
1279
1280 /* Wide panel control icons */
1281
1282 #edit-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > toolbarbutton,
1283 #zoom-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > toolbarbutton,
1284 toolbarpaletteitem[place="palette"] > #edit-controls > toolbarbutton,
1285 toolbarpaletteitem[place="palette"] > #zoom-controls > toolbarbutton {
1286   list-style-image: url("chrome://browser/skin/menuPanelFx-small.png"); /* avoid aero overrides with changed filename */
1287 }
1288
1289 #edit-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #cut-button,
1290 toolbarpaletteitem[place="palette"] > #edit-controls > #cut-button {
1291   -moz-image-region: rect(0px, 32px, 16px, 16px);
1292 }
1293
1294 #edit-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #cut-button:hover:not([disabled="true"]),
1295 toolbarpaletteitem[place="palette"] > #edit-controls > #cut-button:hover:not([disabled="true"]) {
1296   -moz-image-region: rect(16px, 32px, 32px, 16px);
1297 }
1298
1299 #edit-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #cut-button[disabled="true"],
1300 toolbarpaletteitem[place="palette"] > #edit-controls > #cut-button[disabled="true"] {
1301   -moz-image-region: rect(32px, 32px, 48px, 16px);
1302 }
1303
1304 #edit-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #copy-button,
1305 toolbarpaletteitem[place="palette"] > #edit-controls > #copy-button {
1306   -moz-image-region: rect(0px, 48px, 16px, 32px);
1307 }
1308
1309 #edit-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #copy-button:hover:not([disabled="true"]),
1310 toolbarpaletteitem[place="palette"] > #edit-controls > #copy-button:hover:not([disabled="true"]) {
1311   -moz-image-region: rect(16px, 48px, 32px, 32px);
1312 }
1313
1314 #edit-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #copy-button[disabled="true"],
1315 toolbarpaletteitem[place="palette"] > #edit-controls > #copy-button[disabled="true"] {
1316   -moz-image-region: rect(32px, 48px, 48px, 32px);
1317 }
1318
1319 #edit-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #paste-button,
1320 toolbarpaletteitem[place="palette"] > #edit-controls > #paste-button {
1321   -moz-image-region: rect(0px, 64px, 16px, 48px);
1322 }
1323
1324 #edit-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #paste-button:hover:not([disabled="true"]),
1325 toolbarpaletteitem[place="palette"] > #edit-controls > #paste-button:hover:not([disabled="true"]) {
1326   -moz-image-region: rect(16px, 64px, 32px, 48px);
1327 }
1328
1329 #edit-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #paste-button[disabled="true"],
1330 toolbarpaletteitem[place="palette"] > #edit-controls > #paste-button[disabled="true"] {
1331   -moz-image-region: rect(32px, 64px, 48px, 48px);
1332 }
1333
1334 #zoom-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #zoom-out-button,
1335 toolbarpaletteitem[place="palette"] > #zoom-controls > #zoom-out-button {
1336   -moz-image-region: rect(0px, 80px, 16px, 64px);
1337 }
1338
1339 #zoom-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #zoom-out-button:hover:not([disabled="true"]),
1340 toolbarpaletteitem[place="palette"] > #zoom-controls > #zoom-out-button:hover:not([disabled="true"]) {
1341   -moz-image-region: rect(16px, 80px, 32px, 64px);
1342 }
1343
1344 #zoom-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #zoom-out-button[disabled="true"],
1345 toolbarpaletteitem[place="palette"] > #zoom-controls > #zoom-out-button[disabled="true"] {
1346   -moz-image-region: rect(32px, 80px, 48px, 64px);
1347 }
1348
1349 #zoom-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #zoom-in-button,
1350 toolbarpaletteitem[place="palette"] > #zoom-controls > #zoom-in-button {
1351   -moz-image-region: rect(0px, 96px, 16px, 80px);
1352 }
1353
1354 #zoom-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #zoom-in-button:hover:not([disabled="true"]),
1355 toolbarpaletteitem[place="palette"] > #zoom-controls > #zoom-in-button:hover:not([disabled="true"]) {
1356   -moz-image-region: rect(16px, 96px, 32px, 80px);
1357 }
1358
1359 #zoom-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #zoom-in-button[disabled="true"],
1360 toolbarpaletteitem[place="palette"] > #zoom-controls > #zoom-in-button[disabled="true"] {
1361   -moz-image-region: rect(32px, 96px, 48px, 80px);
1362 }
1363
1364 /* === END menupanel.inc.css === */
1365
1366 .toolbarbutton-1:not([type="menu-button"]) {
1367   -moz-box-orient: vertical;
1368 }
1369
1370 .toolbarbutton-1,
1371 .toolbarbutton-1 > .toolbarbutton-menubutton-button {
1372 /*  min-width: 36px;
1373   min-height: 36px;*/
1374 }
1375
1376 .toolbarbutton-1,
1377 .toolbarbutton-1 > .toolbarbutton-menubutton-button,
1378 .toolbarbutton-1[disabled="true"]:hover:active,
1379 .toolbarbutton-1[disabled="true"]:hover:active > .toolbarbutton-menubutton-button {
1380   padding: 1px 2px;
1381 }
1382
1383 .toolbarbutton-1:hover:active,
1384 .toolbarbutton-1[open="true"],
1385 .toolbarbutton-1:hover:active > .toolbarbutton-menubutton-button {
1386   padding-top: 2px;
1387   padding-bottom: 0px;
1388   -moz-padding-start: 3px;
1389   -moz-padding-end: 1px;
1390 }
1391
1392 #main-window:not([customizing]) .toolbarbutton-1[disabled=true] > .toolbarbutton-icon,
1393 #main-window:not([customizing]) .toolbarbutton-1[disabled=true] > .toolbarbutton-menu-dropmarker,
1394 #main-window:not([customizing]) .toolbarbutton-1[disabled=true] > .toolbarbutton-menubutton-dropmarker,
1395 #main-window:not([customizing]) .toolbarbutton-1[disabled=true] > .toolbarbutton-menubutton-button > .toolbarbutton-icon,
1396 #main-window:not([customizing]) .toolbarbutton-1 > .toolbarbutton-menubutton-button[disabled=true] > .toolbarbutton-icon {
1397 }
1398
1399 .toolbarbutton-1 > .toolbarbutton-menu-dropmarker,
1400 .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker {
1401 }
1402
1403 toolbar .toolbarbutton-1 > .toolbarbutton-menu-dropmarker:-moz-lwtheme-brighttext,
1404 toolbar .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker:-moz-lwtheme-brighttext {
1405 }
1406
1407 .toolbarbutton-1 > .toolbarbutton-icon,
1408 .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-icon {
1409 }
1410
1411 #nav-bar .toolbarbutton-1,
1412 #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button {
1413 }
1414
1415 #nav-bar .toolbarbutton-1:not([type=menu-button]),
1416 #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button,
1417 #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker {
1418 }
1419
1420 #nav-bar #PanelUI-menu-button {
1421 /*  -moz-padding-start: 7px;
1422   -moz-padding-end: 5px;*/
1423 }
1424
1425 #nav-bar .toolbarbutton-1[type=menu]:not(#back-button):not(#forward-button):not(#feed-button):not(#social-provider-button):not(#PanelUI-menu-button) {
1426 /*  padding-left: 5px;
1427   padding-right: 5px;*/
1428 }
1429
1430 #nav-bar .toolbarbutton-1 > menupopup {
1431 /*  margin-top: -3px;*/
1432 }
1433
1434 #nav-bar .toolbarbutton-1 > menupopup.cui-widget-panel {
1435   margin-top: -4px;
1436 }
1437
1438 #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button {
1439 /*  -moz-padding-end: 0;*/
1440 }
1441
1442 #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker {
1443 /*  -moz-padding-start: 0;
1444   -moz-box-align: center;*/
1445 }
1446
1447 #nav-bar .toolbarbutton-1 > .toolbarbutton-icon,
1448 #nav-bar .toolbarbutton-1 > .toolbarbutton-text,
1449 #nav-bar .toolbarbutton-1 > .toolbarbutton-badge-container,
1450 #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-icon,
1451 #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon,
1452 window:not([chromehidden~="toolbar"]) #urlbar-wrapper > .toolbarbutton-1:-moz-any([disabled=true],:not([open]):not([disabled=true]):not(:active)) > .toolbarbutton-icon {
1453 /*  padding: 2px 6px;
1454   border: 1px solid;
1455   border-color: transparent;
1456   transition-property: background-color, border-color;
1457   transition-duration: 150ms;*/
1458 }
1459 /*
1460 #nav-bar .toolbarbutton-1:not(:-moz-any(@primaryToolbarButtons@)) > .toolbarbutton-icon,
1461 #nav-bar .toolbarbutton-1:not(:-moz-any(@primaryToolbarButtons@)) > .toolbarbutton-badge-container,
1462 #nav-bar .toolbarbutton-1:not(:-moz-any(@primaryToolbarButtons@)) > .toolbarbutton-menubutton-button > .toolbarbutton-icon {
1463   padding: 3px 7px;
1464 }
1465 */
1466
1467 /* Help SDK icons fit: */
1468 toolbarbutton[sdk-button="true"][cui-areatype="toolbar"] > .toolbarbutton-icon {
1469   width: 16px;
1470 }
1471
1472 #nav-bar toolbarbutton[sdk-button="true"][cui-areatype="toolbar"] > .toolbarbutton-icon {
1473   /* XXXgijs box models strike again: this is 16px + 2 * 7px padding + 2 * 1px border (from the rules above) */
1474   width: 32px;
1475 }
1476
1477 #nav-bar .toolbarbutton-1[type=menu]:not(#back-button):not(#forward-button):not(#feed-button):not(#social-provider-button):not(#PanelUI-menu-button) > .toolbarbutton-icon,
1478 #nav-bar .toolbarbutton-1[type=menu] > .toolbarbutton-text /* hack for add-ons that forcefully display the label */ {
1479 /*  -moz-padding-end: 17px;*/
1480 }
1481
1482 #nav-bar .toolbarbutton-1 > .toolbarbutton-menu-dropmarker {
1483 }
1484
1485 #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-icon {
1486 }
1487
1488 #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
1489 }
1490
1491 #nav-bar .toolbaritem-combined-buttons {
1492 /*  margin-left: 2px;
1493   margin-right: 2px;*/
1494 }
1495
1496 #nav-bar .toolbaritem-combined-buttons > .toolbarbutton-1 {
1497 /*  padding-left: 0;
1498   padding-right: 0;*/
1499 }
1500
1501 #nav-bar .toolbarbutton-1:not(:hover):not(:active):not([open]) > .toolbarbutton-menubutton-dropmarker::before,
1502 #nav-bar .toolbaritem-combined-buttons > .toolbarbutton-1:-moz-any(:not(:hover):not([open]),[disabled=true]) + .toolbarbutton-1:-moz-any(:not(:hover):not([open]),[disabled=true])::before {
1503 /*
1504   content: "";
1505   display: -moz-box;
1506   width: 1px;
1507   height: 16px;
1508   -moz-margin-end: -1px;
1509 */
1510 }
1511
1512 window:not([chromehidden~="toolbar"]) #urlbar-wrapper > .toolbarbutton-1:-moz-any([disabled=true],:not([open]):not([disabled=true]):not(:active)) > .toolbarbutton-icon {
1513 }
1514
1515 #nav-bar .toolbarbutton-1:not([disabled=true]) > .toolbarbutton-menubutton-button[open] + .toolbarbutton-menubutton-dropmarker > .dropmarker-icon,
1516 #nav-bar .toolbarbutton-1:not([disabled=true]):-moz-any(:hover,[open]) > .toolbarbutton-menubutton-button > .toolbarbutton-icon,
1517 #nav-bar .toolbarbutton-1:not([disabled=true]):-moz-any(:hover,[open]) > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon,
1518 #nav-bar .toolbarbutton-1:not([disabled=true]):not([checked]):not([open]):not(:active):hover > .toolbarbutton-icon,
1519 #nav-bar .toolbarbutton-1:not([disabled=true]):not([checked]):not([open]):not(:active):hover > .toolbarbutton-text,
1520 #nav-bar .toolbarbutton-1:not([disabled=true]):not([checked]):not([open]):not(:active):hover > .toolbarbutton-badge-container,
1521 window:not([chromehidden~="toolbar"]) #urlbar-wrapper > #forward-button:not([open]):not(:active):not([disabled=true]):hover > .toolbarbutton-icon,
1522 #nav-bar .toolbarbutton-1:not([buttonover]):not([open]):not(:active):hover > .toolbarbutton-menubutton-dropmarker:not([disabled=true]) > .dropmarker-icon {
1523 }
1524
1525 #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button:not([disabled=true]):-moz-any(:hover:active, [open]) > .toolbarbutton-icon,
1526 #nav-bar .toolbarbutton-1[open] > .toolbarbutton-menubutton-dropmarker:not([disabled=true]) > .dropmarker-icon,
1527 #nav-bar .toolbarbutton-1:not([disabled=true]):-moz-any([open],[checked],:hover:active) > .toolbarbutton-icon,
1528 #nav-bar .toolbarbutton-1:not([disabled=true]):-moz-any([open],[checked],:hover:active) > .toolbarbutton-text,
1529 #nav-bar .toolbarbutton-1:not([disabled=true]):-moz-any([open],[checked],:hover:active) > .toolbarbutton-badge-container {
1530 }
1531
1532 #TabsToolbar .toolbarbutton-1,
1533 #TabsToolbar .toolbarbutton-1 > .toolbarbutton-menubutton-button,
1534 .tabbrowser-arrowscrollbox > .scrollbutton-up,
1535 .tabbrowser-arrowscrollbox > .scrollbutton-down {
1536 }
1537
1538 #TabsToolbar .toolbarbutton-1:not([disabled=true]):hover,
1539 #TabsToolbar .toolbarbutton-1[open],
1540 #TabsToolbar .toolbarbutton-1 > .toolbarbutton-menubutton-button:not([disabled=true]):hover,
1541 .tabbrowser-arrowscrollbox > .scrollbutton-up:not([disabled=true]):hover,
1542 .tabbrowser-arrowscrollbox > .scrollbutton-down:not([disabled=true]):hover {
1543 }
1544
1545 /* unified back/forward button */
1546
1547 #forward-button {
1548   -moz-box-align: stretch; /* let the button shape grow vertically with the location bar */
1549 }
1550
1551 #forward-button > menupopup {
1552   margin-top: 1px !important;
1553 }
1554
1555 #forward-button > .toolbarbutton-icon {
1556   background-clip: padding-box !important;
1557   /*mask: url(keyhole-forward-mask.svg#mask); XXX: this regresses twinopen */
1558   /*clip-path: url(chrome://browser/content/browser.xul#keyhole-forward-clip-path) !important;*/
1559 }
1560
1561 #forward-button {
1562   -moz-margin-start: -4px !important;
1563   padding-left: 4px;
1564   padding-right: 2px;
1565   margin-top: 3px;
1566   margin-bottom: 3px;
1567   border-radius: 0 10000px 10000px 0;
1568 }
1569
1570 #forward-button:-moz-locale-dir(rtl) {
1571   border-radius: 10000px 0 0 10000px;
1572 }
1573
1574 window:not([chromehidden~="toolbar"]) #urlbar-wrapper:not([switchingtabs]) > #forward-button {
1575   transition: margin-left 150ms ease-out;
1576 }
1577
1578 window:not([chromehidden~="toolbar"]) #urlbar-wrapper > #forward-button[disabled] {
1579   margin-left: -27px !important;
1580 }
1581
1582 window:not([chromehidden~="toolbar"]) #urlbar-wrapper:hover:not([switchingtabs]) > #forward-button[disabled] {
1583   /* delay the hiding of the forward button when hovered to avoid accidental clicks on the url bar */
1584   transition-delay: 100s;
1585 }
1586
1587 window:not([chromehidden~="toolbar"]) #urlbar-wrapper:not(:hover) > #forward-button[disabled] {
1588   /* when not hovered anymore, trigger a new transition to hide the forward button immediately */
1589   margin-left: -27.01px !important;
1590 }
1591
1592 #back-button {
1593 /*  padding-top: 3px !important;
1594   padding-bottom: 3px !important;
1595   -moz-padding-start: 5px !important;
1596   -moz-padding-end: 0 !important;*/
1597   position: relative;
1598   z-index: 1;
1599   border-radius: 10000px;
1600   width: 30px;
1601   height: 30px;
1602   margin-top: -2px;
1603   margin-bottom: -2px;
1604 }
1605
1606 #back-button:-moz-locale-dir(rtl) {
1607 }
1608
1609 #back-button > menupopup {
1610   margin-top: -1px !important;
1611 }
1612
1613 #back-button > .toolbarbutton-icon {
1614   border-radius: 10000px !important;
1615   background-clip: padding-box !important;
1616 /*  background-color: hsla(210,25%,98%,.08) !important;
1617   padding: 6px !important;
1618   border-style: none !important;
1619   box-shadow: 0 1px 0 0 hsla(210,4%,10%,.25),
1620               0 0 0 1px hsla(210,4%,10%,.25);*/
1621   transition-property: background-color, box-shadow !important;
1622   transition-duration: 250ms !important;
1623 }
1624
1625 #back-button:not([disabled="true"]):not([open="true"]):not(:active):hover > .toolbarbutton-icon {
1626 /*  background-color: hsla(210,4%,10%,.08) !important;*/
1627 }
1628
1629 #back-button:not([disabled="true"]):hover:active > .toolbarbutton-icon,
1630 #back-button[open="true"] > .toolbarbutton-icon {
1631 /*  background-color: hsla(210,4%,10%,.12) !important;
1632   box-shadow: 0 1px 0 0 hsla(210,4%,10%,.25),
1633               0 0 0 1px hsla(210,4%,10%,.25),
1634               0 1px 0 0 hsla(210,80%,20%,.1) inset !important;*/
1635 }
1636
1637 #back-button:-moz-locale-dir(rtl) > .toolbarbutton-icon {
1638   transform: scaleX(-1);
1639 }
1640 /*
1641 .unified-nav-back[_moz-menuactive]:-moz-locale-dir(ltr),
1642 .unified-nav-forward[_moz-menuactive]:-moz-locale-dir(rtl) {
1643   list-style-image: url("chrome://browser/skin/menu-back.png") !important;
1644 }
1645
1646 .unified-nav-forward[_moz-menuactive]:-moz-locale-dir(ltr),
1647 .unified-nav-back[_moz-menuactive]:-moz-locale-dir(rtl) {
1648   list-style-image: url("chrome://browser/skin/menu-forward.png") !important;
1649 }
1650
1651 #home-button.bookmark-item {
1652   list-style-image: url("chrome://browser/skin/Toolbar.png");
1653 }
1654
1655 #main-window[tabsintitlebar]:not([inFullscreen]) :-moz-any(#TabsToolbar, #toolbar-menubar) > #bookmarks-menu-button > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon:-moz-system-metric(windows-classic):not(:-moz-lwtheme),
1656 #main-window[tabsintitlebar]:not([inFullscreen]) :-moz-any(#TabsToolbar, #toolbar-menubar) > toolbarpaletteitem > #bookmarks-menu-button > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon:-moz-system-metric(windows-classic):not(:-moz-lwtheme),
1657 #main-window[tabsintitlebar]:not([inFullscreen]) :-moz-any(#TabsToolbar, #toolbar-menubar) > toolbarpaletteitem > toolbaritem > :-moz-any(@nestedButtons@):-moz-system-metric(windows-classic):not(:-moz-lwtheme),
1658 #main-window[tabsintitlebar]:not([inFullscreen]) :-moz-any(#TabsToolbar, #toolbar-menubar) > toolbaritem > :-moz-any(@nestedButtons@):-moz-system-metric(windows-classic):not(:-moz-lwtheme),
1659 #main-window[tabsintitlebar]:not([inFullscreen]) :-moz-any(#TabsToolbar, #toolbar-menubar) > toolbarpaletteitem > :-moz-any(@primaryToolbarButtons@):-moz-system-metric(windows-classic):not(:-moz-lwtheme),
1660 #main-window[tabsintitlebar]:not([inFullscreen]) :-moz-any(#TabsToolbar, #toolbar-menubar) > :-moz-any(@primaryToolbarButtons@):-moz-system-metric(windows-classic):not(:-moz-lwtheme),
1661 #home-button.bookmark-item:-moz-lwtheme-brighttext {
1662   position: relative;
1663   z-index: 1;
1664   list-style-image: url("chrome://browser/skin/Toolbar-inverted.png");
1665 }
1666
1667 #main-window[tabsintitlebar]:not([inFullscreen]) :-moz-any(#TabsToolbar, #toolbar-menubar) > #sync-button[status="active"]:-moz-system-metric(windows-classic):not(:-moz-lwtheme),
1668 #main-window[tabsintitlebar]:not([inFullscreen]) :-moz-any(#TabsToolbar, #toolbar-menubar) > toolbarpaletteitem > #sync-button[status="active"]:-moz-system-metric(windows-classic):not(:-moz-lwtheme) {
1669   list-style-image: url("chrome://browser/skin/syncProgress-toolbar-inverted.png");
1670 }
1671 */
1672
1673 #downloads-button > .toolbarbutton-icon {
1674   margin: 0;
1675 }
1676
1677 /* tabview menu item */
1678
1679 #menu_tabview {
1680   list-style-image: url("chrome://browser/skin/tabview/tabview.png");
1681   -moz-image-region: rect(1px, 89px, 17px, 73px);
1682 }
1683
1684 #menu_tabview[groups="0"] {
1685   -moz-image-region: rect(1px, 17px, 17px, 1px);
1686 }
1687
1688 #menu_tabview[groups="1"] {
1689   -moz-image-region: rect(1px, 35px, 17px, 19px);
1690 }
1691
1692 #menu_tabview[groups="2"] {
1693   -moz-image-region: rect(1px, 53px, 17px, 37px);
1694 }
1695
1696 #menu_tabview[groups="3"] {
1697   -moz-image-region: rect(1px, 71px, 17px, 55px);
1698 }
1699
1700 /* undo close tab menu item */
1701 #alltabs_undoCloseTab {
1702   list-style-image: url(chrome://browser/skin/undoCloseTab.png);
1703 }
1704
1705 @media (min-resolution: 1.25dppx) {
1706   #alltabs_undoCloseTab {
1707     list-style-image: url(chrome://browser/skin/undoCloseTab@2x.png);
1708   }
1709   #alltabs_undoCloseTab > .toolbarbutton-icon {
1710     width: 16px;
1711   }
1712 }
1713
1714 /* zoom control text (reset) button special case: */
1715
1716 #nav-bar #zoom-reset-button > .toolbarbutton-text {
1717   /* To make this line up with the icons, it needs the same height (18px) +
1718    * padding (2 * 2px) + border (2 * 1px), but as a minimum because otherwise
1719    * increase in text sizes would break things...
1720    */
1721   min-height: 20px;
1722 }
1723
1724 /* ::::: fullscreen window controls ::::: */
1725
1726 #window-controls {
1727   -moz-margin-start: 4px;
1728 }
1729
1730 #minimize-button,
1731 #restore-button,
1732 #close-button {
1733 /*  list-style-image: url("chrome://global/skin/icons/windowControls.png");
1734   padding: 0; */
1735 }
1736
1737 #minimize-button {
1738   list-style-image: url("chrome://navigator/skin/icons/win-minimize.gif");
1739 }
1740
1741 #minimize-button:hover {
1742   list-style-image: url("chrome://navigator/skin/icons/win-minimize-hover.gif");
1743 }
1744
1745 #restore-button {
1746   list-style-image: url("chrome://navigator/skin/icons/win-restore.gif");
1747 }
1748
1749 #restore-button:hover {
1750   list-style-image: url("chrome://navigator/skin/icons/win-restore-hover.gif");
1751 }
1752
1753 #close-button {
1754   list-style-image: url("chrome://navigator/skin/icons/win-close.gif");
1755 }
1756
1757 #close-button:hover {
1758   list-style-image: url("chrome://navigator/skin/icons/win-close-hover.gif");
1759 }
1760
1761 /* ::::: Location Bar ::::: */
1762
1763 #urlbar,
1764 .searchbar-textbox {
1765   border-radius: 5px;
1766   margin: 2px 0;
1767   -moz-margin-start: 3px;
1768 }
1769
1770 #urlbar {
1771   /* make color as light as possible to deal with dark non-domain parts */
1772   color: #FFBFFF;
1773 }
1774
1775 #urlbar:-moz-lwtheme,
1776 .searchbar-textbox:-moz-lwtheme {
1777   /* background-color: rgba(255,255,255,.8);
1778   @navbarTextboxCustomBorder@
1779   color: black; */
1780 }
1781
1782 #urlbar:-moz-lwtheme:hover:not([focused]):not([readonly]),
1783 .searchbar-textbox:-moz-lwtheme:hover:not([focused]) {
1784 /*  background-color: rgba(255,255,255,.9);*/
1785 }
1786
1787 #urlbar:-moz-lwtheme[focused]:not([readonly]),
1788 .searchbar-textbox:-moz-lwtheme[focused] {
1789 /*  background-color: white;*/
1790 }
1791
1792 window:not([chromehidden~="toolbar"]) #urlbar-wrapper > #urlbar {
1793 /*  -moz-border-start: none;
1794   margin-left: 0;*/
1795 }
1796
1797 window:not([chromehidden~="toolbar"]) #urlbar-wrapper > #urlbar:-moz-locale-dir(ltr) {
1798 /*  border-top-left-radius: 0;
1799   border-bottom-left-radius: 0; */
1800 }
1801
1802 window:not([chromehidden~="toolbar"]) #urlbar-wrapper > #urlbar:-moz-locale-dir(rtl) {
1803 /*  border-top-right-radius: 0;
1804   border-bottom-right-radius: 0; */
1805 }
1806
1807 window:not([chromehidden~="toolbar"]) #urlbar-wrapper {
1808 /*  clip-path: url("chrome://browser/content/browser.xul#urlbar-back-button-clip-path");*/
1809 /*  -moz-margin-start: -5px; */
1810 }
1811
1812 window:not([chromehidden~="toolbar"]) #urlbar-wrapper:-moz-locale-dir(rtl),
1813 window:not([chromehidden~="toolbar"]) #urlbar-wrapper > #urlbar:-moz-locale-dir(rtl) {
1814   /* let urlbar-back-button-clip-path clip the urlbar's right side for RTL */
1815   transform: scaleX(-1);
1816 }
1817
1818 window:not([chromehidden~="toolbar"]) #urlbar-wrapper:-moz-locale-dir(rtl) {
1819   -moz-box-direction: reverse;
1820 }
1821
1822 html|*.urlbar-input:-moz-lwtheme::-moz-placeholder,
1823 .searchbar-textbox:-moz-lwtheme > .autocomplete-textbox-container > .textbox-input-box > html|*.textbox-input::-moz-placeholder {
1824   color: #E7ADE7;
1825 }
1826
1827 #urlbar-container {
1828   -moz-box-orient: horizontal;
1829   -moz-box-align: stretch;
1830 }
1831
1832 .urlbar-textbox-container {
1833   -moz-box-align: stretch;
1834 }
1835
1836 .urlbar-input-box {
1837   -moz-margin-start: 0;
1838 }
1839
1840 #urlbar-icons {
1841   -moz-box-align: center;
1842 }
1843
1844 .urlbar-icon {
1845   padding: 0 2px;
1846 }
1847
1848 .searchbar-engine-button,
1849 .search-go-container {
1850   padding: 2px;
1851 }
1852
1853 .search-go-container > .search-go-button {
1854   padding: 0;
1855 }
1856
1857 .urlbar-icon:hover {
1858 }
1859
1860 .urlbar-icon[open="true"],
1861 .urlbar-icon:hover:active {
1862 }
1863
1864 #urlbar-search-splitter {
1865   min-width: 6px;
1866   -moz-margin-start: -3px;
1867   border: none;
1868   background: transparent;
1869 }
1870
1871 #urlbar-search-splitter + #urlbar-container > #urlbar,
1872 #urlbar-search-splitter + #search-container > #searchbar > .searchbar-textbox {
1873   -moz-margin-start: 0;
1874 }
1875
1876 #urlbar-display-box {
1877 }
1878
1879 #urlbar-display {
1880   -moz-border-end: 1px solid #9C9CFF;
1881   -moz-margin-end: 3px;
1882   margin-top: 0;
1883   margin-bottom: 0;
1884   -moz-margin-start: 0;
1885   color: #8050B0;
1886 }
1887
1888 #search-container {
1889   min-width: calc(54px + 11ch);
1890 }
1891
1892 /* identity box */
1893
1894 #identity-box {
1895   border-radius: 2px;
1896   font-size: .9em;
1897 }
1898
1899 #identity-box:-moz-locale-dir(ltr) {
1900 /*  border-top-left-radius: 1.5px;
1901   border-bottom-left-radius: 1.5px;*/
1902 }
1903
1904 #identity-box:-moz-locale-dir(rtl) {
1905 /*  border-top-right-radius: 1.5px;
1906   border-bottom-right-radius: 1.5px;*/
1907 }
1908
1909 #notification-popup-box:not([hidden]) + #identity-box {
1910   -moz-padding-start: 10px !important;
1911   border-radius: 0;
1912 }
1913
1914 window:not([chromehidden~="toolbar"]) #urlbar-wrapper > #urlbar > #identity-box {
1915 /*   border-radius: 0; */
1916   -moz-padding-start: 2px;
1917   -moz-padding-end: 2px;
1918   -moz-margin-end: 1px;
1919 }
1920
1921 window:not([chromehidden~="toolbar"]) #urlbar-wrapper:not([switchingtabs]) > #urlbar > #identity-box {
1922   transition: padding-left, padding-right;
1923 }
1924
1925 window:not([chromehidden~="toolbar"]) #urlbar-wrapper > #forward-button[disabled] + #urlbar >
1926     #notification-popup-box[hidden] + #identity-box:-moz-locale-dir(ltr) {
1927   padding-left: 2px;
1928 }
1929
1930 window:not([chromehidden~="toolbar"]) #urlbar-wrapper > #forward-button[disabled] + #urlbar >
1931     #notification-popup-box[hidden] + #identity-box:-moz-locale-dir(rtl) {
1932   padding-right: 2px;
1933 }
1934
1935 window:not([chromehidden~="toolbar"]) #urlbar-wrapper:hover:not([switchingtabs]) > #forward-button[disabled] + #urlbar >
1936     #notification-popup-box[hidden] + #identity-box {
1937   /* forward button hiding is delayed when hovered */
1938   transition-delay: 100s;
1939 }
1940
1941 window:not([chromehidden~="toolbar"]) #urlbar-wrapper:not(:hover) > #forward-button[disabled] + #urlbar >
1942     #notification-popup-box[hidden] + #identity-box:-moz-locale-dir(ltr) {
1943   /* when not hovered anymore, trigger a new non-delayed transition to react to the forward button hiding */
1944   padding-left: 2.01px;
1945 }
1946
1947 window:not([chromehidden~="toolbar"]) #urlbar-wrapper:not(:hover) > #forward-button[disabled] + #urlbar >
1948     #notification-popup-box[hidden] + #identity-box:-moz-locale-dir(rtl) {
1949   /* when not hovered anymore, trigger a new non-delayed transition to react to the forward button hiding */
1950   padding-right: 2.01px;
1951 }
1952
1953 #urlbar[pageproxystate="valid"] > #identity-box.chromeUI,
1954 #urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity {
1955   -moz-margin-end: 3px;
1956 }
1957
1958 #urlbar[pageproxystate="valid"] > #identity-box.chromeUI:-moz-locale-dir(ltr),
1959 #urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity:-moz-locale-dir(ltr) {
1960   border-top-right-radius: 0;
1961   border-bottom-right-radius: 0;
1962 }
1963
1964 #urlbar[pageproxystate="valid"] > #identity-box.chromeUI:-moz-locale-dir(rtl),
1965 #urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity:-moz-locale-dir(rtl) {
1966   border-top-left-radius: 0;
1967   border-bottom-left-radius: 0;
1968 }
1969
1970 #identity-box.verifiedIdentity:not(:-moz-lwtheme) {
1971   background-color: #000000;
1972 }
1973
1974 #identity-box:-moz-focusring {
1975   outline: 1px dotted #008484;
1976   outline-offset: -1px;
1977 }
1978
1979 #identity-box.verifiedDomain:-moz-focusring,
1980 #identity-box.verifiedIdentity:-moz-focusring {
1981   outline-color: #000000;
1982 }
1983
1984 #identity-icon-labels {
1985   -moz-margin-start: 1px;
1986   -moz-margin-end: 3px;
1987 }
1988
1989 /* Location bar dropmarker */
1990
1991 .urlbar-history-dropmarker:not(:hover):not([open="true"]) {
1992   background-color: transparent;
1993 }
1994
1995 #urlbar-container[combined="true"] > #urlbar > .urlbar-history-dropmarker,
1996 #urlbar-wrapper > #urlbar > .urlbar-history-dropmarker {
1997   border: none;
1998   border-radius: 0px;
1999 }
2000
2001 .urlbar-history-dropmarker:hover {
2002 }
2003
2004 .urlbar-history-dropmarker:hover:active,
2005 .urlbar-history-dropmarker[open="true"] {
2006 }
2007
2008 /* page proxy icon */
2009
2010 /* === BEGIN identity-block.inc.css === */
2011
2012 #urlbar[pageproxystate="valid"] > #identity-box.chromeUI {
2013   /* Default theme does different color per channel, we can't as they do it build-time. */
2014   color: #9C9CFF;
2015   -moz-border-end: 1px solid #9C9CFF;
2016 }
2017
2018 #urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity {
2019   color: #008484;
2020   -moz-border-end: 1px solid #008484;
2021 }
2022
2023 #urlbar[pageproxystate="valid"] > #identity-box.chromeUI,
2024 #urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity {
2025   background-position: right;
2026   background-size: 1px;
2027   background-repeat: no-repeat;
2028 }
2029
2030 /* page proxy icon */
2031
2032 #page-proxy-favicon {
2033   width: 16px;
2034   height: 16px;
2035   list-style-image: url("chrome://browser/skin/identity-icons-generic.png");
2036   margin: 2px;
2037 }
2038
2039 .chromeUI > #page-proxy-favicon[pageproxystate="valid"] {
2040   list-style-image: url("chrome://branding/content/identity-icons-brand.png");
2041 }
2042
2043 .verifiedDomain > #page-proxy-favicon[pageproxystate="valid"] {
2044   list-style-image: url("chrome://browser/skin/identity-icons-https.png");
2045 }
2046
2047 .verifiedIdentity > #page-proxy-favicon[pageproxystate="valid"] {
2048   list-style-image: url("chrome://browser/skin/identity-icons-https-ev.png");
2049 }
2050
2051 .mixedActiveContent > #page-proxy-favicon[pageproxystate="valid"] {
2052   list-style-image: url("chrome://browser/skin/identity-icons-https-mixed-active.png");
2053 }
2054
2055 .mixedDisplayContent > #page-proxy-favicon[pageproxystate="valid"] {
2056   list-style-image: url("chrome://browser/skin/identity-icons-https-mixed-display.png");
2057 }
2058
2059 .mixedDisplayContentLoadedActiveBlocked > #page-proxy-favicon[pageproxystate="valid"] {
2060   list-style-image: url("chrome://browser/skin/identity-icons-https-mixed-display.png");
2061 }
2062
2063 #page-proxy-favicon[pageproxystate="invalid"] {
2064   opacity: 0.3;
2065 }
2066
2067 #identity-popup.chromeUI > #identity-popup-container > #identity-popup-icon {
2068   list-style-image: url("chrome://branding/content/icon64.png");
2069 }
2070
2071 #identity-popup-brandName {
2072   font-weight: bold;
2073   font-size: 1.25em;
2074   margin-top: .5em;
2075   margin-bottom: .5em;
2076 }
2077
2078 #identity-popup-content-box {
2079   max-width: 50ch;
2080 }
2081
2082 /* === END identity-block.inc.css === */
2083
2084 #page-proxy-favicon {
2085   -moz-image-region: rect(0, 16px, 16px, 0);
2086 }
2087
2088 window:not([chromehidden~="toolbar"]) #urlbar-wrapper > #urlbar > #identity-box > #page-proxy-favicon {
2089 /*  -moz-margin-end: 1px;*/
2090 }
2091
2092 #identity-box:hover > #page-proxy-favicon {
2093   -moz-image-region: rect(0, 32px, 16px, 16px);
2094 }
2095
2096 #identity-box:hover:active > #page-proxy-favicon,
2097 #identity-box[open=true] > #page-proxy-favicon {
2098   -moz-image-region: rect(0, 48px, 16px, 32px);
2099 }
2100
2101 #identity-box:hover {
2102   background-color: #FFCF00;
2103   color: #000000;
2104 }
2105
2106 #identity-box:hover:active,
2107 #identity-box[open=true] {
2108   background-color: #FF9F00;
2109   color: #000000;
2110 }
2111
2112 #urlbar[pageproxystate="valid"] > #identity-box.chromeUI:hover,
2113 #urlbar[pageproxystate="valid"] > #identity-box.chromeUI:hover:active,
2114 #urlbar[pageproxystate="valid"] > #identity-box.chromeUI[open=true] {
2115   background-color: #9C9CFF;
2116   color: #000000;
2117 }
2118
2119 #urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity:hover,
2120 #urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity:hover:active,
2121 #urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity[open=true] {
2122   background-color: #008484;
2123   color: #000000;
2124 }
2125
2126 /* autocomplete */
2127
2128 #treecolAutoCompleteImage {
2129   max-width: 36px;
2130 }
2131
2132 .ac-result-type-bookmark,
2133 .autocomplete-treebody::-moz-tree-image(bookmark, treecolAutoCompleteImage) {
2134   list-style-image: url("chrome://browser/skin/places/bookmark.png");
2135   -moz-image-region: rect(0px 16px 16px 0px);
2136   width: 16px;
2137   height: 16px;
2138 }
2139
2140 richlistitem[selected="true"][current="true"] > .ac-title-box > .ac-result-type-bookmark,
2141 .autocomplete-treebody::-moz-tree-image(selected, current, bookmark, treecolAutoCompleteImage) {
2142 /*  -moz-image-region: rect(0px 48px 16px 32px);*/
2143 }
2144
2145 .ac-result-type-keyword,
2146 .autocomplete-treebody::-moz-tree-image(keyword, treecolAutoCompleteImage) {
2147   list-style-image: url("chrome://global/skin/icons/Search-glass.png");
2148   -moz-image-region: rect(0px 32px 16px 16px);
2149   width: 16px;
2150   height: 16px;
2151 }
2152
2153 .ac-result-type-tag,
2154 .autocomplete-treebody::-moz-tree-image(tag, treecolAutoCompleteImage) {
2155   list-style-image: url("chrome://mozapps/skin/places/tagContainerIcon.png");
2156   width: 16px;
2157   height: 16px;
2158 }
2159
2160 .ac-comment {
2161   font-size: 1.06em;
2162 }
2163
2164 .ac-extra > .ac-comment {
2165   font-size: 1em;
2166 }
2167
2168 .ac-url-text,
2169 .ac-action-text {
2170   font-size: 1em;
2171   color: #9C9CFF;
2172 }
2173
2174 richlistitem[type~="action"][actiontype="switchtab"] > .ac-url-box > .ac-action-icon {
2175   list-style-image: url("chrome://browser/skin/actionicon-tab.png");
2176   -moz-image-region: rect(0, 16px, 16px, 0);
2177   padding: 0 3px;
2178 }
2179
2180 richlistitem[type~="action"][actiontype="switchtab"][selected="true"] > .ac-url-box > .ac-action-icon {
2181   -moz-image-region: rect(16px, 16px, 32px, 0);
2182 }
2183
2184 .autocomplete-treebody::-moz-tree-cell-text(treecolAutoCompleteComment) {
2185   color: #8050B0;
2186 }
2187
2188 .ac-comment[selected="true"],
2189 .ac-url-text[selected="true"],
2190 .ac-action-text[selected="true"] {
2191   color: inherit !important;
2192 }
2193
2194 .autocomplete-treebody::-moz-tree-cell-text(suggesthint, treecolAutoCompleteComment),
2195 .autocomplete-treebody::-moz-tree-cell-text(suggestfirst, treecolAutoCompleteComment)
2196 {
2197   color: #8050B0;
2198   font-size: smaller;
2199 }
2200
2201 .autocomplete-treebody::-moz-tree-cell(suggesthint) {
2202   border-top: 1px solid #9C9CFF;
2203 }
2204
2205 /* combined go/reload/stop button in location bar */
2206
2207 #urlbar > toolbarbutton {
2208   -moz-margin-start: 0;
2209   padding: 0 2px;
2210   background-origin: border-box;
2211   border: none;
2212   list-style-image: url("chrome://browser/skin/reload-stop-go.png");
2213   -moz-border-start: 1px solid #9C9CFF;
2214 }
2215
2216 #urlbar:-moz-locale-dir(ltr) > toolbarbutton {
2217   border-top-left-radius: 0px;
2218   border-bottom-left-radius: 0px;
2219 }
2220
2221 #urlbar:-moz-locale-dir(rtl) > toolbarbutton {
2222   border-top-right-radius: 0px;
2223   border-bottom-right-radius: 0px;
2224 }
2225
2226 #urlbar > toolbarbutton:not([disabled=true]):active:hover,
2227 #urlbar-reload-button:not(:hover) {
2228   -moz-border-start-style: none;
2229   -moz-padding-start: 3px;
2230 }
2231
2232 #urlbar-reload-button {
2233   -moz-image-region: rect(0px, 14px, 14px, 0px);
2234 }
2235
2236 #urlbar-reload-button[disabled=true] {
2237   -moz-image-region: rect(28px, 14px, 42px, 0px);
2238 }
2239
2240 #urlbar-reload-button:not([disabled=true]):hover {
2241   -moz-image-region: rect(14px, 14px, 28px, 0px);
2242 }
2243
2244 #urlbar-reload-button:-moz-locale-dir(rtl) > .toolbarbutton-icon {
2245   transform: scaleX(-1);
2246 }
2247
2248 #urlbar-go-button {
2249   -moz-image-region: rect(0, 42px, 14px, 28px);
2250 }
2251
2252 #urlbar-go-button:hover {
2253   -moz-image-region: rect(14px, 42px, 28px, 28px);
2254 }
2255
2256 #urlbar-go-button:-moz-locale-dir(rtl) > .toolbarbutton-icon {
2257   transform: scaleX(-1);
2258 }
2259
2260 #urlbar-stop-button {
2261   -moz-image-region: rect(0px, 28px, 14px, 14px);
2262 }
2263
2264 #urlbar-stop-button:hover {
2265   -moz-image-region: rect(14px, 28px, 28px, 14px);
2266 }
2267
2268 /* popup blocker button */
2269
2270 #page-report-button {
2271   list-style-image: url("chrome://browser/skin/urlbar-popup-blocked.png");
2272   -moz-image-region: rect(0, 16px, 16px, 0);
2273 }
2274
2275 #page-report-button:hover ,
2276 #page-report-button:hover:active,
2277 #page-report-button[open="true"] {
2278   -moz-image-region: rect(0, 32px, 16px, 16px);
2279 }
2280
2281 /* social share panel */
2282
2283 #social-share-panel > iframe {
2284 /*  background: linear-gradient(to bottom, #f0f4f7, #fafbfc);*/
2285   width: 300px;
2286   height: 150px;
2287 }
2288
2289 .social-share-toolbar {
2290   border-right: 1px solid #9C9CFF;
2291 /*  background-color: #000000; */
2292 }
2293
2294 #social-share-provider-buttons {
2295   padding: 6px;
2296 }
2297
2298 #social-share-provider-buttons > .share-provider-button {
2299   -moz-appearance: none;
2300   padding: 5px;
2301   margin: 1px;
2302   border: none;
2303   background: none;
2304   border-radius: 2px;
2305 }
2306
2307 #social-share-provider-buttons > .share-provider-button[checked="true"]:not([disabled="true"]),
2308 #social-share-provider-buttons > .share-provider-button:hover,
2309 #social-share-provider-buttons > .share-provider-button:active {
2310   padding: 4px;
2311 }
2312
2313 #social-share-provider-buttons > .share-provider-button[checked="true"]:not([disabled="true"]) {
2314 }
2315
2316 #social-share-provider-buttons > .share-provider-button > .toolbarbutton-text {
2317   display: none;
2318 }
2319 #social-share-provider-buttons > .share-provider-button > .toolbarbutton-icon {
2320   width: 16px;
2321   min-height: 16px;
2322   max-height: 16px;
2323 }
2324
2325 toolbarbutton[type="socialmark"] > .toolbarbutton-icon {
2326   width: auto;
2327   height: auto;
2328   max-width: 32px;
2329   max-height: 24px;
2330 }
2331
2332 /* fixup corners for share panel */
2333 .social-panel > .social-panel-frame {
2334   border-radius: inherit;
2335 }
2336
2337 #social-share-panel {
2338   max-height: 600px;
2339   min-height: 100px;
2340   max-width: 800px;
2341   min-width: 300px;
2342 }
2343
2344 .social-share-frame {
2345 /*  background: linear-gradient(to bottom, #f0f4f7, #fafbfc); */
2346   width: 330px;
2347   height: 150px;
2348   /* we resize our panels dynamically, make it look nice */
2349   transition: height 100ms ease-out, width 100ms ease-out;
2350 }
2351
2352 .social-share-frame:-moz-locale-dir(ltr) {
2353   border-top-left-radius: 0;
2354   border-bottom-left-radius: 0;
2355   border-top-right-radius: inherit;
2356   border-bottom-right-radius: inherit;
2357 }
2358
2359 .social-share-frame:-moz-locale-dir(rtl) {
2360   border-top-left-radius: inherit;
2361   border-bottom-left-radius: inherit;
2362   border-top-right-radius: 0;
2363   border-bottom-right-radius: 0;
2364 }
2365
2366 #social-share-panel > .social-share-toolbar:-moz-locale-dir(ltr) {
2367   border-top-left-radius: inherit;
2368   border-bottom-left-radius: inherit;
2369 }
2370
2371 #social-share-panel > .social-share-toolbar:-moz-locale-dir(rtl) {
2372   border-top-right-radius: inherit;
2373   border-bottom-right-radius: inherit;
2374 }
2375
2376 #social-share-provider-buttons:-moz-locale-dir(ltr) {
2377   border-top-left-radius: inherit;
2378   border-bottom-left-radius: inherit;
2379 }
2380
2381 #social-share-provider-buttons:-moz-locale-dir(rtl) {
2382   border-top-right-radius: inherit;
2383   border-bottom-right-radius: inherit;
2384 }
2385
2386 /* social recommending panel */
2387
2388 #social-mark-button {
2389   -moz-image-region: rect(0, 16px, 16px, 0);
2390 }
2391
2392 /* bookmarks menu-button */
2393
2394 #bookmarks-menu-button.bookmark-item {
2395   list-style-image: url("chrome://browser/skin/places/bookmark.png");
2396   -moz-image-region: rect(0px 16px 16px 0px);
2397 }
2398
2399 #bookmarks-menu-button.bookmark-item[starred] {
2400   -moz-image-region: rect(0px 32px 16px 16px);
2401 }
2402
2403 #bookmarks-menu-button.bookmark-item > .toolbarbutton-menubutton-button > .toolbarbutton-icon {
2404   -moz-margin-start: 5px;
2405 }
2406
2407 #bookmarks-menu-button[cui-areatype="toolbar"]:not(.bookmark-item):not([overflowedItem=true]) > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
2408   padding-top: 2px;
2409   padding-bottom: 2px;
2410 }
2411
2412 #BMB_bookmarksPopup[side="top"],
2413 #BMB_bookmarksPopup[side="bottom"] {
2414   margin-left: -20px;
2415   margin-right: -20px;
2416 }
2417
2418 #BMB_bookmarksPopup[side="left"],
2419 #BMB_bookmarksPopup[side="right"] {
2420   margin-top: -20px;
2421   margin-bottom: -20px;
2422 }
2423
2424 /* bookmarking panel */
2425
2426 #editBookmarkPanelStarIcon {
2427   list-style-image: url("chrome://browser/skin/places/starred48.png");
2428   width: 48px;
2429   height: 48px;
2430 }
2431
2432 #editBookmarkPanelStarIcon[unstarred] {
2433   list-style-image: url("chrome://browser/skin/places/unstarred48.png");
2434 }
2435
2436 #editBookmarkPanelTitle {
2437   font-size: 130%;
2438 }
2439
2440 #editBookmarkPanelHeader,
2441 #editBookmarkPanelContent {
2442   margin-bottom: .5em;
2443 }
2444
2445 /* Implements editBookmarkPanel resizing on folderTree un-collapse. */
2446 #editBMPanel_folderTree {
2447   min-width: 27em;
2448 }
2449
2450 .panel-promo-box {
2451   margin: 5px 0 -6px;
2452   padding: 5px 0;
2453   border-top: 1px solid #9C9CFF;
2454   border-bottom-left-radius: 5px;
2455   border-bottom-right-radius: 5px;
2456 }
2457
2458 .panel-promo-icon {
2459   list-style-image: url("chrome://browser/skin/sync-notification-24.png");
2460   -moz-margin-end: 10px;
2461   vertical-align: middle;
2462 }
2463
2464 .panel-promo-closebutton {
2465   list-style-image: url("chrome://global/skin/icons/close-button.gif");
2466   -moz-margin-end: -3px;
2467   margin-top: -3px;
2468 }
2469
2470 .panel-promo-closebutton:hover {
2471   list-style-image: url("chrome://global/skin/icons/close-button-hover.gif");
2472 }
2473
2474 .panel-promo-closebutton:hover:active {
2475   list-style-image: url("chrome://global/skin/icons/close-button-hover.gif");
2476 }
2477
2478 .panel-promo-closebutton > .toolbarbutton-text {
2479   padding: 0;
2480 }
2481
2482 /* ::::: content area ::::: */
2483
2484 #sidebar {
2485   background-color: Window;
2486 }
2487
2488 #sidebar-title {
2489   -moz-padding-start: 0px;
2490 }
2491
2492 #sidebar-header > .close-icon {
2493 /*  padding: 4px 2px;
2494   margin: 0;
2495   border: none;*/
2496   list-style-image: url("chrome://global/skin/icons/close-button.gif");
2497 }
2498
2499 #sidebar-header > .close-icon:hover,
2500 #sidebar-header > .close-icon:hover:active {
2501   list-style-image: url("chrome://global/skin/icons/close-button-hover.gif");
2502 }
2503
2504 .browserContainer > findbar {
2505 /*
2506   background-color: -moz-dialog;
2507   color: -moz-DialogText;
2508 */
2509 }
2510
2511 /* Tabstrip */
2512
2513 #TabsToolbar {
2514   min-height: 0;
2515   padding: 0;
2516   -moz-binding: url("chrome://browser/content/customizableui/toolbar.xml#toolbar");
2517 }
2518
2519 #TabsToolbar .toolbar-holder {
2520   background-color: #000000; /* correct effect of being an actual toolbar */
2521 }
2522
2523 #main-window[disablechrome] #TabsToolbar,
2524 #TabsToolbar[tabsontop="false"] {
2525   border-bottom: 1px solid #008484;
2526 }
2527
2528 /* === BEGIN tabs.inc.css === */
2529
2530 .tabbrowser-tab,
2531 .tabs-newtab-button,
2532 #TabsToolbar > #new-tab-button {
2533   margin-top: 0px;
2534 }
2535
2536 .tabbrowser-tab {
2537   padding: 1px 4px 2px;
2538 }
2539
2540 .tabbrowser-tab:first-of-type {
2541   -moz-margin-start: 2px;
2542 }
2543
2544 .tabs-newtab-button,
2545 #TabsToolbar > #new-tab-button {
2546   border-radius: 8px 8px 0px 0px;
2547   -moz-margin-start: 0;
2548 }
2549
2550 .tabs-newtab-button:not(:hover),
2551 #TabsToolbar > #new-tab-button:not(:hover) {
2552   background-color: #C09070;
2553 }
2554
2555 .tabbrowser-tab[remote] {
2556   text-decoration: underline;
2557 }
2558
2559 /* The selected tab should appear above adjacent tabs, .tabs-newtab-button and the highlight of #nav-bar */
2560 .tabbrowser-tab[selected=true] {
2561 /*  position: relative;
2562   z-index: 2;*/
2563 }
2564
2565 .tab-background-middle {
2566 }
2567
2568 .tab-content {
2569 }
2570
2571 .tab-/*throbber*/,
2572 .tab-icon-image,
2573 .tab-close-button {
2574 }
2575
2576 .tab-throbber,
2577 .tab-icon-image {
2578   height: 16px;
2579   width: 16px;
2580 }
2581
2582 .tab-icon-image {
2583   list-style-image: url("chrome://mozapps/skin/places/defaultFavicon.png");
2584 }
2585
2586 .tab-throbber[busy] {
2587   list-style-image: url("chrome://communicator/skin/brand/throbber16-anim-connect.png");
2588 }
2589
2590 .tab-throbber[progress] {
2591   list-style-image: url("chrome://communicator/skin/brand/throbber16-anim.png");
2592 }
2593
2594 .tab-throbber:not([pinned]),
2595 .tab-icon-image:not([pinned]) {
2596   -moz-margin-end: 3px;
2597 }
2598
2599 .tab-throbber[pinned],
2600 .tab-icon-image[pinned] {
2601   -moz-margin-start: 2px;
2602   -moz-margin-end: 2px;
2603 }
2604
2605 .tab-label {
2606   /* this needs to add up to the 16px of the icon image */
2607   height: 12px;
2608   margin-top: 2px !important;
2609   margin-bottom: 2px !important;
2610 }
2611
2612 .tab-close-button {
2613   margin-top: 1px;
2614   padding: 0;
2615 }
2616
2617 .tab-background,
2618 .tabs-newtab-button {
2619   /* overlap the tab curves */
2620 }
2621
2622 .tabbrowser-arrowscrollbox > .arrowscrollbox-scrollbox {
2623 }
2624
2625 /* Tab Overflow */
2626 .tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-start-indicator:not([collapsed]),
2627 .tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-end-indicator:not([collapsed]) {
2628 }
2629
2630 .tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-start-indicator:-moz-locale-dir(rtl),
2631 .tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-end-indicator:-moz-locale-dir(ltr) {
2632 }
2633
2634 .tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-start-indicator:not([collapsed]) {
2635 }
2636
2637 .tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-end-indicator:not([collapsed]) {
2638 }
2639
2640 .tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-start-indicator[collapsed],
2641 .tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-end-indicator[collapsed] {
2642 }
2643
2644 .tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-start-indicator,
2645 .tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-end-indicator {
2646 }
2647
2648 .tab-background-start[selected=true]::after,
2649 .tab-background-start[selected=true]::before,
2650 .tab-background-start,
2651 .tab-background-end,
2652 .tab-background-end[selected=true]::after,
2653 .tab-background-end[selected=true]::before {
2654 }
2655
2656 .tabbrowser-tab:not([selected=true]),
2657 .tabbrowser-tab:-moz-lwtheme {
2658 }
2659
2660 /* tabbrowser-tab focus ring */
2661 .tabbrowser-tab:focus {
2662   outline: 1px dotted;
2663 }
2664
2665 /* Selected tab */
2666
2667 .tabbrowser-tab[selected="true"] {
2668 }
2669
2670 /* End selected tab */
2671
2672 /* Tab pointer-events */
2673 /*
2674 .tabbrowser-tab {
2675   pointer-events: none;
2676 }
2677
2678 .tab-background-middle,
2679 .tabs-newtab-button,
2680 .tab-close-button {
2681   pointer-events: auto;
2682 }
2683 */
2684 /* Pinned tabs */
2685
2686 .tabbrowser-tab[pinned][titlechanged]:not([selected="true"]) {
2687   background-color: #E7ADE7;
2688 }
2689
2690 .tabbrowser-tab[pinned][titlechanged]:not([selected="true"]):hover {
2691   background-color: #3333FF;
2692   color: #000000;
2693 }
2694
2695 /* New tab button */
2696
2697 .tabs-newtab-button {
2698   width: 28px;
2699 }
2700
2701 /* === END tabs.inc.css === */
2702
2703 /* Background tabs:
2704  *
2705  * Decrease the height of the hoverable region of background tabs whenever the tabs are at the top
2706  * of the window (e.g. no menubar, tabs in titlebar, etc.) to make it easier to drag the window by
2707  * the titlebar. We don't need this in fullscreen since window dragging is not an issue there.
2708  */
2709 #main-window[tabsintitlebar][sizemode=normal] #toolbar-menubar[autohide="true"][inactive] + #TabsToolbar .tab-background-middle:not([selected=true]) {
2710 /*  clip-path: url(chrome://browser/content/browser.xul#tab-hover-clip-path);*/
2711 }
2712
2713 /* Tab DnD indicator */
2714 .tab-drop-indicator {
2715   list-style-image: url("chrome://browser/skin/tabbrowser/tabDragIndicator.png");
2716   margin-bottom: -11px;
2717 }
2718
2719 /* Tab close button */
2720 .tab-close-button {
2721   list-style-image: url("chrome://global/skin/icons/close-button.gif");
2722 }
2723
2724 .tab-close-button:hover,
2725 .tab-close-button:hover[selected="true"] {
2726   list-style-image: url("chrome://global/skin/icons/close-button-hover.gif");
2727 }
2728
2729 .tab-close-button:hover:active,
2730 .tab-close-button:hover:active[selected="true"] {
2731   list-style-image: url("chrome://global/skin/icons/close-button-hover.gif");
2732 }
2733
2734 /* Tab scrollbox arrow, tabstrip new tab and all-tabs buttons */
2735
2736 .tabbrowser-arrowscrollbox > .scrollbutton-up,
2737 .tabbrowser-arrowscrollbox > .scrollbutton-down {
2738   margin: 0;
2739   padding-top: 0;
2740   padding-bottom: 0;
2741   background-origin: border-box;
2742 }
2743
2744 #main-window[tabsintitlebar]:not([inFullscreen]) .tabbrowser-arrowscrollbox > .scrollbutton-up:-moz-system-metric(windows-classic):not(:-moz-lwtheme),
2745 #main-window[tabsintitlebar]:not([inFullscreen]) .tabbrowser-arrowscrollbox > .scrollbutton-down:-moz-system-metric(windows-classic):not(:-moz-lwtheme),
2746 .tabbrowser-arrowscrollbox > .scrollbutton-up:-moz-lwtheme-brighttext,
2747 .tabbrowser-arrowscrollbox > .scrollbutton-down:-moz-lwtheme-brighttext {
2748  }
2749
2750 .tabbrowser-arrowscrollbox > .scrollbutton-up[disabled],
2751 .tabbrowser-arrowscrollbox > .scrollbutton-down[disabled] {
2752  }
2753
2754 .tabbrowser-arrowscrollbox > .scrollbutton-up:-moz-locale-dir(rtl),
2755 .tabbrowser-arrowscrollbox > .scrollbutton-down:-moz-locale-dir(ltr) {
2756 /*  transform: scaleX(-1);*/
2757 }
2758
2759 .tabbrowser-arrowscrollbox > .scrollbutton-down {
2760   transition: 1s background-color ease-out;
2761 }
2762
2763 .tabbrowser-arrowscrollbox > .scrollbutton-down[notifybgtab] {
2764   background-color: #008484;
2765 }
2766
2767 .tabbrowser-arrowscrollbox > .scrollbutton-up:not([disabled]),
2768 .tabbrowser-arrowscrollbox > .scrollbutton-down:not([disabled]) {
2769 /*  border-width: 0 2px 0 0;
2770   border-style: solid;
2771   border-image: url("chrome://browser/skin/tabbrowser/tab-overflow-border.png") 0 2 0 2 fill;*/
2772 }
2773
2774 .tabs-newtab-button > .toolbarbutton-icon {
2775   margin-top: -1px;
2776   margin-bottom: -1px;
2777 }
2778
2779 .tabs-newtab-button,
2780 #TabsToolbar > #new-tab-button,
2781 #TabsToolbar > toolbarpaletteitem > #new-tab-button,
2782 #TabsToolbar > toolbarpaletteitem > #new-tab-button[cui-areatype="toolbar"] {
2783   list-style-image: url("chrome://browser/skin/tabbrowser/newtab.png");
2784   -moz-image-region: rect(0, 16px, 18px, 0);
2785 }
2786
2787 .tabs-newtab-button,
2788 .tabs-newtab-button:hover,
2789 #TabsToolbar > #new-tab-button,
2790 #TabsToolbar > #new-tab-button:hover {
2791   -moz-image-region: rect(0, 32px, 18px, 16px);
2792 }
2793
2794 #main-window[tabsintitlebar]:not([inFullscreen]) .tabs-newtab-button:-moz-system-metric(windows-classic):not(:-moz-lwtheme),
2795 #main-window[tabsintitlebar]:not([inFullscreen]) #TabsToolbar > #new-tab-button:-moz-system-metric(windows-classic):not(:-moz-lwtheme),
2796 #main-window[tabsintitlebar]:not([inFullscreen]) #TabsToolbar > toolbarpaletteitem > #new-tab-button:-moz-system-metric(windows-classic):not(:-moz-lwtheme),
2797 .tabs-newtab-button:-moz-lwtheme-brighttext,
2798 #TabsToolbar > #new-tab-button:-moz-lwtheme-brighttext,
2799 #TabsToolbar > toolbarpaletteitem > #new-tab-button:-moz-lwtheme-brighttext {
2800 }
2801
2802 #TabsToolbar > #new-tab-button {
2803   width: 26px;
2804 }
2805
2806 #alltabs-button {
2807   list-style-image: url("chrome://global/skin/arrow/arrow-down.gif");
2808 }
2809
2810 #alltabs-button:hover,
2811 #alltabs-button:hover:active,
2812 #alltabs-button[open="true"] {
2813   list-style-image: url("chrome://global/skin/arrow/arrow-down-hover.gif");
2814 }
2815
2816 #main-window[tabsintitlebar]:not([inFullscreen]) #alltabs-button:-moz-system-metric(windows-classic):not(:-moz-lwtheme),
2817 #alltabs-button:-moz-lwtheme-brighttext {
2818 }
2819
2820 #alltabs-button > .toolbarbutton-icon {
2821 /*  margin: 0 2px;*/
2822 }
2823
2824 #alltabs-button > .toolbarbutton-menu-dropmarker {
2825   display: none;
2826 }
2827
2828 /* All tabs menupopup */
2829 .alltabs-item > .menu-iconic-left > .menu-iconic-icon {
2830   list-style-image: url("chrome://mozapps/skin/places/defaultFavicon.png");
2831   -moz-image-region: auto;
2832 }
2833
2834 .alltabs-item[selected="true"] {
2835   font-weight: bold;
2836 }
2837
2838 .alltabs-item[busy] > .menu-iconic-left > .menu-iconic-icon {
2839   list-style-image: url("chrome://global/skin/icons/loading.gif");
2840 }
2841
2842 .alltabs-item[tabIsVisible]:not([_moz-menuactive="true"]) {
2843   background-color: #402800;
2844 }
2845
2846 toolbarbutton.chevron {
2847   list-style-image: url("chrome://global/skin/toolbar/chevron.gif") !important;
2848 }
2849
2850 toolbarbutton.chevron:hover {
2851   list-style-image: url("chrome://global/skin/toolbar/chevron-hover.gif") !important;
2852 }
2853
2854 toolbarbutton.chevron:-moz-locale-dir(rtl) > .toolbarbutton-icon,
2855 toolbarbutton.chevron:-moz-locale-dir(rtl):hover > .toolbarbutton-icon {
2856   transform: scaleX(-1);
2857 }
2858
2859 toolbarbutton.chevron > .toolbarbutton-text,
2860 toolbarbutton.chevron > .toolbarbutton-menu-dropmarker {
2861   display: none;
2862 }
2863
2864 toolbarbutton.chevron > .toolbarbutton-icon {
2865   margin: 0;
2866 }
2867
2868 #sidebar-throbber[loading="true"] {
2869   list-style-image: url("chrome://global/skin/icons/loading.gif");
2870   -moz-margin-end: 4px;
2871 }
2872
2873 /* Bookmarks toolbar */
2874 #PlacesToolbarDropIndicator {
2875   list-style-image: url("chrome://communicator/skin/bookmarks/toolbarDropMarker.png");
2876 }
2877
2878 toolbarbutton.bookmark-item[dragover="true"][open="true"] {
2879   background-color: #008484 !important;
2880   color: #FFCF00 !important;
2881 }
2882
2883 /* rules for menupopup drop indicators */
2884 .menupopup-drop-indicator-bar {
2885   position: relative;
2886   /* these two margins must together compensate the indicator's height */
2887   margin-top: -1px;
2888   margin-bottom: -1px;
2889 }
2890
2891 .menupopup-drop-indicator {
2892   list-style-image: none;
2893   height: 2px;
2894   -moz-margin-end: -4em;
2895   background-color: #008484;
2896 }
2897
2898 /* ::::: Identity Indicator Styling ::::: */
2899
2900 /* Popup Icons */
2901 #identity-popup-icon {
2902   height: 64px;
2903   width: 64px;
2904   padding: 0;
2905   list-style-image: url("chrome://browser/skin/identity.png");
2906   -moz-image-region: rect(0px, 64px, 64px, 0px);
2907 }
2908
2909 #identity-popup.verifiedDomain > #identity-popup-container > #identity-popup-icon {
2910   -moz-image-region: rect(64px, 64px, 128px, 0px);
2911 }
2912
2913 #identity-popup.verifiedIdentity > #identity-popup-container > #identity-popup-icon {
2914   -moz-image-region: rect(128px, 64px, 192px, 0px);
2915 }
2916
2917 /* Popup Body Text */
2918 .identity-popup-description {
2919   white-space: pre-wrap;
2920   -moz-padding-start: 15px;
2921   margin: 2px 0 4px;
2922 }
2923
2924 .identity-popup-label {
2925   white-space: pre-wrap;
2926   -moz-padding-start: 15px;
2927   margin: 0;
2928 }
2929
2930 #identity-popup-content-host,
2931 #identity-popup-content-box.verifiedIdentity > #identity-popup-content-owner {
2932   font-size: 1.2em;
2933 }
2934
2935 #identity-popup-content-host {
2936   margin-top: 3px;
2937   margin-bottom: 5px;
2938   font-weight: bold;
2939   max-width: 300px;
2940 }
2941
2942 #identity-popup-content-owner {
2943   margin-top: 4px;
2944   margin-bottom: 0 !important;
2945   font-weight: bold;
2946   max-width: 300px;
2947 }
2948
2949 .verifiedDomain > #identity-popup-content-owner {
2950   font-weight: normal;
2951 }
2952
2953 #identity-popup-content-verifier {
2954   margin: 4px 0 2px;
2955 }
2956
2957 #identity-popup-content-box.verifiedIdentity > #identity-popup-encryption ,
2958 #identity-popup-content-box.verifiedDomain > #identity-popup-encryption {
2959   margin-top: 10px;
2960   -moz-margin-start: -24px;
2961 }
2962
2963 #identity-popup-content-box.verifiedIdentity > #identity-popup-encryption > vbox > #identity-popup-encryption-icon ,
2964 #identity-popup-content-box.verifiedDomain > #identity-popup-encryption > vbox > #identity-popup-encryption-icon {
2965   list-style-image: url("chrome://browser/skin/Secure24.png");
2966 }
2967
2968 #identity-popup-help-icon {
2969   border: none;
2970   margin: 7px 0 0 -3px;
2971   background: none;
2972   min-width: 0;
2973   list-style-image: url("chrome://global/skin/icons/question-16.png");
2974   cursor: pointer;
2975 }
2976
2977 #identity-popup-help-icon > .button-box > .button-text {
2978   display: none;
2979 }
2980
2981 #identity-popup-help-icon > .button-box > .button-icon {
2982   height: 16px;
2983   width: 16px;
2984 }
2985
2986 #identity-popup-more-info-button {
2987   margin-top: 6px;
2988   margin-bottom: 0;
2989   -moz-margin-end: 0;
2990 }
2991
2992 #identity-popup > .panel-arrowcontainer > .panel-arrowcontent {
2993   padding: 0;
2994 }
2995
2996 #identity-popup-container {
2997   min-width: 280px;
2998   padding: 10px;
2999 }
3000
3001 #identity-popup-button-container {
3002 /*  background: linear-gradient(to bottom, rgba(0,0,0,0.04) 60%, transparent);*/
3003   padding: 10px;
3004   margin-top: 5px;
3005 }
3006
3007 .popup-notification-icon {
3008   width: 64px;
3009   height: 64px;
3010   -moz-margin-end: 10px;
3011 }
3012
3013 .popup-notification-icon[popupid="geolocation"] {
3014   list-style-image: url("chrome://browser/skin/Geolocation-64.png");
3015 }
3016
3017 .popup-notification-icon[popupid="xpinstall-disabled"],
3018 .popup-notification-icon[popupid="addon-progress"],
3019 .popup-notification-icon[popupid="addon-install-cancelled"],
3020 .popup-notification-icon[popupid="addon-install-blocked"],
3021 .popup-notification-icon[popupid="addon-install-failed"],
3022 .popup-notification-icon[popupid="addon-install-complete"] {
3023   list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric.png");
3024   width: 32px;
3025   height: 32px;
3026 }
3027
3028 .popup-notification-icon[popupid="click-to-play-plugins"] {
3029   list-style-image: url("chrome://mozapps/skin/plugins/pluginBlocked-64.png");
3030 }
3031
3032 .popup-notification-icon[popupid="plugins-not-found"] {
3033   list-style-image: url("chrome://browser/skin/pluginInstall-64.png");
3034 }
3035
3036 .popup-notification-icon[popupid="web-notifications"] {
3037   list-style-image: url("chrome://browser/skin/notification-64.png");
3038 }
3039
3040 .addon-progress-description {
3041   width: 350px;
3042   max-width: 350px;
3043 }
3044
3045 .popup-progress-label,
3046 .popup-progress-meter {
3047   -moz-margin-start: 0;
3048   -moz-margin-end: 0;
3049 }
3050
3051 .popup-progress-cancel {
3052   -moz-appearance: none;
3053   background: transparent;
3054   border: none;
3055   padding: 0;
3056   margin: 0;
3057   min-height: 0;
3058   min-width: 0;
3059   list-style-image: url("chrome://mozapps/skin/downloads/downloadButtons.png");
3060   -moz-image-region: rect(0px, 32px, 16px, 16px);
3061 }
3062
3063 .popup-progress-cancel:hover {
3064   -moz-image-region: rect(16px, 32px, 32px, 16px);
3065 }
3066
3067 .popup-progress-cancel:active {
3068   -moz-image-region: rect(32px, 32px, 48px, 16px);
3069 }
3070
3071 .popup-notification-icon[popupid="indexedDB-permissions-prompt"],
3072 .popup-notification-icon[popupid="indexedDB-quota-prompt"],
3073 .popup-notification-icon[popupid*="offline-app-requested"],
3074 .popup-notification-icon[popupid="offline-app-usage"] {
3075   list-style-image: url("chrome://global/skin/icons/alert-question.gif");
3076 }
3077
3078 .popup-notification-icon[popupid="password-save"],
3079 .popup-notification-icon[popupid="password-change"] {
3080   list-style-image: url("chrome://mozapps/skin/passwordmgr/key-64.png");
3081 }
3082
3083 .popup-notification-icon[popupid="webapps-install-progress"],
3084 .popup-notification-icon[popupid="webapps-install"] {
3085   list-style-image: url("chrome://global/skin/icons/webapps-64.png");
3086 }
3087
3088 .popup-notification-icon[popupid="bad-content"] {
3089   list-style-image: url("chrome://browser/skin/bad-content-blocked-64.png");
3090 }
3091
3092 .popup-notification-icon[popupid="bad-content"][mixedblockdisabled],
3093 .popup-notification-icon[popupid="bad-content"][trackingblockdisabled] {
3094   list-style-image: url(chrome://browser/skin/bad-content-unblocked-64.png);
3095 }
3096
3097 .popup-notification-icon[popupid="webRTC-sharingDevices"],
3098 .popup-notification-icon[popupid="webRTC-shareDevices"] {
3099   list-style-image: url("chrome://browser/skin/webRTC-shareDevice-64.png");
3100 }
3101
3102 .popup-notification-icon[popupid="webRTC-sharingMicrophone"],
3103 .popup-notification-icon[popupid="webRTC-shareMicrophone"] {
3104   list-style-image: url("chrome://browser/skin/webRTC-shareMicrophone-64.png");
3105 }
3106
3107 .popup-notification-icon[popupid="webRTC-sharingScreen"],
3108 .popup-notification-icon[popupid="webRTC-shareScreen"] {
3109   list-style-image: url(chrome://browser/skin/webRTC-shareScreen-64.png);
3110 }
3111
3112 .popup-notification-icon[popupid="pointerLock"] {
3113   list-style-image: url("chrome://browser/skin/pointerLock-64.png");
3114 }
3115
3116 /* Notification icon box */
3117 #notification-popup .panel-promo-box {
3118 /*  margin: 10px -10px -10px; */
3119 }
3120
3121 #notification-popup-box {
3122   position: relative;
3123   background-color: #000000;
3124   background-clip: padding-box;
3125   padding-left: 3px;
3126   padding-right: 8px;
3127   border-radius: 3px 0 0 3px;
3128   border-image: url("chrome://browser/skin/urlbar-arrow.png") 0 8 0 0 / 0 8px 0 0;
3129   -moz-margin-end: -8px;
3130   border-right-width: 8px;
3131 }
3132
3133 window:not([chromehidden~="toolbar"]) #urlbar-wrapper > #forward-button[disabled] + #urlbar > #notification-popup-box {
3134 /*  padding-left: 7px; */
3135 }
3136
3137 #notification-popup-box:-moz-locale-dir(rtl),
3138 .notification-anchor-icon:-moz-locale-dir(rtl) {
3139   transform: scaleX(-1);
3140 }
3141
3142 .notification-anchor-icon {
3143   width: 16px;
3144   height: 16px;
3145   margin: 0 2px;
3146 }
3147
3148 .notification-anchor-icon:-moz-focusring {
3149   outline: 1px dotted #008484;
3150 }
3151
3152 .default-notification-icon,
3153 #default-notification-icon {
3154   list-style-image: url("chrome://global/skin/icons/information-16.png");
3155 }
3156
3157 .identity-notification-icon,
3158 #identity-notification-icon {
3159   list-style-image: url("chrome://mozapps/skin/profile/profileicon.png");
3160 }
3161
3162 .geo-notification-icon,
3163 #geo-notification-icon {
3164   list-style-image: url("chrome://browser/skin/Geolocation-16.png");
3165 }
3166
3167 #addons-notification-icon {
3168   list-style-image: url("chrome://mozapps/skin/extensions/extensionGeneric-16.png");
3169 }
3170
3171 .indexedDB-notification-icon,
3172 #indexedDB-notification-icon {
3173   list-style-image: url("chrome://global/skin/icons/question-16.png");
3174 }
3175
3176 #password-notification-icon {
3177   list-style-image: url("chrome://mozapps/skin/passwordmgr/key-16.png");
3178 }
3179
3180 #webapps-notification-icon {
3181   list-style-image: url("chrome://gobal/skin/icons/webapps-16.png");
3182 }
3183
3184 #plugins-notification-icon {
3185   list-style-image: url("chrome://browser/skin/notification-pluginNormal.png");
3186 }
3187
3188 #plugins-notification-icon.plugin-hidden {
3189   list-style-image: url("chrome://browser/skin/notification-pluginAlert.png");
3190 }
3191
3192 #plugins-notification-icon.plugin-blocked {
3193   list-style-image: url("chrome://browser/skin/notification-pluginBlocked.png");
3194 }
3195
3196 #plugins-notification-icon {
3197 /*  -moz-image-region: rect(0, 16px, 16px, 0);*/
3198 }
3199
3200 #plugins-notification-icon:hover {
3201 /*  -moz-image-region: rect(0, 32px, 16px, 16px);*/
3202 }
3203
3204 #plugin-install-notification-icon {
3205   list-style-image: url("chrome://browser/skin/pluginInstall-16.png");
3206 }
3207
3208 #notification-popup-box[hidden] {
3209   /* Override display:none to make the pluginBlockedNotification animation work
3210      when showing the notification repeatedly. */
3211   display: -moz-box;
3212   visibility: collapse;
3213 }
3214
3215 #plugins-notification-icon.plugin-blocked[showing] {
3216   animation: pluginBlockedNotification 500ms ease 0s 5 alternate both;
3217 }
3218
3219 @keyframes pluginBlockedNotification {
3220   from {
3221     opacity: 0;
3222   }
3223   to {
3224     opacity: 1;
3225   }
3226 }
3227
3228 .bad-content-blocked-notification-icon,
3229 #bad-content-blocked-notification-icon {
3230   list-style-image: url("chrome://browser/skin/bad-content-blocked-16.png");
3231 }
3232
3233 .bad-content-unblocked-notification-icon,
3234 #bad-content-unblocked-notification-icon {
3235   list-style-image: url(chrome://browser/skin/bad-content-unblocked-16.png);
3236 }
3237
3238 .webRTC-shareDevices-notification-icon,
3239 #webRTC-shareDevices-notification-icon {
3240   list-style-image: url("chrome://browser/skin/webRTC-shareDevice-16.png");
3241 }
3242
3243 .webRTC-sharingDevices-notification-icon,
3244 #webRTC-sharingDevices-notification-icon {
3245   list-style-image: url("chrome://browser/skin/webRTC-sharingDevice-16.png");
3246 }
3247
3248 .webRTC-shareMicrophone-notification-icon,
3249 #webRTC-shareMicrophone-notification-icon {
3250   list-style-image: url("chrome://browser/skin/webRTC-shareMicrophone-16.png");
3251 }
3252
3253 .webRTC-sharingMicrophone-notification-icon,
3254 #webRTC-sharingMicrophone-notification-icon {
3255   list-style-image: url("chrome://browser/skin/webRTC-sharingMicrophone-16.png");
3256 }
3257
3258 .webRTC-shareScreen-notification-icon,
3259 #webRTC-shareScreen-notification-icon {
3260   list-style-image: url(chrome://browser/skin/webRTC-shareScreen-16.png);
3261 }
3262
3263 .webRTC-sharingScreen-notification-icon,
3264 #webRTC-sharingScreen-notification-icon {
3265   list-style-image: url(chrome://browser/skin/webRTC-sharingScreen-16.png);
3266 }
3267
3268 .web-notifications-notification-icon,
3269 #web-notifications-notification-icon {
3270   list-style-image: url("chrome://browser/skin/notification-16.png");
3271 }
3272
3273 #pointerLock-notification-icon {
3274   list-style-image: url("chrome://browser/skin/pointerLock-16.png");
3275 }
3276 #pointerLock-cancel {
3277   margin: 0px;
3278 }
3279
3280 /* Translation infobar */
3281
3282 /* === BEGIN infobar.inc.css === */
3283
3284 notification[value="translation"] .messageImage {
3285   list-style-image: url("chrome://browser/skin/translation-16.png");
3286   -moz-image-region: rect(0, 32px, 16px, 16px);
3287 }
3288
3289 @media (min-resolution: 1.25dppx) {
3290   notification[value="translation"] .messageImage {
3291     list-style-image: url("chrome://browser/skin/translation-16@2x.png");
3292     -moz-image-region: rect(0, 64px, 32px, 32px);
3293   }
3294 }
3295
3296 notification[value="translation"][state="translating"] .messageImage {
3297   list-style-image: url("chrome://browser/skin/translating-16.png");
3298   -moz-image-region: auto;
3299 }
3300
3301 @media (min-resolution: 1.25dppx) {
3302   notification[value="translation"][state="translating"] .messageImage {
3303     list-style-image: url("chrome://browser/skin/translating-16@2x.png");
3304   }
3305 }
3306
3307 notification[value="translation"] button,
3308 notification[value="translation"] menulist {
3309   min-width: 0;
3310 }
3311
3312 notification[value="translation"] menulist > .menulist-dropmarker {
3313 }
3314
3315 .translation-menupopup arrowscrollbox {
3316   padding-bottom: 0;
3317 }
3318
3319 .translation-attribution {
3320   cursor: pointer;
3321   -moz-box-align: end;
3322   font-size: small;
3323 }
3324
3325 .translation-attribution > label {
3326   margin-bottom: 0;
3327 }
3328
3329 .translation-attribution > image {
3330   width: 70px;
3331 }
3332
3333 .translation-welcome-panel {
3334   width: 305px;
3335 }
3336
3337 .translation-welcome-logo {
3338   height: 32px;
3339   width: 32px;
3340   list-style-image: url(chrome://browser/skin/translation-16@2x.png);
3341   -moz-image-region: rect(0, 64px, 32px, 32px);
3342 }
3343
3344 .translation-welcome-content {
3345   -moz-margin-start: 16px;
3346 }
3347
3348 .translation-welcome-headline {
3349   font-size: larger;
3350   font-weight: bold;
3351 }
3352
3353 .translation-welcome-body {
3354   padding: 1em 0;
3355   margin: 0 0;
3356 }
3357
3358 /* === END infobar.inc.css === */
3359
3360 notification[value="translation"] {
3361   min-height: 40px;
3362 }
3363
3364 .translate-notification-icon,
3365 #translate-notification-icon {
3366   list-style-image: url("chrome://browser/skin/translation-16.png");
3367   -moz-image-region: rect(0px, 16px, 16px, 0px);
3368 }
3369
3370 .translated-notification-icon,
3371 #translated-notification-icon {
3372   list-style-image: url("chrome://browser/skin/translation-16.png");
3373   -moz-image-region: rect(0px, 32px, 16px, 16px);
3374 }
3375
3376 .translation-menupopup {
3377   -moz-appearance: none;
3378 }
3379
3380 /* Bookmarks roots menu-items */
3381 #subscribeToPageMenuitem:not([disabled]),
3382 #subscribeToPageMenupopup,
3383 #BMB_subscribeToPageMenuitem:not([disabled]),
3384 #BMB_subscribeToPageMenupopup {
3385   list-style-image: url("chrome://browser/skin/feeds/feedIcon16.png");
3386 }
3387
3388 #bookmarksToolbarFolderMenu,
3389 #BMB_bookmarksToolbar,
3390 #panelMenu_bookmarksToolbar {
3391   list-style-image: url("chrome://communicator/skin/bookmarks/bookmarksToolbar.png");
3392   -moz-image-region: auto;
3393 }
3394
3395 #BMB_unsortedBookmarks,
3396 #panelMenu_unsortedBookmarks {
3397   list-style-image: url("chrome://communicator/skin/bookmarks/unsortedBookmarks.png");
3398   -moz-image-region: auto;
3399 }
3400
3401 /* ::::: Keyboard UI Panel ::::: */
3402
3403 .KUI-panel {
3404   color: #FF9F00;
3405   border-style: none;
3406   border-radius: 20px;
3407 }
3408
3409 .KUI-panel[level="top"] {
3410   /*background-color: rgba(27%,27%,27%,.65);*/
3411 }
3412
3413 /* Ctrl-Tab */
3414
3415 #ctrlTab-panel {
3416   padding: 20px 10px 10px;
3417   font-weight: bold;
3418 }
3419
3420 .ctrlTab-favicon[src] {
3421   background-color: #000000;
3422   width: 20px;
3423   height: 20px;
3424   padding: 2px;
3425 }
3426
3427 .ctrlTab-preview-inner > .tabPreview-canvas {
3428 }
3429
3430 .ctrlTab-preview:not(#ctrlTab-showAll) > * > .ctrlTab-preview-inner > .tabPreview-canvas {
3431   margin-bottom: 2px;
3432 }
3433
3434 .ctrlTab-preview-inner {
3435   padding-bottom: 10px;
3436 }
3437
3438 #ctrlTab-showAll:not(:focus) > * > .ctrlTab-preview-inner {
3439   padding: 10px;
3440   background-color: #000000;
3441   border-radius: .5em;
3442 }
3443
3444 .ctrlTab-preview:focus > * > .ctrlTab-preview-inner {
3445   color: white;
3446   background-color: #000000;
3447   text-shadow: none;
3448   padding: 8px;
3449   border: 2px solid #9C9CFF;
3450   border-radius: .5em;
3451 }
3452
3453 .ctrlTab-preview:not(#ctrlTab-showAll):focus > * > .ctrlTab-preview-inner {
3454   margin: -10px -10px 0;
3455 }
3456
3457 #ctrlTab-showAll {
3458   margin-top: .5em;
3459 }
3460
3461 /* Sync Panel */
3462
3463 .sync-panel-icon {
3464   height:32px;
3465   width: 32px;
3466   background: url("chrome://browser/content/abouthome/sync.png") top left no-repeat;
3467 }
3468
3469 .sync-panel-inner {
3470   width: 0;
3471   padding-left: 10px;
3472 }
3473
3474 .sync-panel-button-box {
3475   margin-top: 1em;
3476 }
3477
3478 #sync-error-panel-title,
3479 #sync-start-panel-title {
3480   font-size: 120%;
3481   font-weight: bold;
3482   margin-bottom: 5px;
3483 }
3484
3485 #sync-start-panel-subtitle,
3486 #sync-error-panel-subtitle {
3487   margin: 0;
3488 }
3489
3490 /* Status panel */
3491
3492 .statuspanel-label {
3493   margin: 0;
3494   padding: 2px 4px;
3495   background: #404000;
3496   border: 1px none #9C9CFF;
3497   border-top-style: solid;
3498   color: #FF9F00;
3499   text-shadow: none;
3500 }
3501
3502 .statuspanel-label:-moz-locale-dir(ltr):not([mirror]),
3503 .statuspanel-label:-moz-locale-dir(rtl)[mirror] {
3504   border-right-style: solid;
3505   border-top-right-radius: .3em;
3506   margin-right: 1em;
3507 }
3508
3509 .statuspanel-label:-moz-locale-dir(rtl):not([mirror]),
3510 .statuspanel-label:-moz-locale-dir(ltr)[mirror] {
3511   border-left-style: solid;
3512   border-top-left-radius: .3em;
3513   margin-left: 1em;
3514 }
3515
3516 /* HACK to abolish devily color on main content */
3517
3518 #content {
3519   background-color: transparent !important;
3520 }
3521
3522 /* === BEGIN highlighter.inc.css === */
3523
3524 /* Box model highlighter */
3525 svg|g.box-model-container {
3526   opacity: 0.4;
3527 }
3528
3529 svg|polygon.box-model-content {
3530   fill: #008484;
3531 }
3532
3533 svg|polygon.box-model-padding {
3534   fill: #9C9CFF;
3535 }
3536
3537 svg|polygon.box-model-border {
3538   fill: #FFCF00;
3539 }
3540
3541 svg|polygon.box-model-margin {
3542   fill: #A09090;
3543 }
3544
3545 svg|polygon.box-model-content,
3546 svg|polygon.box-model-padding,
3547 svg|polygon.box-model-border,
3548 svg|polygon.box-model-margin {
3549   stroke: none;
3550 }
3551
3552 svg|line.box-model-guide-top,
3553 svg|line.box-model-guide-right,
3554 svg|line.box-model-guide-bottom,
3555 svg|line.box-model-guide-left {
3556   stroke: #E7ADE7;
3557   stroke-dasharray: 5 3;
3558   shape-rendering: crispEdges;
3559 }
3560
3561 /* Highlighter - Node Infobar */
3562
3563 .highlighter-nodeinfobar {
3564   color: #FF9F00;
3565   border-radius: 3px;
3566   background-color: #000000;
3567   background-clip: padding-box;
3568   border: 1px solid #008484;
3569   padding: 5px;
3570   /* Avoid cases where the infobar is smaller than the arrow, when the text is
3571   short */
3572   min-width: 75px;
3573 }
3574
3575 /* Highlighter - Node Infobar - text */
3576
3577 .highlighter-nodeinfobar-text {
3578   text-align: center;
3579   /* 100% - size of the buttons and margins */
3580   max-width: calc(100% - 2 * (26px + 6px));
3581   padding-bottom: 1px;
3582 }
3583
3584 html|*.highlighter-nodeinfobar-tagname {
3585   color: #FFCF00;
3586 }
3587
3588 html|*.highlighter-nodeinfobar-id {
3589   color: #9C9CFF;
3590 }
3591
3592 html|*.highlighter-nodeinfobar-pseudo-classes {
3593   color: #FF9F00;
3594 }
3595
3596 html|*.highlighter-nodeinfobar-dimensions {
3597   color: #A09090;
3598   -moz-border-start: 1px solid #9C9CFF;
3599   -moz-margin-start: 6px;
3600   -moz-padding-start: 6px;
3601 }
3602
3603 /* Highlighter - Node Infobar - box & arrow */
3604
3605 .highlighter-nodeinfobar-arrow {
3606   width: 14px;
3607   height: 14px;
3608   -moz-margin-start: calc(50% - 7px);
3609   transform: rotate(-45deg);
3610   background-clip: padding-box;
3611   background-repeat: no-repeat;
3612 }
3613
3614 .highlighter-nodeinfobar-arrow-top {
3615   margin-bottom: -8px;
3616   margin-top: 8px;
3617   background-image: linear-gradient(to bottom left, transparent 50%, rgb(0, 132, 132) 50%);
3618 }
3619
3620 .highlighter-nodeinfobar-arrow-bottom {
3621   margin-top: -8px;
3622   margin-bottom: 8px;
3623   background-image: linear-gradient(to top right, transparent 50%, rgb(0, 132, 132) 50%);
3624 }
3625
3626 .highlighter-nodeinfobar-container[hide-arrow] > .highlighter-nodeinfobar {
3627   margin: 7px 0;
3628 }
3629
3630 /* Css transform highlighter */
3631
3632 svg|polygon.css-transform-transformed {
3633   fill: #9C9CFF;
3634   opacity: 0.8;
3635 }
3636
3637 svg|polygon.css-transform-untransformed {
3638   fill: #A09090;
3639   opacity: 0.8;
3640 }
3641
3642 svg|polygon.css-transform-transformed,
3643 svg|polygon.css-transform-untransformed,
3644 svg|line.css-transform-line {
3645   stroke: #E7ADE7;
3646   stroke-dasharray: 5 3;
3647   stroke-width: 2;
3648 }
3649
3650 /* === END highlighter.inc.css === */
3651
3652 #full-screen-warning-message {
3653   background-color: #000000;
3654   color: #FF9F00;
3655   border-radius: 8px;
3656   margin-top: 30px;
3657   padding: 30px 50px;
3658   box-shadow: 0 0 2px #9C9CFF;
3659 }
3660
3661 #full-screen-warning-container[obscure-browser] {
3662   background-color: rgba(0,0,0,0.3);
3663 }
3664
3665 .full-screen-description {
3666   font-size: 150%;
3667 }
3668
3669 #full-screen-domain-text {
3670   font-size: 300%;
3671 }
3672
3673 .full-screen-approval-button,
3674 #full-screen-remember-decision {
3675   font-size: 120%;
3676 }
3677
3678 /* === BEGIN commandline.inc.css === */
3679
3680 /* Developer toolbar */
3681
3682 #developer-toolbar {
3683   border-top: 3px solid #000000;
3684   border-bottom: none;
3685 }
3686
3687 #developer-toolbar .toolbar-holder {
3688   background-color: #8050B0;
3689   color: #FFCF00;
3690 }
3691
3692 #developer-toolbar .toolbar-holder {
3693   background-color: #8050B0;
3694   color: #FFCF00;
3695 }
3696
3697 #developer-toolbar .toolbar-startcap,
3698 #developer-toolbar .toolbar-endcap{
3699   background-color: #6000CF;
3700 }
3701
3702 #developer-toolbar {
3703 /*  padding: 0;
3704   min-height: 32px; */
3705 }
3706
3707 #developer-toolbar > toolbarbutton {
3708 /*  margin: 0;
3709   padding: 0 10px;
3710   width: 32px; */
3711 }
3712
3713 .developer-toolbar-button > image {
3714 /*  margin: auto 10px; */
3715 }
3716
3717 #developer-toolbar-toolbox-button > label {
3718   display: none;
3719 }
3720
3721 .developer-toolbar-button > .toolbarbutton-icon,
3722 #developer-toolbar-closebutton > .toolbarbutton-icon {
3723   width: 16px;
3724   height: 16px;
3725 }
3726
3727 #developer-toolbar-toolbox-button {
3728   list-style-image: url("chrome://browser/skin/devtools/toggle-tools.png");
3729   -moz-image-region: rect(0px, 16px, 16px, 0px);
3730 }
3731
3732 #developer-toolbar-toolbox-button > label {
3733   display: none;
3734 }
3735
3736 #developer-toolbar-toolbox-button:hover,
3737 #developer-toolbar-toolbox-button:hover:active,
3738 #developer-toolbar-toolbox-button[checked=true] {
3739   -moz-image-region: rect(0px, 32px, 16px, 16px);
3740 }
3741
3742 @media (min-resolution: 2dppx) {
3743   #developer-toolbar-toolbox-button {
3744     list-style-image: url("chrome://browser/skin/devtools/toggle-tools@2x.png");
3745     -moz-image-region: rect(0px, 32px, 32px, 0px);
3746   }
3747
3748   #developer-toolbar-toolbox-button:hover,
3749   #developer-toolbar-toolbox-button:hover:active,
3750   #developer-toolbar-toolbox-button[checked=true] {
3751     -moz-image-region: rect(0px, 64px, 32px, 32px);
3752   }
3753 }
3754
3755 #developer-toolbar-closebutton {
3756   list-style-image: url("chrome://browser/skin/devtools/close.png");
3757   -moz-image-region: rect(0px, 16px, 16px, 0px);
3758   min-width: 16px;
3759   width: 16px;
3760 }
3761
3762 #developer-toolbar-closebutton > .toolbarbutton-icon {
3763 }
3764
3765 #developer-toolbar-closebutton > .toolbarbutton-text {
3766   display: none;
3767 }
3768
3769 #developer-toolbar-closebutton:hover,
3770 #developer-toolbar-closebutton:hover:active {
3771   -moz-image-region: rect(0px, 32px, 16px, 16px);
3772 }
3773
3774 @media (min-resolution: 2dppx) {
3775   #developer-toolbar-closebutton {
3776     list-style-image: url("chrome://browser/skin/devtools/close@2x.png");
3777     -moz-image-region: rect(0px, 32px, 32px, 0px);
3778   }
3779
3780   #developer-toolbar-closebutton:hover,
3781   #developer-toolbar-closebutton:hover:active {
3782     -moz-image-region: rect(0px, 64px, 32px, 32px);
3783   }
3784 }
3785
3786 /* GCLI */
3787
3788 html|*#gcli-tooltip-frame,
3789 html|*#gcli-output-frame {
3790   padding: 0;
3791   border-width: 0;
3792   background-color: transparent;
3793 }
3794
3795 #gcli-output,
3796 #gcli-tooltip {
3797   border-width: 0;
3798   background-color: transparent;
3799 }
3800
3801 .gclitoolbar-input-node,
3802 .gclitoolbar-complete-node {
3803   margin: 1px 3px;
3804   -moz-box-align: center;
3805   padding-top: 0;
3806   padding-bottom: 0;
3807   padding-right: 8px;
3808   background-color: transparent;
3809 }
3810
3811 .gclitoolbar-input-node {
3812 /*  line-height: 32px;
3813   outline-style: none; */
3814   background-repeat: no-repeat;
3815   background-color: rgba(0, 0, 0, .75);
3816 }
3817
3818 .gclitoolbar-input-node[focused="true"] {
3819   background-color: #000000;
3820 }
3821
3822 .gclitoolbar-input-node::before {
3823   content: "";
3824   display: inline-block;
3825   -moz-box-ordinal-group: 0;
3826   width: 16px;
3827   height: 16px;
3828   margin: 0 2px;
3829   background-image: url("chrome://browser/skin/devtools/commandline-icon.png");
3830   background-position: 0 center;
3831   background-size: 32px 16px;
3832 }
3833
3834 .gclitoolbar-input-node[focused="true"]::before {
3835   background-position: -16px center;
3836 }
3837
3838 @media (min-resolution: 2dppx) {
3839   .gclitoolbar-input-node::before {
3840     background-image: url("chrome://browser/skin/devtools/commandline-icon@2x.png");
3841   }
3842 }
3843
3844 .gclitoolbar-input-node:not([focused="true"]) {
3845   border-color: transparent;
3846 }
3847
3848 .gclitoolbar-input-node > .textbox-input-box > html|*.textbox-input::-moz-selection {
3849   background-color: #008484;
3850   color: #000000;
3851   text-shadow: none;
3852 }
3853
3854 .gclitoolbar-complete-node {
3855   padding-left: 21px;
3856   background-color: transparent;
3857   color: transparent;
3858   z-index: 100;
3859   pointer-events: none;
3860 }
3861
3862 .gcli-in-incomplete,
3863 .gcli-in-error,
3864 .gcli-in-ontab,
3865 .gcli-in-todo,
3866 .gcli-in-closebrace,
3867 .gcli-in-param,
3868 .gcli-in-valid {
3869   margin: 0;
3870   padding: 0;
3871 }
3872
3873 .gcli-in-incomplete {
3874   border-bottom: 2px dotted #8050B0;
3875 }
3876
3877 .gcli-in-error {
3878   border-bottom: 2px dotted #FF0000;
3879 }
3880
3881 .gcli-in-ontab {
3882   color: #9C9CFF;
3883 }
3884
3885 .gcli-in-todo {
3886   color: #795900;
3887 }
3888
3889 .gcli-in-closebrace {
3890   color: #8050B0;
3891 }
3892
3893 /* === END commandline.inc.css === */
3894
3895 /* === BEGIN responsivedesign.inc.css === */
3896
3897 /* Responsive Mode */
3898
3899 .browserContainer[responsivemode] {
3900   background-color: #221500;
3901   padding: 0 20px 20px 20px;
3902 }
3903
3904 .browserStack[responsivemode] {
3905   box-shadow: 0 0 7px #9C9CFF;
3906 }
3907
3908 .devtools-responsiveui-toolbar {
3909   background: transparent;
3910   /* text color is textColor from dark theme, since no theme is applied to
3911    * the responsive toolbar.
3912    */
3913   color: #FF9F00;
3914   margin: 10px 0;
3915   padding: 0;
3916   box-shadow: none;
3917   border-bottom-width: 0;
3918 }
3919
3920 .devtools-responsiveui-menulist,
3921 .devtools-responsiveui-toolbarbutton {
3922   -moz-box-align: center;
3923   min-width: 32px;
3924 /*  min-height: 22px;*/
3925 /*  margin: 0 3px; */
3926 }
3927
3928 .devtools-responsiveui-menulist .menulist-editable-box {
3929   background-color: transparent;
3930 }
3931
3932 .devtools-responsiveui-menulist html|*.menulist-editable-input {
3933   color: inherit;
3934   text-align: center;
3935 }
3936
3937 .devtools-responsiveui-menulist html|*.menulist-editable-input::-moz-selection {
3938 /*  background: hsla(212,7%,57%,.35);*/
3939 }
3940
3941 .devtools-responsiveui-toolbarbutton > .toolbarbutton-icon {
3942   width: 16px;
3943   height: 16px;
3944 }
3945
3946 .devtools-responsiveui-toolbarbutton > .toolbarbutton-menubutton-button {
3947   -moz-box-orient: horizontal;
3948 }
3949
3950 .devtools-responsiveui-menulist:-moz-focusring,
3951 .devtools-responsiveui-toolbarbutton:-moz-focusring {
3952 /*  outline: 1px dotted hsla(210,30%,85%,0.7);
3953   outline-offset: -4px;*/
3954 }
3955
3956 .devtools-responsiveui-toolbarbutton:not([label]) > .toolbarbutton-text {
3957   display: none;
3958 }
3959
3960 .devtools-responsiveui-toolbarbutton:not([checked=true]):hover:active {
3961 /*  border-color: hsla(210,8%,5%,.6);
3962   background: linear-gradient(hsla(220,6%,10%,.3), hsla(212,7%,57%,.15) 65%, hsla(212,7%,57%,.3));
3963   box-shadow: 0 0 3px hsla(210,8%,5%,.25) inset, 0 1px 3px hsla(210,8%,5%,.25) inset, 0 1px 0 hsla(210,16%,76%,.15); */
3964 }
3965
3966 .devtools-responsiveui-menulist[open=true],
3967 .devtools-responsiveui-toolbarbutton[open=true],
3968 .devtools-responsiveui-toolbarbutton[checked=true] {
3969 /*  border-color: hsla(210,8%,5%,.6) !important;
3970   background: linear-gradient(hsla(220,6%,10%,.6), hsla(210,11%,18%,.45) 75%, hsla(210,11%,30%,.4));
3971   box-shadow: 0 1px 3px hsla(210,8%,5%,.25) inset, 0 1px 3px hsla(210,8%,5%,.25) inset, 0 1px 0 hsla(210,16%,76%,.15); */
3972 }
3973
3974 .devtools-responsiveui-toolbarbutton[checked=true] {
3975 /*  color: hsl(208,100%,60%); */
3976 }
3977
3978 .devtools-responsiveui-toolbarbutton[checked=true]:hover {
3979 /*  background-color: transparent !important;*/
3980 }
3981
3982 .devtools-responsiveui-toolbarbutton[checked=true]:hover:active {
3983 /*  background-color: hsla(210,8%,5%,.2) !important;*/
3984 }
3985
3986 .devtools-responsiveui-menulist > .menulist-label-box {
3987   text-align: center;
3988 }
3989
3990 .devtools-responsiveui-menulist > .menulist-dropmarker {
3991 /*  display: -moz-box;
3992   background-color: transparent;
3993   list-style-image: url("chrome://browser/skin/devtools/dropmarker.svg");
3994   -moz-box-align: center;
3995   border-width: 0;
3996   min-width: 16px;*/
3997 }
3998
3999 .devtools-responsiveui-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-button {
4000 /*  color: inherit;
4001   border-width: 0;
4002   -moz-border-end: 1px solid hsla(210,8%,5%,.45);
4003   box-shadow: -1px 0 0 hsla(210,16%,76%,.15) inset, 1px 0 0 hsla(210,16%,76%,.15);*/
4004 }
4005
4006 .devtools-responsiveui-toolbarbutton[type=menu-button]:-moz-locale-dir(rtl) > .toolbarbutton-menubutton-button {
4007 /*  box-shadow: 1px 0 0 hsla(210,16%,76%,.15) inset, -1px 0 0 hsla(210,16%,76%,.15);*/
4008 }
4009
4010 .devtools-responsiveui-toolbarbutton[type=menu-button] {
4011 /*  padding: 0 1px;*/
4012   -moz-box-align: stretch;
4013 }
4014
4015 .devtools-responsiveui-toolbarbutton[type=menu] > .toolbarbutton-menu-dropmarker,
4016 .devtools-responsiveui-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-dropmarker {
4017 /*  list-style-image: url("chrome://browser/skin/devtools/dropmarker.svg");
4018   -moz-box-align: center;
4019   padding: 0 3px;*/
4020 }
4021
4022 .devtools-responsiveui-toolbar:-moz-locale-dir(ltr) > *:first-child,
4023 .devtools-responsiveui-toolbar:-moz-locale-dir(rtl) > *:last-child {
4024   margin-left: 3px;
4025 }
4026
4027 .devtools-responsiveui-close {
4028   list-style-image: url("chrome://browser/skin/devtools/close.png");
4029   -moz-image-region: rect(0px,16px,16px,0px);
4030 }
4031
4032 .devtools-responsiveui-close:hover {
4033   -moz-image-region: rect(0px,32px,16px,16px);
4034 }
4035
4036 .devtools-responsiveui-rotate {
4037   list-style-image: url("chrome://browser/skin/devtools/responsiveui-rotate.png");
4038   -moz-image-region: rect(0px,16px,16px,0px);
4039 }
4040
4041 .devtools-responsiveui-rotate:hover {
4042   -moz-image-region: rect(0px,32px,16px,16px);
4043 }
4044
4045 @media (min-resolution: 2dppx) {
4046   .devtools-responsiveui-close {
4047     list-style-image: url("chrome://browser/skin/devtools/close@2x.png");
4048   }
4049
4050   .devtools-responsiveui-close:hover {
4051     -moz-image-region: rect(0px,64px,32px,32px);
4052   }
4053
4054   .devtools-responsiveui-rotate {
4055     list-style-image: url("chrome://browser/skin/devtools/responsiveui-rotate@2x.png");
4056   }
4057
4058   .devtools-responsiveui-rotate:hover {
4059     -moz-image-region: rect(0px,64px,32px,32px);
4060   }
4061 }
4062
4063 .devtools-responsiveui-touch {
4064   list-style-image: url("chrome://browser/skin/devtools/responsiveui-touch.png");
4065   -moz-image-region: rect(0px,16px,16px,0px);
4066 }
4067
4068 .devtools-responsiveui-touch:hover,
4069 .devtools-responsiveui-touch[checked],
4070 .devtools-responsiveui-touch[checked]:hover {
4071   -moz-image-region: rect(0px,32px,16px,16px);
4072 }
4073
4074 @media (min-resolution: 2dppx) {
4075   .devtools-responsiveui-touch {
4076     list-style-image: url("chrome://browser/skin/devtools/responsiveui-touch@2x.png");
4077     -moz-image-region: rect(0px,32px,32px,0px);
4078   }
4079
4080   .devtools-responsiveui-touch:hover,
4081   .devtools-responsiveui-touch[checked],
4082   .devtools-responsiveui-touch[checked]:hover {
4083     -moz-image-region: rect(0px,64px,32px,32px);
4084   }
4085 }
4086
4087 .devtools-responsiveui-screenshot {
4088   list-style-image: url("chrome://browser/skin/devtools/responsiveui-screenshot.png");
4089   -moz-image-region: rect(0px,16px,16px,0px);
4090 }
4091
4092 .devtools-responsiveui-screenshot:hover {
4093   -moz-image-region: rect(0px,32px,16px,16px);
4094 }
4095
4096 @media (min-resolution: 2dppx) {
4097   .devtools-responsiveui-screenshot {
4098     list-style-image: url("chrome://browser/skin/devtools/responsiveui-screenshot@2x.png");
4099   }
4100
4101   .devtools-responsiveui-screenshot:hover {
4102     -moz-image-region: rect(0px,64px,32px,32px);
4103   }
4104 }
4105
4106 .devtools-responsiveui-resizebarV {
4107   width: 7px;
4108   height: 24px;
4109   cursor: ew-resize;
4110   transform: translate(12px, -12px);
4111   background-size: cover;
4112   background-image: url("chrome://browser/skin/devtools/responsive-vertical-resizer.png");
4113 }
4114
4115 .devtools-responsiveui-resizebarH {
4116   width: 24px;
4117   height: 7px;
4118   cursor: ns-resize;
4119   transform: translate(-12px, 12px);
4120   background-size: cover;
4121   background-image: url("chrome://browser/skin/devtools/responsive-horizontal-resizer.png");
4122 }
4123
4124 .devtools-responsiveui-resizehandle {
4125   width: 16px;
4126   height: 16px;
4127   cursor: se-resize;
4128   transform: translate(12px, 12px);
4129   background-size: cover;
4130   background-image: url("chrome://browser/skin/devtools/responsive-se-resizer.png");
4131 }
4132
4133 /* FxOS custom mode with additional buttons and phone look'n feel */
4134
4135 /* Hide devtools manual resizer */
4136 .browserStack[responsivemode].fxos-mode .devtools-responsiveui-resizehandle,
4137 .browserStack[responsivemode].fxos-mode .devtools-responsiveui-resizebarH,
4138 .browserStack[responsivemode].fxos-mode .devtools-responsiveui-resizebarV {
4139   display: none;
4140 }
4141
4142 /* Gives responsive mode a phone look'n feel */
4143 .browserStack[responsivemode].fxos-mode {
4144   padding: 60px 15px 0;
4145
4146   border-radius: 25px / 20px;
4147   border-bottom-left-radius: 0;
4148   border-bottom-right-radius: 0;
4149   border: 1px solid #FFFFFF;
4150   border-bottom-width: 0;
4151
4152   background-color: #353535;
4153
4154   box-shadow: 0 3px 0.7px 1px #777777, 0 5px rgba(0, 0, 0, 0.4) inset;
4155
4156   background-image: linear-gradient(to right, #111 11%, #333 56%);
4157   min-width: 320px;
4158 }
4159
4160 .devtools-responsiveui-hardware-buttons {
4161   -moz-appearance: none;
4162   padding: 20px;
4163
4164   border: 1px solid #FFFFFF;
4165   border-bottom-left-radius: 25px;
4166   border-bottom-right-radius: 25px;
4167   border-top-width: 0;
4168
4169   box-shadow: 0 3px 0.7px 1px #777777, 0 -7px rgba(0, 0, 0, 0.4) inset;
4170
4171   background-image: linear-gradient(to right, #111 11%, #333 56%);
4172 }
4173
4174 .devtools-responsiveui-home-button {
4175   width: 40px;
4176   height: 30px;
4177   list-style-image: url("chrome://browser/skin/devtools/responsiveui-home.png");
4178 }
4179
4180 .devtools-responsiveui-sleep-button {
4181   -moz-appearance: none;
4182   /* compensate browserStack top padding */
4183   margin-top: -67px;
4184   margin-right: 10px;
4185
4186   min-width: 10px;
4187   width: 50px;
4188   height: 5px;
4189
4190   border: 1px solid #444;
4191   border-top-right-radius: 12px;
4192   border-top-left-radius: 12px;
4193   border-bottom-color: transparent;
4194
4195   background-image: linear-gradient(to top, #111 11%, #333 56%);
4196 }
4197
4198 .devtools-responsiveui-sleep-button:hover:active {
4199   background-image: linear-gradient(to top, #aaa 11%, #ddd 56%);
4200 }
4201
4202 .devtools-responsiveui-volume-buttons {
4203   margin-left: -29px;
4204 }
4205
4206 .devtools-responsiveui-volume-up-button,
4207 .devtools-responsiveui-volume-down-button {
4208   -moz-appearance: none;
4209   border: 1px solid red;
4210   min-width: 8px;
4211   height: 40px;
4212
4213   border: 1px solid #444;
4214   border-right-color: transparent;
4215
4216   background-image: linear-gradient(to right, #111 11%, #333 56%);
4217 }
4218
4219 .devtools-responsiveui-volume-up-button:hover:active,
4220 .devtools-responsiveui-volume-down-button:hover:active {
4221   background-image: linear-gradient(to right, #aaa 11%, #ddd 56%);
4222 }
4223
4224 .devtools-responsiveui-volume-up-button {
4225   border-top-left-radius: 12px;
4226 }
4227
4228 .devtools-responsiveui-volume-down-button {
4229   border-bottom-left-radius: 12px;
4230 }
4231
4232 @media (min-resolution: 2dppx) {
4233   .devtools-responsiveui-resizebarV {
4234     background-image: url("chrome://browser/skin/devtools/responsive-vertical-resizer@2x.png");
4235   }
4236
4237   .devtools-responsiveui-resizebarH {
4238     background-image: url("chrome://browser/skin/devtools/responsive-horizontal-resizer@2x.png");
4239   }
4240
4241   .devtools-responsiveui-resizehandle {
4242     background-image: url("chrome://browser/skin/devtools/responsive-se-resizer@2x.png");
4243   }
4244 }
4245
4246 /* === END responsivedesign.inc.css === */
4247
4248 /* === including indicator.css is done at the start of the file === */
4249
4250 /* Error counter */
4251
4252 #developer-toolbar-toolbox-button[error-count]:before {
4253   color: #000000;
4254   min-width: 16px;
4255   text-shadow: none;
4256   background-color: #FF0000;
4257   border-radius: 1px;
4258   -moz-margin-end: 5px;
4259 }
4260
4261 /* Social toolbar item */
4262
4263 #social-provider-button {
4264   -moz-image-region: rect(0, 16px, 16px, 0);
4265   list-style-image: url("chrome://browser/skin/social/services-16.png");
4266 }
4267
4268 #social-provider-button > .toolbarbutton-menu-dropmarker {
4269   display: none;
4270 }
4271
4272 .toolbarbutton-badge-container {
4273   margin: 0;
4274   padding: 0;
4275   position: relative;
4276 }
4277
4278 #nav-bar .toolbarbutton-1 > .toolbarbutton-badge-container {
4279   padding: 2px 2px;
4280 }
4281
4282 .toolbarbutton-1 > .toolbarbutton-badge-container > .toolbar-icon {
4283   position: absolute;
4284   top: 2px;
4285   right: 2px;
4286 }
4287
4288 .toolbarbutton-badge-container > .toolbarbutton-icon[label]:not([label=""]) {
4289   -moz-margin-end: 0;
4290 }
4291
4292 .toolbarbutton-badge[badge=""] {
4293   display: none;
4294 }
4295 .toolbarbutton-badge[badge]:not([badge=""])::after {
4296   /* The |content| property is set in the content stylesheet. */
4297   font-size: 9px;
4298   font-weight: bold;
4299   padding: 0 1px;
4300   color: #FF9F00;
4301   background-color: #000000;
4302   border: 1px solid #9C9CFF;
4303   border-radius: 2px;
4304   position: absolute;
4305   top: 0;
4306   right: 0;
4307 }
4308
4309 #nav-bar *|* > .toolbarbutton-badge[badge]:not([badge=""])::after {
4310   top: 1px;
4311   right: 1px;
4312 }
4313
4314 .toolbarbutton-badge[badge]:not([badge=""]):-moz-locale-dir(rtl)::after {
4315   left: 0;
4316   right: auto;
4317 }
4318
4319 #nav-bar *|* > .toolbarbutton-badge[badge]:not([badge=""]):-moz-locale-dir(rtl)::after {
4320   left: 1px;
4321   right: auto;
4322 }
4323
4324 #social-notification-icon-mentions {
4325   background-color: #000000;
4326   border-radius: 3px;
4327   -moz-margin-start: 2px;
4328 }
4329
4330 #social-notification-icon-mentions:hover {
4331   background-color: #FFCF00;
4332 }
4333
4334 #social-notification-icon-mentions[open="true"] {
4335   background-color: #FF9F00;
4336 }
4337
4338 #social-sidebar-splitter {
4339   border: 0;
4340 }
4341
4342 .popup-notification-icon[popupid="servicesInstall"] {
4343   list-style-image: url("chrome://browser/skin/social/services-64.png");
4344 }
4345 #servicesInstall-notification-icon {
4346   list-style-image: url("chrome://browser/skin/social/services-16.png");
4347 }
4348 #social-undoactivation-button {
4349   -moz-margin-start: 0; /* override default label margin to match description margin */
4350 }
4351
4352 #socialActivatedNotification .popup-notification-button-container {
4353   margin-left: 6px;
4354 }
4355
4356 .social-activation-icon {
4357   width: auto;
4358   height: auto;
4359   max-height: 64px;
4360   max-width: 64px;
4361 }
4362
4363 #social-activation-message {
4364   max-width: 250px;
4365 }
4366
4367 #social-activation-message > label {
4368   margin: 0;
4369 }
4370
4371 /* social toolbar provider menu */
4372 .social-statusarea-popup {
4373   margin-top: 0;
4374   margin-left: -12px;
4375   margin-right: -12px;
4376 }
4377
4378 .social-statusarea-user {
4379   border-bottom: 1px solid #9C9CFF;
4380   background-color: #000000;
4381   color: #FF9F00;
4382   position: relative;
4383   cursor: pointer;
4384 }
4385
4386 .social-statusarea-user-portrait {
4387   width: 32px;
4388   height: 32px;
4389   border-radius: 2px;
4390   margin: 10px;
4391 }
4392
4393 .social-statusarea-loggedInStatus {
4394   background: transparent;
4395   border: none;
4396   color: #3333FF;
4397   min-width: 0;
4398   margin: 0 6px;
4399   list-style-image: none;
4400 }
4401
4402 #social-statusarea-user[_moz-menuactive] > vbox > .social-statusarea-loggedInStatus {
4403   text-decoration: underline;
4404 }
4405
4406 .social-panel > .panel-arrowcontainer > .panel-arrowcontent {
4407   padding: 0;
4408 }
4409
4410 .social-panel-frame {
4411   border-radius: inherit;
4412 }
4413
4414 /* === BEGIN chat.inc.css === */
4415
4416 #social-sidebar-header {
4417   padding: 3px;
4418 }
4419
4420 #social-sidebar-button {
4421   -moz-appearance: none;
4422   list-style-image: url("chrome://browser/skin/social/gear_default.png");
4423   border: none;
4424   padding: 0;
4425   margin: 2px;
4426 }
4427 #social-sidebar-button > .toolbarbutton-icon {
4428   min-height: 16px;
4429   min-width: 16px;
4430 }
4431 #social-sidebar-button:hover,
4432 #social-sidebar-button:hover:active {
4433   list-style-image: url("chrome://browser/skin/social/gear_clicked.png");
4434 }
4435 #social-sidebar-button > .toolbarbutton-menu-dropmarker {
4436   display: none;
4437 }
4438
4439 #social-sidebar-button[loading="true"] {
4440   list-style-image: url("chrome://global/skin/icons/loading.gif");
4441 }
4442
4443 #social-sidebar-favico {
4444   max-height: 16px;
4445   max-width: 16px;
4446   padding: 0;
4447   margin: 2px;
4448 }
4449
4450 .chat-status-icon {
4451   max-height: 16px;
4452   max-width: 16px;
4453   padding: 0;
4454 }
4455
4456 .chat-toolbarbutton {
4457   -moz-appearance: none;
4458   border: none;
4459   padding: 0 3px;
4460   margin: 0;
4461   background: none;
4462 }
4463
4464 .chat-toolbarbutton:hover {
4465 /*  background-color: rgba(255,255,255,.35);*/
4466 }
4467
4468 .chat-toolbarbutton:hover:active {
4469 /*  background-color: rgba(255,255,255,.5);*/
4470 }
4471
4472 .chat-toolbarbutton > .toolbarbutton-text {
4473   display: none;
4474 }
4475
4476 .chat-toolbarbutton > .toolbarbutton-icon {
4477   width: 16px;
4478   height: 16px;
4479 }
4480
4481 .chat-close-button {
4482   list-style-image: url("chrome://browser/skin/social/chat-icons.svg#close");
4483 }
4484
4485 .chat-close-button:-moz-any(:hover,:hover:active) {
4486   list-style-image: url("chrome://browser/skin/social/chat-icons.svg#close-active");
4487 }
4488
4489 .chat-minimize-button {
4490   list-style-image: url("chrome://browser/skin/social/chat-icons.svg#minimize");
4491 }
4492
4493 .chat-minimize-button:-moz-any(:hover,:hover:active) {
4494   list-style-image: url("chrome://browser/skin/social/chat-icons.svg#minimize-active");
4495 }
4496
4497 .chat-swap-button {
4498   list-style-image: url("chrome://browser/skin/social/chat-icons.svg#expand");
4499   transform: rotate(180deg);
4500 }
4501
4502 .chat-swap-button:-moz-any(:hover,:hover:active) {
4503   list-style-image: url("chrome://browser/skin/social/chat-icons.svg#expand-active");
4504 }
4505
4506 chatbar > chatbox > .chat-titlebar > .chat-swap-button {
4507   transform: none;
4508 }
4509
4510 .chat-title {
4511   font-weight: bold;
4512   font: 11px "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
4513   text-shadow: none;
4514   cursor: inherit;
4515 }
4516
4517 .chat-titlebar {
4518   background-color: #9C9CFF;
4519   color: #000000;
4520   height: 30px;
4521   min-height: 30px;
4522   width: 100%;
4523   margin: 0;
4524   padding: 7px 6px;
4525   border: none;
4526   border-bottom: 1px solid #008484;
4527   cursor: pointer;
4528 }
4529
4530 .chat-titlebar > .notification-anchor-icon {
4531   margin-left: 2px;
4532   margin-right: 2px;
4533 }
4534
4535 .chat-titlebar[minimized="true"] {
4536   border-bottom: none;
4537 }
4538
4539 .chat-titlebar[selected] {
4540   background-color: #008484;
4541 }
4542
4543 .chat-titlebar[activity] {
4544   background-color: #E7ADE7;
4545 }
4546
4547 chatbox[dark=true] > .chat-titlebar,
4548 chatbox[dark=true] > .chat-titlebar[selected] {
4549 /*  border-bottom: none;
4550   background-color: #000;
4551   background-image: none;*/
4552 }
4553
4554 chatbox[dark=true] > .chat-titlebar > hbox > .chat-title {
4555 /*  font-weight: normal;
4556   color: #c1c1c1;*/
4557 }
4558
4559 .chat-frame {
4560   padding: 0;
4561   margin: 0;
4562   overflow: hidden;
4563 }
4564
4565 .chatbar-button {
4566   list-style-image: url("chrome://browser/skin/social/services-16.png");
4567   background-color: #000000;
4568   border: none;
4569   margin: 0;
4570   padding: 2px;
4571   height: 21px;
4572   width: 21px;
4573   border-top: 1px solid #008484;
4574   -moz-border-end: 1px solid #008484;
4575 }
4576
4577 @media (min-resolution: 2dppx) {
4578   .chatbar-button {
4579     list-style-image: url("chrome://browser/skin/social/services-16@2x.png");
4580   }
4581 }
4582
4583 .chatbar-button > .toolbarbutton-icon {
4584   width: 16px;
4585 }
4586
4587 .chatbar-button > menupopup > .menuitem-iconic > .menu-iconic-left > .menu-iconic-icon {
4588   width: auto;
4589   height: auto;
4590   max-height: 16px;
4591   max-width: 16px;
4592 }
4593
4594 .chatbar-button > .toolbarbutton-icon {
4595   opacity: .6;
4596   -moz-margin-end: 0;
4597 }
4598 .chatbar-button:hover > .toolbarbutton-icon,
4599 .chatbar-button[open="true"] > .toolbarbutton-icon {
4600   opacity: 1;
4601 }
4602
4603 .chatbar-button:hover,
4604 .chatbar-button[open="true"] {
4605 }
4606
4607 .chatbar-button > .toolbarbutton-text,
4608 .chatbar-button > .toolbarbutton-menu-dropmarker {
4609   display: none;
4610 }
4611
4612 .chatbar-button[activity]:not([open="true"]) {
4613   background-color: #E7ADE7;
4614 }
4615
4616 .chatbar-button > menupopup > menuitem[activity] {
4617   font-weight: bold;
4618 }
4619
4620 .chatbar-innerbox {
4621   background: transparent;
4622   margin: -285px 0 0;
4623   overflow: hidden;
4624 }
4625
4626 chatbar {
4627   -moz-margin-end: 20px;
4628 }
4629
4630 chatbar > chatbox {
4631   height: 285px;
4632   width: 260px;
4633   -moz-margin-start: 4px;
4634   background-color: #000000;
4635   border: 1px solid #9C9CFF;
4636   border-bottom: none;
4637   border-top-left-radius: 2.5px;
4638   border-top-right-radius: 2.5px;
4639 }
4640
4641 chatbox[minimized="true"] {
4642   width: 160px;
4643   height: 20px;
4644 }
4645
4646 window > chatbox {
4647   -moz-margin-start: 0px;
4648   margin: 0px;
4649   border: none;
4650   padding: 0px;
4651 }
4652
4653 /* === END chat.inc.css === */
4654
4655 .chat-titlebar {
4656 /*  background-color: #c4cfde; */
4657 }
4658
4659 .chat-titlebar[selected] {
4660 /*  background-color: #dae3f0; */
4661 }
4662
4663 .chatbar-button {
4664   -moz-appearance: none;
4665 /*  background-color: #c4cfde; */
4666 }
4667
4668 .chatbar-button > .toolbarbutton-icon {
4669 /*  -moz-margin-end: 0; */
4670 }
4671
4672 .chatbar-button:hover,
4673 .chatbar-button[open="true"] {
4674 /*  background-color: #dae3f0; */
4675 }
4676
4677 .chatbar-button[activity]:not([open="true"]) {
4678 }
4679
4680 chatbox {
4681 /*  border-top-left-radius: 2.5px;
4682   border-top-right-radius: 2.5px; */
4683 }
4684
4685 /* === BEGIN plugin-doorhanger.inc.css === */
4686
4687 /**
4688  * Plugin Doorhanger Styles
4689  */
4690
4691 #notification-popup[popupid="click-to-play-plugins"] > .panel-arrowcontainer > .panel-arrowcontent {
4692   padding: 6px 1px 2px;
4693 }
4694
4695 .click-to-play-plugins-notification-center-box {
4696 }
4697
4698 .plugin-popupnotification-centeritem:nth-child(odd) {
4699 /*  background-color: rgba(0,0,0,0.1);*/
4700 }
4701
4702 .center-item-label {
4703   margin-bottom: 0;
4704   text-overflow: ellipsis;
4705 }
4706
4707 .center-item-warning-icon {
4708   background-image: url("chrome://mozapps/skin/extensions/alerticon-info-negative.png");
4709   background-repeat: no-repeat;
4710   width: 16px;
4711   height: 15px;
4712   -moz-margin-start: 6px;
4713 }
4714
4715 .click-to-play-plugins-notification-button-container {
4716 }
4717
4718 .click-to-play-popup-button {
4719   width: 50%;
4720 }
4721
4722 .click-to-play-plugins-notification-description-box {
4723   margin-left: 5px;
4724   margin-right: 5px;
4725   margin-top: 0;
4726   padding-bottom: 3px;
4727 }
4728
4729 .click-to-play-plugins-outer-description {
4730   margin-top: 1px;
4731 }
4732
4733 .click-to-play-plugins-notification-link,
4734 .center-item-link {
4735   margin: 0;
4736 }
4737
4738 .messageImage[value="plugin-hidden"] {
4739   list-style-image: url("chrome://browser/skin/notification-pluginNormal.png");
4740 }
4741
4742 /* Keep any changes to this style in sync with pluginProblem.css */
4743 notification.pluginVulnerable {
4744 }
4745
4746 notification.pluginVulnerable .messageImage {
4747   list-style-image: url("chrome://browser/skin/notification-pluginBlocked.png");
4748 }
4749
4750 /* === END plugin-doorhanger.inc.css === */
4751
4752 /* === BEGIN badcontent-doorhanger.inc.css === */
4753
4754 .popup-notification-item-title[popupid="bad-content"] {
4755   font-weight: bold;
4756 }
4757
4758 .popup-notification-item-message[popupid="bad-content"] {
4759   width: 17em;
4760 }
4761
4762 .popup-notification-item-message-critical[popupid="bad-content"] {
4763   color: #FF0000;
4764   font-style: italic;
4765 }
4766
4767 .popup-notification-footer[popupid="bad-content"] {
4768   padding-top: 1em;
4769 }
4770
4771 /* === END badcontent-doorhanger.inc.css === */
4772
4773 /* === BEGIN customizeMode.inc.css === */
4774
4775 /* Customization mode */
4776
4777 #main-window:-moz-any([customize-entering],[customize-entered]) #browser-bottombox {
4778   margin-bottom: 1em;
4779 }
4780
4781 #main-window:-moz-any([customize-entering],[customize-entered]) #content-deck,
4782 #main-window:-moz-any([customize-entering],[customize-entered]) #browser-bottombox,
4783 #main-window:-moz-any([customize-entering],[customize-entered]) #navigator-toolbox {
4784   margin-left: 1em;
4785   margin-right: 1em;
4786 }
4787
4788 #main-window:-moz-any([customize-entering],[customize-exiting]) #tab-view-deck {
4789   pointer-events: none;
4790 }
4791
4792 #main-window[customize-entered] .customization-target:not(:-moz-any(#PanelUI-contents, #TabsToolbar, #toolbar-menubar))::before,
4793 #PanelUI-contents > .panel-customization-placeholder {
4794   -moz-outline-radius: 2.5px;
4795   outline: 1px dashed transparent;
4796 }
4797
4798 #main-window[customize-entered] .customization-target:not(:-moz-any(#PanelUI-contents, #TabsToolbar, #toolbar-menubar))::before {
4799   /* Prevent jumping of tabs when switching a window between inactive and active (bug 853415). */
4800   -moz-box-ordinal-group: 0;
4801   content: "";
4802   display: -moz-box;
4803   height: 100%;
4804   left: 0;
4805   outline-offset: -2px;
4806   pointer-events: none;
4807   position: absolute;
4808   top: 0;
4809   width: 100%;
4810 }
4811
4812 /* Shift the TabsToolbar outline up 2px since the #nav-bar is shifted up by 1px and the
4813    #TabsToolbar::after is a pixel higher to draw the bottom border of the tabstrip so this makes the
4814    offset from the bottom effectively the same as other targets (-2px). */
4815 #main-window[customize-entered] #TabsToolbar.customization-target::before {
4816 /*  top: -2px;*/
4817 }
4818
4819 /* The parents of the outline pseudo-elements need to be positioned so that the outline is positioned relative to it. */
4820 #main-window[customize-entered] .customization-target:not(:-moz-any(#PanelUI-contents, #TabsToolbar, #toolbar-menubar)):hover,
4821 #main-window[customize-entered] .customization-target[customizing-dragovertarget]:not(:-moz-any(#PanelUI-contents, #TabsToolbar, #toolbar-menubar)),
4822 #main-window[customize-entered] #nav-bar-customization-target.customization-target {
4823   position: relative;
4824 }
4825
4826 /* Most target outlines are shown on hover and drag over but the panel menu uses
4827    placeholders instead. */
4828 #main-window[customize-entered] .customization-target:not(:-moz-any(#PanelUI-contents, #TabsToolbar, #toolbar-menubar)):hover::before,
4829 #main-window[customize-entered] .customization-target[customizing-dragovertarget]:not(:-moz-any(#PanelUI-contents, #TabsToolbar, #toolbar-menubar))::before,
4830 /* nav-bar and panel outlines are always shown */
4831 #nav-bar[showoutline=true] > #nav-bar-customization-target.customization-target::before {
4832   outline-color: #A09090;
4833 }
4834
4835 #nav-bar[showoutline=true] > #nav-bar-customization-target.customization-target::before {
4836   transition: outline-color 250ms linear;
4837 }
4838
4839 #PanelUI-contents[showoutline=true] > .panel-customization-placeholder {
4840   transition: outline-color 250ms linear;
4841   outline-color: #9C9CFF;
4842 }
4843
4844 #PanelUI-contents > .panel-customization-placeholder {
4845   cursor: auto;
4846   outline-offset: -5px;
4847 }
4848
4849 #main-window[customizing] .customization-target:not(#PanelUI-contents) {
4850   min-width: 100px;
4851 /*  padding-left: 10px;
4852   padding-right: 10px;*/
4853 }
4854
4855 #main-window:-moz-any([customize-entering],[customize-entered]) #tab-view-deck {
4856   padding: 0 2em 2em;
4857 }
4858
4859 #customization-container {
4860   background-color: #000000;
4861   color: #FF9F00;
4862 }
4863
4864 #customization-palette,
4865 #customization-empty {
4866   padding: 0 15px 15px;
4867 }
4868
4869 #customization-header {
4870   font-size: 1.75em;
4871   line-height: 1.75em;
4872   color: #9C9CFF;
4873   font-weight: 200;
4874   margin: 25px 25px 12px;
4875   padding-bottom: 12px;
4876   border-bottom: 1px solid #A09090;
4877 }
4878
4879 #customization-panel-container {
4880   padding: 10px 10px 0px;
4881 }
4882
4883 #main-window:-moz-any([customize-entering],[customize-entered]) #browser-bottombox,
4884 #customization-footer {
4885   /*background-color: rgb(236,236,236);*/
4886 }
4887
4888 #customization-footer {
4889   border-top: 1px solid #9C9CFF;
4890   padding: 10px;
4891 }
4892
4893 .customizationmode-button {
4894   margin: 5px;
4895 }
4896
4897 .customizationmode-button:hover {
4898 }
4899
4900 .customizationmode-button[disabled="true"] {
4901 }
4902
4903 .customizationmode-button > .box-inherit > .box-inherit > .button-icon,
4904 .customizationmode-button > .button-box > .button-icon {
4905 /*  height: 24px;*/
4906 }
4907
4908 #customization-titlebar-visibility-button {
4909   list-style-image: url("chrome://browser/skin/customizableui/customize-titleBar-toggle.png");
4910   -moz-image-region: rect(0, 16px, 16px, 0);
4911   padding: 0px 5px;
4912 }
4913
4914 #customization-titlebar-visibility-button:hover {
4915   -moz-image-region: rect(16px, 16px, 32px, 0);
4916 }
4917
4918 #customization-titlebar-visibility-button > .button-box {
4919   padding-top: 0;
4920   padding-bottom: 1px;
4921 }
4922
4923 #customization-titlebar-visibility-button:hover:active > .button-box {
4924   padding-top: 1px;
4925   padding-bottom: 0;
4926 }
4927
4928 #customization-titlebar-visibility-button > .button-box > .button-text {
4929   /* Sadly, button.css thinks its margins are perfect for everyone. */
4930   -moz-margin-start: 5px !important;
4931 }
4932
4933 #customization-titlebar-visibility-button > .button-box > .button-icon {
4934   vertical-align: middle;
4935 }
4936
4937 #customization-titlebar-visibility-button[checked] {
4938   -moz-image-region: rect(0, 32px, 16px, 16px);
4939   background-color: #008484;
4940 }
4941
4942 #customization-titlebar-visibility-button[checked]:hover {
4943   -moz-image-region: rect(16px, 32px, 32px, 16px);
4944   background-color: #FFCF00;
4945 }
4946
4947 #customization-titlebar-visibility-button[checked]:hover:active {
4948   background-color: #FF9F00;
4949 }
4950
4951 #main-window[customize-entered] #customization-panel-container {
4952   background-image: url("chrome://browser/skin/customizableui/customizeMode-gridTexture.png");
4953   background-position: left top;
4954   background-repeat: repeat;
4955   background-size: auto;
4956   background-attachment: fixed;
4957 }
4958
4959 toolbarpaletteitem[place="toolbar"] {
4960   transition: border-width 250ms ease-in-out;
4961 }
4962
4963 toolbarpaletteitem[mousedown] {
4964   outline: 1px solid #008484;
4965   cursor: -moz-grabbing;
4966   opacity: 0.8;
4967 }
4968
4969 .panel-customization-placeholder,
4970 toolbarpaletteitem[place="palette"],
4971 toolbarpaletteitem[place="panel"] {
4972   transition: transform .3s ease-in-out;
4973 }
4974
4975 #customization-palette {
4976   transition: opacity .3s ease-in-out;
4977   opacity: 0;
4978 }
4979
4980 #customization-palette[showing="true"] {
4981   opacity: 1;
4982 }
4983
4984 toolbarpaletteitem[notransition].panel-customization-placeholder,
4985 toolbarpaletteitem[notransition][place="toolbar"],
4986 toolbarpaletteitem[notransition][place="palette"],
4987 toolbarpaletteitem[notransition][place="panel"] {
4988   transition: none;
4989 }
4990
4991 toolbarpaletteitem > toolbarbutton > .toolbarbutton-icon,
4992 toolbarpaletteitem > toolbarbutton > .toolbarbutton-badge-container > .toolbarbutton-icon,
4993 toolbarpaletteitem > toolbaritem.panel-wide-item,
4994 toolbarpaletteitem > toolbarbutton[type="menu-button"] {
4995   transition: transform .3s cubic-bezier(.6, 2, .75, 1.5) !important;
4996 }
4997
4998 toolbarpaletteitem[mousedown] > toolbarbutton > .toolbarbutton-icon,
4999 toolbarpaletteitem[mousedown] > toolbarbutton > .toolbarbutton-badge-container > .toolbarbutton-icon {
5000   transform: scale(1.3);
5001 }
5002
5003 toolbarpaletteitem[mousedown] > toolbaritem.panel-wide-item,
5004 toolbarpaletteitem[mousedown] > toolbarbutton[type="menu-button"] {
5005   transform: scale(1.1);
5006 }
5007
5008 /* Override the toolkit styling for items being dragged over. */
5009 toolbarpaletteitem[place="toolbar"] {
5010   border-left-width: 0;
5011   border-right-width: 0;
5012   margin-right: 0;
5013   margin-left: 0;
5014 }
5015
5016 #customization-palette:not([hidden]) {
5017   margin-bottom: 25px;
5018 }
5019
5020 #wrapper-edit-controls[place="palette"] > #edit-controls > toolbarbutton,
5021 #wrapper-edit-controls[place="palette"] > #edit-controls > separator,
5022 #wrapper-zoom-controls[place="palette"] > #zoom-controls > toolbarbutton,
5023 #wrapper-zoom-controls[place="palette"] > #zoom-controls > separator {
5024   margin-top: 20px;
5025 }
5026
5027 #wrapper-edit-controls[place="palette"] > #edit-controls > toolbarbutton,
5028 #wrapper-zoom-controls[place="palette"] > #zoom-controls > toolbarbutton {
5029   margin-left: 0;
5030   margin-right: 0;
5031   max-width: 24px;
5032   min-width: 24px;
5033   max-height: 24px;
5034   min-height: 24px;
5035   padding: 4px;
5036 }
5037
5038 #wrapper-edit-controls[place="palette"] > #edit-controls > toolbarbutton > .toolbarbutton-icon,
5039 #wrapper-zoom-controls[place="palette"] > #zoom-controls > toolbarbutton > .toolbarbutton-icon {
5040   width: 16px;
5041 }
5042
5043 #wrapper-edit-controls > #edit-controls > toolbarbutton > .toolbarbutton-icon {
5044   opacity: 1; /* To ensure these buttons always look enabled in customize mode */
5045 }
5046
5047 #wrapper-zoom-controls[place="palette"] > #zoom-controls > #zoom-reset-button,
5048 #wrapper-zoom-controls[place="palette"] > #zoom-controls > #zoom-reset-button + separator {
5049   display: none;
5050 }
5051
5052 #wrapper-personal-bookmarks:not([place="toolbar"]) > #personal-bookmarks {
5053   -moz-box-pack: center;
5054   min-height: 48px;
5055 }
5056
5057 #customization-palette > toolbarpaletteitem > label {
5058   text-align: center;
5059   margin-left: 0;
5060   margin-right: 0;
5061 }
5062
5063 #customization-lwtheme-menu > .panel-arrowcontainer > .panel-arrowcontent {
5064   -moz-box-orient: vertical;
5065   /* Make the panel padding uniform across all platforms due to the
5066      styling of the section headers and footer. */
5067   padding: 10px;
5068 }
5069
5070 .customization-lwtheme-menu-theme > .toolbarbutton-icon {
5071   width: 32px;
5072   height: 32px;
5073 }
5074
5075 .customization-lwtheme-menu-theme {
5076   -moz-appearance: none;
5077   margin: 0 -5px 5px;
5078   padding-top: 0;
5079   -moz-padding-end: 5px;
5080   padding-bottom: 0;
5081   -moz-padding-start: 0;
5082 }
5083
5084 .customization-lwtheme-menu-theme[defaulttheme] {
5085   list-style-image: url(chrome://browser/skin/Fxtheme-switcher-icon.png);
5086 }
5087
5088 .customization-lwtheme-menu-theme[active="true"] {
5089   background-color: #008484;
5090 }
5091
5092 .customization-lwtheme-menu-theme > .toolbarbutton-icon {
5093   margin: 5px;
5094 }
5095
5096 .customization-lwtheme-menu-theme > .toolbarbutton-text {
5097   text-align: start;
5098 }
5099
5100 #customization-lwtheme-menu-header,
5101 #customization-lwtheme-menu-recommended {
5102   padding: 10px;
5103   margin-bottom: 5px;
5104 }
5105
5106 #customization-lwtheme-menu-header,
5107 #customization-lwtheme-menu-recommended,
5108 #customization-lwtheme-menu-footer {
5109   background-color: #A09090;
5110   color: #000000;
5111   margin-right: -10px;
5112   margin-left: -10px;
5113 }
5114
5115 #customization-lwtheme-menu-header {
5116   margin-top: -10px;
5117   border-top-right-radius: 3px;
5118   border-top-left-radius: 3px;
5119 }
5120
5121 #customization-lwtheme-menu-recommended {
5122 }
5123
5124 #customization-lwtheme-menu-footer {
5125   margin-bottom: -10px;
5126   border-bottom-right-radius: 3px;
5127   border-bottom-left-radius: 3px;
5128 }
5129
5130 .customization-lwtheme-menu-footeritem {
5131   -moz-appearance: none;
5132   -moz-box-flex: 1;
5133   background-color: #C09070;
5134   color: #000000;
5135   border: 1px solid transparent;
5136   padding: 10px;
5137   margin-left: 0;
5138   margin-right: 0;
5139 }
5140
5141 .customization-lwtheme-menu-footeritem:hover {
5142   background-color: #FFCF00;
5143 }
5144
5145 .customization-lwtheme-menu-footeritem:first-child {
5146 }
5147
5148 /* === END customizeMode.inc.css === */
5149
5150 /* === BEGIN customizeTip.inc.css === */
5151
5152 #customization-tipPanel > .panel-arrowcontainer > .panel-arrowcontent {
5153   padding: 0;
5154   margin: 0;
5155   min-width: 400px;
5156   max-width: 1000px;
5157   min-height: 200px;
5158   border-radius: 3px;
5159 /*  background-image: linear-gradient(90deg, #a0dfff 0%, #ceeeff 100%);*/
5160   border: 1px solid #9C9CFF;
5161 }
5162
5163 #customization-tipPanel > .panel-arrowcontainer > .panel-arrowcontent:-moz-locale-dir(rtl) {
5164 /*  background-image: linear-gradient(90deg, #ceeeff 0%, #a0dfff 100%);*/
5165 }
5166
5167 .customization-tipPanel-infoBox {
5168   margin: 20px 25px 25px;
5169   width: 25px;
5170   background-image: url("chrome://browser/skin/customizableui/info-icon-customizeTip.png");
5171   background-repeat: no-repeat;
5172 }
5173
5174 .customization-tipPanel-content {
5175   margin: 25px 0;
5176   font-size: 12px;
5177   line-height: 18px;
5178 }
5179
5180 .customization-tipPanel-em {
5181   margin: 0;
5182   font-weight: bold;
5183 }
5184
5185 .customization-tipPanel-contentImage {
5186   margin-top: 25px;
5187   list-style-image: url("chrome://browser/skin/customizableui/customize-illustration.png");
5188   min-width: 300px;
5189   max-width: 300px;
5190   min-height: 190px;
5191   max-height: 190px;
5192   display: -moz-box;
5193 }
5194
5195 .customization-tipPanel-contentImage:-moz-locale-dir(rtl) {
5196   list-style-image: url("chrome://browser/skin/customizableui/customize-illustration-rtl.png");
5197 }
5198
5199 .customization-tipPanel-link {
5200   -moz-appearance: none;
5201   background: transparent;
5202   border: none;
5203   box-shadow: none;
5204   color: #3333FF;
5205   margin: 0;
5206   cursor: pointer;
5207 }
5208
5209 .customization-tipPanel-link > .button-box > .button-text {
5210   margin: 0 !important;
5211 }
5212
5213 .customization-tipPanel-closeBox > .close-icon {
5214   -moz-appearance: none;
5215   border: 0;
5216   -moz-margin-end: -25px;
5217 }
5218
5219 #customization-tipPanel > .panel-arrowcontainer > .panel-arrowbox > .panel-arrow[side="left"],
5220 #customization-tipPanel > .panel-arrowcontainer > .panel-arrowbox > .panel-arrow[side="right"] {
5221   list-style-image: url("chrome://browser/skin/customizableui/panelarrow-customizeTip.png");
5222 }
5223
5224 /* === END customizeTip.inc.css === */
5225
5226 /**
5227  * This next rule is a hack to disable subpixel anti-aliasing on all
5228  * labels during the customize mode transition. Subpixel anti-aliasing
5229  * on Windows with Direct2D layers acceleration is particularly slow to
5230  * paint, so this hack is how we sidestep that performance bottleneck.
5231  */
5232 #main-window:-moz-any([customize-entering],[customize-exiting]) label {
5233   transform: perspective(0.01px);
5234 }
5235
5236 #main-window[customize-entered] > #tab-view-deck {
5237   background-image: url("chrome://browser/skin/customizableui/customizeMode-gridTexture.png");
5238   background-attachment: fixed;
5239 }
5240
5241 #main-window[customization-lwtheme] > #tab-view-deck:-moz-lwtheme {
5242   background-repeat: no-repeat;
5243   background-position: right top;
5244   background-attachment: fixed;
5245   /* The image will get set from CustomizeMode.jsm */
5246   background-image: none;
5247   background-color: transparent;
5248 }
5249
5250 #main-window[customization-lwtheme]:-moz-lwtheme {
5251   background-image: url("chrome://browser/skin/customizableui/customizeMode-gridTexture.png");
5252   background-repeat: repeat;
5253   background-attachment: fixed;
5254   background-position: left top;
5255 }
5256
5257 #main-window[customize-entered] #browser-bottombox,
5258 #main-window[customize-entered] #customization-container {
5259   border-left: 1px solid #9C9CFF;
5260   border-right: 1px solid #9C9CFF;
5261   background-clip: padding-box;
5262 }
5263
5264 #main-window[customize-entered] #browser-bottombox {
5265   border-bottom: 1px solid #9C9CFF;
5266 }
5267
5268 #customization-tipPanel > .panel-arrowcontainer > .panel-arrowbox > .panel-arrow[side="left"] {
5269   margin-right: -2px;
5270 }
5271
5272 #customization-tipPanel > .panel-arrowcontainer > .panel-arrowbox > .panel-arrow[side="right"] {
5273   margin-left: -2px;
5274 }
5275
5276 /* End customization mode */
5277
5278 /* Private browsing indicators */
5279
5280 /**
5281  * Currently, we have two places where we put private browsing indicators on
5282  * Windows. When tabsintitlebar is enabled, we draw the indicator in the titlebar.
5283  * When tabsintitlebar is disabled, we draw the indicator at the end of the
5284  * tabstrip. The titlebar indicator is the fiddliest of the bunch, since we
5285  * want the bottom border of the image to line up with the bottom of the window
5286  * caption buttons. That's why there's so much special-casing going on in here.
5287  */
5288 .private-browsing-indicator {
5289   display: none;
5290   pointer-events: none;
5291 }
5292
5293 #private-browsing-indicator-titlebar {
5294   display: block;
5295   position: absolute;
5296 }
5297
5298 #main-window[privatebrowsingmode=temporary][tabsintitlebar] #private-browsing-indicator-titlebar > .private-browsing-indicator {
5299   display: block;
5300 }
5301
5302 #main-window[privatebrowsingmode=temporary]:-moz-any([inFullscreen],:not([tabsintitlebar])) #TabsToolbar > .private-browsing-indicator {
5303   display: -moz-box;
5304 }
5305
5306 #TabsToolbar > .private-browsing-indicator {
5307   background: url("chrome://browser/skin/privatebrowsing-mask-tabstrip.png") no-repeat center -3px;
5308   -moz-margin-start: 4px;
5309   width: 48px;
5310 }
5311
5312 /* Bug 1008183: We're intentionally using the titlebar asset here for fullscreen
5313  * mode, since the tabstrip "mimics" the titlebar in that case with its own
5314  * min/max/close window buttons.
5315  */
5316 #private-browsing-indicator-titlebar > .private-browsing-indicator,
5317 #main-window[inFullscreen] #TabsToolbar > .private-browsing-indicator {
5318   background: url("chrome://browser/skin/privatebrowsing-mask-titlebar.png") no-repeat center 0px;
5319   -moz-margin-end: 4px;
5320   width: 40px;
5321   height: 20px;
5322   position: relative;
5323 }
5324
5325 /* This one is for Linux */
5326 #main-window[privatebrowsingmode=temporary] #private-browsing-indicator {
5327   background: url("chrome://browser/skin/privatebrowsing-mask-tabstrip.png") center no-repeat;
5328   width: 48px;
5329 }
5330
5331 /* End private browsing indicators */
5332
5333 /* === BEGIN UITour.inc.css === */
5334
5335 /* UI Tour */
5336
5337 #UITourHighlightContainer {
5338   -moz-appearance: none;
5339   border: none;
5340   background-color: transparent;
5341   /* This is a buffer to compensate for the movement in the "wobble" effect */
5342   padding: 4px;
5343 }
5344
5345 #UITourHighlight {
5346   background-image: radial-gradient(50% 100%, rgba(0,132,132,0.4) 50%, rgba(0,132,132,0.6) 100%);
5347   border-radius: 40px;
5348   border: 1px solid #9C9CFF;
5349   /* The box-shadow opacity needs to be < 0.5 so it doesn't appear at 100% opacity
5350      on Linux without an X compositor where opacity is either 0 or 1. */
5351   box-shadow: 0 0 3px 0 rgba(0,0,0,0.49);
5352   min-height: 32px;
5353   min-width: 32px;
5354 }
5355
5356 #UITourTooltipBody {
5357   -moz-margin-end: 14px;
5358 }
5359
5360 #UITourTooltipBody > vbox {
5361   padding-top: 4px;
5362 }
5363
5364 #UITourTooltipIconContainer {
5365   -moz-margin-start: -16px;
5366 }
5367
5368 #UITourTooltipIcon {
5369   width: 48px;
5370   height: 48px;
5371   -moz-margin-start: 28px;
5372   -moz-margin-end: 28px;
5373 }
5374
5375 #UITourTooltipTitle,
5376 #UITourTooltipDescription {
5377   max-width: 20rem;
5378 }
5379
5380 #UITourTooltipTitle {
5381   font-size: 1.45rem;
5382   font-weight: bold;
5383   -moz-margin-start: 0;
5384   -moz-margin-end: 0;
5385   margin: 0 0 9px 0;
5386 }
5387
5388 #UITourTooltipDescription {
5389   -moz-margin-start: 0;
5390   -moz-margin-end: 0;
5391   font-size: 1.15rem;
5392   line-height: 1.8rem;
5393   margin-bottom: 0; /* Override global.css */
5394 }
5395
5396 #UITourTooltipClose {
5397   -moz-appearance: none;
5398   border: none;
5399   background-color: transparent;
5400   min-width: 0;
5401   -moz-margin-start: 4px;
5402   margin-top: -2px;
5403 }
5404
5405 #UITourTooltipClose > .toolbarbutton-text {
5406   display: none;
5407 }
5408
5409 #UITourTooltipButtons {
5410   -moz-box-pack: end;
5411   background-color: rgba(0,0,0,.2);
5412   border-top: 1px solid rgba(0,0,0,.4);
5413   margin: 24px -16px -16px;
5414   padding: 2em 15px;
5415 }
5416
5417 #UITourTooltipButtons > button {
5418   margin: 0 15px;
5419 }
5420
5421 #UITourTooltipButtons > button:first-child {
5422   -moz-margin-start: 0;
5423 }
5424
5425 #UITourTooltipButtons > button[image] > .button-box > .button-icon {
5426   width: 16px;
5427   height: 16px;
5428   -moz-margin-end: 5px;
5429 }
5430
5431 #UITourTooltipButtons > button .button-text {
5432   font-size: 1.15rem;
5433 }
5434
5435 #UITourTooltipButtons > button:not(.button-link) {
5436   -moz-appearance: none;
5437   background-color: #C09070;
5438   border-radius: 3000px;
5439   border: none;
5440   color: #000000;
5441   padding: 4px 30px;
5442   transition-property: background-color, color;
5443   transition-duration: 150ms;
5444 }
5445
5446 #UITourTooltipButtons > button:not(.button-link):not(:active):hover {
5447   background-color: #FFCF00;
5448   color: #000000;
5449 }
5450
5451 #UITourTooltipButtons > button.button-link {
5452   -moz-appearance: none;
5453   background: transparent;
5454   border: none;
5455   box-shadow: none;
5456   color: rgba(0,0,0,0.35);
5457   padding-left: 10px;
5458   padding-right: 10px;
5459 }
5460
5461 #UITourTooltipButtons > button.button-link:hover {
5462   color: black;
5463 }
5464
5465 /* The primary button gets the same color as the customize button. */
5466 #UITourTooltipButtons > button.button-primary {
5467   background-color: #A06060; /* LCARS default button background color */
5468   color: #000000;
5469   padding-left: 30px;
5470   padding-right: 30px;
5471 }
5472
5473 #UITourTooltipButtons > button.button-primary:not(:active):hover {
5474   background-color: #FFCF00;
5475   color: #000000;
5476 }
5477
5478 /* === END UITour.inc.css === */
5479
5480 #UITourTooltipButtons {
5481   margin: 24px -4px -4px;
5482 }
5483
5484 /* === BEGIN contextmenu.inc.css === */
5485
5486 menugroup > .menuitem-iconic[disabled="true"] > .menu-iconic-left {
5487 }
5488
5489 #context-navigation > .menuitem-iconic {
5490   -moz-box-flex: 1;
5491   -moz-box-pack: center;
5492   -moz-box-align: center;
5493 }
5494
5495 #context-navigation > .menuitem-iconic[disabled="true"] {
5496   background-color: transparent;
5497 }
5498
5499 #context-navigation > .menuitem-iconic > .menu-iconic-left {
5500   -moz-appearance: none;
5501 }
5502
5503 #context-back > .menu-iconic-left {
5504   /* list-style-image: url("chrome://browser/skin/content-contextmenu.svg#back"); */
5505   list-style-image: url("chrome://browser/skin/ToolbarFx.png");
5506   -moz-image-region: rect(0, 54px, 18px, 36px);
5507 }
5508
5509 #context-back:not([disabled="true"]):hover > .menu-iconic-left {
5510   /* list-style-image: url("chrome://browser/skin/content-contextmenu.svg#back-active"); */
5511   -moz-image-region: rect(18px, 54px, 36px, 36px);
5512 }
5513
5514 #context-back[disabled="true"] > .menu-iconic-left {
5515   /* list-style-image: url("chrome://browser/skin/content-contextmenu.svg#back-disabled"); */
5516   -moz-image-region: rect(36px, 54px, 54px, 36px);
5517 }
5518
5519 #context-forward > .menu-iconic-left {
5520   /* list-style-image: url("chrome://browser/skin/content-contextmenu.svg#forward"); */
5521   list-style-image: url("chrome://browser/skin/ToolbarFx.png");
5522   -moz-image-region: rect(0, 72px, 18px, 54px);
5523 }
5524
5525 #context-forward:not([disabled="true"]):hover > .menu-iconic-left {
5526   /* list-style-image: url("chrome://browser/skin/content-contextmenu.svg#forward-active"); */
5527   -moz-image-region: rect(18px, 72px, 36px, 54px);
5528 }
5529
5530 #context-forward[disabled="true"] > .menu-iconic-left {
5531   /* list-style-image: url("chrome://browser/skin/content-contextmenu.svg#forward-disabled"); */
5532   -moz-image-region: rect(36px, 72px, 54px, 54px);
5533 }
5534
5535 #context-reload > .menu-iconic-left {
5536   /* list-style-image: url("chrome://browser/skin/content-contextmenu.svg#reload"); */
5537   list-style-image: url("chrome://browser/skin/reload-stop-go.png");
5538   -moz-image-region: rect(0, 14px, 14px, 0);
5539 }
5540
5541 #context-reload:not([disabled="true"]):hover > .menu-iconic-left {
5542   /* list-style-image: url("chrome://browser/skin/content-contextmenu.svg#reload-active"); */
5543   -moz-image-region: rect(14px, 14px, 28px, 0);
5544 }
5545
5546 #context-reload[disabled="true"] > .menu-iconic-left {
5547   /* list-style-image: url("chrome://browser/skin/content-contextmenu.svg#reload-disabled"); */
5548   -moz-image-region: rect(28px, 14px, 42px, 0);
5549 }
5550
5551 #context-stop > .menu-iconic-left {
5552   /* list-style-image: url("chrome://browser/skin/content-contextmenu.svg#stop"); */
5553   list-style-image: url("chrome://browser/skin/reload-stop-go.png");
5554   -moz-image-region: rect(0, 28px, 14px, 14px);
5555 }
5556
5557 #context-stop:not([disabled="true"]):hover > .menu-iconic-left {
5558   /* list-style-image: url("chrome://browser/skin/content-contextmenu.svg#stop-active"); */
5559   -moz-image-region: rect(14px, 28px, 28px, 14px);
5560 }
5561
5562 #context-stop[disabled="true"] > .menu-iconic-left {
5563   /* list-style-image: url("chrome://browser/skin/content-contextmenu.svg#stop-disabled"); */
5564   -moz-image-region: rect(28px, 28px, 42px, 14px);
5565 }
5566
5567 #context-bookmarkpage > .menu-iconic-left {
5568   /* list-style-image: url("chrome://browser/skin/content-contextmenu.svg#bookmark"); */
5569   list-style-image: url("chrome://browser/skin/ToolbarFx.png");
5570   -moz-image-region: rect(0, 144px, 18px, 126px);
5571 }
5572
5573 #context-bookmarkpage:not([disabled="true"]):hover > .menu-iconic-left {
5574   /* list-style-image: url("chrome://browser/skin/content-contextmenu.svg#bookmark-active"); */
5575   -moz-image-region: rect(18px, 144px, 36px, 126px);
5576 }
5577
5578 #context-bookmarkpage[disabled="true"] > .menu-iconic-left {
5579   /* list-style-image: url("chrome://browser/skin/content-contextmenu.svg#bookmark-disabled"); */
5580   -moz-image-region: rect(36px, 144px, 54px, 126px);
5581 }
5582
5583 #context-back:-moz-locale-dir(rtl),
5584 #context-forward:-moz-locale-dir(rtl),
5585 #context-reload:-moz-locale-dir(rtl) {
5586   transform: scaleX(-1);
5587 }
5588
5589 #context-navigation > .menuitem-iconic > .menu-iconic-left > .menu-iconic-icon {
5590   width: 18px; /*16px;*/
5591   height: 18px; /*16px;*/
5592   margin: 7px;
5593 }
5594
5595 #context-navigation > #context-reload > .menu-iconic-left > .menu-iconic-icon,
5596 #context-navigation > #context-stop > .menu-iconic-left > .menu-iconic-icon {
5597   width: 14px;
5598   height: 14px;
5599   margin: 9px;
5600 }
5601
5602 /* === END contextmenu.inc.css === */
5603
5604 #context-navigation {
5605 }
5606
5607 #context-sep-navigation {
5608 /*  margin-top: -4px; */
5609 }