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