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