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