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