seventh part of syncing LCARStrek with Firefox 29 windows theme changes
[themes.git] / LCARStrek / browser / customizableui / panelUIOverlay.css
CommitLineData
43cc2806
RK
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/* === BEGIN panelUIOverlay.inc.css === */
6
51994fad
RK
7#PanelUI-popup #PanelUI-contents:empty {
8 height: 128px;
9}
10
11#PanelUI-popup #PanelUI-contents:empty::before {
12 content: "";
13 background-image: url("chrome://browser/skin/customizableui/whimsy-bw.png");
14 display: block;
15 width: 64px;
16 height: 64px;
17 position: absolute;
18 animation: moveX 3.05s linear 0s infinite alternate,
19 moveY 3.4s linear 0s infinite alternate;
20}
21
22#PanelUI-popup #PanelUI-contents:empty:hover::before {
23 background-image: url("chrome://browser/skin/customizableui/whimsy.png");
24}
25
26@media (min-resolution: 2dppx) {
27 #PanelUI-popup #PanelUI-contents:empty::before {
28 background-image: url("chrome://browser/skin/customizableui/whimsy-bw@2x.png");
29 background-size: 64px 64px;
30 }
31 #PanelUI-popup #PanelUI-contents:empty:hover::before {
32 background-image: url("chrome://browser/skin/customizableui/whimsy@2x.png");
33 }
34}
35
36@keyframes moveX {
37 /* These values are adjusted for the padding on the panel. */
38 from { margin-left: -15px; } to { margin-left: calc(100% - 49px); }
39}
40@keyframes moveY {
41 /* These values are adjusted for the padding and height of the panel. */
42 from { margin-top: -6px; } to { margin-top: 58px; }
43}
44
cc4b0b0d
RK
45#customization-panelHolder {
46 border-radius: 4px;
47}
48
e28f3f71 49#PanelUI-button {
46e71434 50 -moz-margin-start: 3px;
e28f3f71
RK
51}
52
53#PanelUI-button:-moz-locale-dir(rtl) {
54}
55
43cc2806 56.panel-subviews {
e28f3f71 57 padding: 4px;
43cc2806
RK
58 background-color: #000000;
59 -moz-margin-start: 38px;
60}
61
43cc2806 62.panel-viewstack[viewtype="main"] > .panel-subviews {
45dc7657 63 transform: translateX(22.35em);
43cc2806
RK
64}
65
66.panel-viewstack[viewtype="main"] > .panel-subviews:-moz-locale-dir(rtl) {
45dc7657 67 transform: translateX(-22.35em);
43cc2806
RK
68}
69
51994fad
RK
70panelmultiview[nosubviews=true] > .panel-viewcontainer > .panel-viewstack > .panel-subviews {
71 display: none;
72}
73
43cc2806
RK
74.panel-viewstack:not([viewtype="main"]) > .panel-mainview > #PanelUI-mainView {
75 -moz-box-flex: 1;
76}
77
e28f3f71
RK
78.panel-subview-body {
79 overflow-y: auto;
80 overflow-x: hidden;
81 -moz-box-flex: 1;
82}
83
84#PanelUI-popup .panel-subview-body {
85 margin: -4px;
86 padding: 2px 4px;
87}
88
89.panel-subview-header,
90.subviewbutton.panel-subview-footer {
91 padding: 3px;
92}
93
94.panel-subview-header {
95 margin: 0 0 4px;
96 background-color: #A09090;
97 color: #000000;
98 border-radius: 4px;
99}
100
101.panel-subview-footer {
102 border-top: 1px solid #A09090;
103}
104
105.cui-widget-panelview .panel-subview-header {
106 display: none;
107}
108
109.cui-widget-panelview .subviewbutton.panel-subview-footer {
110 margin: 4px 0 0;
111 -moz-box-pack: center;
112}
113
43cc2806
RK
114#PanelUI-mainView {
115 display: flex;
116 flex-direction: column;
cc4b0b0d 117 border-radius: 4px;
43cc2806
RK
118}
119
120#app-extension-point-end > #PanelUI-menu-button {
121 padding: 2px 5px;
122}
123#app-extension-point-end > #PanelUI-menu-button .toolbarbutton-text {
124 display: none;
125}
126#app-extension-point-end > #PanelUI-menu-button .toolbarbutton-icon {
127 margin: 0;
128}
129
130#PanelUI-popup > arrowscrollbox > autorepeatbutton {
131 display: none;
132}
133#PanelUI-popup > arrowscrollbox > scrollbox {
134 overflow: visible;
135}
136
137#PanelUI-popup > .panel-arrowcontainer > .panel-arrowcontent {
138 overflow: hidden;
139 padding: 0;
140}
141
142#PanelUI-contents {
143 padding: .5em 0;
144}
145
51994fad 146.panelUI-grid .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-multiline-text,
45dc7657 147.panelUI-grid .toolbarbutton-1 > .toolbarbutton-multiline-text {
5401f433
RK
148/* line-height: 1.1;*/
149 max-height: 2.2em;
150}
151
152.panelUI-grid .toolbarbutton-1:not([auto-hyphens="off"]) > .toolbarbutton-menubutton-button > .toolbarbutton-multiline-text,
153.panelUI-grid .toolbarbutton-1:not([auto-hyphens="off"]) > .toolbarbutton-multiline-text {
45dc7657 154 -moz-hyphens: auto;
43cc2806
RK
155}
156
5401f433
RK
157.panelUI-grid:not([customize-transitioning]) .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-multiline-text,
158.panelUI-grid:not([customize-transitioning]) .toolbarbutton-1 > .toolbarbutton-multiline-text {
159 position: absolute;
160 clip: rect(auto, auto, 2.3em, auto);
161}
162
163.panelUI-grid .toolbarbutton-1 > .toolbarbutton-text,
164.panelUI-grid .toolbarbutton-1 > .toolbarbutton-multiline-text {
165 text-align: center;
166 /* Need to override toolkit theming which sets margin: 0 !important; */
167 margin: 2px 0 0 !important;
168}
169
170.panelUI-grid .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-multiline-text {
171 text-align: center;
172 margin: -1px 0 0;
173}
174
43cc2806
RK
175#wrapper-edit-controls:-moz-any([place="palette"],[place="panel"]) > #edit-controls,
176#wrapper-zoom-controls:-moz-any([place="palette"],[place="panel"]) > #zoom-controls {
177 -moz-margin-start: 0;
178}
179
51994fad
RK
180#PanelUI-contents {
181 max-width: 22.35em;
182}
183
46e71434 184#BMB_bookmarksPopup,
43cc2806 185.panel-mainview:not([panelid="PanelUI-popup"]) {
51994fad 186 max-width: 30em;
43cc2806
RK
187}
188
189panelview:not([mainview]) .toolbarbutton-text,
e28f3f71 190.cui-widget-panel toolbarbutton > .toolbarbutton-text {
43cc2806
RK
191 text-align: start;
192 -moz-padding-start: 8px;
193 display: -moz-box;
194}
195
e28f3f71
RK
196.cui-widget-panel > .panel-arrowcontainer > .panel-arrowcontent {
197 padding: 0;
198}
199
200.cui-widget-panel.cui-widget-panelWithFooter > .panel-arrowcontainer > .panel-arrowcontent {
201 padding-bottom: 0;
202}
203
43cc2806
RK
204#PanelUI-contents {
205 display: block;
206 flex: auto;
207 margin-left: auto;
208 margin-right: auto;
45dc7657 209 max-width: 22.35em;
43cc2806
RK
210}
211
212#PanelUI-contents-scroller {
213 overflow-y: auto;
214 overflow-x: hidden;
45dc7657 215 width: 22.35em;
43cc2806
RK
216 flex: auto;
217}
218
51994fad 219.toolbaritem-combined-buttons:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > toolbarbutton > .toolbarbutton-icon {
43cc2806
RK
220 min-width: 0;
221 min-height: 0;
222 margin: 0;
223}
224
225toolbaritem[cui-areatype="menu-panel"][sdkstylewidget="true"]:not(.panel-wide-item),
e28f3f71
RK
226.panelUI-grid .toolbarbutton-1,
227.panel-customization-placeholder-child {
43cc2806
RK
228 -moz-appearance: none;
229 -moz-box-orient: vertical;
46e71434 230 width: calc(22.35em / 3 - 0.1px - 2px); /* LCARStrek: XXX: found out to be needed to fit the icons */
e28f3f71
RK
231 height: calc(51px + 2.2em);
232}
233
5401f433
RK
234/* In order to have button labels constrained appropriately, items inside the toolbarpaletteitem
235 * should have a min-width set so they abide by the width set above (which they do outside of
236 * customize mode because they're in a flexed container) */
237toolbarpaletteitem[place="panel"]:not([haswideitem=true]) > .toolbarbutton-1 {
238 min-width: 0.01px;
239}
240
e28f3f71
RK
241/* Help SDK buttons fit in. */
242toolbarpaletteitem[place="palette"] > toolbarbutton[sdk-button="true"] > .toolbarbutton-icon,
243toolbarbutton[sdk-button="true"][cui-areatype="menu-panel"] > .toolbarbutton-icon {
244 height: 32px;
245 width: 32px;
246}
247
248.customization-palette .toolbarbutton-1 {
249 -moz-appearance: none;
250 -moz-box-orient: vertical;
251}
252
253.panelUI-grid .toolbarbutton-1 > .toolbarbutton-menubutton-button {
254 -moz-appearance: none;
255 -moz-box-orient: vertical;
46e71434 256 width: calc(22.35em / 3 - 0.1px - 2px);
e28f3f71
RK
257 height: calc(49px + 2.2em);
258 border: 0;
259}
260
261.panelUI-grid .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-text,
262.panelUI-grid .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-multiline-text {
263 margin-top: 2px; /* Hack needed to get the label of type=menu-button aligned with other buttons */
264}
265
266.panel-customization-placeholder-child {
267 margin: 6px 0 0;
268/* padding: 2px 6px;*/
269}
270
271.panelUI-grid .toolbarbutton-1[type="menu"] {
272 background-image: url("chrome://global/skin/arrow/arrow-down-sharp.gif");
273 background-position: right 3px top 16px;
274 background-repeat: no-repeat;
275}
276
277.panelUI-grid .toolbarbutton-1[type="menu"]:-moz-locale-dir(rtl) {
278 background-position: left 3px top 16px;
279}
280
281.panelUI-grid .toolbarbutton-1 > .toolbarbutton-menu-dropmarker {
282 display: none;
283}
284
285.panelUI-grid .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker {
286 -moz-box-align: center;
287 width: 16px;
288 -moz-margin-start: -16px;
289 height: 51px;
290 margin-bottom: 2.2em;
43cc2806 291 padding: 0;
43cc2806
RK
292}
293
e28f3f71
RK
294.panelUI-grid .toolbarbutton-1:not([buttonover]):not([disabled]):-moz-any([open],:hover:active) > .toolbarbutton-menubutton-dropmarker {
295 border-radius: 0 0 0 2px;
296}
297
298.panelUI-grid .toolbarbutton-1:not([buttonover]):not([disabled]):-moz-any([open],:hover:active)> .toolbarbutton-menubutton-dropmarker:-moz-locale-dir(rtl) {
299 border-radius: 0 0 2px 0;
43cc2806
RK
300}
301
302.panel-combined-button[disabled] > .toolbarbutton-icon {
cc4b0b0d 303/* opacity: .5; */
43cc2806
RK
304}
305
e28f3f71 306toolbaritem[cui-areatype="menu-panel"][sdkstylewidget="true"]:not(.panel-wide-item) {
46e71434 307 width: calc(22.35em / 3 - 0.1px);
43cc2806
RK
308 margin: 0 !important;
309}
310
e28f3f71 311toolbaritem[cui-areatype="menu-panel"][sdkstylewidget="true"]:not(.panel-wide-item) {
43cc2806
RK
312 -moz-box-align: center;
313 -moz-box-pack: center;
314}
315
316toolbaritem[cui-areatype="menu-panel"][sdkstylewidget="true"] > iframe {
e28f3f71
RK
317 margin: 4px auto;
318}
319
5401f433
RK
320#PanelUI-multiView[viewtype="subview"] > .panel-viewcontainer > .panel-viewstack > .panel-mainview > #PanelUI-mainView {
321}
322
323#PanelUI-multiView[viewtype="subview"] #PanelUI-mainView > #PanelUI-contents-scroller > #PanelUI-contents > .panel-wide-item,
324#PanelUI-multiView[viewtype="subview"] #PanelUI-mainView > #PanelUI-contents-scroller > #PanelUI-contents > .toolbarbutton-1:not([panel-multiview-anchor="true"]),
325#PanelUI-multiView[viewtype="subview"] #PanelUI-mainView > #PanelUI-footer > #PanelUI-fxa-status,
326#PanelUI-multiView[viewtype="subview"] #PanelUI-mainView > #PanelUI-footer > #PanelUI-footer-inner > toolbarseparator,
327#PanelUI-multiView[viewtype="subview"] #PanelUI-mainView > #PanelUI-footer > #PanelUI-footer-inner > #PanelUI-customize,
328#PanelUI-multiView[viewtype="subview"] #PanelUI-mainView > #PanelUI-footer > #PanelUI-footer-inner > #PanelUI-help:not([panel-multiview-anchor="true"]) {
329 opacity: .5;
330}
331
e28f3f71
RK
332/*
333 * XXXgijs: this is a workaround for a layout issue that was caused by these iframes,
334 * which was affecting subview display. Because of this, we're hiding the iframe *only*
335 * when displaying a subview. The discerning user might notice this, but it's not nearly
336 * as bad as the brokenness.
337 * This hack should be removed once https://bugzilla.mozilla.org/show_bug.cgi?id=975375
338 * is addressed.
339 */
340#PanelUI-multiView[viewtype="subview"] toolbaritem[cui-areatype="menu-panel"][sdkstylewidget="true"]:not(.panel-wide-item) > iframe {
341 visibility: hidden;
43cc2806
RK
342}
343
344toolbaritem[cui-areatype="menu-panel"][sdkstylewidget="true"]:not(.panel-wide-item) > .toolbarbutton-text {
345 text-align: center;
346}
347
e28f3f71
RK
348.panelUI-grid .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-icon,
349.panelUI-grid .toolbarbutton-1 > .toolbarbutton-icon,
350.panelUI-grid .toolbarbutton-1 > .toolbarbutton-badge-container,
351.customization-palette .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-icon,
352.customization-palette .toolbarbutton-1 > .toolbarbutton-icon,
353.panelUI-grid #bookmarks-toolbar-placeholder > .toolbarbutton-icon,
354.customization-palette #bookmarks-toolbar-placeholder > .toolbarbutton-icon,
355.panel-customization-placeholder-child > .toolbarbutton-icon {
356 min-width: 32px;
357 min-height: 32px;
358 /* Explanation for the below formula (A / B - C)
359 A
46e71434 360 Each button is 22.35em / 3 - 0.1px wide
e28f3f71
RK
361 B
362 Each button has two margins.
363 C (44px / 2 = 22px)
364 The button icon is 32 pixels wide.
365 The button has 12px of horizontal padding (6 on each side).
366 The button has 0px of horizontal border (0 on each side).
367 Total width of button's icon + button padding should therefore be 44px,
368 which means each horizontal margin should be the half the button's width - (44/2) px.
369 */
46e71434 370 margin: 4px calc((22.35em / 3 - 0.1px) / 2 - 22px);
e28f3f71
RK
371}
372
373/* above we treat the container as the icon for the margins, that is so the
374/* badge itself is positioned correctly. Here we make sure that the icon itself
375/* has the minum size we want, but no padding/margin. */
376.panelUI-grid .toolbarbutton-1 > .toolbarbutton-badge-container > .toolbarbutton-icon {
377 min-width: 32px;
378 min-height: 32px;
379 margin: 0;
380 padding: 0;
43cc2806
RK
381}
382
383toolbarpaletteitem[place="palette"] > toolbaritem > toolbarbutton {
384 -moz-box-flex: 1;
385}
386
e28f3f71
RK
387#personal-bookmarks[overflowedItem=true] > #bookmarks-toolbar-placeholder {
388 -moz-box-flex: 1;
389}
390
391#personal-bookmarks[cui-areatype="toolbar"][overflowedItem=true] > #bookmarks-toolbar-placeholder > .toolbarbutton-icon {
392 -moz-margin-end: 2px;
393}
394
51994fad
RK
395#edit-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #copy-button,
396#zoom-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #zoom-reset-button {
43cc2806
RK
397 border-left: none;
398 border-right: none;
399 border-radius: 0;
400}
401
402#zoom-in-button > .toolbarbutton-text,
403#zoom-out-button > .toolbarbutton-text,
404#zoom-reset-button > .toolbarbutton-icon {
405 display: none;
406}
407
408#PanelUI-footer {
409 display: flex;
e28f3f71
RK
410 flex-shrink: 0;
411 flex-direction: column;
412/* background-color: hsla(210,4%,10%,.07);*/
43cc2806
RK
413 padding: 0;
414 margin: 0;
e28f3f71 415/* min-height: 4em;*/
cc4b0b0d
RK
416 border-bottom-right-radius: 4px;
417 border-bottom-left-radius: 4px;
43cc2806
RK
418}
419
e28f3f71
RK
420#PanelUI-footer-inner {
421 display: flex;
422 border-top: 1px solid #9C9CFF;
423}
5401f433
RK
424+
425#PanelUI-multiView[viewtype="subview"] #PanelUI-footer-inner {
426 position: relative;
427}
e28f3f71
RK
428
429#PanelUI-footer-inner > toolbarseparator {
430 border: 0;
431 border-left: 1px solid #9C9CFF;
432 margin: 0;
433}
434
435#PanelUI-footer-inner:hover > toolbarseparator {
436/* margin: 0;*/
437}
438
43cc2806 439#PanelUI-help,
e28f3f71 440#PanelUI-fxa-status,
43cc2806
RK
441#PanelUI-customize,
442#PanelUI-quit {
443 margin: 0;
444 padding: 10px 0;
e28f3f71 445 min-height: 2em;
43cc2806 446 box-shadow: none;
5401f433 447 border: none;
43cc2806
RK
448 border-radius: 0;
449 transition: background-color;
cc4b0b0d 450 -moz-box-orient: horizontal;
43cc2806 451}
cc4b0b0d 452
e28f3f71
RK
453#PanelUI-fxa-status {
454 border-top: 1px solid #9C9CFF;
455 border-bottom: 1px solid transparent;
456 margin-bottom: -1px;
457}
458
459#PanelUI-fxa-status > .toolbarbutton-text {
460 width: 0; /* Fancy cropping solution for flexbox. */
461}
462
5401f433
RK
463#PanelUI-help[panel-multiview-anchor="true"] {
464 -moz-image-region: rect(0, 32px, 16px, 16px);
465}
466
cc4b0b0d
RK
467#PanelUI-help,
468#PanelUI-quit {
e28f3f71 469 min-width: 44px;
cc4b0b0d
RK
470}
471
e28f3f71 472#PanelUI-fxa-status > .toolbarbutton-text,
cc4b0b0d 473#PanelUI-customize > .toolbarbutton-text {
e28f3f71
RK
474 margin: 0;
475 padding: 0 6px;
cc4b0b0d
RK
476 text-align: start;
477}
478
479#PanelUI-help > .toolbarbutton-text,
480#PanelUI-quit > .toolbarbutton-text {
481 display: none;
482}
483
484#PanelUI-help > .toolbarbutton-icon,
485#PanelUI-quit > .toolbarbutton-icon {
486 -moz-margin-end: 0;
43cc2806
RK
487}
488
489#PanelUI-customize {
cc4b0b0d
RK
490 flex: 1;
491 -moz-padding-start: 15px;
492 -moz-border-start-style: none;
e28f3f71
RK
493}
494
495#PanelUI-fxa-status {
496 list-style-image: url("chrome://browser/skin/sync-horizontalbar.png");
497}
498
499#PanelUI-fxa-status[status="active"] {
500 list-style-image: url("chrome://browser/skin/syncProgress-horizontalbar.png");
501}
502
503#PanelUI-customize {
43cc2806
RK
504 list-style-image: url("chrome://browser/skin/menuPanel-customize.png");
505}
506
e28f3f71
RK
507#customization-panelHolder #PanelUI-customize {
508 list-style-image: url("chrome://browser/skin/customizableui/menuPanel-customizeFinish.png");
509}
510
43cc2806 511#PanelUI-help {
43cc2806
RK
512 list-style-image: url("chrome://browser/skin/menuPanel-help.png");
513}
514
515#PanelUI-quit {
516 -moz-border-end-style: none;
517 list-style-image: url("chrome://browser/skin/menuPanel-exit.png");
518}
519
e28f3f71 520#PanelUI-fxa-status,
43cc2806
RK
521#PanelUI-customize,
522#PanelUI-help,
523#PanelUI-quit {
524 -moz-image-region: rect(0, 16px, 16px, 0);
525}
526
527#PanelUI-customize:hover,
528#PanelUI-help:not([disabled]):hover,
529#PanelUI-quit:not([disabled]):hover,
530#PanelUI-customize:hover:active,
531#PanelUI-help:not([disabled]):hover:active,
532#PanelUI-quit:not([disabled]):hover:active {
533 -moz-image-region: rect(0, 32px, 16px, 16px);
534}
535
536#PanelUI-help[disabled],
537#PanelUI-quit[disabled] {
538 -moz-image-region: rect(0, 48px, 16px, 32px);
539}
540
e28f3f71 541#PanelUI-fxa-status:not([disabled]):hover,
43cc2806
RK
542#PanelUI-help:not([disabled]):hover,
543#PanelUI-customize:hover,
544#PanelUI-quit:not([disabled]):hover {
43cc2806
RK
545}
546
e28f3f71
RK
547#PanelUI-fxa-status:not([disabled]):hover:active,
548#PanelUI-help:not([disabled]):hover:active,
549#PanelUI-customize:hover:active,
550#PanelUI-quit:not([disabled]):hover:active {
551}
552
553#PanelUI-fxa-status:not([disabled]):hover,
554#PanelUI-fxa-status:not([disabled]):hover:active {
555}
556
557#PanelUI-quit:not([disabled]):hover {
83e3b5cf 558 background-color: #FF0000;
e28f3f71
RK
559}
560
561#PanelUI-quit:not([disabled]):hover:active {
83e3b5cf 562 background-color: #FF9F00;
e28f3f71
RK
563}
564
565#customization-panelHolder #PanelUI-customize {
43cc2806
RK
566 color: #FFCF00;
567 background-color: #008484;
e28f3f71
RK
568 text-shadow: none;
569 margin-top: -1px;
43cc2806
RK
570}
571
e28f3f71
RK
572#customization-panelHolder #PanelUI-customize + toolbarseparator {
573 display: none;
574}
575
576#customization-panelHolder #PanelUI-customize:hover,
577#customization-panelHolder #PanelUI-customize:hover:active {
43cc2806 578 background-color: #FFCF00;
e28f3f71 579 color: #000000;
43cc2806
RK
580}
581
e28f3f71 582#customization-palette .toolbarbutton-multiline-text,
43cc2806
RK
583#customization-palette .toolbarbutton-text {
584 display: none;
585}
586
e28f3f71
RK
587panelview .toolbarbutton-1,
588.subviewbutton,
589.widget-overflow-list .toolbarbutton-1,
590.panelUI-grid .toolbarbutton-1 > .toolbarbutton-menubutton-button,
51994fad 591.toolbaritem-combined-buttons:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > toolbarbutton {
e28f3f71
RK
592/* padding: 2px 6px;
593 background-color: hsla(210,4%,10%,0);
594 border-radius: 2px;
595 border-style: solid;
596 border-color: hsla(210,4%,10%,0);*/
43cc2806
RK
597 transition-property: background-color, border-color;
598 transition-duration: 150ms;
599}
600
601panelview .toolbarbutton-1,
e28f3f71
RK
602.subviewbutton,
603.widget-overflow-list .toolbarbutton-1,
51994fad 604.toolbaritem-combined-buttons:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > toolbarbutton {
e28f3f71
RK
605 border-width: 0;
606}
607
608.subviewbutton.panel-subview-footer {
51994fad 609/* border-radius: 0;*/
e28f3f71
RK
610 border: none;
611}
612
e28f3f71 613.subviewbutton.panel-subview-footer > .menu-text {
51994fad
RK
614 -moz-margin-start: 0px !important;
615 -moz-padding-start: 6px;
616 -moz-padding-end: 6px;
e28f3f71 617 -moz-box-flex: 0;
51994fad
RK
618 text-align: center;
619}
620
621.subviewbutton.panel-subview-footer > .toolbarbutton-icon {
622 margin: 0;
623}
624
625.subviewbutton.panel-subview-footer > .toolbarbutton-text {
626 text-align: center;
627 padding: 0;
628}
629
630.subviewbutton.panel-subview-footer > .menu-accel-container {
631 -moz-padding-start: 6px;
e28f3f71
RK
632}
633
634.subviewbutton:not(.panel-subview-footer) {
635/* margin: 2px 0;*/
636}
637
638.subviewbutton:not(.panel-subview-footer) > .toolbarbutton-text,
639/* Bookmark items need a more specific selector. */
640.PanelUI-subView .subviewbutton:not(.panel-subview-footer) > .menu-text,
641.PanelUI-subView .subviewbutton:not(.panel-subview-footer) > .menu-iconic-text {
642/* font-size: 1.1em;*/
643}
644
51994fad
RK
645.PanelUI-subView .subviewbutton[shortcut]::after {
646 content: attr(shortcut);
647 float: right;
648 color: #A09090;
649}
650
651.PanelUI-subView.cui-widget-panelview .subviewbutton[shortcut]::after {
652 -moz-margin-start: 10px;
653}
654
655/* This is a <label> but it should fit in with the menu font- and colorwise. */
656#PanelUI-characterEncodingView-autodetect-label {
657 font: menu;
658 color: inherit;
659}
660
e28f3f71
RK
661.cui-widget-panelview .subviewbutton:not(.panel-subview-footer) {
662 margin-left: 4px;
663 margin-right: 4px;
664}
665
666panelview .toolbarbutton-1,
667.widget-overflow-list .toolbarbutton-1 {
43cc2806
RK
668 margin-top: 6px;
669}
e28f3f71 670
43cc2806 671/*
51994fad 672panelview .toolbarbutton-1:not(:-moz-any([disabled],[checked="true"],[open],:active)):-moz-any(:hover,[_moz-menuactive]),
45dc7657 673toolbarbutton.subviewbutton:not(:-moz-any([disabled],[checked="true"],[open],:active)):-moz-any(:hover,[_moz-menuactive]),
e28f3f71
RK
674menu.subviewbutton:not(:-moz-any([disabled],:active))[_moz-menuactive],
675menuitem.subviewbutton:not(:-moz-any([disabled],:active))[_moz-menuactive],
45dc7657 676.widget-overflow-list .toolbarbutton-1:not(:-moz-any([disabled],[checked="true"],[open],:active)):-moz-any(:hover,[_moz-menuactive]),
51994fad 677.toolbaritem-combined-buttons:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])
e28f3f71 678 > toolbarbutton:not(:-moz-any([disabled],[checked="true"],[open],:active)):hover {
43cc2806 679 background-color: hsla(210,4%,10%,.08);
e28f3f71
RK
680 border-color: hsla(210,4%,10%,.11);
681}
682
51994fad 683.toolbaritem-combined-buttons:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]):not(:-moz-any([disabled],[checked="true"],[open],:active)):-moz-any(:hover,[_moz-menuactive]) {
e28f3f71 684 border-color: hsla(210,4%,10%,.11);
43cc2806
RK
685}
686
45dc7657
RK
687panelview .toolbarbutton-1:not([disabled]):-moz-any([open],[checked="true"],:hover:active,[_moz-menuactive]:active)),
688toolbarbutton.subviewbutton:not([disabled]):-moz-any([open],[checked="true"],:hover:active,[_moz-menuactive]:active)),
e28f3f71
RK
689menu.subviewbutton:not([disabled])[_moz-menuactive]:active,
690menuitem.subviewbutton:not([disabled])[_moz-menuactive]:active,
45dc7657 691.widget-overflow-list .toolbarbutton-1:not([disabled]):-moz-any([open],[checked="true"],:hover:active,[_moz-menuactive]:active)),
51994fad 692.toolbaritem-combined-buttons:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true])
45dc7657 693 > toolbarbutton:not([disabled]):-moz-any([open],[checked="true"],:hover:active,[_moz-menuactive]:active)) {
e28f3f71
RK
694 background-color: hsla(210,4%,10%,.12);
695 border-color: hsla(210,4%,10%,.14);
696 box-shadow: 0 1px 0 hsla(210,4%,10%,.03) inset;
697}
698
699.subviewbutton.panel-subview-footer {
700 margin: 4px -4px -4px;
701 background-color: hsla(210,4%,10%,.07);
702 border-top: 1px solid hsla(210,4%,10%,.12);
703 border-radius: 0;
704 color: hsl(0,0%,25%)
705}
706
51994fad 707menuitem.panel-subview-footer:not(:-moz-any([disabled],[open],:active)):hover,
e28f3f71
RK
708.subviewbutton.panel-subview-footer:not(:-moz-any([disabled],[open],:active)):hover {
709 background-color: hsla(210,4%,10%,.1);
710 border-top: 1px solid hsla(210,4%,10%,.12);
711}
712
51994fad 713menuitem.panel-subview-footer:not([disabled]):-moz-any([open],[checked="true"],:hover:active),
e28f3f71 714.subviewbutton.panel-subview-footer:not([disabled]):-moz-any([open],[checked="true"],:hover:active) {
43cc2806 715 background-color: hsla(210,4%,10%,.15);
e28f3f71
RK
716 border-top: 1px solid hsla(210,4%,10%,.12);
717 box-shadow: 0 1px 0 hsla(210,4%,10%,.05) inset;
43cc2806 718}
00f971bc 719
e28f3f71 720#BMB_bookmarksPopup .subviewbutton {
43cc2806 721 font: inherit;
e28f3f71 722 font-weight: normal;
43cc2806
RK
723}
724
e28f3f71 725#BMB_bookmarksPopup .subviewbutton:not([disabled="true"]) {
43cc2806
RK
726 color: inherit;
727}
728
729#BMB_bookmarksPopup > .panel-arrowcontainer > .panel-arrowcontent > .popup-internal-box > .autorepeatbutton-up,
730#BMB_bookmarksPopup > .panel-arrowcontainer > .panel-arrowcontent > .popup-internal-box > .autorepeatbutton-down {
731 -moz-appearance: none;
732 margin-top: 0;
733 margin-bottom: 0;
734}
66d96671 735
e28f3f71
RK
736/ Remove padding on xul:arrowscrollbox to avoid extra padding on footer /
737#BMB_bookmarksPopup arrowscrollbox {
738 padding-bottom: 0px;
739}
740
741#BMB_bookmarksPopup menupopup {
742 padding-top: 2px;
743}
744
745#BMB_bookmarksPopup menupopup > .bookmarks-actions-menuseparator {
5401f433
RK
746 / Hide bottom separator as the styled footer includes a top border serving the same purpose.
747 * We can't just use display: none here, otherwise scrollbox.xml will flip out and sometimes
748 * refuse to scroll for us (see bug 984156). Instead, we set it to visibility hidden, force
749 * a minimum height, and then negative-margin that single pixel into oblivion. That seems
750 * to be enough to make scrollbox happy.
751 /
752 -moz-appearance: none;
753 visibility: hidden;
754 min-height: 1px;
755 margin: -1px 0 0;
756 border: none;
e28f3f71
RK
757}
758*/
759
760.PanelUI-subView menuseparator,
761.PanelUI-subView toolbarseparator,
762.cui-widget-panelview menuseparator {
43cc2806
RK
763 -moz-appearance: none;
764 min-height: 0;
e28f3f71
RK
765 border-top: 1px solid #9C9CFF;
766 margin: 2px 0;
767 padding: 0;
43cc2806 768}
e28f3f71
RK
769
770.PanelUI-subView menuseparator,
771.PanelUI-subView toolbarseparator {
772/* -moz-margin-start: -5px;
773 -moz-margin-end: -4px;*/
774}
775
776.PanelUI-subView menuseparator.small-separator,
777.PanelUI-subView toolbarseparator.small-separator {
778 margin-left: 5px;
779 margin-right: 5px;
780}
781
782.cui-widget-panelview menuseparator.small-separator {
783 margin-left: 10px;
784 margin-right: 10px;
785}
786
787.subviewbutton > .menu-accel-container {
788 -moz-box-pack: start;
789 -moz-margin-start: 10px;
790 -moz-margin-end: auto;
791/* color: hsl(0,0%,50%);*/
792}
793
43cc2806
RK
794#PanelUI-historyItems > toolbarbutton {
795 list-style-image: url("chrome://mozapps/skin/places/defaultFavicon.png");
796}
797
798#PanelUI-recentlyClosedWindows > toolbarbutton > .toolbarbutton-icon,
799#PanelUI-recentlyClosedTabs > toolbarbutton > .toolbarbutton-icon,
800#PanelUI-historyItems > toolbarbutton > .toolbarbutton-icon {
801 width: 16px;
802 height: 16px;
803}
804
5401f433
RK
805toolbarbutton[panel-multiview-anchor="true"],
806toolbarbutton[panel-multiview-anchor="true"] > .toolbarbutton-menubutton-button {
807 color: #000000;
66d96671 808 background-color: #008484;
43cc2806
RK
809}
810
5401f433
RK
811#PanelUI-help[panel-multiview-anchor="true"] + toolbarseparator {
812 display: none;
813}
814
815#PanelUI-help[panel-multiview-anchor="true"] {
816 background-image: none;
817}
818
819#PanelUI-help[panel-multiview-anchor="true"]::after {
820 content: "";
821 position: absolute;
822 top: 0;
823 height: 100%;
824 width: 38px;
825 background-image: url("chrome://browser/skin/customizableui/subView-arrow-back-inverted.png");
826 background-repeat: no-repeat;
827 background-color: #008484;
828 background-position: left 10px center, 0; /* this doesn't need to be changed for RTL */
829}
830
831toolbarbutton[panel-multiview-anchor="true"] {
e28f3f71
RK
832 background-image: url("chrome://browser/skin/customizableui/subView-arrow-back-inverted.png");
833 background-position: right 5px center;
834 background-repeat: no-repeat;
835}
836
5401f433 837toolbarbutton[panel-multiview-anchor="true"]:-moz-locale-dir(rtl) {
e28f3f71
RK
838 background-image: url("chrome://browser/skin/customizableui/subView-arrow-back-inverted-rtl.png");
839 background-position: left 5px center;
840}
841
e28f3f71 842toolbarpaletteitem[place="palette"] > .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker,
43cc2806
RK
843#bookmarks-menu-button[cui-areatype="menu-panel"] > .toolbarbutton-menubutton-dropmarker {
844 display: none;
845}
846
e28f3f71
RK
847#search-container[cui-areatype="menu-panel"],
848#wrapper-search-container[place="panel"] {
45dc7657 849 width: 22.35em;
43cc2806
RK
850}
851
e28f3f71
RK
852#search-container[cui-areatype="menu-panel"] {
853 margin-top: 6px;
854 margin-bottom: 6px;
855}
856
43cc2806
RK
857toolbarpaletteitem[place="palette"] > #search-container {
858 min-width: 7em;
859 width: 7em;
860}
861
51994fad 862.toolbaritem-combined-buttons:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) {
43cc2806 863 padding: 0;
43cc2806
RK
864 transition-property: background-color, border-color;
865 transition-duration: 150ms;
866}
867
5401f433
RK
868/* Make direct siblings overlap borders: */
869.toolbaritem-combined-buttons + .toolbaritem-combined-buttons:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) {
870/* border-top-color: transparent !important; */
871}
872
873.toolbaritem-combined-buttons + .toolbaritem-combined-buttons:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]),
874toolbarpaletteitem[haswideitem][place="panel"] + toolbarpaletteitem[haswideitem][place="panel"] {
875/* margin-top: -1px; */
876}
877
51994fad 878.toolbaritem-combined-buttons:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > toolbarbutton {
43cc2806
RK
879 border: 0;
880 padding: .5em;
e28f3f71 881 margin: 0;
43cc2806 882 -moz-box-flex: 1;
46e71434
RK
883 min-width: calc(22.35em / 3 - 0.1px);
884 max-width: calc(22.35em / 3 - 0.1px);
e28f3f71
RK
885 /* We'd prefer to use height: auto here but it leads to layout bugs in the panel. Cope:
886 1.2em for line height + 2 * .5em padding + margin on the label (2 * 2px) */
887 height: calc(2.2em + 4px);
43cc2806
RK
888 max-height: none;
889 -moz-box-orient: horizontal;
890}
891
51994fad
RK
892#edit-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #copy-button,
893#zoom-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #zoom-reset-button {
e28f3f71
RK
894 /* reduce the width with 2px for this button to compensate for two separators
895 of 1px. */
46e71434
RK
896 min-width: calc(22.35em / 3 - 0.1px - 2px);
897 max-width: calc(22.35em / 3 - 0.1px - 2px);
e28f3f71
RK
898}
899
51994fad 900#main-window:not([customizing]) .toolbaritem-combined-buttons:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > toolbarbutton[disabled] > .toolbarbutton-icon {
cc4b0b0d 901/* opacity: .25; */
43cc2806
RK
902}
903
904#zoom-controls[cui-areatype="toolbar"] > #zoom-reset-button > .toolbarbutton-text {
905 min-width: 7ch;
906}
907
51994fad
RK
908#edit-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #cut-button:-moz-locale-dir(ltr),
909#edit-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #paste-button:-moz-locale-dir(rtl),
910#zoom-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #zoom-out-button:-moz-locale-dir(ltr),
911#zoom-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #zoom-in-button:-moz-locale-dir(rtl) {
43cc2806
RK
912 border-top-right-radius: 0;
913 border-bottom-right-radius: 0;
914}
915
51994fad
RK
916#edit-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #cut-button:-moz-locale-dir(rtl),
917#edit-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #paste-button:-moz-locale-dir(ltr),
918#zoom-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #zoom-out-button:-moz-locale-dir(rtl),
919#zoom-controls:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > #zoom-in-button:-moz-locale-dir(ltr) {
43cc2806
RK
920 border-top-left-radius: 0;
921 border-bottom-left-radius: 0;
922}
923
e28f3f71
RK
924.toolbaritem-combined-buttons > separator {
925 -moz-appearance: none;
43cc2806
RK
926 width: 3px;
927 -moz-box-align: stretch;
43cc2806
RK
928}
929
51994fad 930.toolbaritem-combined-buttons:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) > separator {
e28f3f71
RK
931 margin: .5em 0;
932 width: 1px;
933 height: auto;
934/* background: hsla(210,4%,10%,.15);*/
935 transition-property: margin;
936 transition-duration: 10ms;
937 transition-timing-function: ease;
938}
939
51994fad 940.toolbaritem-combined-buttons:-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]):hover > separator {
e28f3f71
RK
941 margin: 0;
942}
943
43cc2806
RK
944#widget-overflow > .panel-arrowcontainer > .panel-arrowcontent {
945 padding: 0;
946}
947
e28f3f71 948.cui-widget-panelview,
43cc2806 949#widget-overflow-scroller {
43cc2806
RK
950 overflow-y: auto;
951 overflow-x: hidden;
e28f3f71
RK
952}
953
954#widget-overflow-scroller {
955 max-height: 30em;
43cc2806
RK
956 margin-top: 10px;
957 margin-bottom: 10px;
958}
959
960#widget-overflow-list {
45dc7657 961 width: 22.35em;
43cc2806
RK
962 padding-left: 10px;
963 padding-right: 10px;
964}
965
51994fad
RK
966toolbaritem[overflowedItem=true],
967toolbarbutton[overflowedItem=true] {
43cc2806 968 width: 100%;
45dc7657 969 max-width: 22.35em;
43cc2806
RK
970 min-height: 36px;
971 background-repeat: no-repeat;
972 background-position: 0 center;
973}
974
e28f3f71
RK
975.widget-overflow-list .toolbarbutton-1,
976.widget-overflow-list .toolbarbutton-1 > .toolbarbutton-menubutton-button {
43cc2806
RK
977 -moz-box-align: center;
978 -moz-box-orient: horizontal;
979}
980
51994fad 981.widget-overflow-list .toolbarbutton-1:not(.toolbarbutton-combined) > .toolbarbutton-text,
e28f3f71 982.widget-overflow-list .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-text {
43cc2806
RK
983 text-align: start;
984 -moz-padding-start: .5em;
985}
986
e28f3f71 987#widget-overflow-list > .toolbaritem-combined-buttons {
43cc2806
RK
988 min-height: 28px;
989}
990
e28f3f71
RK
991.widget-overflow-list .toolbarbutton-1 > .toolbarbutton-menubutton-button::after {
992 content: "";
993 display: -moz-box;
994 width: 1px;
995 height: 18px;
996 -moz-margin-end: -1px;
43cc2806
RK
997}
998
e28f3f71
RK
999.subviewbutton[checked="true"] {
1000 background-image: url("chrome://global/skin/menu/menu-check.gif");
1001 background-position: top 5px left 4px;
1002 background-repeat: no-repeat;
43cc2806
RK
1003}
1004
e28f3f71
RK
1005.subviewbutton[checked="true"]:hover {
1006 background-image: url("chrome://global/skin/menu/menu-check-hover.gif");
43cc2806
RK
1007}
1008
e28f3f71
RK
1009.PanelUI-subView .menu-iconic-left {
1010 -moz-appearance: none;
1011 -moz-margin-end: 3px;
43cc2806 1012}
e28f3f71
RK
1013
1014.PanelUI-subView menuitem[checked="true"] > .menu-iconic-left {
1015 visibility: hidden;
43cc2806
RK
1016}
1017
1018/* === END panelUIOverlay.inc.css === */
1019
1020#PanelUI-contents #zoom-out-btn {
1021 padding-left: 12px;
1022 padding-right: 12px;
1023}
1024
1025#PanelUI-contents #zoom-in-btn {
1026 padding-left: 12px;
1027 padding-right: 12px;
1028}
1029
e28f3f71
RK
1030/* bookmark panel submenus */
1031
51994fad
RK
1032#BMB_bookmarksPopup menupopup[placespopup=true] {
1033/* background: transparent;
e28f3f71 1034 border: none;
51994fad 1035 padding: 6px;*/
43cc2806
RK
1036}
1037
51994fad 1038#BMB_bookmarksPopup menupopup[placespopup=true] > hbox {
e28f3f71
RK
1039 /* emulating chrome://browser/content/places/menu.xml#places-popup-arrow but without the arrow */
1040/* background: #FFF;
1041 border: 1px solid rgba(0,0,0,0.25);
1042 border-radius: 3.5px;
1043 margin-top: -4px;*/
1044}
1045
51994fad
RK
1046#BMB_bookmarksPopup menupopup {
1047/* padding-top: 2px;*/
1048}
1049
1050/* Add some space at the top because there are no headers: */
1051#BMB_bookmarksPopup menupopup[placespopup=true] > hbox > .popup-internal-box > .arrowscrollbox-scrollbox > .scrollbox-innerbox {
1052/* padding-top: 4px;*/
1053}
1054
e28f3f71
RK
1055#BMB_bookmarksPopup .menu-text {
1056/* color: #000;*/
1057}
1058
1059/* bookmark panel separator */
1060#BMB_bookmarksPopup menuseparator {
43cc2806
RK
1061 padding-top: 0;
1062 padding-bottom: 0;
1063}
e28f3f71 1064
51994fad
RK
1065.subviewbutton > .menu-right,
1066.subviewbutton > .menu-iconic-left {
1067/* padding-top: 1px;
1068 margin-top: 1px;
1069 margin-bottom: 2px;*/
1070}
1071
1072/* Disabled empty item looks too small otherwise, because it has no icon. */
1073menuitem.subviewbutton[disabled]:not(.menuitem-iconic),
1074/* Same for checkbox menu items, whose icons lose size due to -moz-appearance: none: */
1075menuitem[type="checkbox"].subviewbutton {
1076 /* This is 16px for an icon + 3px for its margins + 1px for its padding +
1077 * 2px for its border, see above */
1078/* min-height: 22px;*/
1079}
1080
1081.subviewbutton > .toolbarbutton-text {
1082/* padding-top: 3px;
1083 padding-bottom: 3px;*/
1084}
1085
e28f3f71
RK
1086.widget-overflow-list .toolbarbutton-1 > .toolbarbutton-menubutton-button {
1087 -moz-appearance: none;
1088 border: 0;
1089 -moz-margin-start: 3px;
1090}
1091
1092.widget-overflow-list .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker {
1093 padding: 0 2px;
1094 -moz-padding-start: 0;
1095 height: 18px;
1096}
1097
1098.widget-overflow-list .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon {
1099 padding: 0 6px;
1100}
1101
1102.subviewbutton > .toolbarbutton-text {
1103 -moz-padding-start: 16px;
1104}
1105
1106.subviewbutton:-moz-any([image],[targetURI],.cui-withicon, .restoreallitem, .bookmark-item) > .toolbarbutton-text {
1107 -moz-padding-start: 0;
1108}
1109
1110.subviewbutton.bookmark-item > .toolbarbutton-icon {
1111 -moz-margin-start: 3px;
1112}
1113
1114/* subviewbutton entries for social sidebars have images that come from external
1115/* sources, and are not guaranteed to be the size we want, so force the size on
1116/* those icons. */
1117toolbarbutton.social-provider-menuitem > .toolbarbutton-icon {
1118 width: 16px;
1119 height: 16px;
1120}
1121
1122.subviewbutton:-moz-any([image],[targetURI],.cui-withicon, .restoreallitem, .bookmark-item)[checked="true"] > .toolbarbutton-icon {
1123 visibility: hidden;
1124}
1125/*
1126menu.subviewbutton > .menu-right {
1127 -moz-appearance: none;
1128 list-style-image: url("chrome://browser/skin/places/bookmarks-menu-arrow.png");
1129 -moz-image-region: rect(0, 16px, 16px, 0);
1130}
1131
1132menu[disabled="true"].subviewbutton > .menu-right {
1133 -moz-image-region: rect(0, 32px, 16px, 16px);
1134}
1135*/