/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ %filter substitution %define menuPanelWidth 22.35em %define wideMenuPanelWidth 29em %define standaloneSubviewWidth 30em % XXXgijs This is the ugliest bit of code I think I've ever written for Mozilla. % Basically, the 0.1px is there to avoid CSS rounding errors causing buttons to wrap. % For gory details, refer to https://bugzilla.mozilla.org/show_bug.cgi?id=963365#c11 % There's no calc() here (and therefore lots of calc() where this is used) because % we don't support nested calc(): https://bugzilla.mozilla.org/show_bug.cgi?id=968761 %define menuPanelButtonWidth (@menuPanelWidth@ / 3 - 0.1px) %define buttonStateHover :not(:-moz-any([disabled],[open],:active)):-moz-any(:hover,:focus) %define menuStateHover :not(:-moz-any([disabled],:active))[_moz-menuactive] %define buttonStateActive :not([disabled]):-moz-any([open],:hover:active) %define menuStateActive :not([disabled])[_moz-menuactive]:active %define menuStateMenuActive :not([disabled])[_moz-menuactive] %define inAnyPanel :-moz-any(:not([cui-areatype="toolbar"]), [overflowedItem=true]) %define panelPaletteIconSize 16px %define appmenuWarningBackgroundColor #FFEFBF %define appmenuWarningBackgroundColorHover #FFE8A2 %define appmenuWarningBackgroundColorActive #FFE38F %define appmenuWarningColor black %define appmenuWarningBorderColor hsl(45,100%,77%) %define appmenuWarningBackgroundColorBrightText hsla(55,100%,50%,.1) %define appmenuWarningBackgroundColorHoverBrightText hsla(55,100%,50%,.15) %define appmenuWarningBackgroundColorActiveBrightText hsla(55,100%,50%,.2) %define appmenuWarningColorBrightText #F9F9FA :root:not([uidensity=compact]):not([chromehidden~="toolbar"]) #PanelUI-button { margin-inline-start: 3px; border-inline-start: 1px solid; border-image: linear-gradient( transparent 4px, var(--lwt-toolbar-vertical-separator, rgba(0,0,0,.1)) 4px, var(--lwt-toolbar-vertical-separator, rgba(0,0,0,.1)) calc(100% - 4px), transparent calc(100% - 4px) ); border-image-slice: 1; } :root:not([uidensity=compact]):not([chromehidden~="toolbar"]) #nav-bar[brighttext] > #PanelUI-button { border-image-source: linear-gradient( transparent 4px, var(--lwt-toolbar-vertical-separator, rgba(255,255,255,.2)) 4px, var(--lwt-toolbar-vertical-separator, rgba(255,255,255,.2)) calc(100% - 4px), transparent calc(100% - 4px) ); } #PanelUI-menu-button[badge-status] > .toolbarbutton-badge-stack > .toolbarbutton-badge { display: -moz-box; height: 10px; width: 10px; background-size: contain; border: none; } #PanelUI-menu-button[badge-status="extension-new-tab"] > .toolbarbutton-badge-stack > .toolbarbutton-badge, #PanelUI-menu-button[badge-status="download-success"] > .toolbarbutton-badge-stack > .toolbarbutton-badge { display: none; } #PanelUI-menu-button[badge-status="update-available"] > .toolbarbutton-badge-stack > .toolbarbutton-badge, #PanelUI-menu-button[badge-status="update-manual"] > .toolbarbutton-badge-stack > .toolbarbutton-badge, #PanelUI-menu-button[badge-status="update-restart"] > .toolbarbutton-badge-stack > .toolbarbutton-badge { background: #74BF43 url(chrome://browser/skin/update-badge.svg) no-repeat center; border-radius: 50%; box-shadow: none; /* "!important" is necessary to override the rule in toolbarbutton.css */ margin: -7px 0 0 !important; margin-inline-end: -4px !important; min-width: 12px; min-height: 12px; } .panel-banner-item[notificationid^=update]::after { background: #74BF43 url(chrome://browser/skin/update-badge.svg) no-repeat center; border-radius: 50%; } .panel-banner-item[notificationid^=update] { list-style-image: url(chrome://branding/content/icon16.png); } #PanelUI-menu-button[badge-status="addon-alert"] > .toolbarbutton-badge-stack > .toolbarbutton-badge, #PanelUI-menu-button[badge-status="fxa-needs-authentication"] > .toolbarbutton-badge-stack > .toolbarbutton-badge { height: 13px; background: url(chrome://browser/skin/warning.svg) center / contain no-repeat transparent; box-shadow: none; border-radius: 0; /* Use the included fallbacks defined in the SVG file instead of inheriting from .toolbarbutton-1. */ -moz-context-properties: none; } #PanelUI-menu-button[badge-status] > .toolbarbutton-badge-stack > .toolbarbutton-badge:-moz-window-inactive { filter: grayscale(100%); } #nav-bar[brighttext] #PanelUI-menu-button[badge-status="addon-alert"] > .toolbarbutton-badge-stack > .toolbarbutton-badge, #nav-bar[brighttext] #PanelUI-menu-button[badge-status="fxa-needs-authentication"] > .toolbarbutton-badge-stack > .toolbarbutton-badge { -moz-context-properties: fill, stroke; fill: #FFE900; stroke: transparent; } panelview { -moz-box-orient: vertical; -moz-box-flex: 1; background: var(--arrowpanel-background); padding: 0; } /* This section is to anchor all the drop down panels at the same height, shift the panel`s top margin according to its positioning and the uidensity of the window. */ #downloadsPanel, #widget-overflow, #appMenu-popup, #customizationui-widget-panel { margin-top: -6px; } /* The difference between the toolbar buttons` padding and the urlbar-icons` padding, then subtract 6px. */ #pageActionActivatedActionPanel, #pageActionPanel, #editBookmarkPanel, .browser-extension-panel { margin-top: calc(var(--toolbarbutton-inner-padding) - var(--urlbar-icon-padding) - 6px) } /* The identity popup does not have any padding of its own, otherwise would use the same formula as above. */ #identity-popup { margin-top: calc(var(--toolbarbutton-inner-padding) - 6px); } /* The bookmarks toolbar is too thin to have the panels overlap 6px. */ #downloadsPanel.bookmarks-toolbar, #widget-overflow.bookmarks-toolbar, #appMenu-popup.bookmarks-toolbar, #customizationui-widget-panel.bookmarks-toolbar { margin-top: -1px; } /* The BMB_bookmarksPopup is unique because it is built into the bookmarks-menu-button, resulting in many edge cases. */ #BMB_bookmarksPopup { margin-top: -8px; } :root:not([uidensity]) #nav-bar #BMB_bookmarksPopup { margin-top: -11px; } :root[uidensity=touch] #nav-bar #BMB_bookmarksPopup, :root[uidensity=touch] #TabsToolbar #BMB_bookmarksPopup, :root[uidensity=compact] #BMB_bookmarksPopup { margin-top: -9px; } :root[uidensity=compact] #TabsToolbar #BMB_bookmarksPopup { margin-top: -7px; } #PersonalToolbar #BMB_bookmarksPopup { margin-top: -2px } :root[uidensity=touch] #PersonalToolbar #BMB_bookmarksPopup { margin-top: -5px; } .panel-subview-body { overflow-y: auto; overflow-x: hidden; -moz-box-flex: 1; padding: 6px 0; } .panel-view-body-unscrollable { overflow: hidden; -moz-box-flex: 1; } .subviewbutton.panel-subview-footer { box-sizing: border-box; min-height: 41px; } .cui-widget-panelview menuitem.subviewbutton.panel-subview-footer { margin: 4px 0 0; } .cui-widget-panelview .subviewbutton.panel-subview-footer > .menu-text { -moz-box-flex: 1; } #appMenu-popup > .panel-arrowcontainer > .panel-arrowcontent, panel[photon] > .panel-arrowcontainer > .panel-arrowcontent { overflow: hidden; } .cui-widget-panel > .panel-arrowcontainer > .panel-arrowcontent > .popup-internal-box { padding: 0; } #wrapper-edit-controls:-moz-any([place="palette"],[place="menu-panel"]) > #edit-controls, #wrapper-zoom-controls:-moz-any([place="palette"],[place="menu-panel"]) > #zoom-controls { margin-inline-start: 0; } #BMB_bookmarksPopup { max-width: @standaloneSubviewWidth@; } #confirmation-hint { --arrowpanel-background: #058b00; --arrowpanel-border-color: #046b00; --arrowpanel-color: #fff; } #confirmation-hint[hidearrow] > .panel-arrowcontainer > .panel-arrowbox { /* Don't display the arrow but keep the popup at the same vertical offset as other arrow panels. */ visibility: hidden; } #confirmation-hint > .panel-arrowcontainer > .panel-arrowcontent { font-weight: 400; font-size: 1.1rem; -moz-box-align: center; padding: 6px 10px; } #confirmation-hint-checkmark-animation-container { position: relative; overflow: hidden; width: 14px; height: 14px; } #confirmation-hint-checkmark-animation-container[animate] > #confirmation-hint-checkmark-image { position: absolute; background-image: url(chrome://browser/skin/check-animation.svg); background-repeat: no-repeat; min-width: 266px; max-width: 266px; min-height: 14px; max-height: 14px; animation-name: confirmation-hint-checkmark-animation; animation-duration: 300ms; animation-delay: 60ms; animation-fill-mode: forwards; animation-timing-function: steps(18); } #confirmation-hint-checkmark-animation-container[animate] > #confirmation-hint-checkmark-image:-moz-locale-dir(rtl) { animation-name: confirmation-hint-checkmark-animation-rtl; transform: translateX(252px); } @keyframes confirmation-hint-checkmark-animation { from { transform: translateX(0); } to { transform: translateX(-252px); } } @keyframes confirmation-hint-checkmark-animation-rtl { from { transform: translateX(252px); } to { transform: translateX(0); } } #confirmation-hint-message { margin-inline-start: 7px; margin-inline-end: 0; transform: scale(.8); opacity: 0; transition: transform 120ms cubic-bezier(.25,1.27,.35,1.18), opacity 60ms linear; } #confirmation-hint-checkmark-animation-container[animate] + #confirmation-hint-message { transform: scale(1); opacity: 1; } .cui-widget-panel[viewId^=PanelUI-webext-] > .panel-arrowcontainer > .panel-arrowcontent { padding: 0; } panelview[id^=PanelUI-webext-] { overflow: hidden; } panelview:not([mainview]) .toolbarbutton-text, .cui-widget-panel toolbarbutton:not([wrap]) > .toolbarbutton-text, #overflowMenu-customize-button > .toolbarbutton-text { text-align: start; display: -moz-box; } .cui-widget-panel > .panel-arrowcontainer > .panel-arrowcontent { padding: 4px 0; } #appMenu-popup > .panel-arrowcontainer > .panel-arrowcontent, panel[photon] > .panel-arrowcontainer > .panel-arrowcontent { padding: 0; } #appMenu-popup panelview, #customizationui-widget-multiview panelview:not([extension]) { min-width: @menuPanelWidth@; max-width: 35em; } #customizationui-widget-multiview #appMenu-libraryView, #pageActionPanel panelview, #widget-overflow panelview { min-width: @wideMenuPanelWidth@; max-width: @wideMenuPanelWidth@; } /* Add 2 * 16px extra width for touch mode button padding. */ #appMenu-popup[touchmode] panelview { min-width: calc(@menuPanelWidth@ + 32px); } .cui-widget-panel.cui-widget-panelWithFooter > .panel-arrowcontainer > .panel-arrowcontent { padding-bottom: 0; } .toolbaritem-combined-buttons@inAnyPanel@ > toolbarbutton > .toolbarbutton-icon { min-width: 0; min-height: 0; margin: 0; } .animate-out { animation-name: widget-animate-out; animation-fill-mode: forwards; animation-duration: 500ms; animation-timing-function: var(--animation-easing-function); } @keyframes widget-animate-out { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0 ; transform: scale(.5); } } toolbarpaletteitem[place="menu-panel"] > .toolbarbutton-1 { -moz-box-flex: 1; } /* Help webextension buttons fit in. */ toolbarpaletteitem[place="palette"] > toolbarbutton[constrain-size="true"] > .toolbarbutton-icon, toolbarpaletteitem[place="palette"] > toolbarbutton[constrain-size="true"] > .toolbarbutton-badge-stack > .toolbarbutton-icon, toolbarbutton[constrain-size="true"][cui-areatype="menu-panel"] > .toolbarbutton-icon, toolbarbutton[constrain-size="true"][cui-areatype="menu-panel"] > .toolbarbutton-badge-stack > .toolbarbutton-icon { height: @panelPaletteIconSize@; width: @panelPaletteIconSize@; } #customization-palette .toolbarbutton-1 { -moz-appearance: none; -moz-box-orient: vertical; padding: 12px 0 9px; margin: 0; } /* above we treat the container as the icon for the margins, that is so the /* badge itself is positioned correctly. Here we make sure that the icon itself /* has the minimum size we want, but no padding/margin. */ .customization-palette .toolbarbutton-1 > .toolbarbutton-badge-stack > .toolbarbutton-icon { width: @panelPaletteIconSize@; height: @panelPaletteIconSize@; min-width: @panelPaletteIconSize@; min-height: @panelPaletteIconSize@; margin: 0; padding: 0; } #edit-controls@inAnyPanel@ > #copy-button, #zoom-controls@inAnyPanel@ > #zoom-reset-button { border-left: none; border-right: none; border-radius: 0; } #zoom-in-button > .toolbarbutton-text, #zoom-out-button > .toolbarbutton-text, #zoom-reset-button > .toolbarbutton-icon { display: none; } .addon-banner-item::after, .panel-banner-item::after { content: ""; width: 16px; height: 16px; margin-inline-start: 10px; margin-inline-end: 12px; display: -moz-box; } .addon-banner-item { background-color: @appmenuWarningBackgroundColor@; color: @appmenuWarningColor@; /* Force border to override `.addon-banner-item` selector below */ border-top: 1px solid @appmenuWarningBorderColor@ !important; display: flex; flex: 1 1 0%; width: calc(@menuPanelWidth@ + 30px); padding-inline-start: 15px; border-inline-start-style: none; -moz-image-region: rect(0, 16px, 16px, 0); } .addon-banner-item:last-child { border-bottom: 1px solid @appmenuWarningBorderColor@; } .addon-banner-item:hover { background-color: @appmenuWarningBackgroundColorHover@; } .addon-banner-item:hover:active { background-color: @appmenuWarningBackgroundColorActive@; } .addon-banner-item > .toolbarbutton-icon { width: 16px; height: 16px; } .addon-banner-item::after { background: url(chrome://browser/skin/warning.svg) no-repeat center; } :root[lwt-popup-brighttext] .addon-banner-item::after { -moz-context-properties: fill, stroke; fill: #FFE900; stroke: transparent; } .addon-banner-item, .panel-banner-item { margin: 0; padding: 11px 0; box-sizing: border-box; min-height: 40px; -moz-appearance: none; box-shadow: none; border: none; border-radius: 0; transition: background-color; -moz-box-orient: horizontal; } .panel-banner-item { border-top: 1px solid var(--panel-separator-color); border-bottom: 1px solid var(--panel-separator-color); padding-inline-start: 12px; } #appMenu-addon-banners:not(:empty) + .panel-banner-item { /* Overlap the .addon-banner-item border so there's one border. */ margin-top: -1px; } #appMenu-addon-banners > .addon-banner-item { padding-inline-start: 12px; } .panel-banner-item > .toolbarbutton-text { width: 0; /* Fancy cropping solution for flexbox. */ } .panel-banner-item > .toolbarbutton-icon { width: 16px; } #appMenu-addon-banners:not(:empty) ~ #appMenu-fxa-container, .panel-banner-item:not([hidden]) + #appMenu-fxa-container { margin-top: 6px; } /* FxAccount indicator bits. */ /* Add the .toolbaritem-combined-buttons class to increase the specificity so as * to override the end margin for .toolbaritem-combined-buttons items further down. */ #appMenu-fxa-container.toolbaritem-combined-buttons:not([fxastatus="signedin"]) { margin-inline-end: 0; } #appMenu-fxa-label, #appMenu-fxa-icon { -moz-context-properties: fill; fill: currentColor; list-style-image: url(chrome://browser/skin/sync.svg); } #appMenu-fxa-label { -moz-box-flex: 1; } @keyframes syncRotate { from { transform: rotate(0); } to { transform: rotate(360deg); } } #appMenu-fxa-icon[syncstatus="active"] > .toolbarbutton-icon, #PanelUI-remotetabs-syncnow[syncstatus="active"] > .toolbarbutton-icon { animation: syncRotate 0.8s linear infinite; fill: var(--toolbarbutton-icon-fill-attention); } #appMenu-fxa-status { -moz-box-align: center; } #appMenu-fxa-avatar { pointer-events: none; list-style-image: url(chrome://browser/skin/fxa/default-avatar.svg); } /* Handle different UI states. */ #appMenu-fxa-container[fxastatus="signedin"] > #appMenu-fxa-status > #appMenu-fxa-label > .toolbarbutton-icon, #appMenu-fxa-container:not([fxastatus="signedin"]) > toolbarseparator, #appMenu-fxa-container:not([fxastatus="signedin"]) > #appMenu-fxa-icon, #appMenu-fxa-container:not([fxastatus="signedin"]) > #appMenu-fxa-status > #appMenu-fxa-avatar { display: none; } #appMenu-fxa-container[fxastatus="signedin"] > #appMenu-fxa-status > #appMenu-fxa-label { /* 12px space before the avatar, then 16px for the avatar */ padding-inline-start: 28px; margin-inline-start: -28px; } #appMenu-fxa-container[fxastatus="signedin"] > #appMenu-fxa-status > #appMenu-fxa-avatar { margin-inline-start: 12px; } /* Error states */ #appMenu-fxa-container[fxastatus="unverified"] > #appMenu-fxa-status > #appMenu-fxa-label, #appMenu-fxa-container[fxastatus="login-failed"] > #appMenu-fxa-status > #appMenu-fxa-label { list-style-image: url(chrome://browser/skin/warning.svg); -moz-image-region: rect(0, 16px, 16px, 0); } #appMenu-fxa-container[fxastatus="login-failed"], #appMenu-fxa-container[fxastatus="unverified"] { background-color: @appmenuWarningBackgroundColor@; color: @appmenuWarningColor@; border-top: 1px solid @appmenuWarningBorderColor@; border-bottom: 1px solid @appmenuWarningBorderColor@; } #appMenu-fxa-container[fxastatus="login-failed"] > #appMenu-fxa-status:hover, #appMenu-fxa-container[fxastatus="unverified"] > #appMenu-fxa-status:hover { background-color: @appmenuWarningBackgroundColorHover@; } #appMenu-fxa-container[fxastatus="login-failed"] > #appMenu-fxa-status:hover:active, #appMenu-fxa-container[fxastatus="unverified"] > #appMenu-fxa-status:hover:active { background-color: @appmenuWarningBackgroundColorActive@; } /* Tracking Protection Button & Toggle */ #appMenu-tp-label { -moz-context-properties: fill; fill: currentColor; list-style-image: url(chrome://browser/skin/tracking-protection.svg); -moz-box-flex: 1; } #appMenu-tp-toggle { -moz-appearance: none; box-sizing: border-box; min-width: 26px; height: 10px; border-radius: 10px; background-color: var(--arrowpanel-dimmed-even-further); border: 1px solid transparent; margin-top: 4px; margin-bottom: 4px; margin-inline-start: 1px; margin-inline-end: 7px; padding: 2px; transition: padding .2s ease; } #appMenu-tp-toggle::before { position: relative; display: block; content: ""; width: 10px; height: 10px; border-radius: 10px; background: white; } #appMenu-tp-toggle[enabled=true] { background-color: #0a84ff; border: 1px solid #0a84ff; /* Push the toggle to the right. */ padding-inline-start: 12px; } #appMenu-tp-toggle:hover, #appMenu-tp-toggle:-moz-focusring { border: 1px solid var(--panel-separator-color); } #appMenu-tp-toggle[enabled=true]:hover, #appMenu-tp-toggle[enabled=true]:-moz-focusring { background-color: #45a1ff; } .addon-banner-item > .toolbarbutton-text, .panel-banner-item > .toolbarbutton-text { margin: 0; padding: 0 6px; text-align: start; } .addon-banner-item > .toolbarbutton-icon, .panel-banner-item > .toolbarbutton-icon { margin-inline-end: 0; } .addon-banner-item { flex: 1; padding-inline-start: 15px; border-inline-start-style: none; } :root[lwt-popup-brighttext] .addon-banner-item { color: @appmenuWarningColorBrightText@; background: @appmenuWarningBackgroundColorBrightText@; /* override `.addon-banner-item` border-top !important defined above */ border: 0 !important; } :root[lwt-popup-brighttext] .addon-banner-item:hover, :root[lwt-popup-brighttext] .addon-banner-item:focus { background: @appmenuWarningBackgroundColorHoverBrightText@; } :root[lwt-popup-brighttext] .addon-banner-item:hover:active, :root[lwt-popup-brighttext] .addon-banner-item:focus:active { background: @appmenuWarningBackgroundColorActiveBrightText@; } :root[lwt-popup-brighttext] #appMenu-fxa-container[fxastatus="login-failed"], :root[lwt-popup-brighttext] #appMenu-fxa-container[fxastatus="unverified"] { background-color: @appmenuWarningBackgroundColorBrightText@; color: @appmenuWarningColorBrightText@; } :root[lwt-popup-brighttext] #appMenu-fxa-container[fxastatus="login-failed"] > #appMenu-fxa-status:hover, :root[lwt-popup-brighttext] #appMenu-fxa-container[fxastatus="unverified"] > #appMenu-fxa-status:hover { background-color: @appmenuWarningBackgroundColorHoverBrightText@; } :root[lwt-popup-brighttext] #appMenu-fxa-container[fxastatus="login-failed"] > #appMenu-fxa-status:hover:active, :root[lwt-popup-brighttext] #appMenu-fxa-container[fxastatus="unverified"] > #appMenu-fxa-status:hover:active { background-color: @appmenuWarningBackgroundColorActiveBrightText@; } #PanelUI-remotetabs { --panel-ui-sync-illustration-height: 91px; } .PanelUI-remotetabs-instruction-label { /* If you change the margin here, the min-height of the synced tabs panel (e.g. #PanelUI-remotetabs[mainview] #PanelUI-remotetabs-setupsync, etc) may need adjusting (see bug 1248506) */ margin: 0; text-align: center; text-shadow: none; max-width: 15em; color: var(--panel-disabled-color); } /* The boxes with "instructions" get extra top and bottom padding for space around the illustration and buttons */ .PanelUI-remotetabs-instruction-box { /* If you change the padding here, the min-height of the synced tabs panel (e.g. #PanelUI-remotetabs[mainview] #PanelUI-remotetabs-setupsync, etc) may need adjusting (see bug 1248506) */ padding-bottom: 30px; } .PanelUI-remotetabs-button { -moz-appearance: none; background-color: #0060df; /* !important for the color as an OSX specific rule when a lightweight theme is used for buttons in the toolbox overrides. See bug 1238531 for details */ color: white !important; border-radius: 2px; /* If you change the margin or padding below, the min-height of the synced tabs panel (e.g. #PanelUI-remotetabs[mainview] #PanelUI-remotetabs-setupsync, etc) may need adjusting (see bug 1248506) */ margin-top: 15px; margin-bottom: 15px; padding: 8px; text-shadow: none; min-width: 200px; } .PanelUI-remotetabs-button:hover { background-color: #003eaa; } .PanelUI-remotetabs-button:hover:active { background-color: #002275; } .remotetabs-promo-link { margin: 0; } .PanelUI-remotetabs-notabsforclient-label { color: var(--panel-disabled-color); /* This margin is to line this label up with the labels in toolbarbuttons. */ margin-left: 28px; } #PanelUI-remotetabs[mainview] .PanelUI-remotetabs-notabsforclient-label { margin-left: 32px; } .fxaSyncIllustration, .fxaSyncIllustrationIssue { /* If you change the margin here, the min-height of the synced tabs panel (e.g. #PanelUI-remotetabs[mainview] #PanelUI-remotetabs-setupsync, etc) may need adjusting (see bug 1248506) */ width: 104px; height: var(--panel-ui-sync-illustration-height); margin: 38px 0 15px; -moz-context-properties: fill; fill: #cdcdcd; } .fxaSyncIllustration { list-style-image: url(chrome://browser/skin/fxa/sync-illustration.svg); } .fxaSyncIllustrationIssue { list-style-image: url(chrome://browser/skin/fxa/sync-illustration-issue.svg); } .PanelUI-remotetabs-button > .toolbarbutton-text { /* !important to override ".cui-widget-panel toolbarbutton > .toolbarbutton-text" above. */ text-align: center !important; text-shadow: none; } #PanelUI-remotetabs[mainview] { /* panel anchored to toolbar button might be too skinny */ min-width: 19em; } /* Work around bug 1224412 - these boxes will cause scrollbars to appear when the panel is anchored to a toolbar button. */ #PanelUI-remotetabs[mainview] #PanelUI-remotetabs-setupsync, #PanelUI-remotetabs[mainview] #PanelUI-remotetabs-reauthsync, #PanelUI-remotetabs[mainview] #PanelUI-remotetabs-unverified, #PanelUI-remotetabs[mainview] #PanelUI-remotetabs-nodevicespane, #PanelUI-remotetabs[mainview] #PanelUI-remotetabs-tabsdisabledpane { min-height: calc(var(--panel-ui-sync-illustration-height) + 53px + /* margin of .fxaSyncIllustration */ 30px + /* margin of .PanelUI-remotetabs-button */ 16px + /* padding of .PanelUI-remotetabs-button */ 30px + /* padding of .PanelUI-remotetabs-instruction-box */ 11em); } #PanelUI-remotetabs-tabslist > label[itemtype="client"] { color: var(--panel-disabled-color); } /* Collapse the non-active vboxes in the remotetabs deck to use only the height the active box needs */ #PanelUI-remotetabs-deck:not([selectedIndex="1"]) > #PanelUI-remotetabs-tabsdisabledpane, #PanelUI-remotetabs-deck:not([selectedIndex="2"]) > #PanelUI-remotetabs-fetching, #PanelUI-remotetabs-deck:not([selectedIndex="3"]) > #PanelUI-remotetabs-nodevicespane { visibility: collapse; } #PanelUI-remotetabs-main[devices-status="single"] > #PanelUI-remotetabs-buttons { display: none; } .panel-banner-item { color: black; background-color: hsla(96,65%,75%,.5); } .panel-banner-item:not([disabled]):hover { background-color: hsla(96,65%,75%,.8); } .panel-banner-item:not([disabled]):hover:active { background-color: hsl(96,65%,75%); } :root[lwt-popup-brighttext] .panel-banner-item:not([disabled]) { background-color: rgba(48,230,11,.1); color: #F9F9FA; } :root[lwt-popup-brighttext] .panel-banner-item:not([disabled]):hover { background-color: rgba(48,230,11,.15); } :root[lwt-popup-brighttext] .panel-banner-item:not([disabled]):active { background-color: rgba(48,230,11,.2); } #customization-palette .toolbarbutton-multiline-text, #customization-palette .toolbarbutton-text { display: none; } .subview-subheader, panelview .toolbarbutton-1, .subviewbutton, .widget-overflow-list .toolbarbutton-1 { -moz-appearance: none; margin: 0; min-height: 24px; padding: 4px 12px; background-color: transparent; } .subviewbutton:focus { outline: 0; } .subviewbutton > .toolbarbutton-text { padding: 0; padding-inline-start: 24px; /* This is 16px for the icon + 8px for the padding as defined below. */ } .subviewbutton > .menu-right { -moz-appearance: none; list-style-image: url(chrome://browser/skin/customizableui/menu-arrow.svg); -moz-context-properties: fill, fill-opacity; fill: currentColor; /* Reset the rect we inherit from the button */ -moz-image-region: auto; } .subviewbutton[disabled="true"] > .menu-right { fill-opacity: 0.6; } .subviewbutton > .menu-right:-moz-locale-dir(rtl) { transform: scaleX(-1); } .subviewbutton > .menu-right, .subviewbutton > .menu-accel-container > .menu-iconic-accel, .subviewbutton > .menu-iconic-left, .subviewbutton > .menu-iconic-text { padding-bottom: 0; padding-top: 0; } .addon-banner-item > .toolbarbutton-text, .subviewbutton-iconic > .toolbarbutton-text, .cui-withicon > .toolbarbutton-text, .subviewbutton[image] > .toolbarbutton-text, .subviewbutton[targetURI] > .toolbarbutton-text, .subviewbutton.restoreallitem > .toolbarbutton-text, .subviewbutton.bookmark-item > .toolbarbutton-text, .subviewbutton[checked="true"] > .toolbarbutton-text { padding-inline-start: 8px; /* See '.subviewbutton-iconic > .toolbarbutton-text' rule above. */ } .panel-banner-item > .toolbarbutton-multiline-text { font: menu; margin: 0; padding: 0; padding-inline-start: 8px; /* See '.subviewbutton-iconic > .toolbarbutton-text' rule above. */ } .subviewbutton-iconic > .toolbarbutton-icon { width: 16px; height: 16px; -moz-context-properties: fill; fill: currentColor; } /* We don't always display: none this item, and if it has forced width (like above) * or margin, that impacts the position of the label. Fix: */ .subviewbutton > .toolbarbutton-icon { margin: 0; } .subviewbutton.panel-subview-footer > .menu-text { -moz-appearance: none; padding-inline-end: 6px; padding-inline-start: 0 !important; /* to override menu.css on Windows */ -moz-box-flex: 0; } .subviewbutton.panel-subview-footer > .toolbarbutton-text { padding-inline-start: 0; } .subviewbutton.panel-subview-footer > .menu-accel-container { padding-inline-start: 6px; } .subviewbutton > .menu-accel-container > .menu-iconic-accel, .subviewbutton > .menu-accel-container > .menu-accel { margin-inline-end: 0 !important; /* to override menu.css on Windows */ } #widget-overflow-fixed-list .toolbarbutton-1 > .toolbarbutton-text, #widget-overflow-list .toolbarbutton-1 > .toolbarbutton-text, .subviewbutton:not(.panel-subview-footer) > .toolbarbutton-text, .addon-banner-item > .toolbarbutton-text, /* Bookmark items need a more specific selector. */ .PanelUI-subView .subviewbutton:not(.panel-subview-footer) > .menu-text, .PanelUI-subView .subviewbutton:not(.panel-subview-footer) > .menu-iconic-text { font: menu; } .subviewbutton[shortcut]::after { content: attr(shortcut); float: right; color: var(--panel-disabled-color); } .PanelUI-subView .subviewbutton-nav::after { -moz-context-properties: fill, fill-opacity; content: url(chrome://browser/skin/back-12.svg); fill: currentColor; fill-opacity: 0.6; float: right; transform: translateY(1px); } #main-window:not([customizing]) .subviewbutton-nav[disabled=true]::after { opacity: 0.4; } .PanelUI-subView .subviewbutton-nav:-moz-locale-dir(ltr)::after { transform: scaleX(-1) translateY(1px); } .subviewbutton[shortcut]::after, .subviewbutton[shortcut]::after, .PanelUI-subView .subviewbutton-nav::after { margin-inline-start: 10px; } .subviewbutton[type="highlight-bookmark"]::after { content: url("chrome://browser/skin/bookmark-hollow.svg"); } .subviewbutton[type="highlight-history"]::after { content: url("chrome://browser/skin/history.svg"); } .subviewbutton[type="highlight-bookmark"]::after, .subviewbutton[type="highlight-history"]::after { -moz-context-properties: fill, fill-opacity; fill: currentColor; fill-opacity: 0.4; float: right; /* Centers the icon and resizes it to 12px square. */ transform: translateY(2px) scaleX(.75); } /* This is a