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