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