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