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