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