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