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