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