third part of syncing LCARStrek with Firefox 42-44 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   /*--backbutton-urlbar-overlap: 5px;*/
41
42   --identity-box-verified-background-color: #000000;
43
44   --panel-separator-color: #A09090;
45
46   /*--urlbar-separator-color: rgba(0,0,0,.2);*/
47   --urlbar-separator-color: #9C9CFF;
48 }
49
50 #menubar-items {
51   -moz-box-orient: vertical; /* for flex hack */
52 }
53
54 #main-menubar {
55   -moz-box-flex: 1; /* make menu items expand to fill toolbar height */
56 }
57
58 /* ::::: primary toolbar ::::: */
59
60 .toolbar-primary > .toolbar-box > .toolbar-holder {
61   background-color: #A09090;
62 }
63
64 .toolbar-primary > .toolbar-box > .toolbar-startcap,
65 .toolbar-primary > .toolbar-box > .toolbar-endcap {
66   background-color: #9C9CFF;
67 }
68
69 /* Hides the titlebar-placeholder underneath the window caption buttons when we
70    are not autohiding the menubar. */
71 #toolbar-menubar:not([autohide="true"]) + #TabsToolbar > .titlebar-placeholder[type="caption-buttons"] {
72   display: none;
73 }
74
75 /* We want a 4px gap between the TabsToolbar and the toolbar-menubar when the
76    toolbar-menu is displayed, and a 16px gap when it is not. 1px is taken care
77    of by the (light) outer shadow of the tab, the remaining 3/15 are these margins. */
78 #toolbar-menubar:not([moz-collapsed=true]):not([autohide=true]) ~ #TabsToolbar,
79 #toolbar-menubar:not([moz-collapsed=true])[autohide=true]:not([inactive]) ~ #TabsToolbar {
80 /*  margin-top: 3px;*/
81 }
82
83 #main-window[tabsintitlebar][sizemode="normal"]:not([inFullscreen])[chromehidden~="menubar"] #toolbar-menubar ~ #TabsToolbar,
84 #main-window[tabsintitlebar][sizemode="normal"]:not([inFullscreen]) #toolbar-menubar[autohide="true"][inactive] ~ #TabsToolbar {
85 /*  margin-top: var(--space-above-tabbar);*/
86 }
87
88 @media (-moz-mac-graphite-theme: 0) and (-moz-mac-lion-theme: 0) {
89   /* This is a hackish workaround to exclude most of Mac OS until bug 1060941 gets fixed. */
90   #toolbar-menubar:not([autohide="true"]) {
91     -moz-binding: url("chrome://global/skin/globalBindings.xml#toolbar-drag-browsercustom");
92   }
93 }
94
95 @media (-moz-mac-graphite-theme), (-moz-mac-lion-theme) {
96   /* This is a hackish workaround to cover most of Mac OS until bug 1060941 gets fixed. */
97   #main-window[tabsintitlebar]:not([inFullscreen="true"]) #TabsToolbar {
98     padding-left: 60px;
99   }
100 }
101
102 #main-window[tabsintitlebar] #toolbar-menubar .toolbar-endcap {
103   /* 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 */
104   display: none;
105 }
106
107 #main-window[customize-entered][tabsintitlebar]:not([inFullscreen]) #toolbar-menubar[customizing-dragovertarget].customization-target::before,
108 #main-window[customize-entered][tabsintitlebar]:not([inFullscreen]) #TabsToolbar[customizing-dragovertarget].customization-target::before,
109 #main-window[customize-entered][tabsintitlebar]:not([inFullscreen]) #toolbar-menubar.customization-target:hover::before,
110 #main-window[customize-entered][tabsintitlebar]:not([inFullscreen]) #TabsToolbar.customization-target:hover::before {
111   outline-color: #A09090;
112 }
113
114 #navigator-toolbox {
115 }
116
117 #navigator-toolbox::after {
118   content: "";
119   display: -moz-box;
120   -moz-box-ordinal-group: 101; /* tabs toolbar is 100 */
121   height: 1px;
122 }
123
124 #navigator-toolbox > toolbar {
125 }
126
127 #navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(:-moz-lwtheme) {
128 }
129
130 #navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(#nav-bar):not(#addon-bar) {
131   overflow: -moz-hidden-unscrollable;
132   max-height: 4em;
133   transition: min-height 170ms ease-out, max-height 170ms ease-out;
134 }
135
136 #navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar):not(#nav-bar):not(#addon-bar)[collapsed=true] {
137   min-height: 0.1px;
138   max-height: 0;
139   transition: min-height 170ms ease-out, max-height 170ms ease-out, visibility 170ms linear;
140 }
141
142 @media (-moz-mac-graphite-theme: 0) and (-moz-mac-lion-theme: 0) {
143   /* This is a hackish workaround to exclude most of Mac OS until bug 1060941 gets fixed. */
144   /* Indent also due to non-applicable aero rule in original Windows theme. */
145   #main-window[tabsintitlebar]:not([inFullscreen]) #toolbar-menubar:not(:-moz-lwtheme),
146   #main-window[tabsintitlebar]:not([inFullscreen]) #TabsToolbar:not(:-moz-lwtheme) {
147     /* like menubar */
148     background-color: #6000CF;
149     color: #FF9F00;
150   }
151
152   #main-window[tabsintitlebar]:not([inFullscreen]) #toolbar-menubar:not(:-moz-lwtheme):-moz-window-inactive,
153   #main-window[tabsintitlebar]:not([inFullscreen]) #TabsToolbar:not(:-moz-lwtheme):-moz-window-inactive {
154     background-color: #8050B0;
155     color: #FF9F00;
156   }
157
158   #main-window[tabsintitlebar] #main-menubar > menu:not(:-moz-lwtheme) {
159     /*color: inherit;*/
160   }
161
162   #main-window[tabsintitlebar] #titlebar:-moz-lwtheme {
163     visibility: hidden;
164   }
165
166   #main-window[tabsintitlebar] #titlebar-content:-moz-lwtheme {
167     -moz-binding: url("chrome://global/content/bindings/general.xml#windowdragbox");
168     visibility: visible;
169   }
170 }
171
172 @media (-moz-mac-graphite-theme), (-moz-mac-lion-theme) {
173   /* This is a hackish workaround to cover most of Mac OS until bug 1060941 gets fixed. */
174   #titlebar-buttonbox > .titlebar-button {
175     display: none;
176   }
177 }
178
179 #nav-bar {
180   /* Position the toolbar above the bottom of background tabs */
181   position: relative;
182   z-index: 1;
183 }
184
185 #personal-bookmarks {
186 /*  min-height: 24px; */
187 }
188
189 #PersonalToolbar > #home-button {
190   -moz-box-orient: horizontal;
191 }
192
193 #PersonalToolbar > #home-button > .toolbarbutton-text {
194   display: block;
195 }
196
197 #print-preview-toolbar:not(:-moz-lwtheme) {
198   /* -moz-appearance: toolbox; */
199 }
200
201 #browser-bottombox:not(:-moz-lwtheme) {
202 }
203
204 /* ::::: titlebar ::::: */
205
206 #titlebar {
207   /* like menubar */
208   background-color: #6000CF;
209   color: #FF9F00;
210 }
211 #titlebar:-moz-window-inactive {
212   background-color: #8050B0;
213   color: #FF9F00;
214 }
215
216 #main-window[sizemode="normal"] > #titlebar {
217   margin-top: -3px;
218   margin-bottom: 3px;
219 }
220
221 #main-window[sizemode="maximized"] > #titlebar {
222   margin-top: 4px;
223 }
224
225 @media (-moz-mac-graphite-theme), (-moz-mac-lion-theme) {
226   /* This is a hackish workaround to cover most of Mac OS until bug 1060941 gets fixed. */
227   #main-window[sizemode="normal"] > #titlebar,
228   #main-window[sizemode="maximized"] > #titlebar {
229     margin-top: 19px;
230     /* There is a margin-bottom set to -23 by code. */
231   }
232 }
233
234 /* The button box must appear on top of the navigator-toolbox in order for
235  * click and hover mouse events to work properly for the button in the restored
236  * window state. Otherwise, elements in the navigator-toolbox, like the menubar,
237  * can swallow those events. It will also place the buttons above the fog on
238  * themes with Aero Glass.
239  */
240 #titlebar-buttonbox,
241 #main-window[sizemode="maximized"] #titlebar-buttonbox {
242   -moz-appearance: none;
243   margin-top: 6px;
244   margin-top: 4px;
245   -moz-margin-end: 3px;
246   z-index: 1;
247 }
248
249 .titlebar-placeholder[type="appmenu-button"] {
250   margin-left: 4px;
251 }
252
253 .titlebar-placeholder[type="caption-buttons"] {
254   margin-left: 10px;
255 }
256
257 /* titlebar command buttons */
258 #titlebar-min {
259   list-style-image: url("chrome://browser/skin/caption-buttons.svg#minimize");
260 }
261
262 #titlebar-min:hover {
263   list-style-image: url("chrome://browser/skin/caption-buttons.svg#minimize-hover");
264 }
265
266 #titlebar-max {
267   list-style-image: url("chrome://browser/skin/caption-buttons.svg#maximize");
268 }
269
270 #titlebar-max:hover {
271   list-style-image: url("chrome://browser/skin/caption-buttons.svg#maximize-hover");
272 }
273
274 #main-window[sizemode="maximized"] #titlebar-max {
275   list-style-image: url("chrome://browser/skin/caption-buttons.svg#restore");
276 }
277
278 #main-window[sizemode="maximized"] #titlebar-max:hover {
279   list-style-image: url("chrome://browser/skin/caption-buttons.svg#restore-hover");
280 }
281
282 #titlebar-close {
283   list-style-image: url("chrome://browser/skin/caption-buttons.svg#close");
284 }
285
286 #titlebar-close:hover {
287   list-style-image: url("chrome://browser/skin/caption-buttons.svg#close-hover");
288 }
289
290 @media (-moz-mac-graphite-theme), (-moz-mac-lion-theme) {
291   /* This is a hackish workaround to cover most of Mac OS until bug 1060941 gets fixed. */
292   #titlebar-fullscreen-button {
293     -moz-appearance: none;
294     list-style-image: url("chrome://browser/skin/icons/mac-fullscreen-icon.png");
295     -moz-image-region: rect(0px, 16px, 16px, 0px);
296   }
297
298   #titlebar-fullscreen-button:hover {
299     -moz-image-region: rect(0px, 32px, 16px, 16px);
300   }
301
302   @media (min-resolution: 2dppx) {
303     #titlebar-fullscreen-button {
304       list-style-image: url("chrome://browser/skin/icons/mac-fullscreen-icon@2x.png");
305       -moz-image-region: rect(0px, 32px, 32px, 0px);
306     }
307
308     #titlebar-fullscreen-button:hover {
309       -moz-image-region: rect(0px, 64px, 32px, 32px);
310     }
311   }
312 }
313
314
315 /* ::::: bookmark buttons ::::: */
316
317 toolbarbutton.bookmark-item:not(.subviewbutton),
318 #personal-bookmarks[cui-areatype="toolbar"]:not([overflowedItem=true]) > #bookmarks-toolbar-placeholder {
319 /*  margin: 0;
320   padding: 2px 3px;*/
321 }
322
323 toolbarbutton.bookmark-item:not([disabled="true"]):not(.subviewbutton):hover:active,
324 toolbarbutton.bookmark-item[open="true"] {
325 /*  padding-top: 3px;
326   padding-bottom: 1px;
327   -moz-padding-start: 4px;
328   -moz-padding-end: 2px;*/
329 }
330
331 .bookmark-item > .toolbarbutton-icon,
332 #personal-bookmarks[cui-areatype="toolbar"] > #bookmarks-toolbar-placeholder > .toolbarbutton-icon {
333   width: 16px;
334   height: 16px;
335   -moz-margin-start: 1px;
336   -moz-margin-end: 2px;
337   margin-top: 1px;
338   margin-bottom: 1px;
339 }
340
341 /* Force the display of the label for bookmarks */
342 .bookmark-item > .toolbarbutton-text,
343 #personal-bookmarks[cui-areatype="toolbar"] > #bookmarks-toolbar-placeholder > .toolbarbutton-text {
344   display: -moz-box !important;
345 }
346
347 .bookmark-item > .toolbarbutton-menu-dropmarker {
348   display: none;
349 }
350
351 #bookmarks-toolbar-placeholder {
352   list-style-image: url("chrome://communicator/skin/bookmarks/bookmarksToolbar.png") !important;
353   -moz-box-orient: horizontal;
354 }
355
356 toolbarpaletteitem[place="palette"] > #personal-bookmarks > #bookmarks-toolbar-placeholder,
357 #personal-bookmarks[cui-areatype="menu-panel"] > #bookmarks-toolbar-placeholder {
358   list-style-image: url("chrome://browser/skin/places/bookmarksToolbar-menuPanel.png") !important;
359 }
360
361 /* ----- BOOKMARK STAR ANIMATION ----- */
362
363 @keyframes animation-bookmarkAdded {
364   from { transform: rotate(0deg) translateX(-16px) rotate(0deg) scale(1); opacity: 0; }
365   60%  { transform: rotate(180deg) translateX(-16px) rotate(-180deg) scale(2.2); opacity: 1; }
366   80%  { opacity: 1; }
367   to   { transform: rotate(180deg) translateX(-16px) rotate(-180deg) scale(1); opacity: 0; }
368 }
369
370 @keyframes animation-bookmarkPulse {
371   from { transform: scale(1); }
372   50%  { transform: scale(1.3); }
373   to   { transform: scale(1); }
374 }
375
376 #bookmarked-notification-container {
377   min-height: 1px;
378   min-width: 1px;
379   height: 1px;
380   margin-bottom: -1px;
381   z-index: 5;
382   position: relative;
383 }
384
385 #bookmarked-notification {
386   background-size: 16px;
387   background-position: center;
388   background-repeat: no-repeat;
389   width: 16px;
390   height: 16px;
391   opacity: 0;
392 }
393
394 #bookmarked-notification-dropmarker-anchor {
395   z-index: -1;
396   position: relative;
397 }
398
399 #bookmarked-notification-dropmarker-icon {
400   width: 18px;
401   height: 18px;
402   visibility: hidden;
403 }
404
405 #bookmarked-notification-anchor[notification="finish"] > #bookmarked-notification {
406   background-image: url("chrome://browser/skin/places/bookmarks-notification-finish.png");
407   animation: animation-bookmarkAdded 800ms;
408   animation-timing-function: ease, ease, ease;
409 }
410
411 #bookmarks-menu-button[notification="finish"] > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
412   list-style-image: none !important;
413 }
414
415 #bookmarked-notification-dropmarker-anchor[notification="finish"] > #bookmarked-notification-dropmarker-icon {
416   visibility: visible;
417   animation: animation-bookmarkPulse 300ms;
418   animation-delay: 600ms;
419   animation-timing-function: ease-out;
420 }
421
422 /* ::::: bookmark menus ::::: */
423
424 menu.bookmark-item,
425 menuitem.bookmark-item {
426   min-width: 0;
427   max-width: 32em;
428 }
429
430 .bookmark-item:not(.subviewbutton) > .menu-iconic-left {
431   margin-top: 0;
432   margin-bottom: 0;
433 }
434
435 .bookmark-item > .menu-iconic-left > .menu-iconic-icon {
436   -moz-padding-start: 0px;
437 }
438
439 /* ::::: bookmark items ::::: */
440
441 .bookmark-item  {
442   list-style-image: url("chrome://mozapps/skin/places/defaultFavicon.png");
443   -moz-image-region: auto;
444 }
445
446 .bookmark-item[container] {
447   list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-closed.gif");
448   -moz-image-region: auto;
449 }
450
451 .bookmark-item[container][open] {
452   list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-open.gif");
453   -moz-image-region: auto;
454 }
455
456 .bookmark-item[container][livemark] {
457   list-style-image: url("chrome://communicator/skin/bookmarks/livemark-folder.png");
458   -moz-image-region: auto;
459 }
460
461 .bookmark-item[container][livemark] .bookmark-item {
462   list-style-image: url("chrome://communicator/skin/bookmarks/livemark-item.png");
463   -moz-image-region: rect(0px, 16px, 16px, 0px);
464 }
465
466 .bookmark-item[container][livemark] .bookmark-item[visited] {
467   -moz-image-region: rect(0px, 32px, 16px, 16px);
468 }
469
470 .bookmark-item[container][query] {
471   list-style-image: url("chrome://communicator/skin/bookmarks/query.png");
472   -moz-image-region: auto;
473 }
474
475 .bookmark-item[query][tagContainer] {
476   list-style-image: url("chrome://mozapps/skin/places/tagContainerIcon.png");
477   -moz-image-region: auto;
478 }
479
480 .bookmark-item[query][dayContainer] {
481   list-style-image: url("chrome://communicator/skin/history/calendar.png");
482   -moz-image-region: auto;
483 }
484
485 .bookmark-item[query][hostContainer] {
486   list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-closed.gif");
487   -moz-image-region: auto;
488 }
489
490 .bookmark-item[query][hostContainer][open] {
491   list-style-image: url("chrome://communicator/skin/bookmarks/bookmark-folder-open.gif");
492   -moz-image-region: auto;
493 }
494
495 .bookmark-item[cutting] > .toolbarbutton-icon,
496 .bookmark-item[cutting] > .menu-iconic-left > .menu-iconic-icon {
497   opacity: 0.5;
498 }
499
500 .bookmark-item[cutting] > .toolbarbutton-text,
501 .bookmark-item[cutting] > .menu-iconic-left > .menu-iconic-text {
502   opacity: 0.7;
503 }
504
505 /* ::::: primary toolbar buttons ::::: */
506
507 /* === BEGIN toolbarbuttons.inc.css === */
508
509 /* Whole section of this included file: */
510 :-moz-any(#back-button, #forward-button, #home-button, #print-button, #downloads-button, #bookmarks-menu-button,
511           #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #feed-button, #tabview-button,
512           #social-share-button, #open-file-button, #find-button, #developer-button,
513           #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button,
514           #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button,
515           #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button,
516           #copy-button, #paste-button, #e10s-button, #panic-button, #web-apps-button, #webide-button, #loop-button,
517           #pocket-button),
518 #bookmarks-menu-button > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
519   list-style-image: url("chrome://browser/skin/ToolbarFx.png");
520 }
521 toolbar[brighttext] #pocket-button,
522 #pocket-button {
523   list-style-image: url("chrome://browser/skin/ToolbarFx.png") !important; /* override pocket.css */
524 }
525
526 #back-button {
527   -moz-image-region: rect(0, 36px, 18px, 18px);
528 }
529
530 #back-button:hover:not([disabled="true"]) {
531   -moz-image-region: rect(18px, 36px, 36px, 18px);
532 }
533
534 #back-button[disabled="true"] {
535   -moz-image-region: rect(36px, 36px, 54px, 18px);
536 }
537
538 #forward-button {
539   -moz-image-region: rect(0, 72px, 18px, 54px);
540 }
541
542 #forward-button:hover:not([disabled="true"]) {
543   -moz-image-region: rect(18px, 72px, 36px, 54px);
544 }
545
546 #forward-button[disabled="true"] {
547   -moz-image-region: rect(36px, 72px, 54px, 54px);
548 }
549
550 #back-button:-moz-locale-dir(rtl) > .toolbarbutton-icon,
551 #forward-button:-moz-locale-dir(rtl) {
552   transform: scaleX(-1);
553 }
554
555 #home-button[cui-areatype="toolbar"] {
556   -moz-image-region: rect(0, 126px, 18px, 108px);
557 }
558
559 #home-button[cui-areatype="toolbar"]:hover {
560   -moz-image-region: rect(18px, 126px, 36px, 108px);
561 }
562
563 #bookmarks-menu-button[cui-areatype="toolbar"] {
564   -moz-image-region: rect(0, 144px, 18px, 126px);
565 }
566
567 #bookmarks-menu-button[cui-areatype="toolbar"]:hover,
568 #bookmarks-menu-button[cui-areatype="toolbar"][open="true"] {
569   -moz-image-region: rect(18px, 144px, 36px, 126px);
570 }
571
572 /* When "new tab" page shows up, the menubutton-button (star button) is disabled */
573 #bookmarks-menu-button[cui-areatype="toolbar"] > .toolbarbutton-menubutton-button[disabled="true"] {
574   -moz-image-region: rect(36px, 144px, 54px, 126px) !important;
575   background-color: transparent !important;
576 }
577
578 #bookmarks-menu-button[cui-areatype="toolbar"][starred] {
579   -moz-image-region: rect(0, 162px, 18px, 144px);
580 }
581
582 #bookmarks-menu-button[cui-areatype="toolbar"][starred]:hover,
583 #bookmarks-menu-button[cui-areatype="toolbar"][starred][open="true"],
584 #bookmarks-menu-button[cui-areatype="toolbar"][starred] > .toolbarbutton-menubutton-button[open="true"] {
585   /* When starred and clicked (for edit/delete dialog),
586    * then only the menubutton-button itself is open, but not the whole menubutton. */
587   -moz-image-region: rect(18px, 162px, 36px, 144px);
588 }
589
590 #bookmarks-menu-button[cui-areatype="toolbar"] > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
591   -moz-image-region: rect(0, 630px, 18px, 612px);
592 }
593
594 #bookmarks-menu-button[cui-areatype="toolbar"] > .toolbarbutton-menubutton-dropmarker {
595   padding: 1px;
596   -moz-box-align: center;
597 }
598
599 #bookmarks-menu-button[cui-areatype="toolbar"]:hover > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon,
600 #bookmarks-menu-button[cui-areatype="toolbar"][open="true"] > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
601   -moz-image-region: rect(18px, 630px, 36px, 612px);
602 }
603
604 #bookmarks-menu-button[cui-areatype="toolbar"]:hover:active > .toolbarbutton-menubutton-dropmarker,
605 #bookmarks-menu-button[cui-areatype="toolbar"][open="true"] > .toolbarbutton-menubutton-dropmarker {
606   padding-top: 2px;
607   padding-bottom: 0px;
608   -moz-padding-start: 2px;
609   -moz-padding-end: 0px;
610 }
611
612 #history-panelmenu[cui-areatype="toolbar"] {
613   -moz-image-region: rect(0, 180px, 18px, 162px);
614 }
615
616 #history-panelmenu[cui-areatype="toolbar"]:hover,
617 #history-panelmenu[cui-areatype="toolbar"][open="true"] {
618   -moz-image-region: rect(18px, 180px, 36px, 162px);
619 }
620
621 #downloads-button[cui-areatype="toolbar"] {
622   -moz-image-region: rect(0, 198px, 18px, 180px);
623 }
624
625 #downloads-button[cui-areatype="toolbar"]:hover,
626 #downloads-button[cui-areatype="toolbar"][open="true"] {
627   -moz-image-region: rect(18px, 198px, 36px, 180px);
628 }
629
630 #add-ons-button[cui-areatype="toolbar"] {
631   -moz-image-region: rect(0, 216px, 18px, 198px);
632 }
633
634 #add-ons-button[cui-areatype="toolbar"]:hover {
635   -moz-image-region: rect(18px, 216px, 36px, 198px);
636 }
637
638 #open-file-button[cui-areatype="toolbar"] {
639   -moz-image-region: rect(0, 234px, 18px, 216px);
640 }
641
642 #open-file-button[cui-areatype="toolbar"]:hover {
643   -moz-image-region: rect(18px, 234px, 36px, 216px);
644 }
645
646 #save-page-button[cui-areatype="toolbar"] {
647   -moz-image-region: rect(0, 252px, 18px, 234px);
648 }
649
650 #save-page-button[cui-areatype="toolbar"]:hover {
651   -moz-image-region: rect(18px, 252px, 36px, 234px);
652 }
653
654 #sync-button[cui-areatype="toolbar"] {
655   -moz-image-region: rect(0, 270px, 18px, 252px);
656 }
657
658 #sync-button[cui-areatype="toolbar"]:hover {
659   -moz-image-region: rect(18px, 270px, 36px, 252px);
660 }
661
662 #sync-button[cui-areatype="toolbar"][status="active"],
663 #sync-button[cui-areatype="toolbar"][status="active"]:hover:active:not([disabled="true"]) {
664   list-style-image: url("chrome://browser/skin/syncProgress-toolbar.png");
665   -moz-image-region: rect(0, 18px, 18px, 0px);
666 }
667
668 /*
669 #sync-button[cui-areatype="toolbar"][status="active"]:-moz-lwtheme-brighttext,
670 #sync-button[cui-areatype="toolbar"][status="active"]:-moz-lwtheme-brighttext:hover:active:not([disabled="true"]) {
671   list-style-image: url("chrome://browser/skin/syncProgress-toolbar-inverted.png");
672 }
673 */
674
675 #feed-button[cui-areatype="toolbar"] {
676   -moz-image-region: rect(0, 288px, 18px, 270px);
677 }
678
679 #feed-button[cui-areatype="menu-panel"][panel-multiview-anchor=true],
680 #feed-button[cui-areatype="toolbar"]:hover:not([disabled="true"]) {
681   -moz-image-region: rect(18px, 288px, 36px, 270px);
682 }
683
684 #feed-button[cui-areatype="toolbar"][disabled="true"] {
685   -moz-image-region: rect(36px, 288px, 54px, 270px);
686 }
687
688 #social-share-button[cui-areatype="toolbar"] {
689   -moz-image-region: rect(0px, 306px, 18px, 288px);
690 }
691
692 #social-share-button[cui-areatype="toolbar"]:hover:not([disabled="true"]),
693 #social-share-button[cui-areatype="toolbar"][open="true"] {
694   -moz-image-region: rect(18px, 306px, 36px, 288px);
695 }
696
697 #social-share-button[cui-areatype="toolbar"][disabled="true"] {
698   -moz-image-region: rect(36px, 306px, 54px, 288px);
699 }
700
701 #characterencoding-button[cui-areatype="toolbar"] {
702   -moz-image-region: rect(0, 324px, 18px, 306px);
703 }
704
705 #characterencoding-button[cui-areatype="toolbar"]:hover:not([disabled="true"]),
706 #characterencoding-button[cui-areatype="toolbar"][open="true"] {
707   -moz-image-region: rect(18px, 324px, 36px, 306px);
708 }
709
710 #characterencoding-button[cui-areatype="toolbar"][disabled="true"] {
711   -moz-image-region: rect(36px, 324px, 54px, 306px);
712 }
713
714 #new-window-button[cui-areatype="toolbar"] {
715   -moz-image-region: rect(0, 342px, 18px, 324px);
716 }
717
718 #new-window-button[cui-areatype="toolbar"]:hover {
719   -moz-image-region: rect(18px, 342px, 36px, 324px);
720 }
721
722 #e10s-button[cui-areatype="toolbar"] {
723   -moz-image-region: rect(0, 342px, 18px, 324px);
724 }
725
726 #e10s-button[cui-areatype="toolbar"]:hover {
727   -moz-image-region: rect(18px, 342px, 36px, 324px);
728 }
729
730 #e10s-button > .toolbarbutton-icon {
731   transform: scaleY(-1);
732 }
733
734 #new-tab-button[cui-areatype="toolbar"] {
735   -moz-image-region: rect(0, 360px, 18px, 342px);
736 }
737
738 #new-tab-button[cui-areatype="toolbar"]:hover {
739   -moz-image-region: rect(18px, 360px, 36px, 342px);
740 }
741
742 #privatebrowsing-button[cui-areatype="toolbar"] {
743   -moz-image-region: rect(0, 378px, 18px, 360px);
744 }
745
746 #privatebrowsing-button[cui-areatype="toolbar"]:hover {
747   -moz-image-region: rect(18px, 378px, 36px, 360px);
748 }
749
750 #find-button[cui-areatype="toolbar"] {
751   -moz-image-region: rect(0, 396px, 18px, 378px);
752 }
753
754 #find-button[cui-areatype="toolbar"]:hover {
755   -moz-image-region: rect(18px, 396px, 36px, 378px);
756 }
757
758 #print-button[cui-areatype="toolbar"] {
759   -moz-image-region: rect(0, 414px, 18px, 396px);
760 }
761
762 #print-button[cui-areatype="toolbar"]:hover {
763   -moz-image-region: rect(18px, 414px, 36px, 396px);
764 }
765
766 #fullscreen-button[cui-areatype="toolbar"] {
767   -moz-image-region: rect(0, 432px, 18px, 414px);
768 }
769
770 #fullscreen-button[cui-areatype="toolbar"]:hover {
771   -moz-image-region: rect(18px, 432px, 36px, 414px);
772 }
773
774 #developer-button[cui-areatype="toolbar"] {
775   -moz-image-region: rect(0, 450px, 18px, 432px);
776 }
777
778 #developer-button[cui-areatype="toolbar"]:hover,
779 #developer-button[cui-areatype="toolbar"][open="true"] {
780   -moz-image-region: rect(18px, 450px, 36px, 432px);
781 }
782
783 #preferences-button[cui-areatype="toolbar"] {
784   -moz-image-region: rect(0, 468px, 18px, 450px);
785 }
786
787 #preferences-button[cui-areatype="toolbar"]:hover {
788   -moz-image-region: rect(18px, 468px, 36px, 450px);
789 }
790
791 #PanelUI-menu-button {
792   -moz-image-region: rect(0, 486px, 18px, 468px);
793 }
794
795 #PanelUI-menu-button:hover,
796 #PanelUI-menu-button[open="true"] {
797   -moz-image-region: rect(18px, 486px, 36px, 468px);
798 }
799
800 #edit-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #cut-button {
801   -moz-image-region: rect(0, 504px, 18px, 486px);
802 }
803
804 #edit-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #cut-button:hover:not([disabled="true"]) {
805   -moz-image-region: rect(18px, 504px, 36px, 486px);
806 }
807
808 #edit-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #cut-button[disabled="true"] {
809   -moz-image-region: rect(36px, 504px, 54px, 486px);
810 }
811
812 #edit-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #copy-button {
813   -moz-image-region: rect(0, 522px, 18px, 504px);
814 }
815
816 #edit-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #copy-button:hover:not([disabled="true"]) {
817   -moz-image-region: rect(18px, 522px, 36px, 504px);
818 }
819
820 #edit-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #copy-button[disabled="true"] {
821   -moz-image-region: rect(36px, 522px, 54px, 504px);
822 }
823
824 #edit-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #paste-button {
825   -moz-image-region: rect(0, 540px, 18px, 522px);
826 }
827
828 #edit-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #paste-button:hover:not([disabled="true"]) {
829   -moz-image-region: rect(18px, 540px, 36px, 522px);
830 }
831
832 #edit-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #paste-button[disabled="true"] {
833   -moz-image-region: rect(36px, 540px, 54px, 522px);
834 }
835
836 #zoom-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #zoom-out-button {
837   -moz-image-region: rect(0, 558px, 18px, 540px);
838 }
839
840 #zoom-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #zoom-out-button:hover:not([disabled="true"]) {
841   -moz-image-region: rect(18px, 558px, 36px, 540px);
842 }
843
844 #zoom-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #zoom-out-button[disabled="true"] {
845   -moz-image-region: rect(36px, 558px, 54px, 540px);
846 }
847
848 #zoom-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #zoom-in-button {
849   -moz-image-region: rect(0, 576px, 18px, 558px);
850 }
851
852 #zoom-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #zoom-in-button:hover:not([disabled="true"]) {
853   -moz-image-region: rect(18px, 576px, 36px, 558px);
854 }
855
856 #zoom-controls:not(:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])) > #zoom-in-button[disabled="true"] {
857   -moz-image-region: rect(36px, 576px, 54px, 558px);
858 }
859
860 #nav-bar-overflow-button {
861   -moz-image-region: rect(0, 612px, 18px, 594px);
862 }
863
864 #nav-bar-overflow-button:hover,
865 #nav-bar-overflow-button[open="true"] {
866   -moz-image-region: rect(18px, 612px, 36px, 594px);
867 }
868
869 #nav-bar-overflow-button:-moz-locale-dir(rtl) > .toolbarbutton-icon {
870   transform: scaleX(-1);
871 }
872
873 #tabview-button {
874   -moz-image-region: rect(0, 648px, 18px, 630px);
875 }
876
877 #tabview-button:hover {
878   -moz-image-region: rect(18px, 648px, 36px, 630px);
879 }
880
881 #email-link-button[cui-areatype="toolbar"] {
882   -moz-image-region: rect(0, 666px, 18px, 648px);
883 }
884
885 #email-button[cui-areatype="toolbar"]:hover:not([disabled="true"]) {
886   -moz-image-region: rect(18px, 666px, 36px, 648px);
887 }
888
889 #email-button[cui-areatype="toolbar"][disabled="true"] {
890   -moz-image-region: rect(36px, 666px, 54px, 648px);
891 }
892
893 #sidebar-button[cui-areatype="toolbar"] {
894   -moz-image-region: rect(0, 684px, 18px, 666px);
895 }
896
897 #sidebar-button[cui-areatype="toolbar"]:hover {
898   -moz-image-region: rect(18px, 684px, 36px, 666px);
899 }
900
901 #panic-button[cui-areatype="toolbar"] {
902   -moz-image-region: rect(0, 702px, 18px, 684px);
903 }
904
905 #panic-button[cui-areatype="toolbar"]:hover,
906 #panic-button[cui-areatype="toolbar"][open] {
907   -moz-image-region: rect(18px, 702px, 36px, 684px);
908 }
909
910 #panic-button:-moz-locale-dir(rtl) > .toolbarbutton-icon {
911   transform: scaleX(-1);
912 }
913
914 #web-apps-button[cui-areatype="toolbar"] {
915   -moz-image-region: rect(0, 720px, 18px, 702px);
916 }
917
918 #web-apps-button[cui-areatype="toolbar"]:hover {
919   -moz-image-region: rect(18px, 720px, 36px, 702px);
920 }
921
922 #loop-button,
923 #loop-button > .toolbarbutton-badge-stack {
924   list-style-image: url("chrome://browser/skin/loop/toolbarfx.png");
925   -moz-image-region: rect(0, 18px, 18px, 0);
926 }
927
928 #loop-button:not([disabled="true"]):-moz-any(:hover,:hover:active,[open]),
929 #loop-button:not([disabled="true"]):-moz-any(:hover,:hover:active,[open]) > .toolbarbutton-badge-stack {
930   -moz-image-region: rect(0, 90px, 18px, 72px);
931 }
932
933 #loop-button[state="disabled"],
934 #loop-button[disabled="true"],
935 #loop-button[state="disabled"] > .toolbarbutton-badge-stack,
936 #loop-button[disabled="true"] > .toolbarbutton-badge-stack {
937   -moz-image-region: rect(0, 36px, 18px, 18px);
938 }
939
940 #loop-button[disabled="true"]:-moz-any(:hover,:hover:active,[open]),
941 #loop-button[disabled="true"]:-moz-any(:hover,:hover:active,[open]) > .toolbarbutton-badge-stack {
942   -moz-image-region: rect(0, 126px, 18px, 108px);
943 }
944
945 #loop-button:not([disabled="true"])[state="error"],
946 #loop-button:not([disabled="true"])[state="error"] > .toolbarbutton-badge-stack {
947   -moz-image-region: rect(0, 54px, 18px, 36px);
948 }
949
950 #loop-button:not([disabled="true"])[state="action"],
951 #loop-button:not([disabled="true"])[state="action"] > .toolbarbutton-badge-stack {
952   -moz-image-region: rect(0, 72px, 18px, 54px);
953 }
954
955 #loop-button:not([disabled="true"])[state="active"],
956 #loop-button:not([disabled="true"])[state="active"] > .toolbarbutton-badge-stack {
957   -moz-image-region: rect(0, 108px, 18px, 90px);
958 }
959
960 #webide-button[cui-areatype="toolbar"] {
961   -moz-image-region: rect(0, 738px, 18px, 720px);
962 }
963
964 #webide-button[cui-areatype="toolbar"]:hover {
965   -moz-image-region: rect(18px, 738px, 36px, 720px);
966 }
967
968 #pocket-button[cui-areatype="toolbar"] {
969   -moz-image-region: rect(0, 774px, 18px, 756px);
970 }
971
972 #pocket-button[cui-areatype="toolbar"]:hover,
973 #pocket-button[cui-areatype="toolbar"][open] {
974   -moz-image-region: rect(18px, 774px, 36px, 756px);
975 }
976
977 /* === END toolbarbuttons.inc.css === */
978
979 /* === BEGIN menupanel.inc.css === */
980
981 /* Menu panel and palette styles */
982
983 :root {
984    /* avoid aero overrides with changed filenames */
985   --menupanel-list-style-image: url(chrome://browser/skin/menuPanelFx.png);
986   --menupanel-small-list-style-image: url(chrome://browser/skin/menuPanelFx-small.png);
987 }
988
989 toolbaritem[sdkstylewidget="true"] > toolbarbutton,
990 :-moz-any(#back-button, #forward-button, #home-button, #print-button, #downloads-button, #bookmarks-menu-button,
991           #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #feed-button, #tabview-button,
992           #social-share-button, #open-file-button, #find-button, #developer-button,
993           #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button,
994           #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button,
995           #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button,
996           #copy-button, #paste-button, #e10s-button, #panic-button, #web-apps-button, #webide-button, #loop-button,
997           #pocket-button)[cui-areatype="menu-panel"],
998 toolbarpaletteitem[place="palette"] > :-moz-any(#back-button, #forward-button, #home-button, #print-button, #downloads-button, #bookmarks-menu-button,
999           #new-tab-button, #new-window-button, #fullscreen-button, #sync-button, #feed-button, #tabview-button,
1000           #social-share-button, #open-file-button, #find-button, #developer-button,
1001           #preferences-button, #privatebrowsing-button, #save-page-button, #add-ons-button,
1002           #history-panelmenu, #nav-bar-overflow-button, #PanelUI-menu-button, #characterencoding-button,
1003           #email-link-button, #sidebar-button, #zoom-out-button, #zoom-reset-button, #zoom-in-button, #cut-button,
1004           #copy-button, #paste-button, #e10s-button, #panic-button, #web-apps-button, #webide-button, #loop-button,
1005                                                 #pocket-button) {
1006   list-style-image: var(--menupanel-list-style-image);
1007 }
1008
1009 #home-button[cui-areatype="menu-panel"],
1010 toolbarpaletteitem[place="palette"] > #home-button {
1011   -moz-image-region: rect(0px, 128px, 32px, 96px);
1012 }
1013
1014 #home-button[cui-areatype="menu-panel"]:hover,
1015 toolbarpaletteitem[place="palette"] > #home-button:hover {
1016   -moz-image-region: rect(32px, 128px, 64px, 96px);
1017 }
1018
1019 #bookmarks-menu-button[cui-areatype="menu-panel"],
1020 toolbarpaletteitem[place="palette"] > #bookmarks-menu-button {
1021   -moz-image-region: rect(0px, 192px, 32px, 160px);
1022 }
1023
1024 #bookmarks-menu-button[cui-areatype="menu-panel"]:hover,
1025 toolbarpaletteitem[place="palette"] > #bookmarks-menu-button:hover {
1026   -moz-image-region: rect(32px, 192px, 64px, 160px);
1027 }
1028
1029 #bookmarks-menu-button[cui-areatype="menu-panel"][panel-multiview-anchor=true] {
1030   -moz-image-region: rect(32px, 192px, 64px, 160px);
1031 }
1032
1033 #history-panelmenu[cui-areatype="menu-panel"],
1034 toolbarpaletteitem[place="palette"] > #history-panelmenu {
1035   -moz-image-region: rect(0px, 224px, 32px, 192px);
1036 }
1037
1038 #history-panelmenu[cui-areatype="menu-panel"]:hover,
1039 toolbarpaletteitem[place="palette"] > #history-panelmenu:hover {
1040   -moz-image-region: rect(32px, 224px, 64px, 192px);
1041 }
1042
1043 #history-panelmenu[cui-areatype="menu-panel"][panel-multiview-anchor=true] {
1044   -moz-image-region: rect(32px, 224px, 64px, 192px);
1045 }
1046
1047 #downloads-button[cui-areatype="menu-panel"],
1048 toolbarpaletteitem[place="palette"] > #downloads-button {
1049   -moz-image-region: rect(0px, 256px, 32px, 224px);
1050 }
1051
1052 #downloads-button[cui-areatype="menu-panel"]:hover,
1053 toolbarpaletteitem[place="palette"] > #downloads-button:hover {
1054   -moz-image-region: rect(32px, 256px, 64px, 224px);
1055 }
1056
1057 #add-ons-button[cui-areatype="menu-panel"],
1058 toolbarpaletteitem[place="palette"] > #add-ons-button {
1059   -moz-image-region: rect(0px, 288px, 32px, 256px);
1060 }
1061
1062 #add-ons-button[cui-areatype="menu-panel"]:hover,
1063 toolbarpaletteitem[place="palette"] > #add-ons-button:hover {
1064   -moz-image-region: rect(32px, 288px, 64px, 256px);
1065 }
1066
1067 #open-file-button[cui-areatype="menu-panel"],
1068 toolbarpaletteitem[place="palette"] > #open-file-button {
1069   -moz-image-region: rect(0px, 320px, 32px, 288px);
1070 }
1071
1072 #open-file-button[cui-areatype="menu-panel"]:hover,
1073 toolbarpaletteitem[place="palette"] > #open-file-button:hover {
1074   -moz-image-region: rect(32px, 320px, 64px, 288px);
1075 }
1076
1077 #save-page-button[cui-areatype="menu-panel"],
1078 toolbarpaletteitem[place="palette"] > #save-page-button {
1079   -moz-image-region: rect(0px, 352px, 32px, 320px);
1080 }
1081
1082 #save-page-button[cui-areatype="menu-panel"]:hover,
1083 toolbarpaletteitem[place="palette"] > #save-page-button:hover {
1084   -moz-image-region: rect(32px, 352px, 64px, 320px);
1085 }
1086
1087 #sync-button[cui-areatype="menu-panel"],
1088 toolbarpaletteitem[place="palette"] > #sync-button {
1089   -moz-image-region: rect(0px, 384px, 32px, 352px);
1090 }
1091
1092 #sync-button[cui-areatype="menu-panel"]:hover,
1093 toolbarpaletteitem[place="palette"] > #sync-button:hover {
1094   -moz-image-region: rect(32px, 384px, 64px, 352px);
1095 }
1096
1097 #sync-button[cui-areatype="menu-panel"][status="active"] {
1098   list-style-image: url("chrome://browser/skin/syncProgress-menuPanel.png");
1099   -moz-image-region: rect(0px, 32px, 32px, 0px);
1100 }
1101
1102 #feed-button[cui-areatype="menu-panel"],
1103 toolbarpaletteitem[place="palette"] > #feed-button {
1104   -moz-image-region: rect(0px, 416px, 32px, 384px);
1105 }
1106
1107 #feed-button[cui-areatype="menu-panel"]:hover:not([disabled="true"]),
1108 toolbarpaletteitem[place="palette"] > #feed-button:hover:not([disabled="true"]) {
1109   -moz-image-region: rect(32px, 416px, 64px, 384px);
1110 }
1111
1112 #feed-button[cui-areatype="menu-panel"][disabled="true"],
1113 toolbarpaletteitem[place="palette"] > #feed-button[disabled="true"] {
1114   -moz-image-region: rect(64px, 416px, 96px, 384px);
1115 }
1116
1117 #social-share-button[cui-areatype="menu-panel"],
1118 toolbarpaletteitem[place="palette"] > #social-share-button {
1119   -moz-image-region: rect(0px, 448px, 32px, 416px);
1120 }
1121
1122 #social-share-button[cui-areatype="menu-panel"]:hover:not([disabled="true"]),
1123 toolbarpaletteitem[place="palette"] > #social-share-button:hover:not([disabled="true"]) {
1124   -moz-image-region: rect(32px, 448px, 64px, 416px);
1125 }
1126
1127 #social-share-button[cui-areatype="menu-panel"][disabled="true"],
1128 toolbarpaletteitem[place="palette"] > #social-share-button[disabled="true"] {
1129   -moz-image-region: rect(64px, 448px, 96px, 416px);
1130 }
1131
1132 #characterencoding-button[cui-areatype="menu-panel"],
1133 toolbarpaletteitem[place="palette"] > #characterencoding-button {
1134   -moz-image-region: rect(0px, 480px, 32px, 448px);
1135 }
1136
1137 #characterencoding-button[cui-areatype="menu-panel"]:hover:not([disabled="true"]),
1138 toolbarpaletteitem[place="palette"] > #characterencoding-button:hover:not([disabled="true"]) {
1139   -moz-image-region: rect(32px, 480px, 64px, 448px);
1140 }
1141
1142 #characterencoding-button[cui-areatype="menu-panel"][disabled="true"],
1143 toolbarpaletteitem[place="palette"] > #characterencoding-button[disabled="true"] {
1144   -moz-image-region: rect(64px, 480px, 96px, 448px);
1145 }
1146
1147 #characterencoding-button[cui-areatype="menu-panel"][panel-multiview-anchor=true] {
1148   -moz-image-region: rect(32px, 480px, 64px, 448px);
1149 }
1150
1151 #new-window-button[cui-areatype="menu-panel"],
1152 toolbarpaletteitem[place="palette"] > #new-window-button {
1153   -moz-image-region: rect(0px, 512px, 32px, 480px);
1154 }
1155
1156 #new-window-button[cui-areatype="menu-panel"]:hover,
1157 toolbarpaletteitem[place="palette"] > #new-window-button:hover {
1158   -moz-image-region: rect(32px, 512px, 64px, 480px);
1159 }
1160
1161 #e10s-button[cui-areatype="menu-panel"],
1162 toolbarpaletteitem[place="palette"] > #e10s-button {
1163   -moz-image-region: rect(0px, 512px, 32px, 480px);
1164 }
1165
1166 #e10s-button[cui-areatype="menu-panel"]:hover,
1167 toolbarpaletteitem[place="palette"] > #e10s-button:hover {
1168   -moz-image-region: rect(32px, 512px, 64px, 480px);
1169 }
1170
1171 #new-tab-button[cui-areatype="menu-panel"],
1172 toolbarpaletteitem[place="palette"] > #new-tab-button {
1173   -moz-image-region: rect(0px, 544px, 32px, 512px);
1174 }
1175
1176 #new-tab-button[cui-areatype="menu-panel"]:hover,
1177 toolbarpaletteitem[place="palette"] > #new-tab-button:hover {
1178   -moz-image-region: rect(32px, 544px, 64px, 512px);
1179 }
1180
1181 #privatebrowsing-button[cui-areatype="menu-panel"],
1182 toolbarpaletteitem[place="palette"] > #privatebrowsing-button {
1183   -moz-image-region: rect(0px, 576px, 32px, 544px);
1184 }
1185
1186 #privatebrowsing-button[cui-areatype="menu-panel"]:hover,
1187 toolbarpaletteitem[place="palette"] > #privatebrowsing-button:hover {
1188   -moz-image-region: rect(32px, 576px, 64px, 544px);
1189 }
1190
1191 #tabview-button[cui-areatype="menu-panel"],
1192 toolbarpaletteitem[place="palette"] > #tabview-button {
1193   -moz-image-region: rect(0px, 608px, 32px, 576px);
1194 }
1195
1196 #tabview-button[cui-areatype="menu-panel"]:hover,
1197 toolbarpaletteitem[place="palette"] > #tabview-button:hover {
1198   -moz-image-region: rect(32px, 608px, 64px, 576px);
1199 }
1200
1201 #find-button[cui-areatype="menu-panel"],
1202 toolbarpaletteitem[place="palette"] > #find-button {
1203   -moz-image-region: rect(0px, 640px, 32px, 608px);
1204 }
1205
1206 #find-button[cui-areatype="menu-panel"]:hover,
1207 toolbarpaletteitem[place="palette"] > #find-button:hover {
1208   -moz-image-region: rect(32px, 640px, 64px, 608px);
1209 }
1210
1211 #print-button[cui-areatype="menu-panel"],
1212 toolbarpaletteitem[place="palette"] > #print-button {
1213   -moz-image-region: rect(0px, 672px, 32px, 640px);
1214 }
1215
1216 #print-button[cui-areatype="menu-panel"]:hover,
1217 toolbarpaletteitem[place="palette"] > #print-button:hover {
1218   -moz-image-region: rect(32px, 672px, 64px, 640px);
1219 }
1220
1221 #fullscreen-button[cui-areatype="menu-panel"],
1222 toolbarpaletteitem[place="palette"] > #fullscreen-button {
1223   -moz-image-region: rect(0px, 704px, 32px, 672px);
1224 }
1225
1226 #fullscreen-button[cui-areatype="menu-panel"]:hover,
1227 toolbarpaletteitem[place="palette"] > #fullscreen-button:hover {
1228   -moz-image-region: rect(32px, 704px, 64px, 672px);
1229 }
1230
1231 #developer-button[cui-areatype="menu-panel"],
1232 toolbarpaletteitem[place="palette"] > #developer-button {
1233   -moz-image-region: rect(0px, 736px, 32px, 704px);
1234 }
1235
1236 #developer-button[cui-areatype="menu-panel"]:hover,
1237 toolbarpaletteitem[place="palette"] > #developer-button:hover {
1238   -moz-image-region: rect(32px, 736px, 64px, 704px);
1239 }
1240
1241 #developer-button[cui-areatype="menu-panel"][panel-multiview-anchor=true] {
1242   -moz-image-region: rect(32px, 736px, 64px, 704px);
1243 }
1244
1245 #preferences-button[cui-areatype="menu-panel"],
1246 toolbarpaletteitem[place="palette"] > #preferences-button {
1247   -moz-image-region: rect(0px, 768px, 32px, 736px);
1248 }
1249
1250 #preferences-button[cui-areatype="menu-panel"]:hover,
1251 toolbarpaletteitem[place="palette"] > #preferences-button:hover {
1252   -moz-image-region: rect(32px, 768px, 64px, 736px);
1253 }
1254
1255 #email-link-button[cui-areatype="menu-panel"],
1256 toolbarpaletteitem[place="palette"] > #email-link-button {
1257   -moz-image-region: rect(0, 800px, 32px, 768px);
1258 }
1259
1260 #email-link-button[cui-areatype="menu-panel"]:hover:not([disabled="true"]),
1261 toolbarpaletteitem[place="palette"] > #email-link-button:hover:not([disabled="true"]) {
1262   -moz-image-region: rect(32px, 800px, 64px, 768px);
1263 }
1264
1265 #email-link-button[cui-areatype="menu-panel"][disabled="true"],
1266 toolbarpaletteitem[place="palette"] > #email-link-button[disabled="true"] {
1267   -moz-image-region: rect(64px, 800px, 96px, 768px);
1268 }
1269
1270 #sidebar-button[cui-areatype="menu-panel"],
1271 toolbarpaletteitem[place="palette"] > #sidebar-button {
1272   -moz-image-region: rect(0, 864px, 32px, 832px);
1273 }
1274
1275 #sidebar-button[cui-areatype="menu-panel"]:hover,
1276 toolbarpaletteitem[place="palette"] > #sidebar-button:hover,
1277 #sidebar-button[cui-areatype="menu-panel"][panel-multiview-anchor=true] {
1278   -moz-image-region: rect(32px, 864px, 64px, 832px);
1279 }
1280
1281 #panic-button[cui-areatype="menu-panel"],
1282 toolbarpaletteitem[place="palette"] > #panic-button {
1283   -moz-image-region: rect(0, 896px, 32px, 864px);
1284 }
1285
1286 #panic-button[cui-areatype="menu-panel"]:hover,
1287 toolbarpaletteitem[place="palette"] > #panic-button:hover,
1288 #panic-button[cui-areatype="menu-panel"][panel-multiview-anchor=true] {
1289   -moz-image-region: rect(32px, 896px, 64px, 864px);
1290 }
1291
1292 #web-apps-button[cui-areatype="menu-panel"],
1293 toolbarpaletteitem[place="palette"] > #web-apps-button {
1294   -moz-image-region: rect(0, 928px, 32px, 896px);
1295 }
1296
1297 #web-apps-button[cui-areatype="menu-panel"]:hover,
1298 toolbarpaletteitem[place="palette"] > #web-apps-button:hover {
1299   -moz-image-region: rect(32px, 928px, 64px, 896px);
1300 }
1301
1302 #webide-button[cui-areatype="menu-panel"],
1303 toolbarpaletteitem[place="palette"] > #webide-button {
1304   -moz-image-region: rect(0px, 960px, 32px, 928px);
1305 }
1306
1307 #webide-button[cui-areatype="menu-panel"]:hover,
1308 toolbarpaletteitem[place="palette"] > #webide-button:hover {
1309   -moz-image-region: rect(32px, 960px, 64px, 928px);
1310 }
1311
1312 #pocket-button[cui-areatype="menu-panel"],
1313 toolbarpaletteitem[place="palette"] > #pocket-button {
1314   -moz-image-region: rect(0px, 992px, 32px, 960px);
1315 }
1316
1317 #pocket-button[cui-areatype="menu-panel"][panel-multiview-anchor=true] {
1318   -moz-image-region: rect(32px, 992px, 64px, 960px);
1319 }
1320
1321 toolbaritem[sdkstylewidget="true"] > toolbarbutton {
1322   -moz-image-region: rect(0, 832px, 32px, 800px);
1323 }
1324
1325 #loop-button[cui-areatype="menu-panel"],
1326 toolbarpaletteitem[place="palette"] > #loop-button {
1327   list-style-image: url("chrome://browser/skin/loop/menuPanel.png");
1328   -moz-image-region: rect(0, 32px, 32px, 0);
1329 }
1330
1331 /* Make sure that the state icons are not shown in the customization palette. */
1332 toolbarpaletteitem[place="palette"] > #loop-button {
1333   -moz-image-region: rect(0, 32px, 32px, 0) !important;
1334 }
1335
1336 #loop-button[cui-areatype="menu-panel"]:not([disabled="true"]):-moz-any(:hover,:hover:active,[open]) {
1337   -moz-image-region: rect(0, 160px, 32px, 128px);
1338 }
1339
1340 #loop-button[cui-areatype="menu-panel"][state="disabled"],
1341 #loop-button[cui-areatype="menu-panel"][disabled="true"] {
1342   -moz-image-region: rect(0, 64px, 32px, 32px);
1343 }
1344
1345 #loop-button[cui-areatype="menu-panel"][disabled="true"]:-moz-any(:hover,:hover:active,[open]) {
1346   -moz-image-region: rect(0, 224px, 32px, 192px);
1347 }
1348
1349 #loop-button[cui-areatype="menu-panel"]:not([disabled="true"])[state="error"] {
1350   -moz-image-region: rect(0, 96px, 32px, 64px);
1351 }
1352
1353 #loop-button[cui-areatype="menu-panel"]:not([disabled="true"])[state="action"] {
1354   -moz-image-region: rect(0, 128px, 32px, 96px);
1355 }
1356
1357 #loop-button[cui-areatype="menu-panel"]:not([disabled="true"])[state="active"] {
1358   -moz-image-region: rect(0, 192px, 32px, 160px);
1359 }
1360
1361 /* Wide panel control icons */
1362
1363 #edit-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > toolbarbutton,
1364 #zoom-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > toolbarbutton,
1365 toolbarpaletteitem[place="palette"] > #edit-controls > toolbarbutton,
1366 toolbarpaletteitem[place="palette"] > #zoom-controls > toolbarbutton {
1367   list-style-image: var(--menupanel-small-list-style-image);
1368 }
1369
1370 #edit-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #cut-button,
1371 toolbarpaletteitem[place="palette"] > #edit-controls > #cut-button {
1372   -moz-image-region: rect(0px, 32px, 16px, 16px);
1373 }
1374
1375 #edit-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #cut-button:hover:not([disabled="true"]),
1376 toolbarpaletteitem[place="palette"] > #edit-controls > #cut-button:hover:not([disabled="true"]) {
1377   -moz-image-region: rect(16px, 32px, 32px, 16px);
1378 }
1379
1380 #edit-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #cut-button[disabled="true"],
1381 toolbarpaletteitem[place="palette"] > #edit-controls > #cut-button[disabled="true"] {
1382   -moz-image-region: rect(32px, 32px, 48px, 16px);
1383 }
1384
1385 #edit-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #copy-button,
1386 toolbarpaletteitem[place="palette"] > #edit-controls > #copy-button {
1387   -moz-image-region: rect(0px, 48px, 16px, 32px);
1388 }
1389
1390 #edit-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #copy-button:hover:not([disabled="true"]),
1391 toolbarpaletteitem[place="palette"] > #edit-controls > #copy-button:hover:not([disabled="true"]) {
1392   -moz-image-region: rect(16px, 48px, 32px, 32px);
1393 }
1394
1395 #edit-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #copy-button[disabled="true"],
1396 toolbarpaletteitem[place="palette"] > #edit-controls > #copy-button[disabled="true"] {
1397   -moz-image-region: rect(32px, 48px, 48px, 32px);
1398 }
1399
1400 #edit-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #paste-button,
1401 toolbarpaletteitem[place="palette"] > #edit-controls > #paste-button {
1402   -moz-image-region: rect(0px, 64px, 16px, 48px);
1403 }
1404
1405 #edit-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #paste-button:hover:not([disabled="true"]),
1406 toolbarpaletteitem[place="palette"] > #edit-controls > #paste-button:hover:not([disabled="true"]) {
1407   -moz-image-region: rect(16px, 64px, 32px, 48px);
1408 }
1409
1410 #edit-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #paste-button[disabled="true"],
1411 toolbarpaletteitem[place="palette"] > #edit-controls > #paste-button[disabled="true"] {
1412   -moz-image-region: rect(32px, 64px, 48px, 48px);
1413 }
1414
1415 #zoom-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #zoom-out-button,
1416 toolbarpaletteitem[place="palette"] > #zoom-controls > #zoom-out-button {
1417   -moz-image-region: rect(0px, 80px, 16px, 64px);
1418 }
1419
1420 #zoom-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #zoom-out-button:hover:not([disabled="true"]),
1421 toolbarpaletteitem[place="palette"] > #zoom-controls > #zoom-out-button:hover:not([disabled="true"]) {
1422   -moz-image-region: rect(16px, 80px, 32px, 64px);
1423 }
1424
1425 #zoom-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #zoom-out-button[disabled="true"],
1426 toolbarpaletteitem[place="palette"] > #zoom-controls > #zoom-out-button[disabled="true"] {
1427   -moz-image-region: rect(32px, 80px, 48px, 64px);
1428 }
1429
1430 #zoom-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #zoom-in-button,
1431 toolbarpaletteitem[place="palette"] > #zoom-controls > #zoom-in-button {
1432   -moz-image-region: rect(0px, 96px, 16px, 80px);
1433 }
1434
1435 #zoom-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #zoom-in-button:hover:not([disabled="true"]),
1436 toolbarpaletteitem[place="palette"] > #zoom-controls > #zoom-in-button:hover:not([disabled="true"]) {
1437   -moz-image-region: rect(16px, 96px, 32px, 80px);
1438 }
1439
1440 #zoom-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #zoom-in-button[disabled="true"],
1441 toolbarpaletteitem[place="palette"] > #zoom-controls > #zoom-in-button[disabled="true"] {
1442   -moz-image-region: rect(32px, 96px, 48px, 80px);
1443 }
1444
1445 #add-share-provider {
1446   list-style-image: var(--menupanel-small-list-style-image);
1447   -moz-image-region: rect(0px, 96px, 16px, 80px);
1448 }
1449
1450 /* === END menupanel.inc.css === */
1451
1452 .toolbarbutton-1:not([type="menu-button"]) {
1453   -moz-box-orient: vertical;
1454 }
1455
1456 .toolbarbutton-1,
1457 .toolbarbutton-1 > .toolbarbutton-menubutton-button {
1458 /*  min-width: 36px;
1459   min-height: 36px;*/
1460 }
1461
1462 .toolbarbutton-1,
1463 .toolbarbutton-1 > .toolbarbutton-menubutton-button,
1464 .toolbarbutton-1[disabled="true"]:hover:active,
1465 .toolbarbutton-1[disabled="true"]:hover:active > .toolbarbutton-menubutton-button {
1466   padding: 1px 2px;
1467 }
1468
1469 .toolbarbutton-1:hover:active,
1470 .toolbarbutton-1[open="true"],
1471 .toolbarbutton-1:hover:active > .toolbarbutton-menubutton-button {
1472   padding-top: 2px;
1473   padding-bottom: 0px;
1474   -moz-padding-start: 3px;
1475   -moz-padding-end: 1px;
1476 }
1477
1478 #main-window:not([customizing]) .toolbarbutton-1[disabled=true] > .toolbarbutton-icon,
1479 #main-window:not([customizing]) .toolbarbutton-1[disabled=true] > .toolbarbutton-menu-dropmarker,
1480 #main-window:not([customizing]) .toolbarbutton-1[disabled=true] > .toolbarbutton-menubutton-dropmarker,
1481 #main-window:not([customizing]) .toolbarbutton-1[disabled=true] > .toolbarbutton-menubutton-button > .toolbarbutton-icon,
1482 #main-window:not([customizing]) .toolbarbutton-1 > .toolbarbutton-menubutton-button[disabled=true] > .toolbarbutton-icon {
1483 }
1484
1485 .toolbarbutton-1 > .toolbarbutton-menu-dropmarker,
1486 .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker {
1487 }
1488
1489 toolbar .toolbarbutton-1 > .toolbarbutton-menu-dropmarker:-moz-lwtheme-brighttext,
1490 toolbar .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker:-moz-lwtheme-brighttext {
1491 }
1492
1493 .toolbarbutton-1 > .toolbarbutton-icon,
1494 .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-icon {
1495 }
1496
1497 .findbar-button,
1498 #nav-bar .toolbarbutton-1,
1499 #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button {
1500 }
1501
1502 #nav-bar .toolbarbutton-1:not([type=menu-button]),
1503 #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button,
1504 #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker {
1505 }
1506
1507 #nav-bar #PanelUI-menu-button {
1508 /*  -moz-padding-start: 7px;
1509   -moz-padding-end: 5px;*/
1510 }
1511
1512 #nav-bar .toolbarbutton-1[type=panel],
1513 #nav-bar .toolbarbutton-1[type=menu]:not(#back-button):not(#forward-button):not(#feed-button):not(#PanelUI-menu-button) {
1514 /*  padding-left: 5px;
1515   padding-right: 5px;*/
1516 }
1517
1518 #nav-bar .toolbarbutton-1 > menupopup {
1519 /*  margin-top: -3px;*/
1520 }
1521
1522 #nav-bar .toolbarbutton-1 > menupopup.cui-widget-panel {
1523   margin-top: -4px;
1524 }
1525
1526 #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button {
1527 /*  -moz-padding-end: 0;*/
1528 }
1529
1530 #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker {
1531 /*  -moz-padding-start: 0;
1532   -moz-box-align: center;*/
1533 }
1534
1535 .findbar-button > .toolbarbutton-text,
1536 #nav-bar .toolbarbutton-1 > .toolbarbutton-icon,
1537 #nav-bar .toolbarbutton-1 > .toolbarbutton-text,
1538 #nav-bar .toolbarbutton-1 > .toolbarbutton-badge-stack,
1539 #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-icon,
1540 #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon,
1541 window:not([chromehidden~="toolbar"]) #urlbar-wrapper > .toolbarbutton-1:-moz-any([disabled=true],:not([open]):not([disabled=true]):not(:active)) > .toolbarbutton-icon {
1542 /*  padding: 2px 6px;
1543   border: 1px solid;
1544   border-color: transparent;
1545   transition-property: background-color, border-color;
1546   transition-duration: 150ms;*/
1547 }
1548 /*
1549 #nav-bar .toolbarbutton-1:not(:-moz-any(@primaryToolbarButtons@)) > .toolbarbutton-icon,
1550 #nav-bar .toolbarbutton-1:not(:-moz-any(@primaryToolbarButtons@)) > .toolbarbutton-badge-stack,
1551 #nav-bar .toolbarbutton-1:not(:-moz-any(@primaryToolbarButtons@)) > .toolbarbutton-menubutton-button > .toolbarbutton-icon {
1552   padding: 3px 7px;
1553 }
1554 */
1555
1556 /* Help SDK icons fit: */
1557 toolbarbutton[constrain-size="true"][cui-areatype="toolbar"] > .toolbarbutton-icon,
1558 toolbarbutton[constrain-size="true"][cui-areatype="toolbar"] > .toolbarbutton-badge-stack > .toolbarbutton-icon {
1559   width: 16px;
1560 }
1561
1562 #nav-bar toolbarbutton[constrain-size="true"][cui-areatype="toolbar"] > .toolbarbutton-icon {
1563   /* XXXgijs box models strike again: this is 16px + 2 * 7px padding + 2 * 1px border (from the rules above) */
1564   width: 32px;
1565 }
1566
1567 #nav-bar .toolbarbutton-1[type=panel] > .toolbarbutton-icon,
1568 #nav-bar .toolbarbutton-1[type=panel] > .toolbarbutton-badge-stack,
1569 #nav-bar .toolbarbutton-1[type=menu]:not(#PanelUI-menu-button):not(#back-button):not(#forward-button) > .toolbarbutton-icon,
1570 #nav-bar .toolbarbutton-1[type=menu]:not(#PanelUI-menu-button) > .toolbarbutton-badge-stack,
1571 #nav-bar .toolbarbutton-1[type=menu] > .toolbarbutton-text /* hack for add-ons that forcefully display the label */ {
1572 /*  -moz-padding-end: 17px;*/
1573 }
1574
1575 #nav-bar .toolbarbutton-1 > .toolbarbutton-menu-dropmarker {
1576 }
1577
1578 #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-icon {
1579 }
1580
1581 #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
1582 }
1583
1584 #nav-bar .toolbaritem-combined-buttons {
1585 /*  margin-left: 2px;
1586   margin-right: 2px;*/
1587 }
1588
1589 #nav-bar .toolbaritem-combined-buttons > .toolbarbutton-1 {
1590 /*  padding-left: 0;
1591   padding-right: 0;*/
1592 }
1593
1594 #nav-bar .toolbarbutton-1:not(:hover):not(:active):not([open]) > .toolbarbutton-menubutton-dropmarker::before,
1595 #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 {
1596 /*
1597   content: "";
1598   display: -moz-box;
1599   width: 1px;
1600   height: 16px;
1601   -moz-margin-end: -1px;
1602 */
1603 }
1604
1605 window:not([chromehidden~="toolbar"]) #urlbar-wrapper > .toolbarbutton-1:-moz-any([disabled=true],:not([open]):not([disabled=true]):not(:active)) > .toolbarbutton-icon {
1606 }
1607
1608 .findbar-button:not(:-moz-any([checked="true"],[disabled="true"])):hover > .toolbarbutton-text,
1609 #nav-bar .toolbarbutton-1:not([disabled=true]) > .toolbarbutton-menubutton-button[open] + .toolbarbutton-menubutton-dropmarker > .dropmarker-icon,
1610 #nav-bar .toolbarbutton-1:not([disabled=true]):-moz-any(:hover,[open]) > .toolbarbutton-menubutton-button > .toolbarbutton-icon,
1611 #nav-bar .toolbarbutton-1:not([disabled=true]):-moz-any(:hover,[open]) > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon,
1612 #nav-bar .toolbarbutton-1:not([disabled=true]):not([checked]):not([open]):not(:active):hover > .toolbarbutton-icon,
1613 #nav-bar .toolbarbutton-1:not([disabled=true]):not([checked]):not([open]):not(:active):hover > .toolbarbutton-text,
1614 #nav-bar .toolbarbutton-1:not([disabled=true]):not([checked]):not([open]):not(:active):hover > .toolbarbutton-badge-stack,
1615 window:not([chromehidden~="toolbar"]) #urlbar-wrapper > #forward-button:not([open]):not(:active):not([disabled=true]):hover > .toolbarbutton-icon,
1616 #nav-bar .toolbarbutton-1:not([buttonover]):not([open]):not(:active):hover > .toolbarbutton-menubutton-dropmarker:not([disabled=true]) > .dropmarker-icon {
1617 }
1618
1619 .findbar-button:not([disabled=true]):-moz-any([checked="true"],:hover:active) > .toolbarbutton-text,
1620 #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button:not([disabled=true]):-moz-any(:hover:active, [open]) > .toolbarbutton-icon,
1621 #nav-bar .toolbarbutton-1[open] > .toolbarbutton-menubutton-dropmarker:not([disabled=true]) > .dropmarker-icon,
1622 #nav-bar .toolbarbutton-1:not([disabled=true]):-moz-any([open],[checked],:hover:active) > .toolbarbutton-icon,
1623 #nav-bar .toolbarbutton-1:not([disabled=true]):-moz-any([open],[checked],:hover:active) > .toolbarbutton-text,
1624 #nav-bar .toolbarbutton-1:not([disabled=true]):-moz-any([open],[checked],:hover:active) > .toolbarbutton-badge-stack {
1625 }
1626
1627 #TabsToolbar .toolbarbutton-1,
1628 #TabsToolbar .toolbarbutton-1 > .toolbarbutton-menubutton-button,
1629 .tabbrowser-arrowscrollbox > .scrollbutton-up,
1630 .tabbrowser-arrowscrollbox > .scrollbutton-down {
1631 }
1632
1633 #TabsToolbar .toolbarbutton-1:not([disabled=true]):hover,
1634 #TabsToolbar .toolbarbutton-1[open],
1635 #TabsToolbar .toolbarbutton-1 > .toolbarbutton-menubutton-button:not([disabled=true]):hover,
1636 .tabbrowser-arrowscrollbox > .scrollbutton-up:not([disabled=true]):hover,
1637 .tabbrowser-arrowscrollbox > .scrollbutton-down:not([disabled=true]):hover {
1638 }
1639
1640 /* unified back/forward button */
1641
1642 #forward-button {
1643   -moz-box-align: stretch; /* let the button shape grow vertically with the location bar */
1644 }
1645
1646 #forward-button > menupopup {
1647   margin-top: 1px !important;
1648 }
1649
1650 #forward-button > .toolbarbutton-icon {
1651   background-clip: padding-box !important;
1652   /*mask: url(keyhole-forward-mask.svg#mask); XXX: this regresses twinopen */
1653   /*clip-path: url(chrome://browser/content/browser.xul#keyhole-forward-clip-path) !important;*/
1654 }
1655
1656 #forward-button {
1657   -moz-margin-start: -4px !important;
1658   padding-left: 5px;
1659   padding-right: 5px;
1660   margin-top: 3px;
1661   margin-bottom: 3px;
1662   border-radius: 0 10000px 10000px 0;
1663 }
1664
1665 #forward-button:-moz-locale-dir(rtl) {
1666   border-radius: 10000px 0 0 10000px;
1667 }
1668
1669 window:not([chromehidden~="toolbar"]) #urlbar-wrapper:not([switchingtabs]) > #forward-button {
1670   transition: margin-left 150ms ease-out;
1671 }
1672
1673 window:not([chromehidden~="toolbar"]) #urlbar-wrapper > #forward-button[disabled] {
1674   margin-left: -27px !important;
1675 }
1676
1677 window:not([chromehidden~="toolbar"]) #urlbar-wrapper:hover:not([switchingtabs]) > #forward-button[disabled] {
1678   /* delay the hiding of the forward button when hovered to avoid accidental clicks on the url bar */
1679   transition-delay: 100s;
1680 }
1681
1682 window:not([chromehidden~="toolbar"]) #urlbar-wrapper:not(:hover) > #forward-button[disabled] {
1683   /* when not hovered anymore, trigger a new transition to hide the forward button immediately */
1684   margin-left: -27.01px !important;
1685 }
1686
1687 #back-button {
1688 /*  padding-top: 3px !important;
1689   padding-bottom: 3px !important;
1690   -moz-padding-start: 5px !important;
1691   -moz-padding-end: 0 !important;*/
1692   position: relative;
1693   z-index: 1;
1694   border-radius: 10000px;
1695   width: 30px;
1696   height: 30px;
1697   margin-top: -2px;
1698   margin-bottom: -2px;
1699 }
1700
1701 #back-button:-moz-locale-dir(rtl) {
1702 }
1703
1704 #back-button > menupopup {
1705   margin-top: -1px !important;
1706 }
1707
1708 #back-button > .toolbarbutton-icon {
1709   border-radius: 10000px !important;
1710   background-clip: padding-box !important;
1711 /*  background-color: hsla(210,25%,98%,.08) !important;
1712   padding: 6px !important;
1713   border-style: none !important;
1714   box-shadow: 0 1px 0 0 hsla(210,4%,10%,.25),
1715               0 0 0 1px hsla(210,4%,10%,.25);*/
1716   transition-property: background-color, box-shadow !important;
1717   transition-duration: 250ms !important;
1718 }
1719
1720 #back-button:not([disabled="true"]):not([open="true"]):not(:active):hover > .toolbarbutton-icon {
1721 /*  background-color: hsla(210,4%,10%,.08) !important;*/
1722 }
1723
1724 #back-button:not([disabled="true"]):hover:active > .toolbarbutton-icon,
1725 #back-button[open="true"] > .toolbarbutton-icon {
1726 /*  background-color: hsla(210,4%,10%,.12) !important;
1727   box-shadow: 0 1px 0 0 hsla(210,4%,10%,.25),
1728               0 0 0 1px hsla(210,4%,10%,.25),
1729               0 1px 0 0 hsla(210,80%,20%,.1) inset !important;*/
1730 }
1731
1732 #back-button:-moz-locale-dir(rtl) > .toolbarbutton-icon {
1733   transform: scaleX(-1);
1734 }
1735 /*
1736 .unified-nav-back[_moz-menuactive]:-moz-locale-dir(ltr),
1737 .unified-nav-forward[_moz-menuactive]:-moz-locale-dir(rtl) {
1738   list-style-image: url("chrome://browser/skin/menu-back.png") !important;
1739 }
1740
1741 .unified-nav-forward[_moz-menuactive]:-moz-locale-dir(ltr),
1742 .unified-nav-back[_moz-menuactive]:-moz-locale-dir(rtl) {
1743   list-style-image: url("chrome://browser/skin/menu-forward.png") !important;
1744 }
1745
1746 #home-button.bookmark-item {
1747   list-style-image: url("chrome://browser/skin/Toolbar.png");
1748 }
1749
1750 #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),
1751 #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),
1752 #main-window[tabsintitlebar]:not([inFullscreen]) :-moz-any(#TabsToolbar, #toolbar-menubar) > toolbarpaletteitem > toolbaritem > :-moz-any(@nestedButtons@):-moz-system-metric(windows-classic):not(:-moz-lwtheme),
1753 #main-window[tabsintitlebar]:not([inFullscreen]) :-moz-any(#TabsToolbar, #toolbar-menubar) > toolbaritem > :-moz-any(@nestedButtons@):-moz-system-metric(windows-classic):not(:-moz-lwtheme),
1754 #main-window[tabsintitlebar]:not([inFullscreen]) :-moz-any(#TabsToolbar, #toolbar-menubar) > toolbarpaletteitem > :-moz-any(@primaryToolbarButtons@):-moz-system-metric(windows-classic):not(:-moz-lwtheme),
1755 #main-window[tabsintitlebar]:not([inFullscreen]) :-moz-any(#TabsToolbar, #toolbar-menubar) > :-moz-any(@primaryToolbarButtons@):-moz-system-metric(windows-classic):not(:-moz-lwtheme),
1756 #home-button.bookmark-item:-moz-lwtheme-brighttext {
1757   position: relative;
1758   z-index: 1;
1759   list-style-image: url("chrome://browser/skin/Toolbar-inverted.png");
1760 }
1761
1762 #main-window[tabsintitlebar]:not([inFullscreen]) :-moz-any(#TabsToolbar, #toolbar-menubar) > #sync-button[status="active"]:-moz-system-metric(windows-classic):not(:-moz-lwtheme),
1763 #main-window[tabsintitlebar]:not([inFullscreen]) :-moz-any(#TabsToolbar, #toolbar-menubar) > toolbarpaletteitem > #sync-button[status="active"]:-moz-system-metric(windows-classic):not(:-moz-lwtheme) {
1764   list-style-image: url("chrome://browser/skin/syncProgress-toolbar-inverted.png");
1765 }
1766 */
1767
1768 #downloads-button > .toolbarbutton-icon {
1769   margin: 0;
1770 }
1771
1772 /* tabview menu item */
1773
1774 #menu_tabview {
1775   list-style-image: url("chrome://browser/skin/tabview/tabviewFx.png");
1776   -moz-image-region: rect(1px, 89px, 17px, 73px);
1777 }
1778
1779 #menu_tabview[groups="0"] {
1780   -moz-image-region: rect(1px, 17px, 17px, 1px);
1781 }
1782
1783 #menu_tabview[groups="1"] {
1784   -moz-image-region: rect(1px, 35px, 17px, 19px);
1785 }
1786
1787 #menu_tabview[groups="2"] {
1788   -moz-image-region: rect(1px, 53px, 17px, 37px);
1789 }
1790
1791 #menu_tabview[groups="3"] {
1792   -moz-image-region: rect(1px, 71px, 17px, 55px);
1793 }
1794
1795 /* undo close tab menu item */
1796 #alltabs_undoCloseTab {
1797   list-style-image: url(chrome://browser/skin/undoCloseTab.png);
1798 }
1799
1800 @media (min-resolution: 1.1dppx) {
1801   #alltabs_undoCloseTab {
1802     list-style-image: url(chrome://browser/skin/undoCloseTab@2x.png);
1803   }
1804   #alltabs_undoCloseTab > .toolbarbutton-icon {
1805     width: 16px;
1806   }
1807 }
1808
1809 /* zoom control text (reset) button special case: */
1810
1811 #nav-bar #zoom-reset-button > .toolbarbutton-text {
1812   /* To make this line up with the icons, it needs the same height (18px) +
1813    * padding (2 * 2px) + border (2 * 1px), but as a minimum because otherwise
1814    * increase in text sizes would break things...
1815    */
1816   min-height: 20px;
1817 }
1818
1819 /* ::::: fullscreen window controls ::::: */
1820
1821 #window-controls {
1822   -moz-margin-start: 4px;
1823 }
1824
1825 #minimize-button,
1826 #restore-button,
1827 #close-button {
1828 /*  list-style-image: url("chrome://global/skin/icons/windowControls.png");
1829   padding: 0; */
1830 }
1831
1832 #minimize-button {
1833   list-style-image: url("chrome://navigator/skin/icons/win-minimize.gif");
1834 }
1835
1836 #minimize-button:hover {
1837   list-style-image: url("chrome://navigator/skin/icons/win-minimize-hover.gif");
1838 }
1839
1840 #restore-button {
1841   list-style-image: url("chrome://navigator/skin/icons/win-restore.gif");
1842 }
1843
1844 #restore-button:hover {
1845   list-style-image: url("chrome://navigator/skin/icons/win-restore-hover.gif");
1846 }
1847
1848 #close-button {
1849   list-style-image: url("chrome://navigator/skin/icons/win-close.gif");
1850 }
1851
1852 #close-button:hover {
1853   list-style-image: url("chrome://navigator/skin/icons/win-close-hover.gif");
1854 }
1855
1856 /* ::::: Location Bar ::::: */
1857
1858 #urlbar,
1859 .searchbar-textbox {
1860   border-radius: 5px;
1861   margin: 2px 0;
1862   -moz-margin-start: 3px;
1863 }
1864
1865 #urlbar {
1866   /* make color as light as possible to deal with dark non-domain parts */
1867   color: #FFBFFF;
1868 }
1869
1870 /* overlap the urlbar's border */
1871 #PopupAutoCompleteRichResult {
1872   margin-top: -1px;
1873 }
1874
1875 #urlbar:-moz-lwtheme,
1876 .searchbar-textbox:-moz-lwtheme {
1877   /* background-color: rgba(255,255,255,.8);
1878   @navbarTextboxCustomBorder@
1879   color: black; */
1880 }
1881
1882 #urlbar:-moz-lwtheme:hover:not([focused]):not([readonly]),
1883 .searchbar-textbox:-moz-lwtheme:hover:not([focused]) {
1884 /*  background-color: rgba(255,255,255,.9);*/
1885 }
1886
1887 #urlbar:-moz-lwtheme[focused]:not([readonly]),
1888 .searchbar-textbox:-moz-lwtheme[focused] {
1889 /*  background-color: white;*/
1890 }
1891
1892 window:not([chromehidden~="toolbar"]) #urlbar-wrapper > #urlbar {
1893 /*  -moz-border-start: none;
1894   margin-left: 0;*/
1895 }
1896
1897 window:not([chromehidden~="toolbar"]) #urlbar-wrapper > #urlbar:-moz-locale-dir(ltr) {
1898 /*  border-top-left-radius: 0;
1899   border-bottom-left-radius: 0; */
1900 }
1901
1902 window:not([chromehidden~="toolbar"]) #urlbar-wrapper > #urlbar:-moz-locale-dir(rtl) {
1903 /*  border-top-right-radius: 0;
1904   border-bottom-right-radius: 0; */
1905 }
1906
1907 window:not([chromehidden~="toolbar"]) #urlbar-wrapper {
1908 /*  clip-path: url("chrome://browser/content/browser.xul#urlbar-back-button-clip-path");*/
1909 /*  margin-inline-start: calc(-1 * var(--backbutton-urlbar-overlap)); */
1910 }
1911
1912 window:not([chromehidden~="toolbar"]) #urlbar-wrapper:-moz-locale-dir(rtl),
1913 window:not([chromehidden~="toolbar"]) #urlbar-wrapper > #urlbar:-moz-locale-dir(rtl) {
1914   /* let urlbar-back-button-clip-path clip the urlbar's right side for RTL */
1915   transform: scaleX(-1);
1916 }
1917
1918 window:not([chromehidden~="toolbar"]) #urlbar-wrapper:-moz-locale-dir(rtl) {
1919   -moz-box-direction: reverse;
1920 }
1921
1922 html|*.urlbar-input:-moz-lwtheme::-moz-placeholder,
1923 .searchbar-textbox:-moz-lwtheme > .autocomplete-textbox-container > .textbox-input-box > html|*.textbox-input::-moz-placeholder {
1924   color: #E7ADE7;
1925 }
1926
1927 #urlbar-container {
1928   -moz-box-orient: horizontal;
1929   -moz-box-align: stretch;
1930 }
1931
1932 .urlbar-textbox-container {
1933   -moz-box-align: stretch;
1934 }
1935
1936 .urlbar-input-box {
1937   -moz-margin-start: 0;
1938 }
1939
1940 #urlbar-icons {
1941   -moz-box-align: center;
1942 }
1943
1944 .urlbar-icon {
1945   padding: 0 2px;
1946 }
1947
1948 .searchbar-engine-button,
1949 .search-go-container {
1950   padding: 2px;
1951 }
1952
1953 .search-go-container > .search-go-button {
1954   padding: 0;
1955 }
1956
1957 .urlbar-icon:hover {
1958 }
1959
1960 .urlbar-icon[open="true"],
1961 .urlbar-icon:hover:active {
1962 }
1963
1964 #urlbar-search-footer {
1965   border-top: 1px solid #A09090;
1966 }
1967
1968 #urlbar-search-settings {
1969 }
1970
1971 #urlbar-search-settings:hover {
1972 }
1973
1974 #urlbar-search-settings:hover:active {
1975 }
1976
1977 #urlbar-search-splitter {
1978   min-width: 6px;
1979   -moz-margin-start: -3px;
1980   border: none;
1981   background: transparent;
1982 }
1983
1984 #urlbar-search-splitter + #urlbar-container > #urlbar,
1985 #urlbar-search-splitter + #search-container > #searchbar > .searchbar-textbox {
1986   -moz-margin-start: 0;
1987 }
1988
1989 #urlbar-display-box {
1990 }
1991
1992 .urlbar-display {
1993   -moz-border-end: 1px solid #9C9CFF;
1994   -moz-margin-end: 3px;
1995   margin-top: 0;
1996   margin-bottom: 0;
1997   -moz-margin-start: 0;
1998   color: #8050B0;
1999 }
2000
2001 /* === BEGIN urlbarSearchSuggestionsNotification.inc.css === */
2002
2003 #PopupAutoCompleteRichResult > hbox[anonid="search-suggestions-notification"] {
2004   border-bottom: 1px solid #A09090;
2005   background-color: #000000;
2006   padding: 6px 0;
2007   -moz-padding-start: 44px;
2008   -moz-padding-end: 6px;
2009   background-image: url("chrome://browser/skin/info.svg");
2010   background-clip: padding-box;
2011   background-position: 20px center;
2012   background-repeat: no-repeat;
2013   background-size: 16px 16px;
2014 }
2015
2016 #PopupAutoCompleteRichResult > hbox[anonid="search-suggestions-notification"]:-moz-locale-dir(rtl) {
2017   background-position: right 20px center;
2018 }
2019
2020 #PopupAutoCompleteRichResult > hbox[anonid="search-suggestions-notification"] > description {
2021   margin: 0;
2022   padding: 0;
2023 }
2024
2025 #PopupAutoCompleteRichResult > hbox[anonid="search-suggestions-notification"] > description > label.text-link {
2026   -moz-margin-start: 0;
2027 }
2028
2029 #PopupAutoCompleteRichResult > hbox[anonid="search-suggestions-notification"] > button {
2030   -moz-appearance: none;
2031   -moz-user-focus: ignore;
2032   min-width: 80px;
2033   border-radius: 3px;
2034   padding: 4px 16px;
2035   margin: 0;
2036   -moz-margin-start: 10px;
2037 }
2038
2039 #PopupAutoCompleteRichResult > hbox[anonid="search-suggestions-notification"] > button[anonid="search-suggestions-notification-disable"] {
2040 }
2041
2042 #PopupAutoCompleteRichResult > hbox[anonid="search-suggestions-notification"] > button[anonid="search-suggestions-notification-disable"]:hover {
2043 }
2044
2045 #PopupAutoCompleteRichResult > hbox[anonid="search-suggestions-notification"] > button[anonid="search-suggestions-notification-enable"] {
2046 }
2047
2048 #PopupAutoCompleteRichResult > hbox[anonid="search-suggestions-notification"] > button[anonid="search-suggestions-notification-enable"]:hover {
2049 }
2050
2051 /* === END urlbarSearchSuggestionsNotification.inc.css === */
2052
2053 #search-container {
2054   min-width: calc(54px + 11ch);
2055 }
2056
2057 /* identity box */
2058
2059 #identity-box.verifiedIdentity:not(:-moz-lwtheme):not(:hover):not([open=true]) {
2060   var(--identity-box-verified-background-color);
2061 }
2062
2063 #identity-box:-moz-focusring {
2064   outline: 1px dotted #008484;
2065   outline-offset: -1px;
2066 }
2067
2068 #identity-box.verifiedDomain:-moz-focusring,
2069 #identity-box.verifiedIdentity:-moz-focusring {
2070   outline-color: #000000;
2071 }
2072
2073 /* Location bar dropmarker */
2074
2075 .urlbar-history-dropmarker:not(:hover):not([open="true"]) {
2076   background-color: transparent;
2077 }
2078
2079 #urlbar-container[combined="true"] > #urlbar > .urlbar-history-dropmarker,
2080 #urlbar-wrapper > #urlbar > .urlbar-history-dropmarker,
2081 #urlbar-wrapper > #urlbar > .urlbar-textbox-container > .urlbar-history-dropmarker {
2082   border: none;
2083   border-radius: 0px;
2084 }
2085
2086 .urlbar-history-dropmarker:hover {
2087 }
2088
2089 .urlbar-history-dropmarker:hover:active,
2090 .urlbar-history-dropmarker[open="true"] {
2091 }
2092
2093 /* page proxy icon */
2094
2095 /* === BEGIN identity-block.inc.css === */
2096
2097 #identity-box {
2098   --identity-box-border-color: #A09090;
2099   --identity-box-verified-color: #008484;
2100   /* Default theme does different color per channel, we can't as they do it build-time. */
2101   --identity-box-chrome-color: #9C9CFF;
2102
2103   border-inline-end: 1px solid --identity-box-border-color);
2104   font-size: .9em;
2105   border-radius: 2px;
2106   -moz-margin-end: 3px;
2107 /*  padding: 2px 5px;
2108   margin-inline-end: 4px;*/
2109   overflow: hidden;
2110 }
2111
2112 #identity-box:-moz-locale-dir(ltr) {
2113   border-top-right-radius: 0;
2114   border-bottom-right-radius: 0;
2115 }
2116
2117 #identity-box:-moz-locale-dir(rtl) {
2118   border-top-left-radius: 0;
2119   border-bottom-left-radius: 0;
2120 }
2121
2122 #urlbar[pageproxystate="valid"] > #identity-box.chromeUI {
2123   color: var(--identity-box-chrome-color);
2124   -moz-border-end: 1px solid var(--identity-box-chrome-color);
2125 }
2126
2127 #urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity {
2128   color: var(--identity-box-verified-color);
2129   -moz-border-end: 1px solid var(--identity-box-verified-color);
2130 }
2131
2132 #notification-popup-box:not([hidden]) + #identity-box {
2133   padding-inline-start: 10px !important;
2134   border-radius: 0;
2135 }
2136
2137 window:not([chromehidden~="toolbar"]) #urlbar-wrapper > #urlbar > #identity-box {
2138 /*   border-radius: 0; */
2139   -moz-padding-start: 2px;
2140   -moz-padding-end: 2px;
2141   -moz-margin-end: 1px;
2142 }
2143
2144 window:not([chromehidden~="toolbar"]) #urlbar-wrapper:not([switchingtabs]) > #urlbar > #identity-box {
2145   transition: padding-left, padding-right;
2146 }
2147
2148 window:not([chromehidden~="toolbar"]) #urlbar-wrapper > #forward-button[disabled] + #urlbar >
2149     #notification-popup-box[hidden] + #identity-box {
2150   padding-inline-start: 2px;
2151 }
2152
2153 window:not([chromehidden~="toolbar"]) #urlbar-wrapper:hover:not([switchingtabs]) > #forward-button[disabled] + #urlbar >
2154     #notification-popup-box[hidden] + #identity-box {
2155   /* forward button hiding is delayed when hovered */
2156   transition-delay: 100s;
2157 }
2158
2159 window:not([chromehidden~="toolbar"]) #urlbar-wrapper:not(:hover) > #forward-button[disabled] + #urlbar >
2160     #notification-popup-box[hidden] + #identity-box {
2161   /* when not hovered anymore, trigger a new non-delayed transition to react to the forward button hiding */
2162   padding-inline-start: 2.01px;
2163 }
2164
2165 /* TRACKING PROTECTION ICON */
2166
2167 #tracking-protection-icon {
2168   width: 16px;
2169   height: 16px;
2170   list-style-image: url("chrome://browser/skin/tracking-protection-16.svg");
2171   margin-left: 0;
2172   opacity: 1;
2173 }
2174
2175 #tracking-protection-icon[state="loaded-tracking-content"] {
2176   list-style-image: url("chrome://browser/skin/tracking-protection-disabled-16.svg");
2177 }
2178
2179 #tracking-protection-icon[animate] {
2180   transition: margin-left 200ms ease-out;
2181 }
2182
2183 #tracking-protection-icon:not([state]) {
2184   margin-left: -16px;
2185   pointer-events: none;
2186   opacity: 0;
2187   /* Only animate the shield in, when it disappears hide it immediately. */
2188   transition: none;
2189 }
2190
2191 #urlbar[pageproxystate="invalid"] > #identity-box > #identity-icons > #tracking-protection-icon {
2192   visibility: collapse;
2193 }
2194
2195 /* MAIN IDENTITY ICON */
2196
2197 #page-proxy-favicon {
2198   width: 16px;
2199   height: 16px;
2200   list-style-image: url("chrome://browser/skin/identity-not-secure.svg");
2201   margin: 2px;
2202 }
2203
2204 .chromeUI > #identity-icons > #page-proxy-favicon[pageproxystate="valid"] {
2205   list-style-image: url("chrome://branding/content/identity-icons-brand.svg");
2206 }
2207
2208 .verifiedDomain > #identity-icons > #page-proxy-favicon[pageproxystate="valid"],
2209 .verifiedIdentity > #identity-icons > #page-proxy-favicon[pageproxystate="valid"] {
2210   list-style-image: url("chrome://browser/skin/identity-secure.svg");
2211 }
2212
2213 .mixedActiveContent > #identity-icons > #page-proxy-favicon[pageproxystate="valid"] {
2214   list-style-image: url("chrome://browser/skin/identity-mixed-active-loaded.svg");
2215 }
2216
2217 .weakCipher > #identity-icons > #page-proxy-favicon[pageproxystate="valid"],
2218 .mixedDisplayContent > #identity-icons > #page-proxy-favicon[pageproxystate="valid"],
2219 .mixedDisplayContentLoadedActiveBlocked > #identity-icons > #page-proxy-favicon[pageproxystate="valid"] {
2220   list-style-image: url("chrome://browser/skin/identity-mixed-passive-loaded.svg");
2221 }
2222
2223 .mixedActiveBlocked > #identity-icons > #page-proxy-favicon[pageproxystate="valid"] {
2224   list-style-image: url("chrome://browser/skin/identity-mixed-active-blocked.svg");
2225 }
2226
2227 #page-proxy-favicon[pageproxystate="invalid"] {
2228   opacity: 0.3;
2229 }
2230
2231 #identity-popup.chromeUI > #identity-popup-container > #identity-popup-icon {
2232   list-style-image: url("chrome://branding/content/icon64.png");
2233 }
2234
2235 #identity-popup-brandName {
2236   font-weight: bold;
2237   font-size: 1.25em;
2238   margin-top: .5em;
2239   margin-bottom: .5em;
2240 }
2241
2242 #identity-popup-content-box {
2243   max-width: 50ch;
2244 }
2245
2246 #urlbar[actiontype="searchengine"] > #identity-box > #identity-icons > #page-proxy-favicon {
2247   -moz-image-region: inherit;
2248   list-style-image: url(chrome://global/skin/icons/autocomplete-search.svg#search-icon);
2249   width: 16px;
2250   height: 16px;
2251   opacity: 1;
2252 }
2253
2254 /* MAIN IDENTITY ICON */
2255
2256 #identity-icon {
2257   width: 16px;
2258   height: 16px;
2259   list-style-image: url(chrome://browser/skin/identity-icon.svg#normal);
2260 }
2261
2262 #identity-box:hover > #identity-icon,
2263 #identity-box[open=true] > #identity-icon {
2264   list-style-image: url(chrome://browser/skin/identity-icon.svg#hover);
2265 }
2266
2267 #urlbar[pageproxystate="valid"] > #identity-box.chromeUI > #identity-icon {
2268   list-style-image: url(chrome://branding/content/identity-icons-brand.svg);
2269 }
2270
2271 #urlbar[pageproxystate="invalid"] > #identity-box > #identity-icon {
2272   opacity: 0.3;
2273 }
2274
2275 #urlbar[actiontype="searchengine"] > #identity-box > #identity-icon {
2276   -moz-image-region: inherit;
2277   list-style-image: url(chrome://global/skin/icons/autocomplete-search.svg#search-icon);
2278   width: 16px;
2279   height: 16px;
2280   opacity: 1;
2281 }
2282
2283 /* TRACKING PROTECTION ICON */
2284
2285 #tracking-protection-icon {
2286   width: 16px;
2287   height: 16px;
2288   margin-inline-start: 2px;
2289   margin-inline-end: 0;
2290   list-style-image: url(chrome://browser/skin/tracking-protection-16.svg);
2291   opacity: 1;
2292 }
2293
2294 #tracking-protection-icon[state="loaded-tracking-content"] {
2295   list-style-image: url(chrome://browser/skin/tracking-protection-disabled-16.svg);
2296 }
2297
2298 #tracking-protection-icon[animate] {
2299   transition: margin-left 200ms ease-out, margin-right 200ms ease-out;
2300 }
2301
2302 #tracking-protection-icon:not([state]) {
2303   margin-inline-end: -18px;
2304   pointer-events: none;
2305   opacity: 0;
2306   /* Only animate the shield in, when it disappears hide it immediately. */
2307   transition: none;
2308 }
2309
2310 #urlbar[pageproxystate="invalid"] > #identity-box > #tracking-protection-icon {
2311   visibility: collapse;
2312 }
2313
2314 /* CONNECTION ICON */
2315
2316 #connection-icon {
2317   width: 16px;
2318   height: 16px;
2319   margin-inline-start: 2px;
2320   visibility: collapse;
2321 }
2322
2323 #urlbar[pageproxystate="valid"] > #identity-box.verifiedDomain > #connection-icon,
2324 #urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity > #connection-icon {
2325   list-style-image: url(chrome://browser/skin/identity-secure.svg);
2326   visibility: visible;
2327 }
2328
2329 #urlbar[pageproxystate="valid"] > #identity-box.insecureLoginForms > #connection-icon,
2330 #urlbar[pageproxystate="valid"] > #identity-box.mixedActiveContent > #connection-icon {
2331   list-style-image: url(chrome://browser/skin/identity-mixed-active-loaded.svg);
2332   visibility: visible;
2333 }
2334
2335 #urlbar[pageproxystate="valid"] > #identity-box.weakCipher > #connection-icon,
2336 #urlbar[pageproxystate="valid"] > #identity-box.mixedDisplayContent > #connection-icon,
2337 #urlbar[pageproxystate="valid"] > #identity-box.mixedDisplayContentLoadedActiveBlocked > #connection-icon {
2338   list-style-image: url(chrome://browser/skin/identity-mixed-passive-loaded.svg);
2339   visibility: visible;
2340 }
2341
2342 #urlbar[pageproxystate="valid"] > #identity-box.mixedActiveBlocked > #connection-icon {
2343   list-style-image: url(chrome://browser/skin/identity-mixed-active-blocked.svg);
2344   visibility: visible;
2345 }
2346
2347 /* === END identity-block.inc.css === */
2348
2349 #page-proxy-favicon {
2350   -moz-image-region: rect(0, 16px, 16px, 0);
2351 }
2352
2353 window:not([chromehidden~="toolbar"]) #urlbar-wrapper > #urlbar > #identity-box > #page-proxy-favicon {
2354 /*  -moz-margin-end: 1px;*/
2355 }
2356
2357 #identity-box:hover > #page-proxy-favicon {
2358   -moz-image-region: rect(0, 32px, 16px, 16px);
2359 }
2360
2361 #identity-box:hover:active > #page-proxy-favicon,
2362 #identity-box[open=true] > #page-proxy-favicon {
2363   -moz-image-region: rect(0, 48px, 16px, 32px);
2364 }
2365
2366 #identity-box:hover {
2367   background-color: #FFCF00;
2368   color: #000000;
2369 }
2370
2371 #identity-box:hover:active,
2372 #identity-box[open=true] {
2373   background-color: #FF9F00;
2374   color: #000000;
2375 }
2376
2377 #urlbar[pageproxystate="valid"] > #identity-box.chromeUI:hover,
2378 #urlbar[pageproxystate="valid"] > #identity-box.chromeUI:hover:active,
2379 #urlbar[pageproxystate="valid"] > #identity-box.chromeUI[open=true] {
2380   background-color: #9C9CFF;
2381   color: #000000;
2382 }
2383
2384 #urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity:hover,
2385 #urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity:hover:active,
2386 #urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity[open=true] {
2387   background-color: #008484;
2388   color: #000000;
2389 }
2390
2391 /* autocomplete */
2392
2393 #treecolAutoCompleteImage {
2394   max-width: 36px;
2395 }
2396
2397 .ac-result-type-bookmark,
2398 .autocomplete-treebody::-moz-tree-image(bookmark, treecolAutoCompleteImage) {
2399   list-style-image: url("chrome://browser/skin/places/bookmark.png");
2400   -moz-image-region: rect(0px 16px 16px 0px);
2401   width: 16px;
2402   height: 16px;
2403 }
2404
2405 richlistitem[selected="true"][current="true"] > .ac-title-box > .ac-result-type-bookmark,
2406 .autocomplete-treebody::-moz-tree-image(selected, current, bookmark, treecolAutoCompleteImage) {
2407 /*  -moz-image-region: rect(0px 48px 16px 32px);*/
2408 }
2409
2410 .ac-result-type-keyword,
2411 .autocomplete-treebody::-moz-tree-image(keyword, treecolAutoCompleteImage),
2412 richlistitem[type~="action"][actiontype="searchengine"] > .ac-title-box > .ac-site-icon {
2413   list-style-image: url("chrome://global/skin/icons/autocomplete-search.svg#search-icon");
2414   width: 16px;
2415   height: 16px;
2416 }
2417
2418   .ac-result-type-keyword[selected="true"],
2419   .autocomplete-treebody::-moz-tree-image(keyword, treecolAutoCompleteImage, selected),
2420   richlistitem[type~="action"][actiontype="searchengine"][selected="true"] > .ac-title-box > .ac-site-icon {
2421     list-style-image: url("chrome://global/skin/icons/autocomplete-search.svg#search-icon-inverted");
2422   }
2423
2424 .ac-result-type-tag,
2425 .autocomplete-treebody::-moz-tree-image(tag, treecolAutoCompleteImage) {
2426   list-style-image: url("chrome://mozapps/skin/places/tagContainerIcon.png");
2427   width: 16px;
2428   height: 16px;
2429 }
2430
2431 .ac-comment,
2432 #PopupAutoCompleteRichResult > hbox[anonid="search-suggestions-notification"] > description,
2433 #PopupAutoCompleteRichResult > hbox[anonid="search-suggestions-notification"] > button {
2434   font-size: 1.05em;
2435 }
2436
2437 .ac-extra > .ac-comment,
2438 .ac-url-text,
2439 .ac-action-text {
2440   font-size: 1em;
2441 }
2442
2443 .ac-url-text,
2444 .ac-action-text {
2445   color: #9C9CFF;
2446 }
2447
2448 richlistitem[type~="action"][actiontype="switchtab"] > .ac-url-box > .ac-action-icon {
2449   list-style-image: url("chrome://browser/skin/actionicon-tab.png");
2450   -moz-image-region: rect(0, 16px, 16px, 0);
2451   padding: 0 3px;
2452   width: 22px;
2453   height: 16px;
2454 }
2455
2456 @media (min-resolution: 1.1dppx) {
2457   richlistitem[type~="action"][actiontype="switchtab"] > .ac-url-box > .ac-action-icon {
2458     list-style-image: url("chrome://browser/skin/actionicon-tab@2x.png");
2459     -moz-image-region: rect(0, 32px, 32px, 0);
2460   }
2461 }
2462
2463 richlistitem[type~="action"][actiontype="switchtab"][selected="true"] > .ac-url-box > .ac-action-icon {
2464   -moz-image-region: rect(16px, 16px, 32px, 0);
2465 }
2466
2467 .autocomplete-treebody::-moz-tree-cell-text(treecolAutoCompleteComment) {
2468   color: #8050B0;
2469 }
2470
2471 .ac-comment[selected="true"],
2472 .ac-url-text[selected="true"],
2473 .ac-action-text[selected="true"] {
2474   color: inherit !important;
2475 }
2476
2477 .autocomplete-treebody::-moz-tree-cell-text(suggesthint, treecolAutoCompleteComment),
2478 .autocomplete-treebody::-moz-tree-cell-text(suggestfirst, treecolAutoCompleteComment)
2479 {
2480   color: #8050B0;
2481   font-size: smaller;
2482 }
2483
2484 .autocomplete-treebody::-moz-tree-cell(suggesthint) {
2485   border-top: 1px solid #9C9CFF;
2486 }
2487
2488 /* combined go/reload/stop button in location bar */
2489
2490 #urlbar-go-button,
2491 #urlbar-reload-button,
2492 #urlbar-stop-button {
2493   border-style: none;
2494   list-style-image: url("chrome://browser/skin/reload-stop-goFx.png");
2495 /*  padding: 0 9px;*/
2496   margin-inline-start: 2px;
2497   border-inline-start: 1px solid var(--urlbar-separator-color);
2498   border-image: linear-gradient(transparent 15%,
2499                                 var(--urlbar-separator-color) 15%,
2500                                 var(--urlbar-separator-color) 85%,
2501                                 transparent 85%);
2502   border-image-slice: 1;
2503 }
2504
2505 #urlbar:-moz-locale-dir(ltr) > toolbarbutton {
2506   border-top-left-radius: 0px;
2507   border-bottom-left-radius: 0px;
2508 }
2509
2510 #urlbar:-moz-locale-dir(rtl) > toolbarbutton {
2511   border-top-right-radius: 0px;
2512   border-bottom-right-radius: 0px;
2513 }
2514
2515 #urlbar > toolbarbutton:not([disabled=true]):active:hover,
2516 #urlbar-reload-button:not(:hover) {
2517   -moz-border-start-style: none;
2518   -moz-padding-start: 3px;
2519 }
2520
2521 #urlbar-reload-button {
2522   -moz-image-region: rect(0px, 14px, 14px, 0px);
2523 }
2524
2525 #urlbar-reload-button[disabled=true] {
2526   -moz-image-region: rect(28px, 14px, 42px, 0px);
2527 }
2528
2529 #urlbar-reload-button:not([disabled=true]):hover {
2530   -moz-image-region: rect(14px, 14px, 28px, 0px);
2531 }
2532
2533 #urlbar-reload-button:-moz-locale-dir(rtl) > .toolbarbutton-icon {
2534   transform: scaleX(-1);
2535 }
2536
2537 #urlbar-go-button {
2538   -moz-image-region: rect(0, 42px, 14px, 28px);
2539 }
2540
2541 #urlbar-go-button:hover {
2542   -moz-image-region: rect(14px, 42px, 28px, 28px);
2543 }
2544
2545 #urlbar-go-button:-moz-locale-dir(rtl) > .toolbarbutton-icon {
2546   transform: scaleX(-1);
2547 }
2548
2549 #urlbar-stop-button {
2550   -moz-image-region: rect(0px, 28px, 14px, 14px);
2551 }
2552
2553 #urlbar-stop-button:hover {
2554   -moz-image-region: rect(14px, 28px, 28px, 14px);
2555 }
2556
2557 @media (min-resolution: 1.1dppx) {
2558   #urlbar-go-button,
2559   #urlbar-reload-button,
2560   #urlbar-stop-button {
2561     list-style-image: url("chrome://browser/skin/reload-stop-go@2x.png");
2562   }
2563
2564   #urlbar-go-button > .toolbarbutton-icon,
2565   #urlbar-reload-button > .toolbarbutton-icon,
2566   #urlbar-stop-button > .toolbarbutton-icon {
2567     width: 14px;
2568   }
2569
2570   #urlbar-go-button {
2571     -moz-image-region: rect(0, 84px, 28px, 56px);
2572   }
2573
2574   #urlbar-go-button:hover {
2575     -moz-image-region: rect(28px, 84px, 56px, 56px);
2576   }
2577
2578   #urlbar-go-button:hover:active {
2579     -moz-image-region: rect(56px, 84px, 84px, 56px);
2580   }
2581
2582   #urlbar-reload-button {
2583     -moz-image-region: rect(0, 28px, 28px, 0);
2584   }
2585
2586   #urlbar-reload-button:not([disabled]):hover {
2587     -moz-image-region: rect(28px, 28px, 56px, 0);
2588   }
2589
2590   #urlbar-reload-button:not([disabled]):hover:active {
2591     -moz-image-region: rect(56px, 28px, 84px, 0);
2592   }
2593
2594   #urlbar-stop-button {
2595     -moz-image-region: rect(0, 56px, 28px, 28px);
2596   }
2597
2598   #urlbar-stop-button:not([disabled]):hover {
2599     -moz-image-region: rect(28px, 56px, 56px, 28px);
2600   }
2601
2602   #urlbar-stop-button:hover:active {
2603     -moz-image-region: rect(56px, 56px, 84px, 28px);
2604   }
2605 }
2606
2607 /* popup blocker button */
2608
2609 #page-report-button {
2610   list-style-image: url("chrome://browser/skin/urlbar-popup-blocked.png");
2611   -moz-image-region: rect(0, 16px, 16px, 0);
2612 }
2613
2614 #page-report-button:hover ,
2615 #page-report-button:hover:active,
2616 #page-report-button[open="true"] {
2617   -moz-image-region: rect(0, 32px, 16px, 16px);
2618 }
2619
2620 /* Reader mode button */
2621
2622 #reader-mode-button {
2623   list-style-image: url("chrome://browser/skin/readerMode.svg");
2624   -moz-image-region: rect(0, 16px, 16px, 0);
2625 }
2626
2627 #reader-mode-button:hover,
2628 #reader-mode-button[readeractive]:hover {
2629   -moz-image-region: rect(0, 32px, 16px, 16px);
2630 }
2631
2632 #reader-mode-button:hover:active,
2633 #reader-mode-button[readeractive] {
2634   -moz-image-region: rect(0, 48px, 16px, 32px);
2635 }
2636
2637 /* social share panel */
2638
2639 .social-share-frame {
2640   min-width: 756px;
2641   height: 150px;
2642 }
2643
2644 #share-container {
2645   min-width: 756px;
2646   background-color: white;
2647   background-repeat: no-repeat;
2648   background-position: center center;
2649 }
2650 #share-container[loading] {
2651   background-image: url(chrome://browser/skin/tabbrowser/pendingpaint.png);
2652 }
2653 #share-container > browser {
2654   transition: opacity 150ms ease-in-out;
2655   opacity: 1;
2656 }
2657 #share-container[loading] > browser {
2658   opacity: 0;
2659 }
2660
2661 .social-share-toolbar {
2662   border-bottom: 1px solid #9C9CFF;
2663   padding: 2px;
2664 }
2665
2666 #social-share-provider-buttons {
2667   padding: 0;
2668   margin: 0;
2669 }
2670
2671 .share-provider-button {
2672   padding: 5px;
2673   margin: 2px;
2674 }
2675
2676 .share-provider-button > .toolbarbutton-text {
2677   display: none;
2678 }
2679 .share-provider-button > .toolbarbutton-icon {
2680   width: 16px;
2681   min-height: 16px;
2682   max-height: 16px;
2683 }
2684
2685 /* fixup corners for share panel */
2686 .social-panel > .social-panel-frame {
2687   border-radius: inherit;
2688 }
2689
2690 #social-share-panel {
2691   min-height: 100px;
2692   min-width: 766px;
2693 }
2694
2695 #share-container,
2696 .social-share-frame {
2697   border-top-left-radius: 0;
2698   border-bottom-left-radius: inherit;
2699   border-top-right-radius: 0;
2700   border-bottom-right-radius: inherit;
2701 }
2702
2703 #social-share-panel > .social-share-toolbar {
2704   border-top-left-radius: inherit;
2705   border-top-right-radius: inherit;
2706 }
2707
2708 #social-share-provider-buttons {
2709   border-top-left-radius: inherit;
2710   border-top-right-radius: inherit;
2711 }
2712
2713 /* social recommending panel */
2714
2715 #social-mark-button {
2716   -moz-image-region: rect(0, 16px, 16px, 0);
2717 }
2718
2719 /* bookmarks menu-button */
2720
2721 #bookmarks-menu-button.bookmark-item {
2722   list-style-image: url("chrome://browser/skin/places/bookmark.png");
2723   -moz-image-region: rect(0px 16px 16px 0px);
2724 }
2725
2726 #bookmarks-menu-button.bookmark-item[starred] {
2727   -moz-image-region: rect(0px 32px 16px 16px);
2728 }
2729
2730 #bookmarks-menu-button.bookmark-item > .toolbarbutton-menubutton-button > .toolbarbutton-icon {
2731   -moz-margin-start: 5px;
2732 }
2733
2734 #bookmarks-menu-button[cui-areatype="toolbar"]:not(.bookmark-item):not([overflowedItem=true]) > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
2735   padding-top: 2px;
2736   padding-bottom: 2px;
2737 }
2738
2739 #BMB_bookmarksPopup[side="top"],
2740 #BMB_bookmarksPopup[side="bottom"] {
2741   margin-left: -20px;
2742   margin-right: -20px;
2743 }
2744
2745 #BMB_bookmarksPopup[side="left"],
2746 #BMB_bookmarksPopup[side="right"] {
2747   margin-top: -20px;
2748   margin-bottom: -20px;
2749 }
2750
2751 /* bookmarking panel */
2752
2753 #editBookmarkPanelStarIcon {
2754   list-style-image: url("chrome://browser/skin/places/starred48.png");
2755   width: 48px;
2756   height: 48px;
2757 }
2758
2759 #editBookmarkPanelStarIcon[unstarred] {
2760   list-style-image: url("chrome://browser/skin/places/unstarred48.png");
2761 }
2762
2763 #editBookmarkPanelTitle {
2764   font-size: 130%;
2765 }
2766
2767 #editBookmarkPanelHeader,
2768 #editBookmarkPanelContent {
2769   margin-bottom: .5em;
2770 }
2771
2772 /* Implements editBookmarkPanel resizing on folderTree un-collapse. */
2773 #editBMPanel_folderTree {
2774   min-width: 27em;
2775 }
2776
2777 .panel-promo-box {
2778   margin: 5px 0 -6px;
2779   padding: 5px 0;
2780   border-top: 1px solid #9C9CFF;
2781   border-bottom-left-radius: 5px;
2782   border-bottom-right-radius: 5px;
2783 }
2784
2785 .panel-promo-icon {
2786   list-style-image: url("chrome://browser/skin/sync-notification-24.png");
2787   -moz-margin-end: 10px;
2788   vertical-align: middle;
2789 }
2790
2791 .panel-promo-closebutton {
2792   list-style-image: url("chrome://global/skin/icons/close-button.gif");
2793   -moz-margin-end: -3px;
2794   margin-top: -3px;
2795 }
2796
2797 .panel-promo-closebutton:hover {
2798   list-style-image: url("chrome://global/skin/icons/close-button-hover.gif");
2799 }
2800
2801 .panel-promo-closebutton:hover:active {
2802   list-style-image: url("chrome://global/skin/icons/close-button-hover.gif");
2803 }
2804
2805 .panel-promo-closebutton > .toolbarbutton-text {
2806   padding: 0;
2807 }
2808
2809 /* ::::: content area ::::: */
2810
2811 #sidebar-box {
2812   background-color: #9C9CFF;
2813   color: #000000;
2814 }
2815
2816 #sidebar {
2817   background-color: #000000;
2818 }
2819
2820 #sidebar-splitter {
2821   -moz-margin-start: 0;
2822 }
2823
2824 #sidebar-header {
2825   color: #000000;
2826   padding: 2px;
2827 }
2828
2829 #sidebar-title {
2830   -moz-padding-start: 0px;
2831 }
2832
2833 #sidebar-header > .close-icon {
2834 /*  padding: 4px 2px;
2835   margin: 0;
2836   border: none;*/
2837   list-style-image: url("chrome://global/skin/icons/close-button.gif");
2838 }
2839
2840 #sidebar-header > .close-icon:hover,
2841 #sidebar-header > .close-icon:hover:active {
2842   list-style-image: url("chrome://global/skin/icons/close-button-hover.gif");
2843 }
2844
2845 #sidebar-splitter:-moz-locale-dir(ltr),
2846 #sidebar:-moz-locale-dir(ltr) {
2847   border-radius: 0 5px 0 0;
2848 }
2849
2850 #sidebar-splitter:-moz-locale-dir(rtl),
2851 #sidebar:-moz-locale-dir(rtl) {
2852   border-radius: 5px 0 0 0;
2853 }
2854
2855 .browserContainer > findbar {
2856 /*
2857   background-color: -moz-dialog;
2858   color: -moz-DialogText;
2859 */
2860 }
2861
2862 /* Tabstrip */
2863
2864 #TabsToolbar {
2865   min-height: 0;
2866   padding: 0;
2867   -moz-binding: url("chrome://browser/content/customizableui/toolbar.xml#toolbar");
2868 }
2869
2870 #TabsToolbar .toolbar-holder {
2871   background-color: #000000; /* correct effect of being an actual toolbar */
2872 }
2873
2874 #main-window[disablechrome] #TabsToolbar,
2875 #TabsToolbar[tabsontop="false"] {
2876   border-bottom: 1px solid #008484;
2877 }
2878
2879 /* === BEGIN tabs.inc.css === */
2880
2881 :root {
2882   /* --tab-toolbar-navbar-overlap: 1px; */
2883   /* --tab-min-height: 31px; */
2884   /* --tab-curve-width: 30px; */
2885   /* --tab-curve-half-width: 15px; */
2886 }
2887
2888 .tabbrowser-tab,
2889 .tabs-newtab-button,
2890 #TabsToolbar > #new-tab-button {
2891   margin-top: 0px;
2892 }
2893
2894 .tabbrowser-tab {
2895   padding: 1px 4px 2px;
2896 }
2897
2898 .tabbrowser-tab:first-of-type {
2899   -moz-margin-start: 2px;
2900 }
2901
2902 .tabs-newtab-button,
2903 #TabsToolbar > #new-tab-button {
2904   border-radius: 8px 8px 0px 0px;
2905   -moz-margin-start: 0;
2906 }
2907
2908 .tabs-newtab-button:not(:hover),
2909 #TabsToolbar > #new-tab-button:not(:hover) {
2910   background-color: #C09070;
2911 }
2912
2913 /* The selected tab should appear above adjacent tabs, .tabs-newtab-button and the highlight of #nav-bar */
2914 .tabbrowser-tab[visuallyselected=true] {
2915 /*  position: relative;
2916   z-index: 2;*/
2917 }
2918
2919 .tab-background-middle {
2920 }
2921
2922 .tab-content {
2923 }
2924
2925 .tab-content[pinned] {
2926 }
2927
2928 .tab-throbber,
2929 .tab-icon-image,
2930 .tab-icon-sound,
2931 .tab-close-button {
2932 }
2933
2934 .tab-throbber,
2935 .tab-icon-image {
2936   height: 16px;
2937   width: 16px;
2938   -moz-margin-end: 3px;
2939 }
2940
2941 .tab-icon-image {
2942   list-style-image: url("chrome://mozapps/skin/places/defaultFavicon.png");
2943 }
2944
2945 .tab-icon-overlay {
2946   width: 16px;
2947   height: 16px;
2948  /* margin-top: -12px; */
2949   -moz-margin-start: -16px;
2950   display: none;
2951   position: relative;
2952 }
2953
2954 .tab-icon-overlay[crashed] {
2955   list-style-image: url("chrome://browser/skin/tabbrowser/crashed.svg");
2956 }
2957
2958 .tab-icon-overlay[crashed],
2959 .tab-icon-overlay[soundplaying][pinned],
2960 .tab-icon-overlay[muted][pinned]:not([crashed]) {
2961   display: -moz-box;
2962 }
2963
2964 .tab-icon-overlay[soundplaying][pinned],
2965 .tab-icon-overlay[muted][pinned]:not([crashed]) {
2966   border-radius: 8px;
2967 }
2968
2969 .tab-icon-overlay[soundplaying][pinned]:hover,
2970 .tab-icon-overlay[muted][pinned]:hover {
2971   background-color: #FFCF00;
2972 }
2973
2974 .tab-icon-overlay[soundplaying][pinned] {
2975   display: -moz-box;
2976   list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio-small.svg#tab-audio");
2977 }
2978
2979 .tab-icon-overlay[soundplaying][pinned]:hover {
2980   list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio-small.svg#tab-audio-hover");
2981 }
2982
2983 .tab-icon-overlay[soundplaying][pinned]:hover:active {
2984   list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio-small.svg#tab-audio-pressed");
2985 }
2986
2987 .tab-icon-overlay[muted][pinned]:not([crashed]) {
2988   list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio-small.svg#tab-audio-muted");
2989 }
2990
2991 .tab-icon-overlay[muted][pinned]:not([crashed]):hover {
2992   list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio-small.svg#tab-audio-muted-hover");
2993 }
2994
2995 .tab-icon-overlay[muted][pinned]:not([crashed]):hover:active {
2996   list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio-small.svg#tab-audio-muted-pressed");
2997 }
2998
2999 #TabsToolbar[brighttext] .tab-icon-overlay[soundplaying][pinned] {
3000   list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio-small.svg#tab-audio-dark");
3001 }
3002
3003 #TabsToolbar[brighttext] .tab-icon-overlay[soundplaying][pinned]:hover {
3004   list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio-small.svg#tab-audio-hover");
3005 }
3006
3007 #TabsToolbar[brighttext] .tab-icon-overlay[soundplaying][pinned]:hover:active {
3008   list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio-small.svg#tab-audio-pressed");
3009 }
3010
3011 #TabsToolbar[brighttext] .tab-icon-overlay[muted][pinned]:not([crashed]) {
3012   list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio-small.svg#tab-audio-muted");
3013 }
3014
3015 #TabsToolbar[brighttext] .tab-icon-overlay[muted][pinned]:not([crashed]):hover {
3016   list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio-small.svg#tab-audio-muted-hover");
3017 }
3018
3019 #TabsToolbar[brighttext] .tab-icon-overlay[muted][pinned]:not([crashed]):hover:active {
3020   list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio-small.svg#tab-audio-muted-pressed");
3021 }
3022
3023 .tab-throbber[busy] {
3024   list-style-image: url("chrome://communicator/skin/brand/throbber16-anim-connect.png");
3025 }
3026
3027 .tab-throbber[progress] {
3028   list-style-image: url("chrome://communicator/skin/brand/throbber16-anim.png");
3029 }
3030
3031 .tab-throbber[pinned],
3032 .tab-icon-image[pinned] {
3033   -moz-margin-start: 2px;
3034   -moz-margin-end: 2px;
3035 }
3036
3037 .tab-label {
3038   /* this needs to add up to the 16px of the icon image */
3039   height: 12px;
3040   margin-top: 2px !important;
3041   margin-bottom: 2px !important;
3042 }
3043
3044 .tab-icon-sound {
3045   -moz-margin-start: 4px;
3046   width: 16px;
3047   height: 16px;
3048   padding: 0;
3049 }
3050
3051 .tab-icon-sound:not([soundplaying]):not([muted]),
3052 .tab-icon-sound[pinned] {
3053   display: none;
3054 }
3055
3056 .tab-icon-sound[muted] {
3057   list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted");
3058 }
3059
3060 .tab-icon-sound[muted]:hover {
3061   list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted-hover");
3062 }
3063
3064 .tab-icon-sound[muted]:hover:active {
3065   list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted-pressed");
3066 }
3067
3068 .tab-icon-sound[soundplaying] {
3069   list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio");
3070 }
3071
3072 .tab-icon-sound[soundplaying]:hover {
3073   list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-hover");
3074 }
3075
3076 .tab-icon-sound[soundplaying]:hover:active {
3077   list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-pressed");
3078 }
3079
3080 #TabsToolbar[brighttext] .tab-icon-sound[soundplaying] {
3081   list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-dark");
3082 }
3083
3084 #TabsToolbar[brighttext] .tab-icon-sound[soundplaying]:hover {
3085   list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-dark-hover");
3086 }
3087
3088 #TabsToolbar[brighttext] .tab-icon-sound[soundplaying]:hover:active {
3089   list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-dark-pressed");
3090 }
3091
3092 #TabsToolbar[brighttext] .tab-icon-sound[muted] {
3093   list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted-dark");
3094 }
3095
3096 #TabsToolbar[brighttext] .tab-icon-sound[muted]:hover {
3097   list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted-dark-hover");
3098 }
3099
3100 #TabsToolbar[brighttext] .tab-icon-sound[muted]:hover:active {
3101   list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio.svg#tab-audio-muted-dark-pressed");
3102 }
3103
3104 .tab-close-button {
3105   margin-top: 1px;
3106   padding: 0;
3107 }
3108
3109 .tab-background,
3110 .tabs-newtab-button {
3111   /* overlap the tab curves */
3112 }
3113
3114 .tabbrowser-arrowscrollbox > .arrowscrollbox-scrollbox {
3115 }
3116
3117 /* Tab Overflow */
3118 .tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-start-indicator:not([collapsed]),
3119 .tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-end-indicator:not([collapsed]) {
3120 }
3121
3122 .tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-start-indicator:-moz-locale-dir(rtl),
3123 .tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-end-indicator:-moz-locale-dir(ltr) {
3124 }
3125
3126 .tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-start-indicator:not([collapsed]) {
3127 }
3128
3129 .tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-end-indicator:not([collapsed]) {
3130 }
3131
3132 .tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-start-indicator[collapsed],
3133 .tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-end-indicator[collapsed] {
3134 }
3135
3136 .tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-start-indicator,
3137 .tabbrowser-arrowscrollbox > .arrowscrollbox-overflow-end-indicator {
3138 }
3139
3140 .tab-background-start[visuallyselected=true]::after,
3141 .tab-background-start[visuallyselected=true]::before,
3142 .tab-background-start,
3143 .tab-background-end,
3144 .tab-background-end[visuallyselected=true]::after,
3145 .tab-background-end[visuallyselected=true]::before {
3146 }
3147
3148 .tabbrowser-tab:not([visuallyselected=true]),
3149 .tabbrowser-tab:-moz-lwtheme {
3150 }
3151
3152 /* tabbrowser-tab focus ring */
3153 .tabbrowser-tab:focus {
3154   outline: 1px dotted;
3155 }
3156
3157 /* Selected tab */
3158
3159 .tabbrowser-tab[visuallyselected="true"] {
3160 }
3161
3162 /* End selected tab */
3163
3164 /* Tab pointer-events */
3165 /*
3166 .tabbrowser-tab {
3167   pointer-events: none;
3168 }
3169
3170 .tab-background-middle,
3171 .tabs-newtab-button,
3172 .tab-icon-overlay[soundplaying],
3173 .tab-icon-overlay[muted]:not([crashed]),
3174 .tab-icon-sound,
3175 .tab-close-button {
3176   pointer-events: auto;
3177 }
3178 */
3179 /* Pinned tabs */
3180
3181 .tabbrowser-tab[pinned][titlechanged]:not([selected="true"]) {
3182   background-color: #E7ADE7;
3183 }
3184
3185 .tabbrowser-tab[pinned][titlechanged]:not([selected="true"]):hover {
3186   background-color: #3333FF;
3187   color: #000000;
3188 }
3189
3190 /* New tab button */
3191
3192 .tabs-newtab-button {
3193   width: 28px;
3194   /* width: calc(36px + var(--tab-curve-width)); */
3195 }
3196
3197 /* === END tabs.inc.css === */
3198
3199 /* Background tabs:
3200  *
3201  * Decrease the height of the hoverable region of background tabs whenever the tabs are at the top
3202  * of the window (e.g. no menubar, tabs in titlebar, etc.) to make it easier to drag the window by
3203  * the titlebar. We don't need this in fullscreen since window dragging is not an issue there.
3204  */
3205 #main-window[tabsintitlebar][sizemode=normal] #toolbar-menubar[autohide="true"][inactive] + #TabsToolbar .tab-background-middle:not([visuallyselected=true]) {
3206 /*  clip-path: url(chrome://browser/content/browser.xul#tab-hover-clip-path);*/
3207 }
3208
3209 /* Tab DnD indicator */
3210 .tab-drop-indicator {
3211   list-style-image: url("chrome://browser/skin/tabbrowser/tabDragIndicator.png");
3212   margin-bottom: -11px;
3213 }
3214
3215 /* Tab close button */
3216 .tab-close-button {
3217   list-style-image: url("chrome://global/skin/icons/close-button.gif");
3218 }
3219
3220 .tab-close-button:hover,
3221 .tab-close-button:hover[selected="true"] {
3222   list-style-image: url("chrome://global/skin/icons/close-button-hover.gif");
3223 }
3224
3225 .tab-close-button:hover:active,
3226 .tab-close-button:hover:active[selected="true"] {
3227   list-style-image: url("chrome://global/skin/icons/close-button-hover.gif");
3228 }
3229
3230 /* Tab scrollbox arrow, tabstrip new tab and all-tabs buttons */
3231
3232 .tabbrowser-arrowscrollbox > .scrollbutton-up,
3233 .tabbrowser-arrowscrollbox > .scrollbutton-down {
3234   margin: 0;
3235   padding-top: 0;
3236   padding-bottom: 0;
3237   background-origin: border-box;
3238 }
3239
3240 #main-window[tabsintitlebar]:not([inFullscreen]) .tabbrowser-arrowscrollbox > .scrollbutton-up:-moz-system-metric(windows-classic):not(:-moz-lwtheme),
3241 #main-window[tabsintitlebar]:not([inFullscreen]) .tabbrowser-arrowscrollbox > .scrollbutton-down:-moz-system-metric(windows-classic):not(:-moz-lwtheme),
3242 .tabbrowser-arrowscrollbox > .scrollbutton-up:-moz-lwtheme-brighttext,
3243 .tabbrowser-arrowscrollbox > .scrollbutton-down:-moz-lwtheme-brighttext {
3244  }
3245
3246 .tabbrowser-arrowscrollbox > .scrollbutton-up[disabled],
3247 .tabbrowser-arrowscrollbox > .scrollbutton-down[disabled] {
3248  }
3249
3250 .tabbrowser-arrowscrollbox > .scrollbutton-up:-moz-locale-dir(rtl),
3251 .tabbrowser-arrowscrollbox > .scrollbutton-down:-moz-locale-dir(ltr) {
3252 /*  transform: scaleX(-1);*/
3253 }
3254
3255 .tabbrowser-arrowscrollbox > .scrollbutton-down {
3256   transition: 1s background-color ease-out;
3257 }
3258
3259 .tabbrowser-arrowscrollbox > .scrollbutton-down[notifybgtab] {
3260   background-color: #008484;
3261 }
3262
3263 .tabbrowser-arrowscrollbox > .scrollbutton-up:not([disabled]),
3264 .tabbrowser-arrowscrollbox > .scrollbutton-down:not([disabled]) {
3265 /*  border-width: 0 2px 0 0;
3266   border-style: solid;
3267   border-image: url("chrome://browser/skin/tabbrowser/tab-overflow-border.png") 0 2 0 2 fill;*/
3268 }
3269
3270 .tabs-newtab-button > .toolbarbutton-icon {
3271   margin-top: -1px;
3272   margin-bottom: -1px;
3273 }
3274
3275 .tabs-newtab-button,
3276 #TabsToolbar > #new-tab-button,
3277 #TabsToolbar > toolbarpaletteitem > #new-tab-button,
3278 #TabsToolbar > toolbarpaletteitem > #new-tab-button[cui-areatype="toolbar"] {
3279   list-style-image: url("chrome://browser/skin/tabbrowser/newtabFx.png");
3280   -moz-image-region: rect(0, 16px, 18px, 0);
3281 }
3282
3283 .tabs-newtab-button,
3284 .tabs-newtab-button:hover,
3285 #TabsToolbar > #new-tab-button,
3286 #TabsToolbar > #new-tab-button:hover {
3287   -moz-image-region: rect(0, 32px, 18px, 16px);
3288 }
3289
3290 #main-window[tabsintitlebar]:not([inFullscreen]) .tabs-newtab-button:-moz-system-metric(windows-classic):not(:-moz-lwtheme),
3291 #main-window[tabsintitlebar]:not([inFullscreen]) #TabsToolbar > #new-tab-button:-moz-system-metric(windows-classic):not(:-moz-lwtheme),
3292 #main-window[tabsintitlebar]:not([inFullscreen]) #TabsToolbar > toolbarpaletteitem > #new-tab-button:-moz-system-metric(windows-classic):not(:-moz-lwtheme),
3293 .tabs-newtab-button:-moz-lwtheme-brighttext,
3294 #TabsToolbar > #new-tab-button:-moz-lwtheme-brighttext,
3295 #TabsToolbar > toolbarpaletteitem > #new-tab-button:-moz-lwtheme-brighttext {
3296 }
3297
3298 #TabsToolbar > #new-tab-button {
3299   width: 26px;
3300 }
3301
3302 #alltabs-button {
3303   list-style-image: url("chrome://global/skin/arrow/arrow-down.gif");
3304 }
3305
3306 #alltabs-button:hover,
3307 #alltabs-button:hover:active,
3308 #alltabs-button[open="true"] {
3309   list-style-image: url("chrome://global/skin/arrow/arrow-down-hover.gif");
3310 }
3311
3312 #main-window[tabsintitlebar]:not([inFullscreen]) #alltabs-button:-moz-system-metric(windows-classic):not(:-moz-lwtheme),
3313 #alltabs-button:-moz-lwtheme-brighttext {
3314 }
3315
3316 #alltabs-button > .toolbarbutton-icon {
3317 /*  margin: 0 2px;*/
3318 }
3319
3320 #alltabs-button > .toolbarbutton-menu-dropmarker {
3321   display: none;
3322 }
3323
3324 /* All tabs menupopup */
3325 .alltabs-item > .menu-iconic-left > .menu-iconic-icon {
3326   list-style-image: url("chrome://mozapps/skin/places/defaultFavicon.png");
3327   -moz-image-region: auto;
3328 }
3329
3330 .alltabs-item[selected="true"] {
3331   font-weight: bold;
3332 }
3333
3334 .alltabs-item[busy] > .menu-iconic-left > .menu-iconic-icon {
3335   list-style-image: url("chrome://global/skin/icons/loading.gif");
3336 }
3337
3338 .alltabs-item[tabIsVisible]:not([_moz-menuactive="true"]) {
3339   background-color: #402800;
3340 }
3341
3342 toolbarbutton.chevron {
3343   list-style-image: url("chrome://global/skin/toolbar/chevron.gif") !important;
3344 }
3345
3346 toolbarbutton.chevron:hover {
3347   list-style-image: url("chrome://global/skin/toolbar/chevron-hover.gif") !important;
3348 }
3349 /*
3350 toolbar[brighttext] toolbarbutton.chevron {
3351   list-style-image: url("chrome://global/skin/toolbar/chevron-inverted.png") !important;
3352 }
3353 */
3354 toolbarbutton.chevron:-moz-locale-dir(rtl) > .toolbarbutton-icon,
3355 toolbarbutton.chevron:-moz-locale-dir(rtl):hover > .toolbarbutton-icon {
3356   transform: scaleX(-1);
3357 }
3358
3359 toolbarbutton.chevron > .toolbarbutton-text,
3360 toolbarbutton.chevron > .toolbarbutton-menu-dropmarker {
3361   display: none;
3362 }
3363
3364 toolbarbutton.chevron > .toolbarbutton-icon {
3365   margin: 0;
3366 }
3367
3368 #sidebar-throbber[loading="true"] {
3369   list-style-image: url("chrome://global/skin/icons/loading.gif");
3370   -moz-margin-end: 4px;
3371 }
3372
3373 /* Bookmarks toolbar */
3374 #PlacesToolbarDropIndicator {
3375   list-style-image: url("chrome://communicator/skin/bookmarks/toolbarDropMarker.png");
3376 }
3377
3378 toolbarbutton.bookmark-item[dragover="true"][open="true"] {
3379   background-color: #008484 !important;
3380   color: #FFCF00 !important;
3381 }
3382
3383 /* rules for menupopup drop indicators */
3384 .menupopup-drop-indicator-bar {
3385   position: relative;
3386   /* these two margins must together compensate the indicator's height */
3387   margin-top: -1px;
3388   margin-bottom: -1px;
3389 }
3390
3391 .menupopup-drop-indicator {
3392   list-style-image: none;
3393   height: 2px;
3394   -moz-margin-end: -4em;
3395   background-color: #008484;
3396 }
3397
3398 /* === BEGIN notification-icons.inc.css === */
3399
3400 .popup-notification-icon {
3401   width: 64px;
3402   height: 64px;
3403   -moz-margin-end: 10px;
3404 }
3405
3406 .popup-notification-icon[popupid="geolocation"] {
3407   list-style-image: url("chrome://browser/skin/Geolocation-64.png");
3408 }
3409
3410 .popup-notification-icon[popupid="push"] {
3411   list-style-image: url(chrome://browser/skin/Push-64.png);
3412 }
3413
3414 .popup-notification-icon[popupid="xpinstall-disabled"],
3415 .popup-notification-icon[popupid="addon-install-blocked"],
3416 .popup-notification-icon[popupid="addon-install-origin-blocked"] {
3417   list-style-image: url(chrome://browser/skin/addons/addon-install-blocked.svg);
3418 }
3419
3420 .popup-notification-icon[popupid="addon-progress"] {
3421   list-style-image: url(chrome://browser/skin/addons/addon-install-downloading.svg);
3422 }
3423
3424 .popup-notification-icon[popupid="addon-install-failed"] {
3425   list-style-image: url(chrome://browser/skin/addons/addon-install-error.svg);
3426 }
3427
3428 .popup-notification-icon[popupid="addon-install-confirmation"] {
3429   list-style-image: url(chrome://browser/skin/addons/addon-install-confirm.svg);
3430 }
3431
3432 #addon-install-confirmation-notification[warning] .popup-notification-icon[popupid="addon-install-confirmation"] {
3433   list-style-image: url(chrome://browser/skin/addons/addon-install-warning.svg);
3434 }
3435
3436 .popup-notification-icon[popupid="addon-install-complete"] {
3437   list-style-image: url(chrome://browser/skin/addons/addon-install-installed.svg);
3438 }
3439
3440 .popup-notification-icon[popupid="addon-install-restart"] {
3441   list-style-image: url(chrome://browser/skin/addons/addon-install-restart.svg);
3442 }
3443
3444 .popup-notification-icon[popupid="click-to-play-plugins"] {
3445   list-style-image: url("chrome://mozapps/skin/plugins/pluginBlocked-64.png");
3446 }
3447
3448 .popup-notification-icon[popupid="web-notifications"] {
3449   list-style-image: url("chrome://browser/skin/notification-64.png");
3450 }
3451
3452 .popup-notification-icon[popupid="indexedDB-permissions-prompt"],
3453 .popup-notification-icon[popupid*="offline-app-requested"],
3454 .popup-notification-icon[popupid="offline-app-usage"] {
3455   list-style-image: url("chrome://global/skin/icons/alert-question.gif");
3456 }
3457
3458 .popup-notification-icon[popupid="password"] {
3459   list-style-image: url("chrome://mozapps/skin/passwordmgr/key-64.png");
3460 }
3461
3462 .popup-notification-icon[popupid="webapps-install-progress"],
3463 .popup-notification-icon[popupid="webapps-install"] {
3464   list-style-image: url("chrome://global/skin/icons/webapps-64.png");
3465 }
3466
3467 .popup-notification-icon[popupid="bad-content"] {
3468   list-style-image: url("chrome://browser/skin/bad-content-blocked-64.png");
3469 }
3470
3471 .popup-notification-icon[popupid="bad-content"][mixedblockdisabled],
3472 .popup-notification-icon[popupid="bad-content"][trackingblockdisabled] {
3473   list-style-image: url(chrome://browser/skin/bad-content-unblocked-64.png);
3474 }
3475
3476 .popup-notification-icon[popupid="webRTC-sharingDevices"],
3477 .popup-notification-icon[popupid="webRTC-shareDevices"] {
3478   list-style-image: url("chrome://browser/skin/webRTC-shareDevice-64.png");
3479 }
3480
3481 .popup-notification-icon[popupid="webRTC-sharingMicrophone"],
3482 .popup-notification-icon[popupid="webRTC-shareMicrophone"] {
3483   list-style-image: url("chrome://browser/skin/webRTC-shareMicrophone-64.png");
3484 }
3485
3486 .popup-notification-icon[popupid="webRTC-sharingScreen"],
3487 .popup-notification-icon[popupid="webRTC-shareScreen"] {
3488   list-style-image: url(chrome://browser/skin/webRTC-shareScreen-64.png);
3489 }
3490
3491 .popup-notification-icon[popupid="pointerLock"] {
3492   list-style-image: url("chrome://browser/skin/pointerLock-64.png");
3493 }
3494
3495 /* Notification icon box */
3496 #notification-popup .panel-promo-box {
3497 /*  margin: 10px -10px -10px; */
3498 }
3499
3500 #notification-popup-box {
3501   position: relative;
3502   background-color: #000000;
3503   background-clip: padding-box;
3504   padding-left: 3px;
3505   padding-right: 8px;
3506   border-radius: 3px 0 0 3px;
3507   border-image: url("chrome://browser/skin/urlbar-arrow.png") 0 8 0 0 / 0 8px 0 0;
3508   -moz-margin-end: -8px;
3509   border-right-width: 8px;
3510 }
3511
3512 window:not([chromehidden~="toolbar"]) #urlbar-wrapper > #forward-button[disabled] + #urlbar > #notification-popup-box {
3513 /*  padding-left: 7px; */
3514 }
3515
3516 #notification-popup-box:-moz-locale-dir(rtl),
3517 .notification-anchor-icon:-moz-locale-dir(rtl) {
3518   transform: scaleX(-1);
3519 }
3520
3521 .notification-anchor-icon {
3522   list-style-image: url("chrome://global/skin/icons/information-16.png");
3523
3524   width: 16px;
3525   height: 16px;
3526   margin: 0 2px;
3527 }
3528
3529 .notification-anchor-icon:-moz-focusring {
3530   outline: 1px dotted #008484;
3531 }
3532
3533 .identity-notification-icon,
3534 #identity-notification-icon {
3535   list-style-image: url("chrome://mozapps/skin/profile/profileicon.png");
3536 }
3537
3538 .geo-notification-icon,
3539 #geo-notification-icon {
3540   list-style-image: url("chrome://browser/skin/Geolocation-16.png");
3541 }
3542
3543 #push-notification-icon {
3544   list-style-image: url(chrome://browser/skin/Push-16.png);
3545 }
3546
3547 #addons-notification-icon {
3548   list-style-image: url(chrome://browser/skin/addons/addon-install-anchor.svg#default);
3549 }
3550
3551 #addons-notification-icon:hover {
3552   list-style-image: url(chrome://browser/skin/addons/addon-install-anchor.svg#hover);
3553 }
3554
3555 #addons-notification-icon:hover:active {
3556   list-style-image: url(chrome://browser/skin/addons/addon-install-anchor.svg#active);
3557 }
3558
3559 .indexedDB-notification-icon,
3560 #indexedDB-notification-icon {
3561   list-style-image: url("chrome://global/skin/icons/question-16.png");
3562 }
3563
3564 #password-notification-icon {
3565   list-style-image: url("chrome://mozapps/skin/passwordmgr/key-16.png");
3566 }
3567
3568 #login-fill-notification-icon {
3569   /* Temporary icon until the capture and fill doorhangers are unified. */
3570   list-style-image: url(chrome://mozapps/skin/passwordmgr/key-16.png);
3571   transform: scaleX(-1);
3572 }
3573
3574 #webapps-notification-icon {
3575   list-style-image: url("chrome://gobal/skin/icons/webapps-16.png");
3576 }
3577
3578 #plugins-notification-icon {
3579   list-style-image: url("chrome://browser/skin/notification-pluginNormal.png");
3580 }
3581
3582 #plugins-notification-icon.plugin-hidden {
3583   list-style-image: url("chrome://browser/skin/notification-pluginAlert.png");
3584 }
3585
3586 #plugins-notification-icon.plugin-blocked {
3587   list-style-image: url("chrome://browser/skin/notification-pluginBlocked.png");
3588 }
3589
3590 #plugins-notification-icon {
3591 /*  -moz-image-region: rect(0, 16px, 16px, 0);*/
3592 }
3593
3594 #plugins-notification-icon:hover {
3595 /*  -moz-image-region: rect(0, 32px, 16px, 16px);*/
3596 }
3597
3598 #notification-popup-box[hidden] {
3599   /* Override display:none to make the pluginBlockedNotification animation work
3600      when showing the notification repeatedly. */
3601   display: -moz-box;
3602   visibility: collapse;
3603 }
3604
3605 #plugins-notification-icon.plugin-blocked[showing] {
3606   animation: pluginBlockedNotification 500ms ease 0s 5 alternate both;
3607 }
3608
3609 @keyframes pluginBlockedNotification {
3610   from {
3611     opacity: 0;
3612   }
3613   to {
3614     opacity: 1;
3615   }
3616 }
3617
3618 .bad-content-blocked-notification-icon,
3619 #bad-content-blocked-notification-icon {
3620   list-style-image: url("chrome://browser/skin/bad-content-blocked-16.png");
3621 }
3622
3623 .bad-content-unblocked-notification-icon,
3624 #bad-content-unblocked-notification-icon {
3625   list-style-image: url(chrome://browser/skin/bad-content-unblocked-16.png);
3626 }
3627
3628 .webRTC-shareDevices-notification-icon,
3629 #webRTC-shareDevices-notification-icon {
3630   list-style-image: url("chrome://browser/skin/webRTC-shareDevice-16.png");
3631 }
3632
3633 .webRTC-sharingDevices-notification-icon,
3634 #webRTC-sharingDevices-notification-icon {
3635   list-style-image: url("chrome://browser/skin/webRTC-sharingDevice-16.png");
3636 }
3637
3638 .webRTC-shareMicrophone-notification-icon,
3639 #webRTC-shareMicrophone-notification-icon {
3640   list-style-image: url("chrome://browser/skin/webRTC-shareMicrophone-16.png");
3641 }
3642
3643 .webRTC-sharingMicrophone-notification-icon,
3644 #webRTC-sharingMicrophone-notification-icon {
3645   list-style-image: url("chrome://browser/skin/webRTC-sharingMicrophone-16.png");
3646 }
3647
3648 .webRTC-shareScreen-notification-icon,
3649 #webRTC-shareScreen-notification-icon {
3650   list-style-image: url(chrome://browser/skin/webRTC-shareScreen-16.png);
3651 }
3652
3653 .webRTC-sharingScreen-notification-icon,
3654 #webRTC-sharingScreen-notification-icon {
3655   list-style-image: url(chrome://browser/skin/webRTC-sharingScreen-16.png);
3656 }
3657
3658 .web-notifications-notification-icon,
3659 #web-notifications-notification-icon {
3660   list-style-image: url("chrome://browser/skin/notification-16.png");
3661 }
3662
3663 #pointerLock-notification-icon {
3664   list-style-image: url("chrome://browser/skin/pointerLock-16.png");
3665 }
3666
3667 .translate-notification-icon,
3668 #translate-notification-icon {
3669   list-style-image: url("chrome://browser/skin/translation-16.png");
3670   -moz-image-region: rect(0px, 16px, 16px, 0px);
3671 }
3672
3673 .translated-notification-icon,
3674 #translated-notification-icon {
3675   list-style-image: url("chrome://browser/skin/translation-16.png");
3676   -moz-image-region: rect(0px, 32px, 16px, 16px);
3677 }
3678
3679 .popup-notification-icon[popupid="servicesInstall"] {
3680   list-style-image: url("chrome://browser/skin/social/services-64.png");
3681 }
3682 #servicesInstall-notification-icon {
3683   list-style-image: url("chrome://browser/skin/social/services-16.png");
3684 }
3685
3686 /* EME notifications */
3687
3688 .popup-notification-icon[popupid="drmContentPlaying"],
3689 #eme-notification-icon {
3690   list-style-image: url("chrome://browser/skin/drm-icon.svg#chains");
3691 }
3692
3693 #eme-notification-icon:hover:active {
3694   list-style-image: url("chrome://browser/skin/drm-icon.svg#chains-pressed");
3695 }
3696
3697 #eme-notification-icon[firstplay=true] {
3698   animation: emeTeachingMoment 0.2s linear 0s 5 normal;
3699 }
3700
3701 @keyframes emeTeachingMoment {
3702   0% {transform: translateX(0); }
3703   25% {transform: translateX(3px) }
3704   75% {transform: translateX(-3px) }
3705   100% { transform: translateX(0); }
3706 }
3707
3708 /* HiDPI notification icons */
3709 @media (min-resolution: 1.1dppx) {
3710 /*  #notification-popup-box {
3711     border-image: url("chrome://browser/skin/urlbar-arrow@2x.png") 0 16 0 0 fill;
3712   }
3713 */
3714   .notification-anchor-icon {
3715     list-style-image: url(chrome://global/skin/icons/information-32.png);
3716   }
3717
3718   .webRTC-shareDevices-notification-icon,
3719   #webRTC-shareDevices-notification-icon {
3720     list-style-image: url(chrome://browser/skin/webRTC-shareDevice-16@2x.png);
3721   }
3722
3723   .webRTC-sharingDevices-notification-icon,
3724   #webRTC-sharingDevices-notification-icon {
3725     list-style-image: url(chrome://browser/skin/webRTC-sharingDevice-16@2x.png);
3726   }
3727
3728   .webRTC-shareMicrophone-notification-icon,
3729   #webRTC-shareMicrophone-notification-icon {
3730     list-style-image: url(chrome://browser/skin/webRTC-shareMicrophone-16@2x.png);
3731   }
3732
3733   .webRTC-sharingMicrophone-notification-icon,
3734   #webRTC-sharingMicrophone-notification-icon {
3735     list-style-image: url(chrome://browser/skin/webRTC-sharingMicrophone-16@2x.png);
3736   }
3737
3738   .webRTC-shareScreen-notification-icon,
3739   #webRTC-shareScreen-notification-icon {
3740     list-style-image: url(chrome://browser/skin/webRTC-shareScreen-16@2x.png);
3741   }
3742
3743   .webRTC-sharingScreen-notification-icon,
3744   #webRTC-sharingScreen-notification-icon {
3745     list-style-image: url(chrome://browser/skin/webRTC-sharingScreen-16@2x.png);
3746   }
3747
3748   .popup-notification-icon[popupid="webRTC-sharingDevices"],
3749   .popup-notification-icon[popupid="webRTC-shareDevices"] {
3750     list-style-image: url(chrome://browser/skin/webRTC-shareDevice-64@2x.png);
3751   }
3752
3753   .popup-notification-icon[popupid="webRTC-sharingMicrophone"],
3754   .popup-notification-icon[popupid="webRTC-shareMicrophone"] {
3755     list-style-image: url(chrome://browser/skin/webRTC-shareMicrophone-64@2x.png);
3756   }
3757
3758   .popup-notification-icon[popupid="webRTC-sharingScreen"],
3759   .popup-notification-icon[popupid="webRTC-shareScreen"] {
3760     list-style-image: url(chrome://browser/skin/webRTC-shareScreen-64@2x.png);
3761   }
3762 }
3763
3764 /* === END notification-icons.inc.css === */
3765
3766 .popup-notification-body[popupid="addon-progress"],
3767 .popup-notification-body[popupid="addon-install-confirmation"] {
3768   width: 28em;
3769   max-width: 28em;
3770 }
3771
3772 /* Translation infobar */
3773
3774 /* === BEGIN infobar.inc.css === */
3775
3776 notification[value="translation"] .messageImage {
3777   list-style-image: url("chrome://browser/skin/translation-16.png");
3778   -moz-image-region: rect(0, 32px, 16px, 16px);
3779 }
3780
3781 @media (min-resolution: 1.25dppx) {
3782   notification[value="translation"] .messageImage {
3783     list-style-image: url("chrome://browser/skin/translation-16@2x.png");
3784     -moz-image-region: rect(0, 64px, 32px, 32px);
3785   }
3786 }
3787
3788 notification[value="translation"][state="translating"] .messageImage {
3789   list-style-image: url("chrome://browser/skin/translating-16.png");
3790   -moz-image-region: auto;
3791 }
3792
3793 @media (min-resolution: 1.25dppx) {
3794   notification[value="translation"][state="translating"] .messageImage {
3795     list-style-image: url("chrome://browser/skin/translating-16@2x.png");
3796   }
3797 }
3798
3799 notification[value="translation"] hbox[anonid="details"] {
3800   overflow: hidden;
3801 }
3802
3803 notification[value="translation"] button,
3804 notification[value="translation"] menulist {
3805   min-width: 0;
3806 }
3807
3808 notification[value="translation"] menulist > .menulist-dropmarker {
3809 }
3810
3811 .translation-menupopup arrowscrollbox {
3812   padding-bottom: 0;
3813 }
3814
3815 .translation-attribution {
3816   cursor: pointer;
3817   -moz-box-align: end;
3818   font-size: small;
3819 }
3820
3821 .translation-attribution > label {
3822   margin-bottom: 0;
3823 }
3824
3825 .translation-attribution > image {
3826   width: 70px;
3827 }
3828
3829 .translation-welcome-panel {
3830   width: 305px;
3831 }
3832
3833 .translation-welcome-logo {
3834   height: 32px;
3835   width: 32px;
3836   list-style-image: url(chrome://browser/skin/translation-16@2x.png);
3837   -moz-image-region: rect(0, 64px, 32px, 32px);
3838 }
3839
3840 .translation-welcome-content {
3841   -moz-margin-start: 16px;
3842 }
3843
3844 .translation-welcome-headline {
3845   font-size: larger;
3846   font-weight: bold;
3847 }
3848
3849 .translation-welcome-body {
3850   padding: 1em 0;
3851   margin: 0 0;
3852 }
3853
3854 /* === END infobar.inc.css === */
3855
3856 notification[value="translation"] {
3857   min-height: 40px;
3858 }
3859
3860 .translation-menupopup {
3861   -moz-appearance: none;
3862 }
3863
3864 /* Loop/ Hello browser styles */
3865
3866 notification[value="loop-sharing-notification"] .button-menubutton-button {
3867   min-width: 0;
3868   border: 0;
3869   margin: 0;
3870 }
3871
3872 notification[value="loop-sharing-notification"] .messageImage {
3873   list-style-image: url(chrome://browser/skin/webRTC-shareScreen-16.png);
3874 }
3875
3876 /* Bookmarks roots menu-items */
3877 #subscribeToPageMenuitem:not([disabled]),
3878 #subscribeToPageMenupopup,
3879 #BMB_subscribeToPageMenuitem:not([disabled]),
3880 #BMB_subscribeToPageMenupopup {
3881   list-style-image: url("chrome://browser/skin/feeds/feedIcon16.png");
3882 }
3883
3884 #bookmarksToolbarFolderMenu,
3885 #BMB_bookmarksToolbar,
3886 #panelMenu_bookmarksToolbar {
3887   list-style-image: url("chrome://communicator/skin/bookmarks/bookmarksToolbar.png");
3888   -moz-image-region: auto;
3889 }
3890
3891 #BMB_unsortedBookmarks,
3892 #panelMenu_unsortedBookmarks {
3893   list-style-image: url("chrome://communicator/skin/bookmarks/unsortedBookmarks.png");
3894   -moz-image-region: auto;
3895 }
3896
3897 #panelMenu_pocket,
3898 #menu_pocket,
3899 #BMB_pocket {
3900   list-style-image: url("chrome://browser/content/pocket/panels/img/pocketmenuitem16.png");
3901 }
3902
3903 /* ::::: Keyboard UI Panel ::::: */
3904
3905 .KUI-panel {
3906   color: #FF9F00;
3907   border-style: none;
3908   border-radius: 20px;
3909 }
3910
3911 .KUI-panel[level="top"] {
3912   /*background-color: rgba(27%,27%,27%,.65);*/
3913 }
3914
3915 /* Ctrl-Tab */
3916
3917 #ctrlTab-panel {
3918   padding: 20px 10px 10px;
3919   font-weight: bold;
3920 }
3921
3922 .ctrlTab-favicon[src] {
3923   background-color: #000000;
3924   width: 20px;
3925   height: 20px;
3926   padding: 2px;
3927 }
3928
3929 .ctrlTab-preview-inner > .tabPreview-canvas {
3930 }
3931
3932 .ctrlTab-preview:not(#ctrlTab-showAll) > * > .ctrlTab-preview-inner > .tabPreview-canvas {
3933   margin-bottom: 2px;
3934 }
3935
3936 .ctrlTab-preview-inner {
3937   padding-bottom: 10px;
3938 }
3939
3940 #ctrlTab-showAll:not(:focus) > * > .ctrlTab-preview-inner {
3941   padding: 10px;
3942   background-color: #000000;
3943   border-radius: .5em;
3944 }
3945
3946 .ctrlTab-preview:focus > * > .ctrlTab-preview-inner {
3947   color: white;
3948   background-color: #000000;
3949   text-shadow: none;
3950   padding: 8px;
3951   border: 2px solid #9C9CFF;
3952   border-radius: .5em;
3953 }
3954
3955 .ctrlTab-preview:not(#ctrlTab-showAll):focus > * > .ctrlTab-preview-inner {
3956   margin: -10px -10px 0;
3957 }
3958
3959 #ctrlTab-showAll {
3960   margin-top: .5em;
3961 }
3962
3963 /* Sync Panel */
3964
3965 .sync-panel-icon {
3966   height:32px;
3967   width: 32px;
3968   background: url("chrome://browser/content/abouthome/sync.png") top left no-repeat;
3969 }
3970
3971 .sync-panel-inner {
3972   width: 0;
3973   padding-left: 10px;
3974 }
3975
3976 .sync-panel-button-box {
3977   margin-top: 1em;
3978 }
3979
3980 #sync-error-panel-title,
3981 #sync-start-panel-title {
3982   font-size: 120%;
3983   font-weight: bold;
3984   margin-bottom: 5px;
3985 }
3986
3987 #sync-start-panel-subtitle,
3988 #sync-error-panel-subtitle {
3989   margin: 0;
3990 }
3991
3992 /* Status panel */
3993
3994 .statuspanel-label {
3995   margin: 0;
3996   padding: 2px 4px;
3997   background: #404000;
3998   border: 1px none #9C9CFF;
3999   border-top-style: solid;
4000   color: #FF9F00;
4001   text-shadow: none;
4002 }
4003
4004 .statuspanel-label:-moz-locale-dir(ltr):not([mirror]),
4005 .statuspanel-label:-moz-locale-dir(rtl)[mirror] {
4006   border-right-style: solid;
4007   border-top-right-radius: .3em;
4008   margin-right: 1em;
4009 }
4010
4011 .statuspanel-label:-moz-locale-dir(rtl):not([mirror]),
4012 .statuspanel-label:-moz-locale-dir(ltr)[mirror] {
4013   border-left-style: solid;
4014   border-top-left-radius: .3em;
4015   margin-left: 1em;
4016 }
4017
4018 /* HACK to abolish devily color on main content */
4019
4020 #content {
4021   background-color: transparent !important;
4022 }
4023
4024 #full-screen-warning-message {
4025   background-color: #000000;
4026   color: #FF9F00;
4027   border-radius: 8px;
4028   margin-top: 30px;
4029   padding: 30px 50px;
4030   box-shadow: 0 0 2px #9C9CFF;
4031 }
4032
4033 .full-screen-description {
4034   font-size: 150%;
4035 }
4036
4037 #full-screen-domain-text {
4038   font-size: 300%;
4039 }
4040
4041 /* === BEGIN commandline.inc.css === */
4042
4043 /* NOTE: THESE NEED TO STAY IN SYNC WITH LIGHT-THEME.CSS AND DARK-THEME.CSS.
4044    We are copy/pasting variables from light-theme and dark-theme,
4045    since they aren't loaded in this context (within browser.css). */
4046 :root #developer-toolbar {
4047   --gcli-background-color: #000000; /* --theme-toolbar-background */
4048   --gcli-input-background: rgba(0, 0, 0, .75); /* --theme-tab-toolbar-background */
4049   --gcli-input-focused-background: #000000; /* --theme-sidebar-background */
4050   --gcli-input-color: #FF9F00; /* --theme-body-color-alt */
4051   --gcli-border-color: #9C9CFF; /* --theme-splitter-color */