michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: %filter substitution michael@0: michael@0: %define menuPanelWidth 22.35em michael@0: %define standaloneSubviewWidth 30em michael@0: % XXXgijs This is the ugliest bit of code I think I've ever written for Mozilla. michael@0: % Basically, the 0.1px is there to avoid CSS rounding errors causing buttons to wrap. michael@0: % For gory details, refer to https://bugzilla.mozilla.org/show_bug.cgi?id=963365#c11 michael@0: % There's no calc() here (and therefore lots of calc() where this is used) because michael@0: % we don't support nested calc(): https://bugzilla.mozilla.org/show_bug.cgi?id=968761 michael@0: %define menuPanelButtonWidth (@menuPanelWidth@ / 3 - 0.1px) michael@0: %define exitSubviewGutterWidth 38px michael@0: %define buttonStateHover :not(:-moz-any([disabled],[open],:active)):hover michael@0: %define menuStateHover :not(:-moz-any([disabled],:active))[_moz-menuactive] michael@0: %define buttonStateActive :not([disabled]):-moz-any([open],:hover:active) michael@0: %define menuStateActive :not([disabled])[_moz-menuactive]:active michael@0: michael@0: %include ../browser.inc michael@0: michael@0: #PanelUI-popup #PanelUI-contents:empty { michael@0: height: 128px; michael@0: } michael@0: michael@0: #PanelUI-popup #PanelUI-contents:empty::before { michael@0: content: ""; michael@0: background-image: url(chrome://browser/skin/customizableui/whimsy-bw.png); michael@0: display: block; michael@0: width: 64px; michael@0: height: 64px; michael@0: position: absolute; michael@0: animation: moveX 3.05s linear 0s infinite alternate, michael@0: moveY 3.4s linear 0s infinite alternate; michael@0: } michael@0: michael@0: #PanelUI-popup #PanelUI-contents:-moz-locale-dir(rtl):empty::before { michael@0: animation: moveXRTL 3.05s linear 0s infinite alternate, michael@0: moveY 3.4s linear 0s infinite alternate; michael@0: } michael@0: michael@0: #PanelUI-popup #PanelUI-contents:empty:hover::before { michael@0: background-image: url(chrome://browser/skin/customizableui/whimsy.png); michael@0: } michael@0: michael@0: @media (min-resolution: 2dppx) { michael@0: #PanelUI-popup #PanelUI-contents:empty::before { michael@0: background-image: url(chrome://browser/skin/customizableui/whimsy-bw@2x.png); michael@0: background-size: 64px 64px; michael@0: } michael@0: #PanelUI-popup #PanelUI-contents:empty:hover::before { michael@0: background-image: url(chrome://browser/skin/customizableui/whimsy@2x.png); michael@0: } michael@0: } michael@0: michael@0: @keyframes moveX { michael@0: /* These values are adjusted for the padding on the panel. */ michael@0: from { margin-left: -15px; } to { margin-left: calc(100% - 49px); } michael@0: } michael@0: michael@0: @keyframes moveXRTL { michael@0: /* These values are adjusted for the padding on the panel. */ michael@0: from { margin-right: -15px; } to { margin-right: calc(100% - 49px); } michael@0: } michael@0: michael@0: @keyframes moveY { michael@0: /* These values are adjusted for the padding and height of the panel. */ michael@0: from { margin-top: -.5em; } to { margin-top: calc(64px - .5em); } michael@0: } michael@0: michael@0: #PanelUI-button { michael@0: 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: 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: 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: background-size: 1px calc(100% - 1px), 1px calc(100% - 1px), 1px calc(100% - 1px) !important; michael@0: background-position: 0px 0px, 1px 0px, 2px 0px; michael@0: background-repeat: no-repeat; michael@0: } michael@0: michael@0: #PanelUI-button:-moz-locale-dir(rtl) { michael@0: background-position: 100% 0, calc(100% - 1px) 0, calc(100% - 2px) 0; michael@0: } michael@0: michael@0: .panel-subviews { michael@0: padding: 4px; michael@0: background-color: hsla(0,0%,100%,.97); michael@0: background-clip: padding-box; michael@0: border-left: 1px solid hsla(210,4%,10%,.3); michael@0: box-shadow: 0 3px 5px hsla(210,4%,10%,.1), michael@0: 0 0 7px hsla(210,4%,10%,.1); michael@0: color: hsl(0,0%,15%); michael@0: -moz-margin-start: @exitSubviewGutterWidth@; michael@0: } michael@0: michael@0: .panel-viewstack[viewtype="main"] > .panel-subviews { michael@0: transform: translateX(@menuPanelWidth@); michael@0: } michael@0: michael@0: .panel-viewstack[viewtype="main"] > .panel-subviews:-moz-locale-dir(rtl) { michael@0: transform: translateX(-@menuPanelWidth@); michael@0: } michael@0: michael@0: panelmultiview[nosubviews=true] > .panel-viewcontainer > .panel-viewstack > .panel-subviews { michael@0: display: none; michael@0: } michael@0: michael@0: .panel-viewstack:not([viewtype="main"]) > .panel-mainview > #PanelUI-mainView { michael@0: -moz-box-flex: 1; michael@0: } michael@0: michael@0: .panel-subview-body { michael@0: overflow-y: auto; michael@0: overflow-x: hidden; michael@0: -moz-box-flex: 1; michael@0: } michael@0: michael@0: #PanelUI-popup .panel-subview-body { michael@0: margin: -4px; michael@0: padding: 4px 4px; michael@0: } michael@0: michael@0: .panel-subview-header, michael@0: .subviewbutton.panel-subview-footer { michael@0: padding: 12px; michael@0: } michael@0: michael@0: .panel-subview-header { michael@0: margin: -4px -4px 4px; michael@0: background-color: hsla(210,4%,10%,.05); michael@0: box-shadow: 0 -1px 0 hsla(210,4%,10%,.05) inset; michael@0: color: hsl(0,0%,50%); michael@0: } michael@0: michael@0: .cui-widget-panelview .panel-subview-header { michael@0: display: none; michael@0: } michael@0: michael@0: .cui-widget-panelview .subviewbutton.panel-subview-footer { michael@0: margin: 4px 0 0; michael@0: -moz-box-pack: center; michael@0: } michael@0: michael@0: #PanelUI-mainView { michael@0: display: flex; michael@0: flex-direction: column; michael@0: } michael@0: michael@0: #app-extension-point-end > #PanelUI-menu-button { michael@0: padding: 2px 5px; michael@0: } michael@0: #app-extension-point-end > #PanelUI-menu-button .toolbarbutton-text { michael@0: display: none; michael@0: } michael@0: #app-extension-point-end > #PanelUI-menu-button .toolbarbutton-icon { michael@0: margin: 0; michael@0: } michael@0: michael@0: #PanelUI-popup > arrowscrollbox > autorepeatbutton { michael@0: display: none; michael@0: } michael@0: #PanelUI-popup > arrowscrollbox > scrollbox { michael@0: overflow: visible; michael@0: } michael@0: michael@0: #PanelUI-popup > .panel-arrowcontainer > .panel-arrowcontent { michael@0: overflow: hidden; michael@0: } michael@0: michael@0: #PanelUI-popup > .panel-arrowcontainer > .panel-arrowcontent, michael@0: .cui-widget-panel > .panel-arrowcontainer > .panel-arrowcontent > .popup-internal-box { michael@0: padding: 0; michael@0: } michael@0: michael@0: .panelUI-grid .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-multiline-text, michael@0: .panelUI-grid .toolbarbutton-1 > .toolbarbutton-multiline-text { michael@0: line-height: 1.1; michael@0: max-height: 2.2em; michael@0: } michael@0: michael@0: .panelUI-grid .toolbarbutton-1:not([auto-hyphens="off"]) > .toolbarbutton-menubutton-button > .toolbarbutton-multiline-text, michael@0: .panelUI-grid .toolbarbutton-1:not([auto-hyphens="off"]) > .toolbarbutton-multiline-text { michael@0: -moz-hyphens: auto; michael@0: } michael@0: michael@0: .panelUI-grid:not([customize-transitioning]) .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-multiline-text, michael@0: .panelUI-grid:not([customize-transitioning]) .toolbarbutton-1 > .toolbarbutton-multiline-text { michael@0: position: absolute; michael@0: clip: rect(auto, auto, 2.3em, auto); michael@0: } michael@0: michael@0: .panelUI-grid .toolbarbutton-1 > .toolbarbutton-text, michael@0: .panelUI-grid .toolbarbutton-1 > .toolbarbutton-multiline-text { michael@0: text-align: center; michael@0: /* Need to override toolkit theming which sets margin: 0 !important; */ michael@0: margin: 2px 0 0 !important; michael@0: } michael@0: michael@0: .panelUI-grid .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-multiline-text { michael@0: text-align: center; michael@0: margin: -1px 0 0; michael@0: } michael@0: michael@0: #wrapper-edit-controls:-moz-any([place="palette"],[place="panel"]) > #edit-controls, michael@0: #wrapper-zoom-controls:-moz-any([place="palette"],[place="panel"]) > #zoom-controls { michael@0: -moz-margin-start: 0; michael@0: } michael@0: michael@0: #PanelUI-contents { michael@0: max-width: @menuPanelWidth@; michael@0: } michael@0: michael@0: #BMB_bookmarksPopup, michael@0: .panel-mainview:not([panelid="PanelUI-popup"]) { michael@0: max-width: @standaloneSubviewWidth@; michael@0: } michael@0: michael@0: panelview:not([mainview]) .toolbarbutton-text, michael@0: .cui-widget-panel toolbarbutton > .toolbarbutton-text { michael@0: text-align: start; michael@0: display: -moz-box; michael@0: } michael@0: michael@0: .cui-widget-panel > .panel-arrowcontainer > .panel-arrowcontent { michael@0: padding: 4px 0; michael@0: } michael@0: michael@0: .cui-widget-panel.cui-widget-panelWithFooter > .panel-arrowcontainer > .panel-arrowcontent { michael@0: padding-bottom: 0; michael@0: } michael@0: michael@0: #PanelUI-contents { michael@0: display: block; michael@0: flex: 1 0 auto; michael@0: margin-left: auto; michael@0: margin-right: auto; michael@0: padding: .5em 0; michael@0: max-width: @menuPanelWidth@; michael@0: } michael@0: michael@0: #PanelUI-contents-scroller { michael@0: overflow-y: auto; michael@0: overflow-x: hidden; michael@0: width: @menuPanelWidth@; michael@0: padding-left: 5px; michael@0: padding-right: 5px; michael@0: flex: auto; michael@0: } michael@0: michael@0: .toolbaritem-combined-buttons@inAnyPanel@ > toolbarbutton > .toolbarbutton-icon { michael@0: min-width: 0; michael@0: min-height: 0; michael@0: margin: 0; michael@0: } michael@0: michael@0: toolbaritem[cui-areatype="menu-panel"][sdkstylewidget="true"]:not(.panel-wide-item), michael@0: .panelUI-grid .toolbarbutton-1, michael@0: .panel-customization-placeholder-child { michael@0: -moz-appearance: none; michael@0: -moz-box-orient: vertical; michael@0: width: calc(@menuPanelButtonWidth@); michael@0: height: calc(51px + 2.2em); michael@0: } michael@0: michael@0: /* In order to have button labels constrained appropriately, items inside the toolbarpaletteitem michael@0: * should have a min-width set so they abide by the width set above (which they do outside of michael@0: * customize mode because they're in a flexed container) */ michael@0: toolbarpaletteitem[place="panel"]:not([haswideitem=true]) > .toolbarbutton-1 { michael@0: min-width: 0.01px; michael@0: } michael@0: michael@0: /* Help SDK buttons fit in. */ michael@0: toolbarpaletteitem[place="palette"] > toolbarbutton[sdk-button="true"] > .toolbarbutton-icon, michael@0: toolbarbutton[sdk-button="true"][cui-areatype="menu-panel"] > .toolbarbutton-icon { michael@0: height: 32px; michael@0: width: 32px; michael@0: } michael@0: michael@0: .customization-palette .toolbarbutton-1 { michael@0: -moz-appearance: none; michael@0: -moz-box-orient: vertical; michael@0: } michael@0: michael@0: .panelUI-grid .toolbarbutton-1 > .toolbarbutton-menubutton-button { michael@0: -moz-appearance: none; michael@0: -moz-box-orient: vertical; michael@0: width: calc(@menuPanelButtonWidth@ - 2px); michael@0: height: calc(49px + 2.2em); michael@0: border: 0; michael@0: } michael@0: michael@0: .panelUI-grid .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-text, michael@0: .panelUI-grid .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-multiline-text { michael@0: margin-top: 2px; /* Hack needed to get the label of type=menu-button aligned with other buttons */ michael@0: } michael@0: michael@0: .panel-customization-placeholder-child { michael@0: margin: 6px 0 0; michael@0: padding: 2px 6px; michael@0: border: 1px solid transparent; michael@0: } michael@0: michael@0: .panelUI-grid .toolbarbutton-1[type="menu"] { michael@0: background-image: url("chrome://browser/skin/toolbarbutton-dropdown-arrow.png"); michael@0: background-position: right 3px top 16px; michael@0: background-repeat: no-repeat; michael@0: } michael@0: michael@0: .panelUI-grid .toolbarbutton-1[type="menu"]:-moz-locale-dir(rtl) { michael@0: background-position: left 3px top 16px; michael@0: } michael@0: michael@0: .panelUI-grid .toolbarbutton-1 > .toolbarbutton-menu-dropmarker { michael@0: display: none; michael@0: } michael@0: michael@0: .panelUI-grid .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker { michael@0: -moz-box-align: center; michael@0: width: 16px; michael@0: -moz-margin-start: -16px; michael@0: height: 51px; michael@0: margin-bottom: 2.2em; michael@0: padding: 0; michael@0: } michael@0: michael@0: .panelUI-grid .toolbarbutton-1:not([buttonover])@buttonStateHover@ > .toolbarbutton-menubutton-dropmarker { michael@0: background-color: hsla(210,4%,10%,.1) !important; michael@0: border-radius: 0 0 0 2px; michael@0: } michael@0: michael@0: .panelUI-grid .toolbarbutton-1:not([buttonover])@buttonStateHover@ > .toolbarbutton-menubutton-dropmarker:-moz-locale-dir(rtl) { michael@0: border-radius: 0 0 2px 0; michael@0: } michael@0: michael@0: #main-window:not([customizing]) .panel-combined-button[disabled] > .toolbarbutton-icon { michael@0: opacity: .5; michael@0: } michael@0: michael@0: toolbaritem[cui-areatype="menu-panel"][sdkstylewidget="true"]:not(.panel-wide-item) { michael@0: width: calc(@menuPanelButtonWidth@); michael@0: margin: 0 !important; michael@0: } michael@0: michael@0: toolbaritem[cui-areatype="menu-panel"][sdkstylewidget="true"]:not(.panel-wide-item) { michael@0: -moz-box-align: center; michael@0: -moz-box-pack: center; michael@0: } michael@0: michael@0: toolbaritem[cui-areatype="menu-panel"][sdkstylewidget="true"] > iframe { michael@0: margin: 4px auto; michael@0: } michael@0: michael@0: #PanelUI-multiView[viewtype="subview"] > .panel-viewcontainer > .panel-viewstack > .panel-mainview > #PanelUI-mainView { michael@0: background-color: hsla(210,4%,10%,.1); michael@0: } michael@0: michael@0: #PanelUI-multiView[viewtype="subview"] #PanelUI-mainView > #PanelUI-contents-scroller > #PanelUI-contents > .panel-wide-item, michael@0: #PanelUI-multiView[viewtype="subview"] #PanelUI-mainView > #PanelUI-contents-scroller > #PanelUI-contents > .toolbarbutton-1:not([panel-multiview-anchor="true"]), michael@0: #PanelUI-multiView[viewtype="subview"] #PanelUI-mainView > #PanelUI-footer > #PanelUI-fxa-status, michael@0: #PanelUI-multiView[viewtype="subview"] #PanelUI-mainView > #PanelUI-footer > #PanelUI-footer-inner > toolbarseparator, michael@0: #PanelUI-multiView[viewtype="subview"] #PanelUI-mainView > #PanelUI-footer > #PanelUI-footer-inner > #PanelUI-customize, michael@0: #PanelUI-multiView[viewtype="subview"] #PanelUI-mainView > #PanelUI-footer > #PanelUI-footer-inner > #PanelUI-help:not([panel-multiview-anchor="true"]) { michael@0: opacity: .5; michael@0: } michael@0: michael@0: /* michael@0: * XXXgijs: this is a workaround for a layout issue that was caused by these iframes, michael@0: * which was affecting subview display. Because of this, we're hiding the iframe *only* michael@0: * when displaying a subview. The discerning user might notice this, but it's not nearly michael@0: * as bad as the brokenness. michael@0: * This hack should be removed once https://bugzilla.mozilla.org/show_bug.cgi?id=975375 michael@0: * is addressed. michael@0: */ michael@0: #PanelUI-multiView[viewtype="subview"] toolbaritem[cui-areatype="menu-panel"][sdkstylewidget="true"]:not(.panel-wide-item) > iframe { michael@0: visibility: hidden; michael@0: } michael@0: michael@0: toolbaritem[cui-areatype="menu-panel"][sdkstylewidget="true"]:not(.panel-wide-item) > .toolbarbutton-text { michael@0: text-align: center; michael@0: } michael@0: michael@0: .panelUI-grid .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-icon, michael@0: .panelUI-grid .toolbarbutton-1 > .toolbarbutton-icon, michael@0: .panelUI-grid .toolbarbutton-1 > .toolbarbutton-badge-container, michael@0: .customization-palette .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-icon, michael@0: .customization-palette .toolbarbutton-1 > .toolbarbutton-icon, michael@0: .panelUI-grid #bookmarks-toolbar-placeholder > .toolbarbutton-icon, michael@0: .customization-palette #bookmarks-toolbar-placeholder > .toolbarbutton-icon, michael@0: .panel-customization-placeholder-child > .toolbarbutton-icon { michael@0: min-width: 32px; michael@0: min-height: 32px; michael@0: /* Explanation for the below formula (A / B - C) michael@0: A michael@0: Each button is @menuPanelButtonWidth@ wide michael@0: B michael@0: Each button has two margins. michael@0: C (46px / 2 = 23px) michael@0: The button icon is 32 pixels wide. michael@0: The button has 12px of horizontal padding (6 on each side). michael@0: The button has 2px of horizontal border (1 on each side). michael@0: Total width of button's icon + button padding should therefore be 46px, michael@0: which means each horizontal margin should be the half the button's width - (46/2) px. michael@0: */ michael@0: margin: 4px calc(@menuPanelButtonWidth@ / 2 - 23px); michael@0: } michael@0: michael@0: /* above we treat the container as the icon for the margins, that is so the michael@0: /* badge itself is positioned correctly. Here we make sure that the icon itself michael@0: /* has the minum size we want, but no padding/margin. */ michael@0: .panelUI-grid .toolbarbutton-1 > .toolbarbutton-badge-container > .toolbarbutton-icon { michael@0: min-width: 32px; michael@0: min-height: 32px; michael@0: margin: 0; michael@0: padding: 0; michael@0: } michael@0: michael@0: toolbarpaletteitem[place="palette"] > toolbaritem > toolbarbutton { michael@0: -moz-box-flex: 1; michael@0: } michael@0: michael@0: #personal-bookmarks[overflowedItem=true] > #bookmarks-toolbar-placeholder { michael@0: -moz-box-flex: 1; michael@0: } michael@0: michael@0: #personal-bookmarks[cui-areatype="toolbar"][overflowedItem=true] > #bookmarks-toolbar-placeholder > .toolbarbutton-icon { michael@0: -moz-margin-end: 2px; michael@0: } michael@0: michael@0: #edit-controls@inAnyPanel@ > #copy-button, michael@0: #zoom-controls@inAnyPanel@ > #zoom-reset-button { michael@0: border-left: none; michael@0: border-right: none; michael@0: border-radius: 0; michael@0: } michael@0: michael@0: #zoom-in-button > .toolbarbutton-text, michael@0: #zoom-out-button > .toolbarbutton-text, michael@0: #zoom-reset-button > .toolbarbutton-icon { michael@0: display: none; michael@0: } michael@0: michael@0: #PanelUI-footer { michael@0: display: flex; michael@0: flex-shrink: 0; michael@0: flex-direction: column; michael@0: background-color: hsla(210,4%,10%,.07); michael@0: padding: 0; michael@0: margin: 0; michael@0: } michael@0: michael@0: #PanelUI-footer-inner { michael@0: display: flex; michael@0: border-top: 1px solid hsla(210,4%,10%,.14); michael@0: } michael@0: michael@0: #PanelUI-multiView[viewtype="subview"] #PanelUI-footer-inner { michael@0: position: relative; michael@0: } michael@0: michael@0: #PanelUI-footer-inner > toolbarseparator { michael@0: border: 0; michael@0: border-left: 1px solid hsla(210,4%,10%,.14); michael@0: margin: 7px 0 7px; michael@0: -moz-appearance: none; michael@0: } michael@0: michael@0: #PanelUI-footer-inner:hover > toolbarseparator { michael@0: margin: 0; michael@0: } michael@0: michael@0: #PanelUI-help, michael@0: #PanelUI-fxa-status, michael@0: #PanelUI-customize, michael@0: #PanelUI-quit { michael@0: margin: 0; michael@0: padding: 10px 0; michael@0: min-height: 2em; michael@0: -moz-appearance: none; michael@0: box-shadow: none; michael@0: border: none; michael@0: border-radius: 0; michael@0: transition: background-color; michael@0: -moz-box-orient: horizontal; michael@0: } michael@0: michael@0: #PanelUI-fxa-status { michael@0: border-top: 1px solid hsla(210,4%,10%,.14); michael@0: border-bottom: 1px solid transparent; michael@0: margin-bottom: -1px; michael@0: } michael@0: michael@0: #PanelUI-fxa-status > .toolbarbutton-text { michael@0: width: 0; /* Fancy cropping solution for flexbox. */ michael@0: } michael@0: michael@0: #PanelUI-help, michael@0: #PanelUI-quit { michael@0: min-width: 46px; michael@0: } michael@0: michael@0: #PanelUI-fxa-status > .toolbarbutton-text, michael@0: #PanelUI-customize > .toolbarbutton-text { michael@0: margin: 0; michael@0: padding: 0 6px; michael@0: text-align: start; michael@0: } michael@0: michael@0: #PanelUI-help > .toolbarbutton-text, michael@0: #PanelUI-quit > .toolbarbutton-text { michael@0: display: none; michael@0: } michael@0: michael@0: #PanelUI-fxa-status > .toolbarbutton-icon, michael@0: #PanelUI-customize > .toolbarbutton-icon, michael@0: #PanelUI-help > .toolbarbutton-icon, michael@0: #PanelUI-quit > .toolbarbutton-icon { michael@0: -moz-margin-end: 0; michael@0: } michael@0: michael@0: #PanelUI-fxa-status, michael@0: #PanelUI-customize { michael@0: flex: 1; michael@0: -moz-padding-start: 15px; michael@0: -moz-border-start-style: none; michael@0: } michael@0: michael@0: #PanelUI-fxa-status { michael@0: list-style-image: url(chrome://browser/skin/sync-horizontalbar.png); michael@0: } michael@0: michael@0: #PanelUI-fxa-status[status="active"] { michael@0: list-style-image: url(chrome://browser/skin/syncProgress-horizontalbar.png); michael@0: } michael@0: michael@0: #PanelUI-customize { michael@0: list-style-image: url(chrome://browser/skin/menuPanel-customize.png); michael@0: } michael@0: michael@0: #customization-panelHolder #PanelUI-customize { michael@0: list-style-image: url(chrome://browser/skin/customizableui/menuPanel-customizeFinish.png); michael@0: } michael@0: michael@0: #PanelUI-help { michael@0: list-style-image: url(chrome://browser/skin/menuPanel-help.png); michael@0: } michael@0: michael@0: #PanelUI-quit { michael@0: -moz-border-end-style: none; michael@0: list-style-image: url(chrome://browser/skin/menuPanel-exit.png); michael@0: } michael@0: michael@0: #PanelUI-fxa-status, michael@0: #PanelUI-customize, michael@0: #PanelUI-help, michael@0: #PanelUI-quit { michael@0: -moz-image-region: rect(0, 16px, 16px, 0); michael@0: } michael@0: michael@0: #PanelUI-customize:hover, michael@0: #PanelUI-help:not([disabled]):hover, michael@0: #PanelUI-quit:not([disabled]):hover { michael@0: -moz-image-region: rect(0, 32px, 16px, 16px); michael@0: } michael@0: michael@0: #PanelUI-customize:hover:active, michael@0: #PanelUI-help:not([disabled]):hover:active, michael@0: #PanelUI-quit:not([disabled]):hover:active { michael@0: -moz-image-region: rect(0, 48px, 16px, 32px); michael@0: } michael@0: michael@0: #PanelUI-help[panel-multiview-anchor="true"] { michael@0: -moz-image-region: rect(0, 64px, 16px, 48px); michael@0: } michael@0: michael@0: #PanelUI-help[disabled], michael@0: #PanelUI-quit[disabled] { michael@0: opacity: 0.4; michael@0: } michael@0: michael@0: #PanelUI-fxa-status:not([disabled]):hover, michael@0: #PanelUI-help:not([disabled]):hover, michael@0: #PanelUI-customize:hover, michael@0: #PanelUI-quit:not([disabled]):hover { michael@0: outline: 1px solid hsla(210,4%,10%,.07); michael@0: background-color: hsla(210,4%,10%,.07); michael@0: } michael@0: michael@0: #PanelUI-fxa-status:not([disabled]):hover:active, michael@0: #PanelUI-help:not([disabled]):hover:active, michael@0: #PanelUI-customize:hover:active, michael@0: #PanelUI-quit:not([disabled]):hover:active { michael@0: outline: 1px solid hsla(210,4%,10%,.12); michael@0: background-color: hsla(210,4%,10%,.12); michael@0: box-shadow: 0 1px 0 hsla(210,4%,10%,.05) inset; michael@0: } michael@0: michael@0: #PanelUI-fxa-status:not([disabled]):hover, michael@0: #PanelUI-fxa-status:not([disabled]):hover:active { michael@0: outline: none; michael@0: } michael@0: michael@0: #PanelUI-quit:not([disabled]):hover { michael@0: background-color: #d94141; michael@0: outline-color: #c23a3a; michael@0: } michael@0: michael@0: #PanelUI-quit:not([disabled]):hover:active { michael@0: background-color: #ad3434; michael@0: outline-color: #992e2e; michael@0: } michael@0: michael@0: #customization-panelHolder #PanelUI-customize { michael@0: color: white; michael@0: background-color: rgb(116,191,67); michael@0: text-shadow: none; michael@0: margin-top: -1px; michael@0: } michael@0: michael@0: #customization-panelHolder #PanelUI-customize + toolbarseparator { michael@0: display: none; michael@0: } michael@0: michael@0: #customization-panelHolder #PanelUI-customize:hover, michael@0: #customization-panelHolder #PanelUI-customize:hover:active { michael@0: background-color: rgb(105,173,61); michael@0: } michael@0: michael@0: #customization-palette .toolbarbutton-multiline-text, michael@0: #customization-palette .toolbarbutton-text { michael@0: display: none; michael@0: } michael@0: michael@0: panelview .toolbarbutton-1, michael@0: .subviewbutton, michael@0: .widget-overflow-list .toolbarbutton-1, michael@0: .panelUI-grid .toolbarbutton-1 > .toolbarbutton-menubutton-button, michael@0: .toolbaritem-combined-buttons@inAnyPanel@ > toolbarbutton { michael@0: -moz-appearance: none; michael@0: padding: 0 6px; michael@0: background-color: hsla(210,4%,10%,0); michael@0: border-radius: 2px; michael@0: border-style: solid; michael@0: border-color: hsla(210,4%,10%,0); michael@0: } michael@0: michael@0: panelview .toolbarbutton-1, michael@0: .subviewbutton, michael@0: .widget-overflow-list .toolbarbutton-1, michael@0: .toolbaritem-combined-buttons@inAnyPanel@ > toolbarbutton { michael@0: border-width: 1px; michael@0: } michael@0: michael@0: .subviewbutton.panel-subview-footer { michael@0: border-radius: 0; michael@0: border: none; michael@0: } michael@0: michael@0: .subviewbutton.panel-subview-footer > .menu-text { michael@0: -moz-appearance: none; michael@0: -moz-margin-start: 0px !important; michael@0: -moz-padding-start: 6px; michael@0: -moz-padding-end: 6px; michael@0: -moz-box-flex: 0; michael@0: text-align: center; michael@0: } michael@0: michael@0: .subviewbutton.panel-subview-footer > .toolbarbutton-icon { michael@0: margin: 0; michael@0: } michael@0: michael@0: .subviewbutton.panel-subview-footer > .toolbarbutton-text { michael@0: text-align: center; michael@0: padding: 0; michael@0: } michael@0: michael@0: .subviewbutton.panel-subview-footer > .menu-accel-container { michael@0: -moz-padding-start: 6px; michael@0: } michael@0: michael@0: .subviewbutton:not(.panel-subview-footer) { michael@0: margin: 0; michael@0: } michael@0: michael@0: .subviewbutton:not(.panel-subview-footer) > .toolbarbutton-text, michael@0: /* Bookmark items need a more specific selector. */ michael@0: .PanelUI-subView .subviewbutton:not(.panel-subview-footer) > .menu-text, michael@0: .PanelUI-subView .subviewbutton:not(.panel-subview-footer) > .menu-iconic-text { michael@0: font: menu; michael@0: } michael@0: michael@0: .PanelUI-subView .subviewbutton[shortcut]::after { michael@0: content: attr(shortcut); michael@0: float: right; michael@0: color: hsl(0,0%,50%); michael@0: } michael@0: michael@0: .PanelUI-subView.cui-widget-panelview .subviewbutton[shortcut]::after { michael@0: -moz-margin-start: 10px; michael@0: } michael@0: michael@0: /* This is a