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