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