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