8689da24f72f706e91e0bf0e859cf01de93af721
[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 */
4052   --selection-background: #008484; /* --theme-selection-background */
4053   --selection-color: #000000; /* --theme-selection-color */
4054 }
4055
4056 /* Developer toolbar */
4057
4058 #developer-toolbar {
4059   border-top: 3px solid var(--gcli-background-color);
4060   border-bottom: none;
4061 }
4062
4063 #developer-toolbar .toolbar-holder {
4064   background-color: #8050B0;
4065   color: #FFCF00;
4066 }
4067
4068 #developer-toolbar .toolbar-holder {
4069   background-color: #8050B0;
4070   color: #FFCF00;
4071 }
4072
4073 #developer-toolbar .toolbar-startcap,
4074 #developer-toolbar .toolbar-endcap{
4075   background-color: #6000CF;
4076 }
4077
4078 #developer-toolbar {
4079 /*  padding: 0;
4080   min-height: 32px; */
4081 }
4082
4083 #developer-toolbar > toolbarbutton {
4084 /*  margin: 0;
4085   padding: 0 10px;
4086   width: 32px; */
4087 }
4088
4089 .developer-toolbar-button > image {
4090 /*  margin: auto 10px; */
4091 }
4092
4093 #developer-toolbar-toolbox-button > label {
4094   display: none;
4095 }
4096
4097 .developer-toolbar-button > .toolbarbutton-icon,
4098 #developer-toolbar-closebutton > .toolbarbutton-icon {
4099   width: 16px;
4100   height: 16px;
4101 }
4102
4103 #developer-toolbar-toolbox-button {
4104   list-style-image: url("chrome://browser/skin/devtools/toggle-tools.png");
4105   -moz-image-region: rect(0px, 16px, 16px, 0px);
4106 }
4107
4108 #developer-toolbar-toolbox-button > label {
4109   display: none;
4110 }
4111
4112 #developer-toolbar-toolbox-button:hover,
4113 #developer-toolbar-toolbox-button:hover:active,
4114 #developer-toolbar-toolbox-button[checked=true] {
4115   -moz-image-region: rect(0px, 32px, 16px, 16px);
4116 }
4117
4118 @media (min-resolution: 2dppx) {
4119   #developer-toolbar-toolbox-button {
4120     list-style-image: url("chrome://browser/skin/devtools/toggle-tools@2x.png");
4121     -moz-image-region: rect(0px, 32px, 32px, 0px);
4122   }
4123
4124   #developer-toolbar-toolbox-button:hover,
4125   #developer-toolbar-toolbox-button:hover:active,
4126   #developer-toolbar-toolbox-button[checked=true] {
4127     -moz-image-region: rect(0px, 64px, 32px, 32px);
4128   }
4129 }
4130
4131 #developer-toolbar-closebutton {
4132   list-style-image: url("chrome://browser/skin/devtools/close.png");
4133   -moz-image-region: rect(0px, 16px, 16px, 0px);
4134   min-width: 16px;
4135   width: 16px;
4136 }
4137
4138 #developer-toolbar-closebutton > .toolbarbutton-icon {
4139 }
4140
4141 #developer-toolbar-closebutton > .toolbarbutton-text {
4142   display: none;
4143 }
4144
4145 #developer-toolbar-closebutton:hover,
4146 #developer-toolbar-closebutton:hover:active {
4147   -moz-image-region: rect(0px, 32px, 16px, 16px);
4148 }
4149
4150 @media (min-resolution: 2dppx) {
4151   #developer-toolbar-closebutton {
4152     list-style-image: url("chrome://browser/skin/devtools/close@2x.png");
4153     -moz-image-region: rect(0px, 32px, 32px, 0px);
4154   }
4155
4156   #developer-toolbar-closebutton:hover,
4157   #developer-toolbar-closebutton:hover:active {
4158     -moz-image-region: rect(0px, 64px, 32px, 32px);
4159   }
4160 }
4161
4162 /* GCLI */
4163
4164 html|*#gcli-tooltip-frame,
4165 html|*#gcli-output-frame {
4166   padding: 0;
4167   border-width: 0;
4168   background-color: transparent;
4169 }
4170
4171 #gcli-output,
4172 #gcli-tooltip {
4173   border-width: 0;
4174   background-color: transparent;
4175 }
4176
4177 .gclitoolbar-input-node,
4178 .gclitoolbar-complete-node {
4179   margin: 1px 3px;
4180   -moz-box-align: center;
4181   padding-top: 0;
4182   padding-bottom: 0;
4183   padding-right: 8px;
4184   background-color: transparent;
4185 }
4186
4187 .gclitoolbar-input-node {
4188 /*  line-height: 32px;
4189   outline-style: none; */
4190   background-repeat: no-repeat;
4191   background-color: var(--gcli-input-background);
4192 }
4193
4194 .gclitoolbar-input-node[focused="true"] {
4195   background-color: var(--gcli-input-focused-background);
4196 }
4197
4198 .gclitoolbar-input-node::before {
4199   content: "";
4200   display: inline-block;
4201   -moz-box-ordinal-group: 0;
4202   width: 16px;
4203   height: 16px;
4204   margin: 0 2px;
4205   background-image: url("chrome://browser/skin/devtools/commandline-icon.png");
4206   background-position: 0 center;
4207   background-size: 32px 16px;
4208 }
4209
4210 .gclitoolbar-input-node[focused="true"]::before {
4211   background-position: -16px center;
4212 }
4213
4214 @media (min-resolution: 2dppx) {
4215   .gclitoolbar-input-node::before {
4216     background-image: url("chrome://browser/skin/devtools/commandline-icon@2x.png");
4217   }
4218 }
4219
4220 .gclitoolbar-input-node:not([focused="true"]) {
4221   border-color: transparent;
4222 }
4223
4224 .gclitoolbar-input-node > .textbox-input-box > html|*.textbox-input::-moz-selection {
4225   background-color: var(--selection-background);
4226   color: var(--selection-color);
4227 }
4228
4229 .gclitoolbar-complete-node {
4230   padding-left: 21px;
4231   background-color: transparent;
4232   color: transparent;
4233   z-index: 100;
4234   pointer-events: none;
4235 }
4236
4237 .gcli-in-incomplete,
4238 .gcli-in-error,
4239 .gcli-in-ontab,
4240 .gcli-in-todo,
4241 .gcli-in-closebrace,
4242 .gcli-in-param,
4243 .gcli-in-valid {
4244   margin: 0;
4245   padding: 0;
4246 }
4247
4248 .gcli-in-incomplete {
4249   border-bottom: 2px dotted #8050B0;
4250 }
4251
4252 .gcli-in-error {
4253   border-bottom: 2px dotted #FF0000;
4254 }
4255
4256 .gcli-in-ontab {
4257   color: #9C9CFF;
4258 }
4259
4260 .gcli-in-todo {
4261   color: #795900;
4262 }
4263
4264 .gcli-in-closebrace {
4265   color: #8050B0;
4266 }
4267
4268 /* === END commandline.inc.css === */
4269
4270 /* === BEGIN responsivedesign.inc.css === */
4271
4272 /* Responsive Mode */
4273
4274 .browserContainer[responsivemode] {
4275   background-color: #221500;
4276   padding: 0 20px 20px 20px;
4277 }
4278
4279 .browserStack[responsivemode] {
4280   box-shadow: 0 0 7px #9C9CFF;
4281 }
4282
4283 .devtools-responsiveui-toolbar {
4284   background: transparent;
4285   /* text color is textColor from dark theme, since no theme is applied to
4286    * the responsive toolbar.
4287    */
4288   color: #FF9F00;
4289   margin: 10px 0;
4290   padding: 0;
4291   box-shadow: none;
4292   border-bottom-width: 0;
4293 }
4294
4295 .devtools-responsiveui-menulist,
4296 .devtools-responsiveui-toolbarbutton {
4297   -moz-box-align: center;
4298   min-width: 32px;
4299 /*  min-height: 22px;*/
4300 /*  margin: 0 3px; */
4301 }
4302
4303 .devtools-responsiveui-menulist .menulist-editable-box {
4304   background-color: transparent;
4305 }
4306
4307 .devtools-responsiveui-menulist html|*.menulist-editable-input {
4308   color: inherit;
4309   text-align: center;
4310 }
4311
4312 .devtools-responsiveui-menulist html|*.menulist-editable-input::-moz-selection {
4313 /*  background: hsla(212,7%,57%,.35);*/
4314 }
4315
4316 .devtools-responsiveui-toolbarbutton > .toolbarbutton-icon {
4317   width: 16px;
4318   height: 16px;
4319 }
4320
4321 .devtools-responsiveui-toolbarbutton > .toolbarbutton-menubutton-button {
4322   -moz-box-orient: horizontal;
4323 }
4324
4325 .devtools-responsiveui-menulist:-moz-focusring,
4326 .devtools-responsiveui-toolbarbutton:-moz-focusring {
4327 /*  outline: 1px dotted hsla(210,30%,85%,0.7);
4328   outline-offset: -4px;*/
4329 }
4330
4331 .devtools-responsiveui-toolbarbutton:not([label]) > .toolbarbutton-text {
4332   display: none;
4333 }
4334
4335 .devtools-responsiveui-toolbarbutton:not([checked=true]):hover:active {
4336 /*  border-color: hsla(210,8%,5%,.6);
4337   background: linear-gradient(hsla(220,6%,10%,.3), hsla(212,7%,57%,.15) 65%, hsla(212,7%,57%,.3));
4338   box-shadow: 0 0 3px hsla(210,8%,5%,.25) inset, 0 1px 3px hsla(210,8%,5%,.25) inset, 0 1px 0 hsla(210,16%,76%,.15); */
4339 }
4340
4341 .devtools-responsiveui-menulist[open=true],
4342 .devtools-responsiveui-toolbarbutton[open=true],
4343 .devtools-responsiveui-toolbarbutton[checked=true] {
4344 /*  border-color: hsla(210,8%,5%,.6) !important;
4345   background: linear-gradient(hsla(220,6%,10%,.6), hsla(210,11%,18%,.45) 75%, hsla(210,11%,30%,.4));
4346   box-shadow: 0 1px 3px hsla(210,8%,5%,.25) inset, 0 1px 3px hsla(210,8%,5%,.25) inset, 0 1px 0 hsla(210,16%,76%,.15); */
4347 }
4348
4349 .devtools-responsiveui-toolbarbutton[checked=true] {
4350 /*  color: hsl(208,100%,60%); */
4351 }
4352
4353 .devtools-responsiveui-toolbarbutton[checked=true]:hover {
4354 /*  background-color: transparent !important;*/
4355 }
4356
4357 .devtools-responsiveui-toolbarbutton[checked=true]:hover:active {
4358 /*  background-color: hsla(210,8%,5%,.2) !important;*/
4359 }
4360
4361 .devtools-responsiveui-menulist > .menulist-label-box {
4362   text-align: center;
4363 }
4364
4365 .devtools-responsiveui-menulist > .menulist-dropmarker {
4366 /*  display: -moz-box;
4367   background-color: transparent;
4368   list-style-image: url("chrome://browser/skin/devtools/dropmarker.svg");
4369   -moz-box-align: center;
4370   border-width: 0;
4371   min-width: 16px;*/
4372 }
4373
4374 .devtools-responsiveui-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-button {
4375 /*  color: inherit;
4376   border-width: 0;
4377   -moz-border-end: 1px solid hsla(210,8%,5%,.45);
4378   box-shadow: -1px 0 0 hsla(210,16%,76%,.15) inset, 1px 0 0 hsla(210,16%,76%,.15);*/
4379 }
4380
4381 .devtools-responsiveui-toolbarbutton[type=menu-button]:-moz-locale-dir(rtl) > .toolbarbutton-menubutton-button {
4382 /*  box-shadow: 1px 0 0 hsla(210,16%,76%,.15) inset, -1px 0 0 hsla(210,16%,76%,.15);*/
4383 }
4384
4385 .devtools-responsiveui-toolbarbutton[type=menu-button] {
4386 /*  padding: 0 1px;*/
4387   -moz-box-align: stretch;
4388 }
4389
4390 .devtools-responsiveui-toolbarbutton[type=menu] > .toolbarbutton-menu-dropmarker,
4391 .devtools-responsiveui-toolbarbutton[type=menu-button] > .toolbarbutton-menubutton-dropmarker {
4392 /*  list-style-image: url("chrome://browser/skin/devtools/dropmarker.svg");
4393   -moz-box-align: center;
4394   padding: 0 3px;*/
4395 }
4396
4397 .devtools-responsiveui-toolbar:-moz-locale-dir(ltr) > *:first-child,
4398 .devtools-responsiveui-toolbar:-moz-locale-dir(rtl) > *:last-child {
4399   margin-left: 3px;
4400 }
4401
4402 .devtools-responsiveui-close {
4403   list-style-image: url("chrome://browser/skin/devtools/close.png");
4404   -moz-image-region: rect(0px,16px,16px,0px);
4405 }
4406
4407 .devtools-responsiveui-close:hover {
4408   -moz-image-region: rect(0px,32px,16px,16px);
4409 }
4410
4411 .devtools-responsiveui-rotate {
4412   list-style-image: url("chrome://browser/skin/devtools/responsiveui-rotate.png");
4413   -moz-image-region: rect(0px,16px,16px,0px);
4414 }
4415
4416 .devtools-responsiveui-rotate:hover {
4417   -moz-image-region: rect(0px,32px,16px,16px);
4418 }
4419
4420 @media (min-resolution: 2dppx) {
4421   .devtools-responsiveui-close {
4422     list-style-image: url("chrome://browser/skin/devtools/close@2x.png");
4423   }
4424
4425   .devtools-responsiveui-close:hover {
4426     -moz-image-region: rect(0px,64px,32px,32px);
4427   }
4428
4429   .devtools-responsiveui-rotate {
4430     list-style-image: url("chrome://browser/skin/devtools/responsiveui-rotate@2x.png");
4431   }
4432
4433   .devtools-responsiveui-rotate:hover {
4434     -moz-image-region: rect(0px,64px,32px,32px);
4435   }
4436 }
4437
4438 .devtools-responsiveui-touch {
4439   list-style-image: url("chrome://browser/skin/devtools/responsiveui-touch.png");
4440   -moz-image-region: rect(0px,16px,16px,0px);
4441 }
4442
4443 .devtools-responsiveui-touch:hover,
4444 .devtools-responsiveui-touch[checked],
4445 .devtools-responsiveui-touch[checked]:hover {
4446   -moz-image-region: rect(0px,32px,16px,16px);
4447 }
4448
4449 @media (min-resolution: 2dppx) {
4450   .devtools-responsiveui-touch {
4451     list-style-image: url("chrome://browser/skin/devtools/responsiveui-touch@2x.png");
4452     -moz-image-region: rect(0px,32px,32px,0px);
4453   }
4454
4455   .devtools-responsiveui-touch:hover,
4456   .devtools-responsiveui-touch[checked],
4457   .devtools-responsiveui-touch[checked]:hover {
4458     -moz-image-region: rect(0px,64px,32px,32px);
4459   }
4460 }
4461
4462 .devtools-responsiveui-screenshot {
4463   list-style-image: url("chrome://browser/skin/devtools/responsiveui-screenshot.png");
4464   -moz-image-region: rect(0px,16px,16px,0px);
4465 }
4466
4467 .devtools-responsiveui-screenshot:hover {
4468   -moz-image-region: rect(0px,32px,16px,16px);
4469 }
4470
4471 @media (min-resolution: 2dppx) {
4472   .devtools-responsiveui-screenshot {
4473     list-style-image: url("chrome://browser/skin/devtools/responsiveui-screenshot@2x.png");
4474   }
4475
4476   .devtools-responsiveui-screenshot:hover {
4477     -moz-image-region: rect(0px,64px,32px,32px);
4478   }
4479 }
4480
4481 .devtools-responsiveui-resizebarV {
4482   width: 7px;
4483   height: 24px;
4484   cursor: ew-resize;
4485   transform: translate(12px, -12px);
4486   background-size: cover;
4487   background-image: url("chrome://browser/skin/devtools/responsive-vertical-resizer.png");
4488 }
4489
4490 .devtools-responsiveui-resizebarH {
4491   width: 24px;
4492   height: 7px;
4493   cursor: ns-resize;
4494   transform: translate(-12px, 12px);
4495   background-size: cover;
4496   background-image: url("chrome://browser/skin/devtools/responsive-horizontal-resizer.png");
4497 }
4498
4499 .devtools-responsiveui-resizehandle {
4500   width: 16px;
4501   height: 16px;
4502   cursor: se-resize;
4503   transform: translate(12px, 12px);
4504   background-size: cover;
4505   background-image: url("chrome://browser/skin/devtools/responsive-se-resizer.png");
4506 }
4507
4508 /* FxOS custom mode with additional buttons and phone look'n feel */
4509
4510 /* Hide devtools manual resizer */
4511 .browserStack[responsivemode].fxos-mode .devtools-responsiveui-resizehandle,
4512 .browserStack[responsivemode].fxos-mode .devtools-responsiveui-resizebarH,
4513 .browserStack[responsivemode].fxos-mode .devtools-responsiveui-resizebarV {
4514   display: none;
4515 }
4516
4517 /* Gives responsive mode a phone look'n feel */
4518 .browserStack[responsivemode].fxos-mode {
4519   padding: 60px 15px 0;
4520
4521   border-radius: 25px / 20px;
4522   border-bottom-left-radius: 0;
4523   border-bottom-right-radius: 0;
4524   border: 1px solid #FFFFFF;
4525   border-bottom-width: 0;
4526
4527   background-color: #353535;
4528
4529   box-shadow: 0 3px 0.7px 1px #777777, 0 5px rgba(0, 0, 0, 0.4) inset;
4530
4531   background-image: linear-gradient(to right, #111 11%, #333 56%);
4532   min-width: 320px;
4533 }
4534
4535 .devtools-responsiveui-hardware-buttons {
4536   -moz-appearance: none;
4537   padding: 20px;
4538
4539   border: 1px solid #FFFFFF;
4540   border-bottom-left-radius: 25px;
4541   border-bottom-right-radius: 25px;
4542   border-top-width: 0;
4543
4544   box-shadow: 0 3px 0.7px 1px #777777, 0 -7px rgba(0, 0, 0, 0.4) inset;
4545
4546   background-image: linear-gradient(to right, #111 11%, #333 56%);
4547 }
4548
4549 .devtools-responsiveui-home-button {
4550   width: 40px;
4551   height: 30px;
4552   list-style-image: url("chrome://browser/skin/devtools/responsiveui-home.png");
4553 }
4554
4555 .devtools-responsiveui-sleep-button {
4556   -moz-appearance: none;
4557   /* compensate browserStack top padding */
4558   margin-top: -67px;
4559   margin-right: 10px;
4560
4561   min-width: 10px;
4562   width: 50px;
4563   height: 5px;
4564
4565   border: 1px solid #444;
4566   border-top-right-radius: 12px;
4567   border-top-left-radius: 12px;
4568   border-bottom-color: transparent;
4569
4570   background-image: linear-gradient(to top, #111 11%, #333 56%);
4571 }
4572
4573 .devtools-responsiveui-sleep-button:hover:active {
4574   background-image: linear-gradient(to top, #aaa 11%, #ddd 56%);
4575 }
4576
4577 .devtools-responsiveui-volume-buttons {
4578   margin-left: -29px;
4579 }
4580
4581 .devtools-responsiveui-volume-up-button,
4582 .devtools-responsiveui-volume-down-button {
4583   -moz-appearance: none;
4584   border: 1px solid red;
4585   min-width: 8px;
4586   height: 40px;
4587
4588   border: 1px solid #444;
4589   border-right-color: transparent;
4590
4591   background-image: linear-gradient(to right, #111 11%, #333 56%);
4592 }
4593
4594 .devtools-responsiveui-volume-up-button:hover:active,
4595 .devtools-responsiveui-volume-down-button:hover:active {
4596   background-image: linear-gradient(to right, #aaa 11%, #ddd 56%);
4597 }
4598
4599 .devtools-responsiveui-volume-up-button {
4600   border-top-left-radius: 12px;
4601 }
4602
4603 .devtools-responsiveui-volume-down-button {
4604   border-bottom-left-radius: 12px;
4605 }
4606
4607 @media (min-resolution: 2dppx) {
4608   .devtools-responsiveui-resizebarV {
4609     background-image: url("chrome://browser/skin/devtools/responsive-vertical-resizer@2x.png");
4610   }
4611
4612   .devtools-responsiveui-resizebarH {
4613     background-image: url("chrome://browser/skin/devtools/responsive-horizontal-resizer@2x.png");
4614   }
4615
4616   .devtools-responsiveui-resizehandle {
4617     background-image: url("chrome://browser/skin/devtools/responsive-se-resizer@2x.png");
4618   }
4619 }
4620
4621 /* === END responsivedesign.inc.css === */
4622
4623 /* === including indicator.css is done at the start of the file === */
4624
4625 /* Error counter */
4626
4627 #developer-toolbar-toolbox-button[error-count]:before {
4628   color: #000000;
4629   min-width: 16px;
4630   text-shadow: none;
4631   background-color: #FF0000;
4632   border-radius: 1px;
4633   -moz-margin-end: 5px;
4634 }
4635
4636 /* Social toolbar item */
4637
4638 #social-notification-icon-mentions {
4639   background-color: #000000;
4640   border-radius: 3px;
4641   -moz-margin-start: 2px;
4642 }
4643
4644 #social-notification-icon-mentions:hover {
4645   background-color: #FFCF00;
4646 }
4647
4648 #social-notification-icon-mentions[open="true"] {
4649   background-color: #FF9F00;
4650 }
4651
4652 #social-sidebar-splitter {
4653   border: 0;
4654 }
4655
4656 #socialActivatedNotification .popup-notification-button-container {
4657   margin-left: 6px;
4658 }
4659
4660 .social-activation-icon {
4661   width: auto;
4662   height: auto;
4663   max-height: 64px;
4664   max-width: 64px;
4665 }
4666
4667 #social-activation-message {
4668   max-width: 250px;
4669 }
4670
4671 #social-activation-message > label {
4672   margin: 0;
4673 }
4674
4675 /* social toolbar provider menu */
4676 .social-statusarea-popup {
4677   margin-top: 0;
4678   margin-left: -12px;
4679   margin-right: -12px;
4680 }
4681
4682 .social-statusarea-user {
4683   border-bottom: 1px solid #9C9CFF;
4684   background-color: #000000;
4685   color: #FF9F00;
4686   position: relative;
4687   cursor: pointer;
4688 }
4689
4690 .social-statusarea-user-portrait {
4691   width: 32px;
4692   height: 32px;
4693   border-radius: 2px;
4694   margin: 10px;
4695 }
4696
4697 .social-statusarea-loggedInStatus {
4698   background: transparent;
4699   border: none;
4700   color: #3333FF;
4701   min-width: 0;
4702   margin: 0 6px;
4703   list-style-image: none;
4704 }
4705
4706 #social-statusarea-user[_moz-menuactive] > vbox > .social-statusarea-loggedInStatus {
4707   text-decoration: underline;
4708 }
4709
4710 .social-panel > .panel-arrowcontainer > .panel-arrowcontent {
4711   padding: 0;
4712 }
4713
4714 .social-panel-frame {
4715   border-radius: inherit;
4716 }
4717
4718 /* === BEGIN chat.inc.css === */
4719
4720 #social-sidebar-header {
4721   padding: 3px;
4722 }
4723
4724 #manage-share-providers,
4725 #social-sidebar-button {
4726   list-style-image: url("chrome://browser/skin/ToolbarFx.png");
4727   -moz-image-region: rect(0, 468px, 18px, 450px);
4728 }
4729
4730 #social-sidebar-button {
4731   -moz-appearance: none;
4732   border: none;
4733   padding: 0;
4734   margin: 2px;
4735 }
4736 #manage-share-providers > .toolbarbutton-icon,
4737 #social-sidebar-button > .toolbarbutton-icon {
4738   min-height: 18px;
4739   min-width: 18px;
4740 }
4741 #manage-share-providers:hover,
4742 #manage-share-providers:hover:active,
4743 #social-sidebar-button:hover,
4744 #social-sidebar-button:hover:active {
4745   -moz-image-region: rect(18px, 468px, 36px, 450px);
4746 }
4747 #social-sidebar-button > .toolbarbutton-menu-dropmarker {
4748   display: none;
4749 }
4750
4751 #social-sidebar-button[loading="true"] {
4752   list-style-image: url("chrome://global/skin/icons/loading.gif");
4753 }
4754
4755 #social-sidebar-favico {
4756   max-height: 16px;
4757   max-width: 16px;
4758   padding: 0;
4759   margin: 2px;
4760 }
4761
4762 .chat-status-icon {
4763   max-height: 16px;
4764   max-width: 16px;
4765   padding: 0;
4766 }
4767
4768 .chat-toolbarbutton {
4769   -moz-appearance: none;
4770   border: none;
4771   padding: 0 3px;
4772   margin: 0;
4773   background: none;
4774 }
4775
4776 .chat-toolbarbutton:hover {
4777 /*  background-color: rgba(255,255,255,.35);*/
4778 }
4779
4780 .chat-toolbarbutton:hover:active {
4781 /*  background-color: rgba(255,255,255,.5);*/
4782 }
4783
4784 .chat-toolbarbutton > .toolbarbutton-text {
4785   display: none;
4786 }
4787
4788 .chat-toolbarbutton > .toolbarbutton-icon {
4789   width: 16px;
4790   height: 16px;
4791 }
4792
4793 .chat-close-button {
4794   list-style-image: url("chrome://browser/skin/social/chat-icons.svg#close");
4795 }
4796
4797 .chat-close-button:-moz-any(:hover,:hover:active) {
4798   list-style-image: url("chrome://browser/skin/social/chat-icons.svg#close-active");
4799 }
4800
4801 .chat-minimize-button {
4802   list-style-image: url("chrome://browser/skin/social/chat-icons.svg#minimize");
4803 }
4804
4805 .chat-minimize-button:-moz-any(:hover,:hover:active) {
4806   list-style-image: url("chrome://browser/skin/social/chat-icons.svg#minimize-active");
4807 }
4808
4809 .chat-swap-button {
4810   list-style-image: url("chrome://browser/skin/social/chat-icons.svg#expand");
4811   transform: rotate(180deg);
4812 }
4813
4814 .chat-swap-button:-moz-any(:hover,:hover:active) {
4815   list-style-image: url("chrome://browser/skin/social/chat-icons.svg#expand-active");
4816 }
4817
4818 chatbar > chatbox > .chat-titlebar > .chat-swap-button {
4819   transform: none;
4820 }
4821
4822 .chat-title {
4823   font-weight: bold;
4824   font: 11px "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
4825   text-shadow: none;
4826   cursor: inherit;
4827 }
4828
4829 .chat-titlebar {
4830   background-color: #9C9CFF;
4831   color: #000000;
4832   height: 30px;
4833   min-height: 30px;
4834   width: 100%;
4835   margin: 0;
4836   padding: 7px 6px;
4837   border: none;
4838   border-bottom: 1px solid #008484;
4839   cursor: pointer;
4840 }
4841
4842 .chat-titlebar > .notification-anchor-icon {
4843   margin-left: 2px;
4844   margin-right: 2px;
4845 }
4846
4847 .chat-titlebar[minimized="true"] {
4848   border-bottom: none;
4849 }
4850
4851 .chat-titlebar[selected] {
4852   background-color: #008484;
4853 }
4854
4855 .chat-titlebar[activity] {
4856   background-color: #E7ADE7;
4857 }
4858
4859 chatbox[dark=true] > .chat-titlebar,
4860 chatbox[dark=true] > .chat-titlebar[selected] {
4861 /*  border-bottom: none;
4862   background-color: #000;
4863   background-image: none;*/
4864 }
4865
4866 chatbox[dark=true] > .chat-titlebar > hbox > .chat-title {
4867 /*  font-weight: normal;
4868   color: #c1c1c1;*/
4869 }
4870
4871 .chat-frame {
4872   padding: 0;
4873   margin: 0;
4874   overflow: hidden;
4875 }
4876
4877 .chatbar-button {
4878   list-style-image: url("chrome://browser/skin/social/services-16.png");
4879   background-color: #000000;
4880   border: none;
4881   margin: 0;
4882   padding: 2px;
4883   height: 21px;
4884   width: 21px;
4885   border-top: 1px solid #008484;
4886   -moz-border-end: 1px solid #008484;
4887 }
4888
4889 @media (min-resolution: 2dppx) {
4890   .chatbar-button {
4891     list-style-image: url("chrome://browser/skin/social/services-16@2x.png");
4892   }
4893 }
4894
4895 .chatbar-button > .toolbarbutton-icon {
4896   width: 16px;
4897 }
4898
4899 .chatbar-button > menupopup > .menuitem-iconic > .menu-iconic-left > .menu-iconic-icon {
4900   width: auto;
4901   height: auto;
4902   max-height: 16px;
4903   max-width: 16px;
4904 }
4905
4906 .chatbar-button > .toolbarbutton-icon {
4907   opacity: .6;
4908   -moz-margin-end: 0;
4909 }
4910 .chatbar-button:hover > .toolbarbutton-icon,
4911 .chatbar-button[open="true"] > .toolbarbutton-icon {
4912   opacity: 1;
4913 }
4914
4915 .chatbar-button:hover,
4916 .chatbar-button[open="true"] {
4917 }
4918
4919 .chatbar-button > .toolbarbutton-text,
4920 .chatbar-button > .toolbarbutton-menu-dropmarker {
4921   display: none;
4922 }
4923
4924 .chatbar-button[activity]:not([open="true"]) {
4925   background-color: #E7ADE7;
4926 }
4927
4928 .chatbar-button > menupopup > menuitem[activity] {
4929   font-weight: bold;
4930 }
4931
4932 .chatbar-innerbox {
4933   background: transparent;
4934   overflow: hidden;
4935 }
4936
4937 chatbar {
4938   -moz-margin-end: 20px;
4939 }
4940
4941 chatbar > chatbox {
4942   height: 285px;
4943   width: 260px;
4944   -moz-margin-start: 4px;
4945   background-color: #000000;
4946   border: 1px solid #9C9CFF;
4947   border-bottom: none;
4948   border-top-left-radius: 2.5px;
4949   border-top-right-radius: 2.5px;
4950 }
4951
4952 chatbox[minimized="true"] {
4953   width: 160px;
4954   height: 20px;
4955 }
4956
4957 window > chatbox {
4958   -moz-margin-start: 0px;
4959   margin: 0px;
4960   border: none;
4961   padding: 0px;
4962 }
4963
4964 /* === END chat.inc.css === */
4965
4966 .chat-titlebar {
4967 /*  background-color: #c4cfde; */
4968 }
4969
4970 .chat-titlebar[selected] {
4971 /*  background-color: #dae3f0; */
4972 }
4973
4974 .chatbar-button {
4975   -moz-appearance: none;
4976 /*  background-color: #c4cfde; */
4977 }
4978
4979 .chatbar-button > .toolbarbutton-icon {
4980 /*  -moz-margin-end: 0; */
4981 }
4982
4983 .chatbar-button:hover,
4984 .chatbar-button[open="true"] {
4985 /*  background-color: #dae3f0; */
4986 }
4987
4988 .chatbar-button[activity]:not([open="true"]) {
4989 }
4990
4991 chatbox {
4992 /*  border-top-left-radius: 2.5px;
4993   border-top-right-radius: 2.5px; */
4994 }
4995
4996 /* === BEGIN plugin-doorhanger.inc.css === */
4997
4998 /**
4999  * Plugin Doorhanger Styles
5000  */
5001
5002 #notification-popup[popupid="click-to-play-plugins"] > .panel-arrowcontainer > .panel-arrowcontent {
5003   padding: 6px 1px 2px;
5004 }
5005
5006 .click-to-play-plugins-notification-center-box {
5007 }
5008
5009 .plugin-popupnotification-centeritem:nth-child(odd) {
5010 /*  background-color: rgba(0,0,0,0.1);*/
5011 }
5012
5013 .center-item-label {
5014   margin-bottom: 0;
5015   text-overflow: ellipsis;
5016 }
5017
5018 .center-item-warning-icon {
5019   background-image: url("chrome://mozapps/skin/extensions/alerticon-info-negative.png");
5020   background-repeat: no-repeat;
5021   width: 16px;
5022   height: 15px;
5023   -moz-margin-start: 6px;
5024 }
5025
5026 .click-to-play-plugins-notification-button-container {
5027 }
5028
5029 .click-to-play-popup-button {
5030   width: 50%;
5031 }
5032
5033 .click-to-play-plugins-notification-description-box {
5034   margin-left: 5px;
5035   margin-right: 5px;
5036   margin-top: 0;
5037   padding-bottom: 3px;
5038 }
5039
5040 .click-to-play-plugins-outer-description {
5041   margin-top: 1px;
5042 }
5043
5044 .click-to-play-plugins-notification-link,
5045 .center-item-link {
5046   margin: 0;
5047 }
5048
5049 .messageImage[value="plugin-hidden"] {
5050   list-style-image: url("chrome://browser/skin/notification-pluginNormal.png");
5051 }
5052
5053 /* Keep any changes to this style in sync with pluginProblem.css */
5054 notification.pluginVulnerable {
5055 }
5056
5057 notification.pluginVulnerable .messageImage {
5058   list-style-image: url("chrome://browser/skin/notification-pluginBlocked.png");
5059 }
5060
5061 /* === END plugin-doorhanger.inc.css === */
5062
5063 /* === BEGIN badcontent-doorhanger.inc.css === */
5064
5065 .popup-notification-item-title[popupid="bad-content"] {
5066   font-weight: bold;
5067 }
5068
5069 .popup-notification-item-message[popupid="bad-content"] {
5070   width: 17em;
5071 }
5072
5073 .popup-notification-item-message[popupid="bad-content"][mixedblockdisabled]:not(.popup-notification-item-message-critical),
5074 .popup-notification-item-message[popupid="bad-content"][trackingblockdisabled]:not(.popup-notification-item-message-critical) {
5075   color: #8050B0;
5076 }
5077
5078 .popup-notification-item-message-critical[popupid="bad-content"] {
5079   color: #FF0000;
5080   font-style: italic;
5081 }
5082
5083 .popup-notification-footer[popupid="bad-content"] {
5084   padding-top: 1em;
5085 }
5086
5087 /* === END badcontent-doorhanger.inc.css === */
5088
5089 /* === BEGIN login-doorhanger.inc.css === */
5090
5091 #notification-popup[popupid="login-fill"] > .panel-arrowcontainer > .panel-arrowcontent {
5092   /* Since we display a sliding subview that extends to the border, we cannot
5093    * keep the default padding of arrow panels. We use the same padding in the
5094    * individual content views instead. Since we removed the padding, we also
5095    * have to ensure the contents are clipped to the border box. */
5096   padding: 0;
5097   overflow: hidden;
5098 }
5099
5100 #login-fill-mainview,
5101 #login-fill-details {
5102   padding: var(--panel-arrowcontent-padding);
5103 }
5104
5105 #login-fill-doorhanger[inDetailView] > #login-fill-mainview {
5106   transform: translateX(-14px);
5107 }
5108
5109 #login-fill-mainview,
5110 #login-fill-details {
5111   transition: transform 150ms;
5112 }
5113
5114 #login-fill-doorhanger:not([inDetailView]) > #login-fill-details {
5115   transform: translateX(105%);
5116 }
5117
5118 #login-fill-doorhanger:not([inDetailView]) > #login-fill-details:-moz-locale-dir(rtl) {
5119   transform: translateX(-105%);
5120 }
5121
5122 #login-fill-doorhanger[inDetailView] > #login-fill-clickcapturer {
5123   background-color: hsla(240,39%,100%,.1);
5124 }
5125
5126 #login-fill-testing {
5127   color: #FF0000;
5128   font-weight: bold;
5129 }
5130
5131 #login-fill-list {
5132   border: 1px solid #9C9CFF;
5133   max-height: 20em;
5134 }
5135
5136 .login-fill-item[disabled] {
5137   color: #8050B0;
5138   background-color: #000000;
5139 }
5140
5141 .login-fill-item[disabled][selected] {
5142   background-color: #008484;
5143 }
5144
5145 .login-hostname {
5146   margin: 4px;
5147   font-weight: bold;
5148 }
5149
5150 .login-fill-item.different-hostname > .login-hostname {
5151   color: #A09090;
5152   font-style: italic;
5153 }
5154
5155 .login-username {
5156   margin: 4px;
5157   color: #A09090;
5158 }
5159
5160 #login-fill-details {
5161   padding: 4px;
5162   background: var(--panel-arrowcontent-background);
5163   color: var(--panel-arrowcontent-color);
5164   background-clip: padding-box;
5165   border-left: 1px solid #9C9CFF;
5166   -moz-margin-start: 38px;
5167 }
5168
5169 /* === END login-doorhanger.inc.css === */
5170
5171 /* === BEGIN customizeMode.inc.css === */
5172
5173 /* Customization mode */
5174
5175 #main-window:-moz-any([customize-entering],[customize-entered]) #browser-bottombox {
5176   margin-bottom: 1em;
5177 }
5178
5179 #main-window:-moz-any([customize-entering],[customize-entered]) #content-deck,
5180 #main-window:-moz-any([customize-entering],[customize-entered]) #browser-bottombox,
5181 #main-window:-moz-any([customize-entering],[customize-entered]) #navigator-toolbox {
5182   margin-left: 1em;
5183   margin-right: 1em;
5184 }
5185
5186 #main-window:-moz-any([customize-entering],[customize-exiting]) #tab-view-deck {
5187   pointer-events: none;
5188 }
5189
5190 #main-window[customize-entered] .customization-target:not(:-moz-any(#PanelUI-contents, #TabsToolbar, #toolbar-menubar))::before,
5191 #PanelUI-contents > .panel-customization-placeholder {
5192   -moz-outline-radius: 2.5px;
5193   outline: 1px dashed transparent;
5194 }
5195
5196 #main-window[customize-entered] .customization-target:not(:-moz-any(#PanelUI-contents, #TabsToolbar, #toolbar-menubar))::before {
5197   /* Prevent jumping of tabs when switching a window between inactive and active (bug 853415). */
5198   -moz-box-ordinal-group: 0;
5199   content: "";
5200   display: -moz-box;
5201   height: 100%;
5202   left: 0;
5203   outline-offset: -2px;
5204   pointer-events: none;
5205   position: absolute;
5206   top: 0;
5207   width: 100%;
5208 }
5209
5210 /* Shift the TabsToolbar outline up 2px since the #nav-bar is shifted up by 1px and the
5211    #TabsToolbar::after is a pixel higher to draw the bottom border of the tabstrip so this makes the
5212    offset from the bottom effectively the same as other targets (-2px). */
5213 #main-window[customize-entered] #TabsToolbar.customization-target::before {
5214 /*  top: -2px;*/
5215 }
5216
5217 /* The parents of the outline pseudo-elements need to be positioned so that the outline is positioned relative to it. */
5218 #main-window[customize-entered] .customization-target:not(:-moz-any(#PanelUI-contents, #TabsToolbar, #toolbar-menubar)):hover,
5219 #main-window[customize-entered] .customization-target[customizing-dragovertarget]:not(:-moz-any(#PanelUI-contents, #TabsToolbar, #toolbar-menubar)),
5220 #main-window[customize-entered] #nav-bar-customization-target.customization-target {
5221   position: relative;
5222 }
5223
5224 /* Most target outlines are shown on hover and drag over but the panel menu uses
5225    placeholders instead. */
5226 #main-window[customize-entered] .customization-target:not(:-moz-any(#PanelUI-contents, #TabsToolbar, #toolbar-menubar)):hover::before,
5227 #main-window[customize-entered] .customization-target[customizing-dragovertarget]:not(:-moz-any(#PanelUI-contents, #TabsToolbar, #toolbar-menubar))::before,
5228 /* nav-bar and panel outlines are always shown */
5229 #nav-bar[showoutline=true] > #nav-bar-customization-target.customization-target::before {
5230   outline-color: #A09090;
5231 }
5232
5233 #nav-bar[showoutline=true] > #nav-bar-customization-target.customization-target::before {
5234   transition: outline-color 250ms linear;
5235 }
5236
5237 #PanelUI-contents[showoutline=true] > .panel-customization-placeholder {
5238   transition: outline-color 250ms linear;
5239   outline-color: #9C9CFF;
5240 }
5241
5242 #PanelUI-contents > .panel-customization-placeholder {
5243   cursor: auto;
5244   outline-offset: -5px;
5245 }
5246
5247 #main-window[customizing] .customization-target:not(#PanelUI-contents) {
5248   min-width: 100px;
5249 /*  padding-left: 10px;
5250   padding-right: 10px;*/
5251 }
5252
5253 #main-window:-moz-any([customize-entering],[customize-entered]) #tab-view-deck {
5254   padding: 0 2em 2em;
5255 }
5256
5257 #customization-container {
5258   background-color: #000000;
5259   color: #FF9F00;
5260 }
5261
5262 #customization-palette,
5263 #customization-empty {
5264   padding: 0 15px 15px;
5265 }
5266
5267 #customization-header {
5268   font-size: 1.75em;
5269   line-height: 1.75em;
5270   color: #9C9CFF;
5271   font-weight: 200;
5272   margin: 25px 25px 12px;
5273   padding-bottom: 12px;
5274   border-bottom: 1px solid #A09090;
5275 }
5276
5277 #customization-panel-container {
5278   padding: 10px 10px 0px;
5279 }
5280
5281 #main-window:-moz-any([customize-entering],[customize-entered]) #browser-bottombox,
5282 #customization-footer {
5283   /*background-color: rgb(236,236,236);*/
5284 }
5285
5286 #customization-footer {
5287   border-top: 1px solid #9C9CFF;
5288   padding: 10px;
5289 }
5290
5291 .customizationmode-button {
5292   margin: 5px;
5293 }
5294
5295 .customizationmode-button:hover {
5296 }
5297
5298 #customization-titlebar-visibility-button[checked],
5299 #customization-devedition-theme-button[checked] {
5300   background-color: #008484;
5301 }
5302
5303 #customization-titlebar-visibility-button[checked]:hover,
5304 #customization-devedition-theme-button[checked]:hover {
5305   background-color: #FFCF00;
5306 }
5307
5308 #customization-titlebar-visibility-button[checked]:hover:active,
5309 #customization-devedition-theme-button[checked]:hover:active {
5310   background-color: #FF9F00;
5311 }
5312
5313 .customizationmode-button[disabled="true"] {
5314 }
5315
5316 .customizationmode-button > .box-inherit > .box-inherit > .button-icon,
5317 .customizationmode-button > .button-box > .button-icon {
5318 /*  height: 24px;*/
5319 }
5320
5321 #customization-titlebar-visibility-button {
5322   list-style-image: url("chrome://browser/skin/customizableui/customize-titleBar-toggle.png");
5323   -moz-image-region: rect(0, 16px, 16px, 0);
5324 }
5325
5326 #customization-titlebar-visibility-button:hover {
5327   -moz-image-region: rect(16px, 16px, 32px, 0);
5328 }
5329
5330 #customization-lwtheme-button,
5331 #customization-titlebar-visibility-button  {
5332   padding: 0px 5px;
5333 }
5334
5335 #customization-titlebar-visibility-button > .button-box {
5336   padding-top: 0;
5337   padding-bottom: 1px;
5338 }
5339
5340 #customization-titlebar-visibility-button:hover:active > .button-box {
5341   padding-top: 1px;
5342   padding-bottom: 0;
5343 }
5344
5345 #customization-lwtheme-button > .box-inherit > .box-inherit > .button-text,
5346 #customization-titlebar-visibility-button > .button-box > .button-text {
5347   /* Sadly, button.css thinks its margins are perfect for everyone. */
5348   -moz-margin-start: 5px !important;
5349 }
5350
5351 #customization-lwtheme-button > .box-inherit > .box-inherit > .button-icon {
5352   width: 20px;
5353   height: 20px;
5354   border-radius: 2px;
5355   background-size: contain;
5356 }
5357
5358 #customization-titlebar-visibility-button > .button-box > .button-icon {
5359   vertical-align: middle;
5360 }
5361
5362 #customization-titlebar-visibility-button[checked] {
5363   -moz-image-region: rect(0, 32px, 16px, 16px);
5364   background-color: #008484;
5365 }
5366
5367 #customization-titlebar-visibility-button[checked]:hover {
5368   -moz-image-region: rect(16px, 32px, 32px, 16px);
5369   background-color: #FFCF00;
5370 }
5371
5372 #customization-titlebar-visibility-button[checked]:hover:active {
5373   background-color: #FF9F00;
5374 }
5375
5376 @media (min-resolution: 1.1dppx) {
5377   #customization-titlebar-visibility-button {
5378     list-style-image: url("chrome://browser/skin/customizableui/customize-titleBar-toggle@2x.png");
5379     -moz-image-region: rect(0, 48px, 48px, 0);
5380   }
5381
5382   #customization-titlebar-visibility-button:hover {
5383     -moz-image-region: rect(48px, 48px, 96px, 0);
5384   }
5385
5386   #customization-titlebar-visibility-button[checked] {
5387     -moz-image-region: rect(0, 96px, 48px, 48px);
5388   }
5389   
5390   #customization-titlebar-visibility-button[checked]:hover {
5391     -moz-image-region: rect(48px, 96px, 96px, 48px);
5392   }
5393 }
5394
5395 #main-window[customize-entered] #customization-panel-container {
5396   background-image: url("chrome://browser/skin/customizableui/customizeMode-gridTexture.png");
5397   background-position: left top;
5398   background-repeat: repeat;
5399   background-size: auto;
5400   background-attachment: fixed;
5401 }
5402
5403 toolbarpaletteitem[place="toolbar"] {
5404   transition: border-width 250ms ease-in-out;
5405 }
5406
5407 toolbarpaletteitem[mousedown] {
5408   outline: 1px solid #008484;
5409   cursor: -moz-grabbing;
5410   opacity: 0.8;
5411 }
5412
5413 .panel-customization-placeholder,
5414 toolbarpaletteitem[place="palette"],
5415 toolbarpaletteitem[place="panel"] {
5416   transition: transform .3s ease-in-out;
5417 }
5418
5419 #customization-palette {
5420   transition: opacity .3s ease-in-out;
5421   opacity: 0;
5422 }
5423
5424 #customization-palette[showing="true"] {
5425   opacity: 1;
5426 }
5427
5428 toolbarpaletteitem[notransition].panel-customization-placeholder,
5429 toolbarpaletteitem[notransition][place="toolbar"],
5430 toolbarpaletteitem[notransition][place="palette"],
5431 toolbarpaletteitem[notransition][place="panel"] {
5432   transition: none;
5433 }
5434
5435 toolbarpaletteitem > toolbarbutton > .toolbarbutton-icon,
5436 toolbarpaletteitem > toolbarbutton > .toolbarbutton-badge-stack > .toolbarbutton-icon,
5437 toolbarpaletteitem > toolbaritem.panel-wide-item,
5438 toolbarpaletteitem > toolbarbutton[type="menu-button"] {
5439   transition: transform .3s cubic-bezier(.6, 2, .75, 1.5) !important;
5440 }
5441
5442 toolbarpaletteitem[mousedown] > toolbarbutton > .toolbarbutton-icon,
5443 toolbarpaletteitem[mousedown] > toolbarbutton > .toolbarbutton-badge-stack > .toolbarbutton-icon {
5444   transform: scale(1.3);
5445 }
5446
5447 toolbarpaletteitem[mousedown] > toolbaritem.panel-wide-item,
5448 toolbarpaletteitem[mousedown] > toolbarbutton[type="menu-button"] {
5449   transform: scale(1.1);
5450 }
5451
5452 /* Override the toolkit styling for items being dragged over. */
5453 toolbarpaletteitem[place="toolbar"] {
5454   border-left-width: 0;
5455   border-right-width: 0;
5456   margin-right: 0;
5457   margin-left: 0;
5458 }
5459
5460 #customization-palette:not([hidden]) {
5461   margin-bottom: 25px;
5462 }
5463
5464 #wrapper-edit-controls[place="palette"] > #edit-controls > toolbarbutton,
5465 #wrapper-edit-controls[place="palette"] > #edit-controls > separator,
5466 #wrapper-zoom-controls[place="palette"] > #zoom-controls > toolbarbutton,
5467 #wrapper-zoom-controls[place="palette"] > #zoom-controls > separator {
5468   margin-top: 20px;
5469 }
5470
5471 #wrapper-edit-controls[place="palette"] > #edit-controls > toolbarbutton,
5472 #wrapper-zoom-controls[place="palette"] > #zoom-controls > toolbarbutton {
5473   margin-left: 0;
5474   margin-right: 0;
5475   max-width: 24px;
5476   min-width: 24px;
5477   max-height: 24px;
5478   min-height: 24px;
5479   padding: 4px;
5480 }
5481
5482 #wrapper-edit-controls[place="palette"] > #edit-controls > toolbarbutton > .toolbarbutton-icon,
5483 #wrapper-zoom-controls[place="palette"] > #zoom-controls > toolbarbutton > .toolbarbutton-icon {
5484   width: 16px;
5485 }
5486
5487 #wrapper-edit-controls > #edit-controls > toolbarbutton > .toolbarbutton-icon {
5488   opacity: 1; /* To ensure these buttons always look enabled in customize mode */
5489 }
5490
5491 #wrapper-zoom-controls[place="palette"] > #zoom-controls > #zoom-reset-button,
5492 #wrapper-zoom-controls[place="palette"] > #zoom-controls > #zoom-reset-button + separator {
5493   display: none;
5494 }
5495
5496 #wrapper-personal-bookmarks:not([place="toolbar"]) > #personal-bookmarks {
5497   -moz-box-pack: center;
5498   min-height: 48px;
5499 }
5500
5501 #personal-bookmarks[cui-areatype="toolbar"]:not([overflowedItem=true]) > #bookmarks-toolbar-placeholder > .toolbarbutton-icon {
5502   -moz-margin-end: 5px;
5503 }
5504
5505 #customization-palette > toolbarpaletteitem > label {
5506   text-align: center;
5507   margin-left: 0;
5508   margin-right: 0;
5509 }
5510
5511 #customization-lwtheme-menu > .panel-arrowcontainer > .panel-arrowcontent {
5512   -moz-box-orient: vertical;
5513   /* Make the panel padding uniform across all platforms due to the
5514      styling of the section headers and footer. */
5515   padding: 10px;
5516 }
5517
5518 .customization-lwtheme-menu-theme > .toolbarbutton-icon {
5519   width: 32px;
5520   height: 32px;
5521 }
5522
5523 .customization-lwtheme-menu-theme {
5524   -moz-appearance: none;
5525   margin: 0 -5px 5px;
5526   padding-top: 0;
5527   -moz-padding-end: 5px;
5528   padding-bottom: 0;
5529   -moz-padding-start: 0;
5530 }
5531
5532 .customization-lwtheme-menu-theme[defaulttheme] {
5533   list-style-image: url(chrome://browser/skin/Fxtheme-switcher-icon.png);
5534 }
5535
5536 .customization-lwtheme-menu-theme[active="true"] {
5537   background-color: #008484;
5538 }
5539
5540 .customization-lwtheme-menu-theme > .toolbarbutton-icon {
5541   margin: 5px;
5542 }
5543
5544 .customization-lwtheme-menu-theme > .toolbarbutton-text {
5545   text-align: start;
5546 }
5547
5548 #customization-lwtheme-menu-header,
5549 #customization-lwtheme-menu-recommended {
5550   padding: 10px;
5551   margin-bottom: 5px;
5552 }
5553
5554 #customization-lwtheme-menu-header,
5555 #customization-lwtheme-menu-recommended,
5556 #customization-lwtheme-menu-footer {
5557   background-color: #A09090;
5558   color: #000000;
5559   margin-right: -10px;
5560   margin-left: -10px;
5561 }
5562
5563 #customization-lwtheme-menu-header {
5564   margin-top: -10px;
5565   border-top-right-radius: 3px;
5566   border-top-left-radius: 3px;
5567 }
5568
5569 #customization-lwtheme-menu-recommended {
5570 }
5571
5572 #customization-lwtheme-menu-footer {
5573   margin-bottom: -10px;
5574   border-bottom-right-radius: 3px;
5575   border-bottom-left-radius: 3px;
5576 }
5577
5578 .customization-lwtheme-menu-footeritem {
5579   -moz-appearance: none;
5580   -moz-box-flex: 1;
5581   background-color: #C09070;
5582   color: #000000;
5583   border: 1px solid transparent;
5584   padding: 10px;
5585   margin-left: 0;
5586   margin-right: 0;
5587 }
5588
5589 .customization-lwtheme-menu-footeritem:hover {
5590   background-color: #FFCF00;
5591 }
5592
5593 .customization-lwtheme-menu-footeritem:first-child {
5594 }
5595
5596 /* === END customizeMode.inc.css === */
5597
5598 /* === BEGIN customizeTip.inc.css === */
5599
5600 #customization-tipPanel > .panel-arrowcontainer > .panel-arrowcontent {
5601   padding: 0;
5602   margin: 0;
5603   min-width: 400px;
5604   max-width: 1000px;
5605   min-height: 200px;
5606   border-radius: 3px;
5607 /*  background-image: linear-gradient(90deg, #a0dfff 0%, #ceeeff 100%);*/
5608   border: 1px solid #9C9CFF;
5609   color: #FF9F00;
5610 }
5611
5612 #customization-tipPanel > .panel-arrowcontainer > .panel-arrowcontent:-moz-locale-dir(rtl) {
5613 /*  background-image: linear-gradient(90deg, #ceeeff 0%, #a0dfff 100%);*/
5614 }
5615
5616 .customization-tipPanel-infoBox {
5617   margin: 20px 25px 25px;
5618   width: 25px;
5619   background-image: url("chrome://browser/skin/customizableui/info-icon-customizeTip.png");
5620   background-repeat: no-repeat;
5621 }
5622
5623 .customization-tipPanel-content {
5624   margin: 25px 0;
5625   font-size: 12px;
5626   line-height: 18px;
5627 }
5628
5629 .customization-tipPanel-em {
5630   margin: 0;
5631   font-weight: bold;
5632 }
5633
5634 .customization-tipPanel-contentImage {
5635   margin-top: 25px;
5636   list-style-image: url("chrome://browser/skin/customizableui/customize-illustration.png");
5637   min-width: 300px;
5638   max-width: 300px;
5639   min-height: 190px;
5640   max-height: 190px;
5641   display: -moz-box;
5642 }
5643
5644 .customization-tipPanel-contentImage:-moz-locale-dir(rtl) {
5645   list-style-image: url("chrome://browser/skin/customizableui/customize-illustration-rtl.png");
5646 }
5647
5648 .customization-tipPanel-link {
5649   -moz-appearance: none;
5650   background: transparent;
5651   border: none;
5652   box-shadow: none;
5653   color: #3333FF;
5654   margin: 0;
5655   cursor: pointer;
5656 }
5657
5658 .customization-tipPanel-link > .button-box > .button-text {
5659   margin: 0 !important;
5660 }
5661
5662 .customization-tipPanel-closeBox > .close-icon {
5663   -moz-appearance: none;
5664   border: 0;
5665   -moz-margin-end: -25px;
5666 }
5667
5668 #customization-tipPanel > .panel-arrowcontainer > .panel-arrowbox > .panel-arrow[side="left"],
5669 #customization-tipPanel > .panel-arrowcontainer > .panel-arrowbox > .panel-arrow[side="right"] {
5670   list-style-image: url("chrome://browser/skin/customizableui/panelarrow-customizeTip.png");
5671 }
5672
5673 /* === END customizeTip.inc.css === */
5674
5675 /**
5676  * This next rule is a hack to disable subpixel anti-aliasing on all
5677  * labels during the customize mode transition. Subpixel anti-aliasing
5678  * on Windows with Direct2D layers acceleration is particularly slow to
5679  * paint, so this hack is how we sidestep that performance bottleneck.
5680  */
5681 #main-window:-moz-any([customize-entering],[customize-exiting]) label {
5682   transform: perspective(0.01px);
5683 }
5684
5685 #main-window[customize-entered] > #tab-view-deck {
5686   background-image: url("chrome://browser/skin/customizableui/customizeMode-gridTexture.png");
5687   background-attachment: fixed;
5688 }
5689
5690 #main-window[customization-lwtheme] > #tab-view-deck:-moz-lwtheme {
5691   background-repeat: no-repeat;
5692   background-position: right top;
5693   background-attachment: fixed;
5694   /* The image will get set from CustomizeMode.jsm */
5695   background-image: none;
5696   background-color: transparent;
5697 }
5698
5699 #main-window[customization-lwtheme]:-moz-lwtheme {
5700   background-image: url("chrome://browser/skin/customizableui/customizeMode-gridTexture.png");
5701   background-repeat: repeat;
5702   background-attachment: fixed;
5703   background-position: left top;
5704 }
5705
5706 #main-window[customize-entered] #browser-bottombox,
5707 #main-window[customize-entered] #customization-container {
5708   border-left: 1px solid #9C9CFF;
5709   border-right: 1px solid #9C9CFF;
5710   background-clip: padding-box;
5711 }
5712
5713 #main-window[customize-entered] #browser-bottombox {
5714   border-bottom: 1px solid #9C9CFF;
5715 }
5716
5717 #customization-tipPanel > .panel-arrowcontainer > .panel-arrowbox > .panel-arrow[side="left"] {
5718   margin-right: -2px;
5719 }
5720
5721 #customization-tipPanel > .panel-arrowcontainer > .panel-arrowbox > .panel-arrow[side="right"] {
5722   margin-left: -2px;
5723 }
5724
5725 /* End customization mode */
5726
5727 /* Private browsing indicators */
5728
5729 /**
5730  * Currently, we have two places where we put private browsing indicators on
5731  * Windows. When tabsintitlebar is enabled, we draw the indicator in the titlebar.
5732  * When tabsintitlebar is disabled, we draw the indicator at the end of the
5733  * tabstrip. The titlebar indicator is the fiddliest of the bunch, since we
5734  * want the bottom border of the image to line up with the bottom of the window
5735  * caption buttons. That's why there's so much special-casing going on in here.
5736  */
5737 .private-browsing-indicator {
5738   display: none;
5739   pointer-events: none;
5740 }
5741
5742 #private-browsing-indicator-titlebar {
5743   display: block;
5744   position: absolute;
5745 }
5746
5747 #main-window[privatebrowsingmode=temporary][tabsintitlebar] #private-browsing-indicator-titlebar > .private-browsing-indicator {
5748   display: block;
5749 }
5750
5751 #main-window[privatebrowsingmode=temporary]:-moz-any([inFullscreen],:not([tabsintitlebar])) #TabsToolbar > .private-browsing-indicator {
5752   display: -moz-box;
5753 }
5754
5755 #TabsToolbar > .private-browsing-indicator {
5756   background: url("chrome://browser/skin/privatebrowsing-mask-tabstrip.png") no-repeat center -3px;
5757   -moz-margin-start: 4px;
5758   width: 48px;
5759 }
5760
5761 /* Bug 1008183: We're intentionally using the titlebar asset here for fullscreen
5762  * mode, since the tabstrip "mimics" the titlebar in that case with its own
5763  * min/max/close window buttons.
5764  */
5765 #private-browsing-indicator-titlebar > .private-browsing-indicator,
5766 #main-window[inFullscreen] #TabsToolbar > .private-browsing-indicator {
5767   background: url("chrome://browser/skin/privatebrowsing-mask-titlebar.png") no-repeat center 0px;
5768   -moz-margin-end: 4px;
5769   width: 40px;
5770   height: 20px;
5771   position: relative;
5772 }
5773
5774 /* This one is for Linux */
5775 #main-window[privatebrowsingmode=temporary] #private-browsing-indicator {
5776   background: url("chrome://browser/skin/privatebrowsing-mask-tabstrip.png") center no-repeat;
5777   width: 48px;
5778 }
5779
5780 /* End private browsing indicators */
5781
5782 /* === BEGIN UITour.inc.css === */
5783
5784 /* UI Tour */
5785
5786 #UITourHighlightContainer {
5787   -moz-appearance: none;
5788   border: none;
5789   background-color: transparent;
5790   /* This is a buffer to compensate for the movement in the "wobble" effect */
5791   padding: 4px;
5792 }
5793
5794 #UITourHighlight {
5795   background-image: radial-gradient(50% 100%, rgba(0,132,132,0.4) 50%, rgba(0,132,132,0.6) 100%);
5796   border-radius: 40px;
5797   border: 1px solid #9C9CFF;
5798   /* The box-shadow opacity needs to be < 0.5 so it doesn't appear at 100% opacity
5799      on Linux without an X compositor where opacity is either 0 or 1. */
5800   box-shadow: 0 0 3px 0 rgba(0,0,0,0.49);
5801   min-height: 32px;
5802   min-width: 32px;
5803 }
5804
5805 #UITourTooltipBody {
5806   -moz-margin-end: 14px;
5807 }
5808
5809 #UITourTooltipBody > vbox {
5810   padding-top: 4px;
5811 }
5812
5813 #UITourTooltipIconContainer {
5814   -moz-margin-start: -16px;
5815 }
5816
5817 #UITourTooltipIcon {
5818   width: 48px;
5819   height: 48px;
5820   -moz-margin-start: 28px;
5821   -moz-margin-end: 28px;
5822 }
5823
5824 #UITourTooltipTitle,
5825 #UITourTooltipDescription {
5826   max-width: 20rem;
5827 }
5828
5829 #UITourTooltipTitle {
5830   font-size: 1.45rem;
5831   font-weight: bold;
5832   -moz-margin-start: 0;
5833   -moz-margin-end: 0;
5834   margin: 0 0 9px 0;
5835 }
5836
5837 #UITourTooltipDescription {
5838   -moz-margin-start: 0;
5839   -moz-margin-end: 0;
5840   font-size: 1.15rem;
5841   line-height: 1.8rem;
5842   margin-bottom: 0; /* Override global.css */
5843 }
5844
5845 #UITourTooltipClose {
5846   -moz-appearance: none;
5847   border: none;
5848   background-color: transparent;
5849   min-width: 0;
5850   -moz-margin-start: 4px;
5851   margin-top: -2px;
5852 }
5853
5854 #UITourTooltipClose > .toolbarbutton-text {
5855   display: none;
5856 }
5857
5858 #UITourTooltipButtons {
5859   -moz-box-pack: end;
5860   background-color: rgba(0,0,0,.2);
5861   border-top: 1px solid rgba(0,0,0,.4);
5862   margin: 24px -16px -16px;
5863   padding: 2em 15px;
5864 }
5865
5866 #UITourTooltipButtons > label,
5867 #UITourTooltipButtons > button {
5868   margin: 0 15px;
5869 }
5870
5871 #UITourTooltipButtons > label:first-child,
5872 #UITourTooltipButtons > button:first-child {
5873   -moz-margin-start: 0;
5874 }
5875
5876 #UITourTooltipButtons > button[image] > .button-box > .button-icon {
5877   width: 16px;
5878   height: 16px;
5879   -moz-margin-end: 5px;
5880 }
5881
5882 #UITourTooltipButtons > label,
5883 #UITourTooltipButtons > button .button-text {
5884   font-size: 1.15rem;
5885 }
5886
5887 #UITourTooltipButtons > button:not(.button-link) {
5888   -moz-appearance: none;
5889   background-color: #C09070;
5890   border-radius: 3000px;
5891   border: none;
5892   color: #000000;
5893   padding: 4px 30px;
5894   transition-property: background-color, color;
5895   transition-duration: 150ms;
5896 }
5897
5898 #UITourTooltipButtons > button:not(.button-link):not(:active):hover {
5899   background-color: #FFCF00;
5900   color: #000000;
5901 }
5902
5903 #UITourTooltipButtons > label,
5904 #UITourTooltipButtons > button.button-link {
5905   -moz-appearance: none;
5906   background: transparent;
5907   border: none;
5908   box-shadow: none;
5909   color: rgba(0,0,0,0.35);
5910   padding-left: 10px;
5911   padding-right: 10px;
5912 }
5913
5914 #UITourTooltipButtons > button.button-link:hover {
5915   color: black;
5916 }
5917
5918 /* The primary button gets the same color as the customize button. */
5919 #UITourTooltipButtons > button.button-primary {
5920   background-color: #A06060; /* LCARS default button background color */
5921   color: #000000;
5922   padding-left: 30px;
5923   padding-right: 30px;
5924 }
5925
5926 #UITourTooltipButtons > button.button-primary:not(:active):hover {
5927   background-color: #FFCF00;
5928   color: #000000;
5929 }
5930
5931 /* Notification overrides for Heartbeat UI */
5932
5933 notification.heartbeat {
5934   background-color: #A09090;
5935 /*  height: 40px;*/
5936 }
5937
5938 @keyframes pulse-onshow {
5939  0% {
5940    opacity: 0;
5941    transform: scale(1.0);
5942  }
5943  25% {
5944    opacity: 1;
5945    transform: scale(1.1);
5946  }
5947  50% {
5948    transform: scale(1.0);
5949  }
5950  75% {
5951    transform: scale(1.1);
5952  }
5953  100% {
5954    transform: scale(1.0);
5955  }
5956 }
5957
5958 @keyframes pulse-twice {
5959  0% {
5960    transform: scale(1.1);
5961  }
5962  50% {
5963    transform: scale(0.8);
5964  }
5965  100% {
5966    transform: scale(1);
5967  }
5968 }
5969
5970 .messageText.heartbeat {
5971   color: #000000;
5972 /*  text-shadow: none; */
5973   -moz-margin-start: 0px;
5974 }
5975
5976 .messageImage.heartbeat {
5977   width: 24px;
5978   height: 24px;
5979   -moz-margin-start: 8px;
5980   -moz-margin-end: 8px;
5981 }
5982
5983 .messageImage.heartbeat.pulse-onshow {
5984   animation-name: pulse-onshow;
5985   animation-duration: 1.5s;
5986   animation-iteration-count: 1;
5987   animation-timing-function: cubic-bezier(.7,1.8,.9,1.1);
5988 }
5989
5990 .messageImage.heartbeat.pulse-twice {
5991   animation-name: pulse-twice;
5992   animation-duration: 1s;
5993   animation-iteration-count: 2;
5994   animation-timing-function: linear;
5995 }
5996
5997 /* Learn More link styles */
5998 .heartbeat > .text-link {
5999   color: #3333FF;
6000   -moz-margin-start: 0px;
6001 }
6002
6003 .heartbeat > .text-link:hover {
6004   color: #9C9CFF;
6005   text-decoration: none;
6006 }
6007
6008 .heartbeat > .text-link:hover:active {
6009   color: #FF9F00;
6010 }
6011
6012 /* Heartbeat UI Rating Star Classes */
6013 .heartbeat > #star-rating-container {
6014   display: -moz-box;
6015 /*  margin-bottom: 4px;*/
6016 }
6017
6018 .heartbeat > #star-rating-container > #star5 {
6019   -moz-box-ordinal-group: 5;
6020 }
6021
6022 .heartbeat > #star-rating-container > #star4 {
6023   -moz-box-ordinal-group: 4;
6024 }
6025
6026 .heartbeat > #star-rating-container > #star3 {
6027   -moz-box-ordinal-group: 3;
6028 }
6029
6030 .heartbeat > #star-rating-container > #star2 {
6031   -moz-box-ordinal-group: 2;
6032 }
6033
6034 .heartbeat > #star-rating-container > .star-x  {
6035   background: url("chrome://browser/skin/heartbeat-star-off.svg");
6036   cursor: pointer;
6037   /* Overrides the -moz-margin-end for all platforms defined in the .plain class */
6038   -moz-margin-end: 4px !important;
6039   width: 16px;
6040   height: 16px;
6041 }
6042
6043 .heartbeat > #star-rating-container > .star-x:hover,
6044 .heartbeat > #star-rating-container > .star-x:hover ~ .star-x {
6045   background: url("chrome://browser/skin/heartbeat-star-lit.svg");
6046 }
6047
6048 /* === END UITour.inc.css === */
6049
6050 #UITourTooltipButtons {
6051   /**
6052    * Override the --panel-arrowcontent-padding so the background extends
6053    * to the sides and bottom of the panel.
6054    */
6055   margin-left: -10px;
6056   margin-right: -10px;
6057   margin-bottom: -10px;
6058 }
6059
6060 /* === BEGIN contextmenu.inc.css === */
6061
6062 menugroup > .menuitem-iconic[disabled="true"] > .menu-iconic-left {
6063 }
6064
6065 #context-navigation > .menuitem-iconic {
6066   -moz-box-flex: 1;
6067   -moz-box-pack: center;
6068   -moz-box-align: center;
6069 }
6070
6071 #context-navigation > .menuitem-iconic[disabled="true"] {
6072   background-color: transparent;
6073 }
6074
6075 #context-navigation > .menuitem-iconic > .menu-iconic-left {
6076   -moz-appearance: none;
6077 }
6078
6079 #context-back > .menu-iconic-left {
6080   /* list-style-image: url("chrome://browser/skin/content-contextmenu.svg#back"); */
6081   list-style-image: url("chrome://browser/skin/ToolbarFx.png");
6082   -moz-image-region: rect(0, 54px, 18px, 36px);
6083 }
6084
6085 #context-back:not([disabled="true"]):hover > .menu-iconic-left {
6086   /* list-style-image: url("chrome://browser/skin/content-contextmenu.svg#back-active"); */
6087   -moz-image-region: rect(18px, 54px, 36px, 36px);
6088 }
6089
6090 #context-back[disabled="true"] > .menu-iconic-left {
6091   /* list-style-image: url("chrome://browser/skin/content-contextmenu.svg#back-disabled"); */
6092   -moz-image-region: rect(36px, 54px, 54px, 36px);
6093 }
6094
6095 #context-forward > .menu-iconic-left {
6096   /* list-style-image: url("chrome://browser/skin/content-contextmenu.svg#forward"); */
6097   list-style-image: url("chrome://browser/skin/ToolbarFx.png");
6098   -moz-image-region: rect(0, 72px, 18px, 54px);
6099 }
6100
6101 #context-forward:not([disabled="true"]):hover > .menu-iconic-left {
6102   /* list-style-image: url("chrome://browser/skin/content-contextmenu.svg#forward-active"); */
6103   -moz-image-region: rect(18px, 72px, 36px, 54px);
6104 }
6105
6106 #context-forward[disabled="true"] > .menu-iconic-left {
6107   /* list-style-image: url("chrome://browser/skin/content-contextmenu.svg#forward-disabled"); */
6108   -moz-image-region: rect(36px, 72px, 54px, 54px);
6109 }
6110
6111 #context-reload > .menu-iconic-left {
6112   /* list-style-image: url("chrome://browser/skin/content-contextmenu.svg#reload"); */
6113   list-style-image: url("chrome://browser/skin/reload-stop-goFx.png");
6114   -moz-image-region: rect(0, 14px, 14px, 0);
6115 }
6116
6117 #context-reload:not([disabled="true"]):hover > .menu-iconic-left {
6118   /* list-style-image: url("chrome://browser/skin/content-contextmenu.svg#reload-active"); */
6119   -moz-image-region: rect(14px, 14px, 28px, 0);
6120 }
6121
6122 #context-reload[disabled="true"] > .menu-iconic-left {
6123   /* list-style-image: url("chrome://browser/skin/content-contextmenu.svg#reload-disabled"); */
6124   -moz-image-region: rect(28px, 14px, 42px, 0);
6125 }
6126
6127 #context-stop > .menu-iconic-left {
6128   /* list-style-image: url("chrome://browser/skin/content-contextmenu.svg#stop"); */
6129   list-style-image: url("chrome://browser/skin/reload-stop-goFx.png");
6130   -moz-image-region: rect(0, 28px, 14px, 14px);
6131 }
6132
6133 #context-stop:not([disabled="true"]):hover > .menu-iconic-left {
6134   /* list-style-image: url("chrome://browser/skin/content-contextmenu.svg#stop-active"); */
6135   -moz-image-region: rect(14px, 28px, 28px, 14px);
6136 }
6137
6138 #context-stop[disabled="true"] > .menu-iconic-left {
6139   /* list-style-image: url("chrome://browser/skin/content-contextmenu.svg#stop-disabled"); */
6140   -moz-image-region: rect(28px, 28px, 42px, 14px);
6141 }
6142
6143 #context-bookmarkpage > .menu-iconic-left {
6144   /* list-style-image: url("chrome://browser/skin/content-contextmenu.svg#bookmark"); */
6145   list-style-image: url("chrome://browser/skin/ToolbarFx.png");
6146   -moz-image-region: rect(0, 144px, 18px, 126px);
6147 }
6148
6149 #context-bookmarkpage:not([disabled="true"]):hover > .menu-iconic-left {
6150   /* list-style-image: url("chrome://browser/skin/content-contextmenu.svg#bookmark-active"); */
6151   -moz-image-region: rect(18px, 144px, 36px, 126px);
6152 }
6153
6154 #context-bookmarkpage[disabled="true"] > .menu-iconic-left {
6155   /* list-style-image: url("chrome://browser/skin/content-contextmenu.svg#bookmark-disabled"); */
6156   -moz-image-region: rect(36px, 144px, 54px, 126px);
6157 }
6158
6159 #context-bookmarkpage[starred=true] {
6160   /* list-style-image: url("chrome://browser/skin/content-contextmenu.svg#bookmarked"); */
6161   -moz-image-region: rect(0px, 162px, 18px, 144px);
6162 }
6163
6164 #context-bookmarkpage[starred=true][_moz-menuactive=true] {
6165   /* list-style-image: url("chrome://browser/skin/content-contextmenu.svg#bookmarked-active"); */
6166   -moz-image-region: rect(18px, 162px, 36px, 144px);
6167 }
6168
6169 #context-bookmarkpage[starred=true][disabled=true] {
6170   /* list-style-image: url("chrome://browser/skin/content-contextmenu.svg#bookmarked-disabled"); */
6171   -moz-image-region: rect(36px, 162px, 54px, 144px);
6172 }
6173
6174 #context-back:-moz-locale-dir(rtl),
6175 #context-forward:-moz-locale-dir(rtl),
6176 #context-reload:-moz-locale-dir(rtl) {
6177   transform: scaleX(-1);
6178 }
6179
6180 #context-navigation > .menuitem-iconic > .menu-iconic-left > .menu-iconic-icon {
6181   width: 18px; /*16px;*/
6182   height: 18px; /*16px;*/
6183   margin: 7px;
6184 }
6185
6186 #context-navigation > #context-reload > .menu-iconic-left > .menu-iconic-icon,
6187 #context-navigation > #context-stop > .menu-iconic-left > .menu-iconic-icon {
6188   width: 14px;
6189   height: 14px;
6190   margin: 9px;
6191 }
6192
6193 #context-media-eme-learnmore {
6194   list-style-image: url("chrome://browser/skin/drm-icon.svg#chains");
6195 }
6196
6197 #context-media-eme-learnmore {
6198   list-style-image: url("chrome://browser/skin/drm-icon.svg#chains");
6199 }
6200
6201 #fill-login {
6202   list-style-image: url("chrome://mozapps/skin/passwordmgr/key-16.png");
6203 }
6204
6205 /* === END contextmenu.inc.css === */
6206
6207 #context-navigation {
6208 }
6209
6210 #context-sep-navigation {
6211 /*  margin-top: -4px; */
6212 }
6213
6214 .browser-action-panel > .panel-arrowcontainer > .panel-arrowcontent {
6215   padding: 0;
6216 }