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