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: @import url("chrome://global/skin/"); michael@0: michael@0: @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); michael@0: @namespace html url("http://www.w3.org/1999/xhtml"); michael@0: @namespace svg url("http://www.w3.org/2000/svg"); michael@0: michael@0: %include ../shared/browser.inc michael@0: %include windowsShared.inc michael@0: %filter substitution michael@0: %define toolbarShadowColor hsla(209,67%,12%,0.35) michael@0: %define navbarTextboxCustomBorder border-color: rgba(0,0,0,.32); michael@0: %define forwardTransitionLength 150ms michael@0: %define conditionalForwardWithUrlbar window:not([chromehidden~="toolbar"]) #urlbar-wrapper michael@0: %define conditionalForwardWithUrlbarWidth 30 michael@0: michael@0: #menubar-items { michael@0: -moz-box-orient: vertical; /* for flex hack */ michael@0: } michael@0: michael@0: #main-menubar { michael@0: -moz-box-flex: 1; /* make menu items expand to fill toolbar height */ michael@0: } michael@0: michael@0: /* Hides the titlebar-placeholder underneath the window caption buttons when we michael@0: are not autohiding the menubar. */ michael@0: #toolbar-menubar:not([autohide="true"]) + #TabsToolbar > .titlebar-placeholder[type="caption-buttons"] { michael@0: display: none; michael@0: } michael@0: michael@0: /* We want a 4px gap between the TabsToolbar and the toolbar-menubar when the michael@0: toolbar-menu is displayed, and a 16px gap when it is not. 1px is taken care michael@0: of by the (light) outer shadow of the tab, the remaining 3/15 are these margins. */ michael@0: #toolbar-menubar:not([moz-collapsed=true]):not([autohide=true]) ~ #TabsToolbar, michael@0: #toolbar-menubar:not([moz-collapsed=true])[autohide=true]:not([inactive]) ~ #TabsToolbar { michael@0: margin-top: 3px; michael@0: } michael@0: michael@0: #main-window[tabsintitlebar][sizemode="normal"]:not([inFullscreen])[chromehidden~="menubar"] #toolbar-menubar ~ #TabsToolbar, michael@0: #main-window[tabsintitlebar][sizemode="normal"]:not([inFullscreen]) #toolbar-menubar[autohide="true"][inactive] ~ #TabsToolbar { michael@0: margin-top: 15px; michael@0: } michael@0: michael@0: #toolbar-menubar:not([autohide="true"]) { michael@0: -moz-binding: url("chrome://browser/content/customizableui/toolbar.xml#toolbar-drag"); michael@0: } michael@0: michael@0: #main-window[customize-entered][tabsintitlebar]:not([inFullscreen]) #toolbar-menubar[customizing-dragovertarget].customization-target::before, michael@0: #main-window[customize-entered][tabsintitlebar]:not([inFullscreen]) #TabsToolbar[customizing-dragovertarget].customization-target::before, michael@0: #main-window[customize-entered][tabsintitlebar]:not([inFullscreen]) #toolbar-menubar.customization-target:hover::before, michael@0: #main-window[customize-entered][tabsintitlebar]:not([inFullscreen]) #TabsToolbar.customization-target:hover::before { michael@0: outline-color: CaptionText; michael@0: } michael@0: michael@0: #navigator-toolbox { michael@0: -moz-appearance: none; michael@0: background-color: transparent; michael@0: border-top: none; michael@0: } michael@0: michael@0: #navigator-toolbox::after { michael@0: content: ""; michael@0: display: -moz-box; michael@0: -moz-box-ordinal-group: 101; /* tabs toolbar is 100 */ michael@0: height: 1px; michael@0: background-color: ThreeDShadow; michael@0: } michael@0: michael@0: #navigator-toolbox > toolbar:not(:-moz-lwtheme) { michael@0: -moz-appearance: none; michael@0: border-style: none; michael@0: background-color: -moz-Dialog; michael@0: } michael@0: michael@0: %ifdef WINDOWS_AERO michael@0: @media not all and (-moz-windows-compositor), michael@0: not all and (-moz-windows-default-theme) { michael@0: %endif michael@0: #toolbar-menubar { michael@0: background-color: transparent !important; michael@0: } michael@0: michael@0: #main-window[tabsintitlebar]:not([inFullscreen]) #toolbar-menubar:not(:-moz-lwtheme), michael@0: #main-window[tabsintitlebar]:not([inFullscreen]) #TabsToolbar:not(:-moz-lwtheme) { michael@0: color: CaptionText; michael@0: } michael@0: michael@0: #main-window[tabsintitlebar]:not([inFullscreen]) #toolbar-menubar:not(:-moz-lwtheme):-moz-window-inactive, michael@0: #main-window[tabsintitlebar]:not([inFullscreen]) #TabsToolbar:not(:-moz-lwtheme):-moz-window-inactive { michael@0: color: InactiveCaptionText; michael@0: } michael@0: michael@0: #main-window[tabsintitlebar] #main-menubar > menu:not(:-moz-lwtheme) { michael@0: color: inherit; michael@0: } michael@0: michael@0: #TabsToolbar:-moz-lwtheme { michael@0: background: linear-gradient(to top, @toolbarShadowColor@ 2px, transparent 2px); michael@0: } michael@0: %ifdef WINDOWS_AERO michael@0: } michael@0: %endif michael@0: michael@0: %ifdef WINDOWS_AERO michael@0: @media not all and (-moz-windows-compositor) { michael@0: %endif michael@0: #main-window[tabsintitlebar] #titlebar:-moz-lwtheme { michael@0: visibility: hidden; michael@0: } michael@0: michael@0: #main-window[tabsintitlebar] #titlebar-content:-moz-lwtheme { michael@0: -moz-binding: url("chrome://global/content/bindings/general.xml#windowdragbox"); michael@0: visibility: visible; michael@0: } michael@0: %ifdef WINDOWS_AERO michael@0: } michael@0: %endif michael@0: michael@0: /** michael@0: * In the classic themes, the titlebar has a horizontal gradient, which is michael@0: * problematic for reading the text of background tabs when they're in the michael@0: * titlebar. We side-step this issue by layering our own background underneath michael@0: * the tabs. Unfortunately, this requires a bunch of positioning in order to get michael@0: * text and icons to not appear fuzzy. michael@0: */ michael@0: @media (-moz-windows-classic) { michael@0: /** michael@0: * We need to bump up the z-index of the tabbrowser-tabs so that they appear michael@0: * over top of the fog we're applying for classic themes, as well as the nav-bar. michael@0: */ michael@0: #main-window[tabsintitlebar]:not([sizemode=fullscreen]) #tabbrowser-tabs { michael@0: position: relative; michael@0: z-index: 2; michael@0: } michael@0: michael@0: #main-window[tabsintitlebar] #TabsToolbar:not(:-moz-lwtheme) { michael@0: background-image: none; michael@0: position: relative; michael@0: } michael@0: michael@0: #main-window[tabsintitlebar]:not([sizemode=fullscreen]) #TabsToolbar:not(:-moz-lwtheme)::after { michael@0: /* Because we use placeholders for window controls etc. in the tabstrip, michael@0: * and position those with ordinal attributes, and because our layout code michael@0: * expects :before/:after nodes to come first/last in the frame list, michael@0: * we have to reorder this element to come last, hence the michael@0: * ordinal group value (see bug 853415). */ michael@0: -moz-box-ordinal-group: 1001; michael@0: box-shadow: 0 0 50px 8px ActiveCaption; michael@0: content: ""; michael@0: display: -moz-box; michael@0: height: 0; michael@0: margin: 0 50px; michael@0: position: absolute; michael@0: pointer-events: none; michael@0: top: 100%; michael@0: width: -moz-available; michael@0: } michael@0: michael@0: #main-window[tabsintitlebar]:not([sizemode=fullscreen]) #TabsToolbar:not(:-moz-lwtheme):-moz-window-inactive::after { michael@0: box-shadow: 0 0 50px 8px InactiveCaption; michael@0: } michael@0: michael@0: #main-window[tabsintitlebar]:not([sizemode=fullscreen]) toolbar[customindex]:not(:-moz-lwtheme), michael@0: #main-window[tabsintitlebar]:not([sizemode=fullscreen]) #PersonalToolbar:not(:-moz-lwtheme) { michael@0: position: relative; michael@0: } michael@0: michael@0: /* Need to constrain the box shadow fade to avoid overlapping layers, see bug 886281. */ michael@0: #main-window[tabsintitlebar]:not([sizemode=fullscreen]) #navigator-toolbox:not(:-moz-lwtheme) { michael@0: overflow: -moz-hidden-unscrollable; michael@0: } michael@0: michael@0: /** michael@0: * When the tabstrip is overflowed, pinned tab separators get position: absolute, michael@0: * which makes the pinned tab separators leak over the nav-bar highlight. Forcing michael@0: * the element to snap to the bottom of the client rect works around the issue. michael@0: */ michael@0: #main-window[tabsintitlebar] #tabbrowser-tabs[positionpinnedtabs] > .tabbrowser-tab[pinned]::before { michael@0: bottom: 0px; michael@0: } michael@0: michael@0: #main-window[tabsintitlebar]:not([sizemode=fullscreen]) #TabsToolbar .toolbarbutton-1 { michael@0: position: relative; michael@0: z-index: 1; michael@0: } michael@0: michael@0: /** michael@0: * With the tabbrowser-tabs element z-index'd above the nav-bar, we now get the michael@0: * scrollbox button borders leaking over the nav-bar highlight. This transparent bottom michael@0: * border forces the scrollbox button borders to terminate a pixel early, working michael@0: * around the issue. michael@0: */ michael@0: #main-window[tabsintitlebar]:not([sizemode=fullscreen]) .tabbrowser-arrowscrollbox > .scrollbutton-up, michael@0: #main-window[tabsintitlebar]:not([sizemode=fullscreen]) .tabbrowser-arrowscrollbox > .scrollbutton-down { michael@0: border-bottom: 1px solid transparent; michael@0: } michael@0: michael@0: #main-window[tabsintitlebar][sizemode="normal"] #titlebar-content:-moz-lwtheme { michael@0: /* Render a window top border: */ michael@0: background-image: linear-gradient(to bottom, michael@0: ThreeDLightShadow 0, ThreeDLightShadow 1px, michael@0: ThreeDHighlight 1px, ThreeDHighlight 2px, michael@0: ActiveBorder 2px, ActiveBorder 4px, transparent 4px); michael@0: } michael@0: michael@0: /* End classic titlebar gradient */ michael@0: michael@0: #main-window[tabsintitlebar]:not([inFullscreen]) :-moz-any(#TabsToolbar, #toolbar-menubar) toolbarbutton:not(:-moz-lwtheme) { michael@0: color: inherit; michael@0: } michael@0: } michael@0: michael@0: /* Render a window top border for lwthemes on WinXP modern themes: */ michael@0: @media (-moz-windows-theme: luna-blue) { michael@0: #main-window[tabsintitlebar][sizemode="normal"] #titlebar-content:-moz-lwtheme { michael@0: background-image: linear-gradient(to bottom, michael@0: rgb(8, 49, 216) 0, rgb(8, 49, 216) 1px, michael@0: rgb(15, 77, 227) 1px, rgb(15, 77, 227) 2px, michael@0: rgb(22, 106, 238) 2px, rgb(22, 106, 238) 3px, michael@0: rgb(8, 85, 221) 3px, rgb(8, 85, 221) 4px, michael@0: transparent 4px); michael@0: } michael@0: michael@0: #main-window[tabsintitlebar][sizemode="normal"] #titlebar-content:-moz-lwtheme:-moz-window-inactive { michael@0: background-image: linear-gradient(to bottom, michael@0: rgb(91, 104, 205) 0, rgb(91, 104, 205) 1px, michael@0: rgb(116, 128, 220) 1px, rgb(116, 128, 220) 2px, michael@0: rgb(117, 140, 221) 2px, rgb(117, 140, 221) 4px, michael@0: transparent 4px); michael@0: } michael@0: } michael@0: michael@0: @media (-moz-windows-theme: luna-silver) { michael@0: #main-window[tabsintitlebar][sizemode="normal"] #titlebar-content:-moz-lwtheme { michael@0: background-image: linear-gradient(to bottom, michael@0: rgb(102,102,126) 0, rgb(102,102,126) 1px, michael@0: rgb(168,167,191) 1px, rgb(168,167,191) 2px, michael@0: white 2px, white 3px, michael@0: rgb(188,188,207) 3px, rgb(188,188,207) 4px, michael@0: transparent 4px); michael@0: } michael@0: michael@0: #main-window[tabsintitlebar][sizemode="normal"] #titlebar-content:-moz-lwtheme:-moz-window-inactive { michael@0: background-image: linear-gradient(to bottom, michael@0: rgb(186,186,197) 0, rgb(186,186,197) 1px, michael@0: rgb(236,238,245) 1px, rgb(236,238,245) 2px, michael@0: white 2px, white 3px, michael@0: rgb(215,215,227) 3px, rgb(215,215,227) 4px, michael@0: transparent 4px); michael@0: } michael@0: } michael@0: michael@0: @media (-moz-windows-theme: luna-olive) { michael@0: #main-window[tabsintitlebar][sizemode="normal"] #titlebar-content:-moz-lwtheme { michael@0: background-image: linear-gradient(to bottom, michael@0: rgb(139,161,105) 0, rgb(139,161,105) 1px, michael@0: rgb(171, 189, 133) 1px, rgb(171, 189, 133) 2px, michael@0: rgb(164,178,127) 2px, rgb(164,178,127) 3px, michael@0: transparent 3px); michael@0: } michael@0: michael@0: #main-window[tabsintitlebar][sizemode="normal"] #titlebar-content:-moz-lwtheme:-moz-window-inactive { michael@0: background-image: linear-gradient(to bottom, michael@0: rgb(207, 214, 188) 0, rgb(207, 214, 188) 1px, michael@0: rgb(224, 226, 200) 1px, rgb(224, 226, 200) 2px, michael@0: rgb(214, 216, 190) 2px, rgb(214, 216, 190) 3px, michael@0: transparent 3px); michael@0: } michael@0: } michael@0: michael@0: #TabsToolbar:not([collapsed="true"]) + #nav-bar { michael@0: margin-top: -@tabToolbarNavbarOverlap@; /* Move up into the TabsToolbar */ michael@0: /* Position the toolbar above the bottom of background tabs */ michael@0: position: relative; michael@0: z-index: 1; michael@0: } michael@0: michael@0: #nav-bar { michael@0: background-image: linear-gradient(@toolbarHighlight@, rgba(255,255,255,0)); michael@0: box-shadow: 0 1px 0 @toolbarHighlight@ inset; michael@0: } michael@0: michael@0: #personal-bookmarks { michael@0: min-height: 24px; michael@0: } michael@0: michael@0: #print-preview-toolbar:not(:-moz-lwtheme) { michael@0: -moz-appearance: toolbox; michael@0: } michael@0: michael@0: #browser-bottombox:not(:-moz-lwtheme) { michael@0: background-color: -moz-dialog; michael@0: } michael@0: michael@0: %ifndef WINDOWS_AERO michael@0: @media (-moz-windows-default-theme) { michael@0: #main-window[tabsintitlebar][sizemode="normal"] #toolbar-menubar { michael@0: margin-top: 4px; michael@0: } michael@0: } michael@0: %endif michael@0: michael@0: /* ::::: titlebar ::::: */ michael@0: michael@0: #main-window[sizemode="normal"] > #titlebar { michael@0: -moz-appearance: -moz-window-titlebar; michael@0: } michael@0: michael@0: #main-window[sizemode="maximized"] > #titlebar { michael@0: -moz-appearance: -moz-window-titlebar-maximized; michael@0: } michael@0: michael@0: @media (-moz-windows-classic) { michael@0: #main-window[tabsintitlebar][sizemode="normal"] > #tab-view-deck > #browser-panel > #navigator-toolbox > #toolbar-menubar { michael@0: margin-top: 4px; michael@0: } michael@0: } michael@0: michael@0: /* The button box must appear on top of the navigator-toolbox in order for michael@0: * click and hover mouse events to work properly for the button in the restored michael@0: * window state. Otherwise, elements in the navigator-toolbox, like the menubar, michael@0: * can swallow those events. It will also place the buttons above the fog on michael@0: * themes with Aero Glass. michael@0: */ michael@0: #titlebar-buttonbox { michael@0: z-index: 1; michael@0: } michael@0: michael@0: .titlebar-placeholder[type="caption-buttons"] { michael@0: %ifdef WINDOWS_AERO michael@0: margin-left: 22px; /* additional space for Aero Snap */ michael@0: %else michael@0: margin-left: 10px; michael@0: %endif michael@0: } michael@0: michael@0: /* titlebar command buttons */ michael@0: michael@0: #titlebar-min { michael@0: -moz-appearance: -moz-window-button-minimize; michael@0: } michael@0: michael@0: #titlebar-max { michael@0: -moz-appearance: -moz-window-button-maximize; michael@0: } michael@0: michael@0: #main-window[sizemode="maximized"] #titlebar-max { michael@0: -moz-appearance: -moz-window-button-restore; michael@0: } michael@0: michael@0: #titlebar-close { michael@0: -moz-appearance: -moz-window-button-close; michael@0: } michael@0: michael@0: @media not all and (-moz-windows-classic) { michael@0: #titlebar-min { michael@0: -moz-margin-end: 2px; michael@0: } michael@0: } michael@0: michael@0: /* ::::: bookmark buttons ::::: */ michael@0: michael@0: toolbarbutton.bookmark-item:not(.subviewbutton), michael@0: #personal-bookmarks[cui-areatype="toolbar"]:not([overflowedItem=true]) > #bookmarks-toolbar-placeholder { michael@0: margin: 0; michael@0: padding: 2px 3px; michael@0: } michael@0: michael@0: toolbarbutton.bookmark-item:not([disabled="true"]):not(.subviewbutton):hover:active, michael@0: toolbarbutton.bookmark-item[open="true"] { michael@0: padding-top: 3px; michael@0: padding-bottom: 1px; michael@0: -moz-padding-start: 4px; michael@0: -moz-padding-end: 2px; michael@0: } michael@0: michael@0: .bookmark-item > .toolbarbutton-icon, michael@0: #personal-bookmarks[cui-areatype="toolbar"] > #bookmarks-toolbar-placeholder > .toolbarbutton-icon { michael@0: width: 16px; michael@0: height: 16px; michael@0: } michael@0: michael@0: /* Force the display of the label for bookmarks */ michael@0: .bookmark-item > .toolbarbutton-text, michael@0: #personal-bookmarks[cui-areatype="toolbar"] > #bookmarks-toolbar-placeholder > .toolbarbutton-text { michael@0: display: -moz-box !important; michael@0: } michael@0: michael@0: .bookmark-item > .toolbarbutton-menu-dropmarker { michael@0: display: none; michael@0: } michael@0: michael@0: #bookmarks-toolbar-placeholder { michael@0: list-style-image: url("chrome://browser/skin/places/bookmarksToolbar.png") !important; michael@0: } michael@0: michael@0: toolbarpaletteitem[place="palette"] > #personal-bookmarks > #bookmarks-toolbar-placeholder, michael@0: #personal-bookmarks[cui-areatype="menu-panel"] > #bookmarks-toolbar-placeholder { michael@0: list-style-image: url("chrome://browser/skin/places/bookmarksToolbar-menuPanel.png") !important; michael@0: } michael@0: michael@0: /* ----- BOOKMARK STAR ANIMATION ----- */ michael@0: michael@0: @keyframes animation-bookmarkAdded { michael@0: from { transform: rotate(0deg) translateX(-16px) rotate(0deg) scale(1); opacity: 0; } michael@0: 60% { transform: rotate(180deg) translateX(-16px) rotate(-180deg) scale(2.2); opacity: 1; } michael@0: 80% { opacity: 1; } michael@0: to { transform: rotate(180deg) translateX(-16px) rotate(-180deg) scale(1); opacity: 0; } michael@0: } michael@0: michael@0: @keyframes animation-bookmarkPulse { michael@0: from { transform: scale(1); } michael@0: 50% { transform: scale(1.3); } michael@0: to { transform: scale(1); } michael@0: } michael@0: michael@0: #bookmarked-notification-container { michael@0: min-height: 1px; michael@0: min-width: 1px; michael@0: height: 1px; michael@0: margin-bottom: -1px; michael@0: z-index: 5; michael@0: position: relative; michael@0: } michael@0: michael@0: #bookmarked-notification { michael@0: background-size: 16px; michael@0: background-position: center; michael@0: background-repeat: no-repeat; michael@0: width: 16px; michael@0: height: 16px; michael@0: opacity: 0; michael@0: } michael@0: michael@0: #bookmarked-notification-dropmarker-anchor { michael@0: z-index: -1; michael@0: position: relative; michael@0: } michael@0: michael@0: #bookmarked-notification-dropmarker-icon { michael@0: width: 18px; michael@0: height: 18px; michael@0: visibility: hidden; michael@0: } michael@0: michael@0: #bookmarked-notification-anchor[notification="finish"] > #bookmarked-notification { michael@0: background-image: url("chrome://browser/skin/places/bookmarks-notification-finish.png"); michael@0: animation: animation-bookmarkAdded 800ms; michael@0: animation-timing-function: ease, ease, ease; michael@0: } michael@0: michael@0: #bookmarks-menu-button[notification="finish"] > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon { michael@0: list-style-image: none !important; michael@0: } michael@0: michael@0: #bookmarked-notification-dropmarker-anchor[notification="finish"] > #bookmarked-notification-dropmarker-icon { michael@0: visibility: visible; michael@0: animation: animation-bookmarkPulse 300ms; michael@0: animation-delay: 600ms; michael@0: animation-timing-function: ease-out; michael@0: } michael@0: michael@0: /* ::::: bookmark menus ::::: */ michael@0: michael@0: menu.bookmark-item, michael@0: menuitem.bookmark-item { michael@0: min-width: 0; michael@0: max-width: 32em; michael@0: } michael@0: michael@0: .bookmark-item:not(.subviewbutton) > .menu-iconic-left { michael@0: margin-top: 0; michael@0: margin-bottom: 0; michael@0: } michael@0: michael@0: .bookmark-item > .menu-iconic-left > .menu-iconic-icon { michael@0: -moz-padding-start: 0px; michael@0: } michael@0: michael@0: /* ::::: bookmark items ::::: */ michael@0: michael@0: .bookmark-item { michael@0: list-style-image: url("chrome://mozapps/skin/places/defaultFavicon.png"); michael@0: } michael@0: michael@0: .bookmark-item[container] { michael@0: list-style-image: url("chrome://global/skin/icons/folder-item.png"); michael@0: -moz-image-region: rect(0px, 32px, 16px, 16px); michael@0: } michael@0: michael@0: .bookmark-item[container][open] { michael@0: -moz-image-region: rect(16px, 32px, 32px, 16px); michael@0: } michael@0: michael@0: .bookmark-item[container][livemark] { michael@0: list-style-image: url("chrome://browser/skin/livemark-folder.png"); michael@0: -moz-image-region: auto; michael@0: } michael@0: michael@0: .bookmark-item[container][livemark] .bookmark-item { michael@0: list-style-image: url("chrome://browser/skin/places/livemark-item.png"); michael@0: -moz-image-region: rect(0px, 16px, 16px, 0px); michael@0: } michael@0: michael@0: .bookmark-item[container][livemark] .bookmark-item[visited] { michael@0: -moz-image-region: rect(0px, 32px, 16px, 16px); michael@0: } michael@0: michael@0: .bookmark-item[container][query] { michael@0: list-style-image: url("chrome://browser/skin/places/query.png"); michael@0: -moz-image-region: auto; michael@0: } michael@0: michael@0: .bookmark-item[query][tagContainer] { michael@0: list-style-image: url("chrome://browser/skin/places/tag.png"); michael@0: -moz-image-region: auto; michael@0: } michael@0: michael@0: .bookmark-item[query][dayContainer] { michael@0: list-style-image: url("chrome://browser/skin/places/calendar.png"); michael@0: -moz-image-region: auto; michael@0: } michael@0: michael@0: .bookmark-item[query][hostContainer] { michael@0: list-style-image: url("chrome://global/skin/icons/folder-item.png"); michael@0: -moz-image-region: rect(0px, 32px, 16px, 16px); michael@0: } michael@0: michael@0: .bookmark-item[query][hostContainer][open] { michael@0: list-style-image: url("chrome://global/skin/icons/folder-item.png"); michael@0: -moz-image-region: rect(16px, 32px, 32px, 16px); michael@0: } michael@0: michael@0: .bookmark-item[cutting] > .toolbarbutton-icon, michael@0: .bookmark-item[cutting] > .menu-iconic-left > .menu-iconic-icon { michael@0: opacity: 0.5; michael@0: } michael@0: michael@0: .bookmark-item[cutting] > .toolbarbutton-text, michael@0: .bookmark-item[cutting] > .menu-iconic-left > .menu-iconic-text { michael@0: opacity: 0.7; michael@0: } michael@0: michael@0: /* ::::: primary toolbar buttons ::::: */ michael@0: michael@0: %include ../shared/toolbarbuttons.inc.css michael@0: %include ../shared/menupanel.inc.css michael@0: michael@0: %ifndef WINDOWS_AERO michael@0: @media (-moz-windows-theme: luna-silver) { michael@0: :-moz-any(@primaryToolbarButtons@), michael@0: #bookmarks-menu-button.toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon { michael@0: list-style-image: url("chrome://browser/skin/Toolbar-lunaSilver.png"); michael@0: } michael@0: } michael@0: %endif michael@0: michael@0: #main-window:not([customizing]) .toolbarbutton-1[disabled=true] > .toolbarbutton-icon, michael@0: #main-window:not([customizing]) .toolbarbutton-1[disabled=true] > .toolbarbutton-menu-dropmarker, michael@0: #main-window:not([customizing]) .toolbarbutton-1[disabled=true] > .toolbarbutton-menubutton-dropmarker, michael@0: #main-window:not([customizing]) .toolbarbutton-1[disabled=true] > .toolbarbutton-menubutton-button > .toolbarbutton-icon, michael@0: #main-window:not([customizing]) .toolbarbutton-1 > .toolbarbutton-menubutton-button[disabled=true] > .toolbarbutton-icon { michael@0: opacity: .4; michael@0: } michael@0: michael@0: .toolbarbutton-1 > .toolbarbutton-menu-dropmarker, michael@0: .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker { michael@0: list-style-image: url("chrome://browser/skin/toolbarbutton-dropdown-arrow.png"); michael@0: } michael@0: michael@0: toolbar[brighttext] .toolbarbutton-1 > .toolbarbutton-menu-dropmarker, michael@0: toolbar[brighttext] .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker { michael@0: list-style-image: url("chrome://browser/skin/toolbarbutton-dropdown-arrow-inverted.png"); michael@0: } michael@0: michael@0: .toolbarbutton-1 > .toolbarbutton-icon, michael@0: .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-icon { michael@0: -moz-margin-end: 0; michael@0: } michael@0: michael@0: #nav-bar .toolbarbutton-1, michael@0: #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button { michael@0: -moz-appearance: none; michael@0: border: none; michael@0: padding: 0; michael@0: background: none; michael@0: } michael@0: michael@0: #nav-bar .toolbarbutton-1:not([type=menu-button]), michael@0: #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button, michael@0: #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker { michael@0: padding: 8px 2px; michael@0: -moz-box-pack: center; michael@0: } michael@0: michael@0: #nav-bar #PanelUI-menu-button { michael@0: -moz-padding-start: 7px; michael@0: -moz-padding-end: 5px; michael@0: } michael@0: michael@0: #nav-bar .toolbarbutton-1[type=menu]:not(#back-button):not(#forward-button):not(#feed-button):not(#social-provider-button):not(#PanelUI-menu-button) { michael@0: padding-left: 5px; michael@0: padding-right: 5px; michael@0: } michael@0: michael@0: #nav-bar .toolbarbutton-1 > menupopup { michael@0: margin-top: -3px; michael@0: } michael@0: michael@0: #nav-bar .toolbarbutton-1 > menupopup.cui-widget-panel { michael@0: margin-top: -8px; michael@0: } michael@0: michael@0: #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button { michael@0: -moz-padding-end: 0; michael@0: } michael@0: michael@0: #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker { michael@0: -moz-padding-start: 0; michael@0: -moz-box-align: center; michael@0: } michael@0: michael@0: #nav-bar .toolbarbutton-1 > .toolbarbutton-icon, michael@0: #nav-bar .toolbarbutton-1 > .toolbarbutton-text, michael@0: #nav-bar .toolbarbutton-1 > .toolbarbutton-badge-container, michael@0: #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-icon, michael@0: #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon, michael@0: @conditionalForwardWithUrlbar@ > .toolbarbutton-1:-moz-any([disabled],:not([open]):not([disabled]):not(:active)) > .toolbarbutton-icon { michael@0: padding: 2px 6px; michael@0: border: 1px solid; michael@0: border-color: transparent; michael@0: transition-property: background-color, border-color; michael@0: transition-duration: 150ms; michael@0: } michael@0: michael@0: %ifdef WINDOWS_AERO michael@0: @media (-moz-os-version: windows-vista), michael@0: (-moz-os-version: windows-win7) { michael@0: %endif michael@0: /* < Win8 */ michael@0: #nav-bar .toolbarbutton-1 > .toolbarbutton-icon, michael@0: #nav-bar .toolbarbutton-1 > .toolbarbutton-text, michael@0: #nav-bar .toolbarbutton-1 > .toolbarbutton-badge-container, michael@0: #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-icon, michael@0: #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon { michael@0: background-color: hsla(210,32%,93%,0); michael@0: background-origin: padding-box; michael@0: border-radius: 2px; michael@0: border-color: hsla(210,54%,20%,0) hsla(210,54%,20%,0) hsla(210,54%,20%,0); michael@0: box-shadow: 0 1px hsla(0,0%,100%,0) inset, michael@0: 0 1px hsla(210,54%,20%,0), michael@0: 0 0 2px hsla(210,54%,20%,0); michael@0: transition-property: background-color, border-color, box-shadow; michael@0: transition-duration: 150ms; michael@0: } michael@0: %ifdef WINDOWS_AERO michael@0: } michael@0: %endif michael@0: michael@0: #nav-bar .toolbarbutton-1:not(:-moz-any(@primaryToolbarButtons@)) > .toolbarbutton-icon, michael@0: #nav-bar .toolbarbutton-1:not(:-moz-any(@primaryToolbarButtons@)) > .toolbarbutton-badge-container, michael@0: #nav-bar .toolbarbutton-1:not(:-moz-any(@primaryToolbarButtons@)) > .toolbarbutton-menubutton-button > .toolbarbutton-icon { michael@0: padding: 3px 7px; michael@0: } michael@0: michael@0: /* Help SDK icons fit: */ michael@0: toolbarbutton[sdk-button="true"][cui-areatype="toolbar"] > .toolbarbutton-icon { michael@0: width: 16px; michael@0: } michael@0: michael@0: #nav-bar toolbarbutton[sdk-button="true"][cui-areatype="toolbar"] > .toolbarbutton-icon { michael@0: /* XXXgijs box models strike again: this is 16px + 2 * 7px padding + 2 * 1px border (from the rules above) */ michael@0: width: 32px; michael@0: } michael@0: michael@0: #nav-bar .toolbarbutton-1[type=menu]:not(#back-button):not(#forward-button):not(#feed-button):not(#social-provider-button):not(#PanelUI-menu-button) > .toolbarbutton-icon, michael@0: #nav-bar .toolbarbutton-1[type=menu] > .toolbarbutton-text /* hack for add-ons that forcefully display the label */ { michael@0: -moz-padding-end: 17px; michael@0: } michael@0: michael@0: #nav-bar .toolbarbutton-1 > .toolbarbutton-menu-dropmarker { michael@0: -moz-margin-start: -15px; michael@0: } michael@0: michael@0: #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-icon { michael@0: -moz-border-end: none; michael@0: } michael@0: michael@0: #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon { michael@0: padding: 8px 5px 7px; michael@0: } michael@0: michael@0: #nav-bar .toolbaritem-combined-buttons { michael@0: margin-left: 2px; michael@0: margin-right: 2px; michael@0: } michael@0: michael@0: #nav-bar .toolbaritem-combined-buttons > .toolbarbutton-1 { michael@0: padding-left: 0; michael@0: padding-right: 0; michael@0: } michael@0: michael@0: #nav-bar .toolbarbutton-1:not(:hover):not(:active):not([open]) > .toolbarbutton-menubutton-dropmarker::before, michael@0: #nav-bar .toolbaritem-combined-buttons > .toolbarbutton-1:-moz-any(:not(:hover):not([open]),[disabled=true]) + .toolbarbutton-1:-moz-any(:not(:hover):not([open]),[disabled=true])::before { michael@0: content: ""; michael@0: display: -moz-box; michael@0: width: 1px; michael@0: height: 16px; michael@0: -moz-margin-end: -1px; michael@0: background-image: linear-gradient(hsla(210,54%,20%,.2) 0, hsla(210,54%,20%,.2) 16px); michael@0: background-clip: padding-box; michael@0: background-position: center; michael@0: background-repeat: no-repeat; michael@0: background-size: 1px 16px; michael@0: } michael@0: michael@0: @conditionalForwardWithUrlbar@ > .toolbarbutton-1:-moz-any([disabled],:not([open]):not([disabled]):not(:active)) > .toolbarbutton-icon { michael@0: border-color: hsla(210,4%,10%,.1); michael@0: } michael@0: michael@0: #nav-bar .toolbarbutton-1:not([disabled=true]) > .toolbarbutton-menubutton-button[open] + .toolbarbutton-menubutton-dropmarker > .dropmarker-icon, michael@0: #nav-bar .toolbarbutton-1:not([disabled=true]):-moz-any(:hover,[open]) > .toolbarbutton-menubutton-button > .toolbarbutton-icon, michael@0: #nav-bar .toolbarbutton-1:not([disabled=true]):-moz-any(:hover,[open]) > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon, michael@0: #nav-bar .toolbarbutton-1:not([disabled=true]):not([checked]):not([open]):not(:active):hover > .toolbarbutton-icon, michael@0: #nav-bar .toolbarbutton-1:not([disabled=true]):not([checked]):not([open]):not(:active):hover > .toolbarbutton-text, michael@0: #nav-bar .toolbarbutton-1:not([disabled=true]):not([checked]):not([open]):not(:active):hover > .toolbarbutton-badge-container, michael@0: @conditionalForwardWithUrlbar@ > #forward-button:not([open]):not(:active):not([disabled]):hover > .toolbarbutton-icon, michael@0: #nav-bar .toolbarbutton-1:not([buttonover]):not([open]):not(:active):hover > .toolbarbutton-menubutton-dropmarker:not([disabled]) > .dropmarker-icon { michael@0: background-color: hsla(210,4%,10%,.08); michael@0: border-color: hsla(210,4%,10%,.1); michael@0: } michael@0: michael@0: %ifdef WINDOWS_AERO michael@0: @media (-moz-os-version: windows-vista), michael@0: (-moz-os-version: windows-win7) { michael@0: %endif michael@0: /* < Win8 */ michael@0: #nav-bar .toolbarbutton-1:not(:hover):not(:active):not([open]) > .toolbarbutton-menubutton-dropmarker::before, michael@0: #nav-bar .toolbaritem-combined-buttons > .toolbarbutton-1:-moz-any(:not(:hover):not([open]),[disabled]) + .toolbarbutton-1:-moz-any(:not(:hover):not([open]),[disabled])::before { michael@0: content: ""; michael@0: display: -moz-box; michael@0: width: 1px; michael@0: height: 18px; michael@0: -moz-margin-end: -1px; michael@0: background-image: linear-gradient(hsla(210,54%,20%,.2) 0, hsla(210,54%,20%,.2) 18px); michael@0: background-clip: padding-box; michael@0: background-position: center; michael@0: background-repeat: no-repeat; michael@0: background-size: 1px 18px; michael@0: box-shadow: 0 0 0 1px hsla(0,0%,100%,.2); michael@0: } michael@0: michael@0: #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-icon:-moz-locale-dir(ltr), michael@0: #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon:-moz-locale-dir(rtl) { michael@0: border-top-right-radius: 0; michael@0: border-bottom-right-radius: 0; michael@0: } michael@0: michael@0: #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button > .toolbarbutton-icon:-moz-locale-dir(rtl), michael@0: #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon:-moz-locale-dir(ltr) { michael@0: border-top-left-radius: 0; michael@0: border-bottom-left-radius: 0; michael@0: } michael@0: michael@0: #nav-bar .toolbarbutton-1:not([disabled=true]) > .toolbarbutton-menubutton-button[open] + .toolbarbutton-menubutton-dropmarker > .dropmarker-icon, michael@0: #nav-bar .toolbarbutton-1:not([disabled]):-moz-any(:hover,[open]) > .toolbarbutton-menubutton-button > .toolbarbutton-icon, michael@0: #nav-bar .toolbarbutton-1:not([disabled]):hover > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon, michael@0: #nav-bar .toolbarbutton-1:not([disabled]):not([checked]):not([open]):not(:active):hover > .toolbarbutton-icon, michael@0: #nav-bar .toolbarbutton-1:not([disabled]):not([checked]):not([open]):not(:active):hover > .toolbarbutton-text, michael@0: #nav-bar .toolbarbutton-1:not([disabled]):not([checked]):not([open]):not(:active):hover > .toolbarbutton-badge-container, michael@0: @conditionalForwardWithUrlbar@ > .toolbarbutton-1:-moz-any([disabled],:not([open]):not([disabled]):not(:active)) > .toolbarbutton-icon { michael@0: background-image: linear-gradient(hsla(0,0%,100%,.6), hsla(0,0%,100%,.1)); michael@0: background-color: transparent; michael@0: border-color: hsla(210,54%,20%,.15) hsla(210,54%,20%,.2) hsla(210,54%,20%,.25); michael@0: box-shadow: 0 1px hsla(0,0%,100%,.3) inset, michael@0: 0 1px hsla(210,54%,20%,.03), michael@0: 0 0 2px hsla(210,54%,20%,.1); michael@0: } michael@0: michael@0: #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button:not([disabled]):not([open]):not(:active):hover > .toolbarbutton-icon, michael@0: #nav-bar .toolbarbutton-1:not([buttonover]):not([open]):not(:active):hover > .toolbarbutton-menubutton-dropmarker:not([disabled]) > .dropmarker-icon, michael@0: @conditionalForwardWithUrlbar@ > #forward-button:not([open]):not(:active):not([disabled]):hover > .toolbarbutton-icon { michael@0: border-color: hsla(210,54%,20%,.3) hsla(210,54%,20%,.35) hsla(210,54%,20%,.4); michael@0: background-color: hsla(210,48%,96%,.75); michael@0: box-shadow: 0 0 1px hsla(210,54%,20%,.03), michael@0: 0 0 2px hsla(210,54%,20%,.1); michael@0: } michael@0: %ifdef WINDOWS_AERO michael@0: } michael@0: %endif michael@0: michael@0: #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button:not([disabled=true]):-moz-any(:hover:active, [open]) > .toolbarbutton-icon, michael@0: #nav-bar .toolbarbutton-1[open] > .toolbarbutton-menubutton-dropmarker:not([disabled=true]) > .dropmarker-icon, michael@0: #nav-bar .toolbarbutton-1:not([disabled=true]):-moz-any([open],[checked],:hover:active) > .toolbarbutton-icon, michael@0: #nav-bar .toolbarbutton-1:not([disabled=true]):-moz-any([open],[checked],:hover:active) > .toolbarbutton-text, michael@0: #nav-bar .toolbarbutton-1:not([disabled=true]):-moz-any([open],[checked],:hover:active) > .toolbarbutton-badge-container { michael@0: background-color: hsla(210,4%,10%,.12); michael@0: border-top-color: hsla(210,4%,10%,.2); michael@0: box-shadow: 0 1px 0 0 hsla(210,4%,10%,.1) inset; michael@0: transition-duration: 10ms; michael@0: } michael@0: michael@0: %ifdef WINDOWS_AERO michael@0: @media (-moz-os-version: windows-vista), michael@0: (-moz-os-version: windows-win7) { michael@0: %endif michael@0: /* < Win8 */ michael@0: #nav-bar .toolbarbutton-1 > .toolbarbutton-menubutton-button:not([disabled=true]):-moz-any(:hover:active, [open]) > .toolbarbutton-icon, michael@0: #nav-bar .toolbarbutton-1[open] > .toolbarbutton-menubutton-dropmarker:not([disabled]) > .dropmarker-icon, michael@0: #nav-bar .toolbarbutton-1:not([disabled]):-moz-any([open],[checked],:hover:active) > .toolbarbutton-icon, michael@0: #nav-bar .toolbarbutton-1:not([disabled]):-moz-any([open],[checked],:hover:active) > .toolbarbutton-text, michael@0: #nav-bar .toolbarbutton-1:not([disabled]):-moz-any([open],[checked],:hover:active) > .toolbarbutton-badge-container { michael@0: background-image: linear-gradient(hsla(0,0%,100%,.6), hsla(0,0%,100%,.1)); michael@0: background-color: hsla(210,54%,20%,.15); michael@0: border-color: hsla(210,54%,20%,.3) hsla(210,54%,20%,.35) hsla(210,54%,20%,.4); michael@0: box-shadow: 0 1px 1px hsla(210,54%,20%,.1) inset, michael@0: 0 0 1px hsla(210,54%,20%,.2) inset, michael@0: /* allows keyhole-forward-clip-path to be used for non-hover as well as hover: */ michael@0: 0 1px 0 hsla(210,54%,20%,0), michael@0: 0 0 2px hsla(210,54%,20%,0); michael@0: text-shadow: none; michael@0: transition: none; michael@0: } michael@0: michael@0: #nav-bar .toolbarbutton-1:-moz-any(:hover,[open]) > .toolbarbutton-menubutton-dropmarker:not([disabled]) > .dropmarker-icon { michael@0: -moz-border-start-color: hsla(210,54%,20%,.35); michael@0: } michael@0: michael@0: #nav-bar .toolbarbutton-1[checked]:not(:active):hover > .toolbarbutton-icon { michael@0: background-color: rgba(90%,90%,90%,.4); michael@0: transition: background-color .4s; michael@0: } michael@0: %ifdef WINDOWS_AERO michael@0: } michael@0: %endif michael@0: michael@0: #TabsToolbar .toolbarbutton-1, michael@0: #TabsToolbar .toolbarbutton-1 > .toolbarbutton-menubutton-button, michael@0: .tabbrowser-arrowscrollbox > .scrollbutton-up, michael@0: .tabbrowser-arrowscrollbox > .scrollbutton-down { michael@0: -moz-appearance: none; michael@0: border-style: none; michael@0: padding: 0 3px; michael@0: } michael@0: michael@0: #TabsToolbar .toolbarbutton-1 { michael@0: margin-bottom: @tabToolbarNavbarOverlap@; michael@0: } michael@0: michael@0: #TabsToolbar .toolbarbutton-1:not([disabled=true]):hover, michael@0: #TabsToolbar .toolbarbutton-1[open], michael@0: #TabsToolbar .toolbarbutton-1 > .toolbarbutton-menubutton-button:not([disabled=true]):hover, michael@0: .tabbrowser-arrowscrollbox > .scrollbutton-up:not([disabled=true]):hover, michael@0: .tabbrowser-arrowscrollbox > .scrollbutton-down:not([disabled=true]):hover { michael@0: background-image: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.5)), michael@0: linear-gradient(transparent, rgba(0,0,0,.25) 30%), michael@0: linear-gradient(transparent, rgba(0,0,0,.25) 30%); michael@0: background-position: 1px -1px, 0 -1px, 100% -1px; michael@0: background-size: calc(100% - 2px) 100%, 1px 100%, 1px 100%; michael@0: background-repeat: no-repeat; michael@0: } michael@0: michael@0: /* unified back/forward button */ michael@0: michael@0: #forward-button { michael@0: -moz-box-align: stretch; /* let the button shape grow vertically with the location bar */ michael@0: padding: 0 !important; michael@0: } michael@0: michael@0: #forward-button > menupopup { michael@0: margin-top: 1px !important; michael@0: } michael@0: michael@0: #forward-button > .toolbarbutton-icon { michael@0: background-clip: padding-box !important; michael@0: border-left-style: none !important; michael@0: border-radius: 0 !important; michael@0: padding-left: 9px !important; michael@0: padding-right: 3px !important; michael@0: } michael@0: michael@0: @conditionalForwardWithUrlbar@:not([switchingtabs]) > #forward-button { michael@0: transition: margin-left @forwardTransitionLength@ ease-out; michael@0: } michael@0: michael@0: @conditionalForwardWithUrlbar@ > #forward-button[disabled] { michael@0: margin-left: -@conditionalForwardWithUrlbarWidth@px; michael@0: } michael@0: michael@0: @conditionalForwardWithUrlbar@:hover:not([switchingtabs]) > #forward-button[disabled] { michael@0: /* delay the hiding of the forward button when hovered to avoid accidental clicks on the url bar */ michael@0: transition-delay: 100s; michael@0: } michael@0: michael@0: @conditionalForwardWithUrlbar@:not(:hover) > #forward-button[disabled] { michael@0: /* when not hovered anymore, trigger a new transition to hide the forward button immediately */ michael@0: margin-left: -@conditionalForwardWithUrlbarWidth@.01px; michael@0: } michael@0: michael@0: #back-button { michael@0: padding-top: 3px !important; michael@0: padding-bottom: 3px !important; michael@0: -moz-padding-start: 5px !important; michael@0: -moz-padding-end: 0 !important; michael@0: position: relative !important; michael@0: z-index: 1 !important; michael@0: border-radius: 0 10000px 10000px 0 !important; michael@0: } michael@0: michael@0: #back-button:-moz-locale-dir(rtl) { michael@0: border-radius: 10000px 0 0 10000px !important; michael@0: } michael@0: michael@0: #back-button > menupopup { michael@0: margin-top: -1px !important; michael@0: } michael@0: michael@0: #back-button > .toolbarbutton-icon { michael@0: border-radius: 10000px !important; michael@0: background-clip: padding-box !important; michael@0: background-color: hsla(210,25%,98%,.08) !important; michael@0: padding: 6px !important; michael@0: border-style: none !important; michael@0: box-shadow: 0 1px 0 0 hsla(210,4%,10%,.25), michael@0: 0 0 0 1px hsla(210,4%,10%,.25); michael@0: transition-property: background-color, box-shadow !important; michael@0: transition-duration: 250ms !important; michael@0: } michael@0: michael@0: #back-button:not([disabled="true"]):not([open="true"]):not(:active):hover > .toolbarbutton-icon { michael@0: background-color: hsla(210,4%,10%,.08) !important; michael@0: } michael@0: michael@0: #back-button:not([disabled="true"]):hover:active > .toolbarbutton-icon, michael@0: #back-button[open="true"] > .toolbarbutton-icon { michael@0: background-color: hsla(210,4%,10%,.12) !important; michael@0: box-shadow: 0 1px 0 0 hsla(210,4%,10%,.25), michael@0: 0 0 0 1px hsla(210,4%,10%,.25), michael@0: 0 1px 0 0 hsla(210,80%,20%,.1) inset !important; michael@0: } michael@0: michael@0: %ifdef WINDOWS_AERO michael@0: @media (-moz-os-version: windows-vista), michael@0: (-moz-os-version: windows-win7) { michael@0: %endif michael@0: #back-button > .toolbarbutton-icon { michael@0: background-image: linear-gradient(hsla(0,0%,100%,.6), hsla(0,0%,100%,.1)) !important; michael@0: box-shadow: 0 1px 0 hsla(0,0%,100%,.3) inset, michael@0: 0 0 0 1px hsla(0,0%,100%,.3) inset, michael@0: 0 0 0 1px hsla(210,54%,20%,.25), michael@0: 0 1px 0 hsla(210,54%,20%,.35) !important; michael@0: } michael@0: michael@0: #back-button:not([disabled="true"]):not([open="true"]):not(:active):hover > .toolbarbutton-icon { michael@0: background-color: hsla(210,48%,96%,.75) !important; michael@0: box-shadow: 0 1px 0 hsla(0,0%,100%,.3) inset, michael@0: 0 0 0 1px hsla(0,0%,100%,.3) inset, michael@0: 0 0 0 1px hsla(210,54%,20%,.3), michael@0: 0 1px 0 hsla(210,54%,20%,.4), michael@0: 0 0 4px hsla(210,54%,20%,.2) !important; michael@0: } michael@0: michael@0: #back-button:not([disabled="true"]):hover:active > .toolbarbutton-icon, michael@0: #back-button[open="true"] > .toolbarbutton-icon { michael@0: background-color: hsla(210,54%,20%,.15) !important; michael@0: box-shadow: 0 1px 1px hsla(210,54%,20%,.1) inset, michael@0: 0 0 1px hsla(210,54%,20%,.2) inset, michael@0: 0 0 0 1px hsla(210,54%,20%,.4), michael@0: 0 1px 0 hsla(210,54%,20%,.2) !important; michael@0: transition: none; michael@0: } michael@0: michael@0: #main-window:not([customizing]) #back-button[disabled] > .toolbarbutton-icon { michael@0: box-shadow: 0 0 0 1px hsla(210,54%,20%,.55), michael@0: 0 1px 0 hsla(210,54%,20%,.65) !important; michael@0: transition: none; michael@0: } michael@0: %ifdef WINDOWS_AERO michael@0: } michael@0: %endif michael@0: michael@0: #back-button:-moz-locale-dir(rtl) > .toolbarbutton-icon { michael@0: transform: scaleX(-1); michael@0: } michael@0: michael@0: .unified-nav-back[_moz-menuactive]:-moz-locale-dir(ltr), michael@0: .unified-nav-forward[_moz-menuactive]:-moz-locale-dir(rtl) { michael@0: list-style-image: url("chrome://browser/skin/menu-back.png") !important; michael@0: } michael@0: michael@0: .unified-nav-forward[_moz-menuactive]:-moz-locale-dir(ltr), michael@0: .unified-nav-back[_moz-menuactive]:-moz-locale-dir(rtl) { michael@0: list-style-image: url("chrome://browser/skin/menu-forward.png") !important; michael@0: } michael@0: michael@0: /* tabview button & menu item */ michael@0: michael@0: #menu_tabview { michael@0: list-style-image: url(chrome://browser/skin/tabview/tabview.png); michael@0: -moz-image-region: rect(1px, 89px, 17px, 73px); michael@0: } michael@0: michael@0: #menu_tabview[groups="0"] { michael@0: -moz-image-region: rect(1px, 17px, 17px, 1px); michael@0: } michael@0: michael@0: #menu_tabview[groups="1"] { michael@0: -moz-image-region: rect(1px, 35px, 17px, 19px); michael@0: } michael@0: michael@0: #menu_tabview[groups="2"] { michael@0: -moz-image-region: rect(1px, 53px, 17px, 37px); michael@0: } michael@0: michael@0: #menu_tabview[groups="3"] { michael@0: -moz-image-region: rect(1px, 71px, 17px, 55px); michael@0: } michael@0: michael@0: /* zoom control text (reset) button special case: */ michael@0: michael@0: #nav-bar #zoom-reset-button > .toolbarbutton-text { michael@0: /* To make this line up with the icons, it needs the same height (18px) + michael@0: * padding (2 * 2px) + border (2 * 1px), but as a minimum because otherwise michael@0: * increase in text sizes would break things... michael@0: */ michael@0: min-height: 24px; michael@0: } michael@0: michael@0: /* ::::: fullscreen window controls ::::: */ michael@0: michael@0: #window-controls { michael@0: -moz-margin-start: 4px; michael@0: } michael@0: michael@0: #minimize-button, michael@0: #restore-button, michael@0: #close-button { michael@0: list-style-image: url("chrome://global/skin/icons/windowControls.png"); michael@0: padding: 0; michael@0: } michael@0: michael@0: #minimize-button { michael@0: -moz-image-region: rect(0, 16px, 16px, 0); michael@0: } michael@0: #minimize-button:hover { michael@0: -moz-image-region: rect(16px, 16px, 32px, 0); michael@0: } michael@0: #minimize-button:hover:active { michael@0: -moz-image-region: rect(32px, 16px, 48px, 0); michael@0: } michael@0: #restore-button { michael@0: -moz-image-region: rect(0, 32px, 16px, 16px); michael@0: } michael@0: #restore-button:hover { michael@0: -moz-image-region: rect(16px, 32px, 32px, 16px); michael@0: } michael@0: #restore-button:hover:active { michael@0: -moz-image-region: rect(32px, 32px, 48px, 16px); michael@0: } michael@0: #close-button { michael@0: -moz-image-region: rect(0, 48px, 16px, 32px); michael@0: -moz-appearance: none; michael@0: border-style: none; michael@0: margin: 2px; michael@0: } michael@0: #close-button:hover { michael@0: -moz-image-region: rect(16px, 48px, 32px, 32px); michael@0: } michael@0: #close-button:hover:active { michael@0: -moz-image-region: rect(32px, 48px, 48px, 32px); michael@0: } michael@0: michael@0: /* ::::: Location Bar ::::: */ michael@0: michael@0: #urlbar, michael@0: .searchbar-textbox { michael@0: -moz-appearance: none; michael@0: margin: 0 3px; michael@0: padding: 0; michael@0: background-clip: padding-box; michael@0: border: 1px solid ThreeDShadow; michael@0: } michael@0: michael@0: %ifdef WINDOWS_AERO michael@0: @media (-moz-os-version: windows-vista), michael@0: (-moz-os-version: windows-win7) { michael@0: %endif michael@0: /* < Win8 */ michael@0: #urlbar, michael@0: .searchbar-textbox { michael@0: border-radius: 2px; michael@0: } michael@0: %ifdef WINDOWS_AERO michael@0: } michael@0: %endif michael@0: michael@0: #urlbar { michael@0: -moz-padding-end: 2px; michael@0: } michael@0: michael@0: @media (-moz-windows-default-theme) { michael@0: #urlbar, michael@0: .searchbar-textbox { michael@0: @navbarTextboxCustomBorder@ michael@0: } michael@0: } michael@0: michael@0: #urlbar:-moz-lwtheme, michael@0: .searchbar-textbox:-moz-lwtheme { michael@0: background-color: rgba(255,255,255,.8); michael@0: @navbarTextboxCustomBorder@ michael@0: color: black; michael@0: } michael@0: michael@0: #urlbar:-moz-lwtheme:hover:not([focused]):not([readonly]), michael@0: .searchbar-textbox:-moz-lwtheme:hover:not([focused]) { michael@0: background-color: rgba(255,255,255,.9); michael@0: } michael@0: michael@0: #urlbar:-moz-lwtheme[focused]:not([readonly]), michael@0: .searchbar-textbox:-moz-lwtheme[focused] { michael@0: background-color: white; michael@0: } michael@0: michael@0: @conditionalForwardWithUrlbar@ > #urlbar { michael@0: -moz-border-start: none; michael@0: margin-left: 0; michael@0: } michael@0: michael@0: @conditionalForwardWithUrlbar@ > #urlbar:-moz-locale-dir(ltr) { michael@0: border-top-left-radius: 0; michael@0: border-bottom-left-radius: 0; michael@0: } michael@0: michael@0: @conditionalForwardWithUrlbar@ > #urlbar:-moz-locale-dir(rtl) { michael@0: border-top-right-radius: 0; michael@0: border-bottom-right-radius: 0; michael@0: } michael@0: michael@0: @conditionalForwardWithUrlbar@ { michael@0: clip-path: url("chrome://browser/content/browser.xul#urlbar-back-button-clip-path"); michael@0: -moz-margin-start: -5px; michael@0: } michael@0: michael@0: @conditionalForwardWithUrlbar@:-moz-locale-dir(rtl), michael@0: @conditionalForwardWithUrlbar@ > #urlbar:-moz-locale-dir(rtl) { michael@0: /* let urlbar-back-button-clip-path clip the urlbar's right side for RTL */ michael@0: transform: scaleX(-1); michael@0: } michael@0: michael@0: @conditionalForwardWithUrlbar@:-moz-locale-dir(rtl) { michael@0: -moz-box-direction: reverse; michael@0: } michael@0: michael@0: html|*.urlbar-input:-moz-lwtheme::-moz-placeholder, michael@0: .searchbar-textbox:-moz-lwtheme > .autocomplete-textbox-container > .textbox-input-box > html|*.textbox-input::-moz-placeholder { michael@0: opacity: 1.0; michael@0: color: #777; michael@0: } michael@0: michael@0: #urlbar-container { michael@0: -moz-box-align: center; michael@0: } michael@0: michael@0: .urlbar-textbox-container { michael@0: -moz-box-align: stretch; michael@0: } michael@0: michael@0: .urlbar-input-box { michael@0: -moz-margin-start: 0; michael@0: } michael@0: michael@0: #urlbar-icons { michael@0: -moz-box-align: center; michael@0: } michael@0: michael@0: .urlbar-icon { michael@0: padding: 0 3px; michael@0: } michael@0: michael@0: .searchbar-engine-button, michael@0: .search-go-container { michael@0: padding: 2px 2px; michael@0: } michael@0: michael@0: .urlbar-icon:hover { michael@0: background-image: radial-gradient(circle closest-side, hsla(200,100%,70%,.3), hsla(200,100%,70%,0)); michael@0: } michael@0: michael@0: .urlbar-icon[open="true"], michael@0: .urlbar-icon:hover:active { michael@0: background-image: radial-gradient(circle closest-side, hsla(200,100%,70%,.1), hsla(200,100%,70%,0)); michael@0: } michael@0: michael@0: #urlbar-search-splitter { michael@0: min-width: 6px; michael@0: -moz-margin-start: -3px; michael@0: border: none; michael@0: background: transparent; michael@0: } michael@0: michael@0: #urlbar-search-splitter + #search-container > #searchbar > .searchbar-textbox { michael@0: -moz-margin-start: 0; michael@0: } michael@0: michael@0: #urlbar-display-box { michael@0: -moz-border-end: 1px solid #AAA; michael@0: -moz-margin-end: 3px; michael@0: } michael@0: michael@0: #urlbar-display { michael@0: margin-top: 0; michael@0: margin-bottom: 0; michael@0: -moz-margin-start: 0; michael@0: color: GrayText; michael@0: } michael@0: michael@0: #search-container { michael@0: min-width: calc(54px + 11ch); michael@0: } michael@0: michael@0: /* identity box */ michael@0: michael@0: #identity-box { michael@0: padding: 2px; michael@0: font-size: .9em; michael@0: } michael@0: michael@0: #identity-box:-moz-locale-dir(ltr) { michael@0: border-top-left-radius: 1.5px; michael@0: border-bottom-left-radius: 1.5px; michael@0: } michael@0: michael@0: #identity-box:-moz-locale-dir(rtl) { michael@0: border-top-right-radius: 1.5px; michael@0: border-bottom-right-radius: 1.5px; michael@0: } michael@0: michael@0: #notification-popup-box:not([hidden]) + #identity-box { michael@0: -moz-padding-start: 10px; michael@0: border-radius: 0; michael@0: } michael@0: michael@0: @conditionalForwardWithUrlbar@ > #urlbar > #identity-box { michael@0: border-radius: 0; michael@0: } michael@0: michael@0: @conditionalForwardWithUrlbar@:not([switchingtabs]) > #urlbar > #identity-box { michael@0: transition: padding-left, padding-right; michael@0: } michael@0: michael@0: @conditionalForwardWithUrlbar@ > #forward-button[disabled] + #urlbar > #notification-popup-box[hidden] + #identity-box:-moz-locale-dir(ltr) { michael@0: padding-left: 5px; michael@0: } michael@0: michael@0: @conditionalForwardWithUrlbar@ > #forward-button[disabled] + #urlbar > #notification-popup-box[hidden] + #identity-box:-moz-locale-dir(rtl) { michael@0: padding-right: 5px; michael@0: } michael@0: michael@0: @conditionalForwardWithUrlbar@:hover:not([switchingtabs]) > #forward-button[disabled] + #urlbar > #notification-popup-box[hidden] + #identity-box { michael@0: /* forward button hiding is delayed when hovered */ michael@0: transition-delay: 100s; michael@0: } michael@0: michael@0: @conditionalForwardWithUrlbar@:not(:hover) > #forward-button[disabled] + #urlbar > #notification-popup-box[hidden] + #identity-box:-moz-locale-dir(ltr) { michael@0: /* when not hovered anymore, trigger a new non-delayed transition to react to the forward button hiding */ michael@0: padding-left: 5.01px; michael@0: } michael@0: michael@0: @conditionalForwardWithUrlbar@:not(:hover) > #forward-button[disabled] + #urlbar > #notification-popup-box[hidden] + #identity-box:-moz-locale-dir(rtl) { michael@0: /* when not hovered anymore, trigger a new non-delayed transition to react to the forward button hiding */ michael@0: padding-right: 5.01px; michael@0: } michael@0: michael@0: #urlbar[pageproxystate="valid"] > #identity-box.chromeUI, michael@0: #urlbar[pageproxystate="valid"] > #identity-box.verifiedIdentity { michael@0: -moz-margin-end: 4px; michael@0: } michael@0: michael@0: #identity-box.verifiedIdentity:not(:-moz-lwtheme) { michael@0: background-color: #fff; michael@0: } michael@0: michael@0: #identity-box:-moz-focusring { michael@0: outline: 1px dotted #000; michael@0: outline-offset: -3px; michael@0: } michael@0: michael@0: #identity-icon-labels { michael@0: -moz-padding-start: 2px; michael@0: -moz-padding-end: 5px; michael@0: } michael@0: michael@0: /* Location bar dropmarker */ michael@0: michael@0: .urlbar-history-dropmarker { michael@0: -moz-appearance: none; michael@0: padding: 0 3px; michael@0: background-color: transparent; michael@0: border: none; michael@0: width: auto; michael@0: list-style-image: url("chrome://browser/skin/urlbar-history-dropmarker.png"); michael@0: -moz-image-region: rect(0px, 11px, 14px, 0px); michael@0: } michael@0: michael@0: .urlbar-history-dropmarker:hover { michael@0: background-image: radial-gradient(circle closest-side, hsla(205,100%,70%,.3), hsla(205,100%,70%,0)); michael@0: -moz-image-region: rect(0px, 22px, 14px, 11px); michael@0: } michael@0: michael@0: .urlbar-history-dropmarker:hover:active, michael@0: .urlbar-history-dropmarker[open="true"] { michael@0: background-image: radial-gradient(circle closest-side, hsla(205,100%,70%,.1), hsla(205,100%,70%,0)); michael@0: -moz-image-region: rect(0px, 33px, 14px, 22px); michael@0: } michael@0: michael@0: /* page proxy icon */ michael@0: michael@0: %include ../shared/identity-block.inc.css michael@0: michael@0: #page-proxy-favicon { michael@0: margin-top: 1px; michael@0: margin-bottom: 1px; michael@0: -moz-margin-start: 3px; michael@0: -moz-margin-end: 1px; michael@0: -moz-image-region: rect(0, 16px, 16px, 0); michael@0: } michael@0: michael@0: #identity-box:hover > #page-proxy-favicon { michael@0: -moz-image-region: rect(0, 32px, 16px, 16px); michael@0: } michael@0: michael@0: #identity-box:hover:active > #page-proxy-favicon, michael@0: #identity-box[open=true] > #page-proxy-favicon { michael@0: -moz-image-region: rect(0, 48px, 16px, 32px); michael@0: } michael@0: michael@0: /* autocomplete */ michael@0: michael@0: #treecolAutoCompleteImage { michael@0: max-width: 36px; michael@0: } michael@0: michael@0: .ac-result-type-bookmark, michael@0: .autocomplete-treebody::-moz-tree-image(bookmark, treecolAutoCompleteImage) { michael@0: list-style-image: url("chrome://browser/skin/places/bookmark.png"); michael@0: -moz-image-region: rect(0px 32px 16px 16px); michael@0: width: 16px; michael@0: height: 16px; michael@0: } michael@0: michael@0: richlistitem[selected="true"][current="true"] > .ac-title-box > .ac-result-type-bookmark, michael@0: .autocomplete-treebody::-moz-tree-image(selected, current, bookmark, treecolAutoCompleteImage) { michael@0: -moz-image-region: rect(0px 48px 16px 32px); michael@0: } michael@0: michael@0: .ac-result-type-keyword, michael@0: .autocomplete-treebody::-moz-tree-image(keyword, treecolAutoCompleteImage) { michael@0: list-style-image: url(chrome://global/skin/icons/Search-glass.png); michael@0: -moz-image-region: rect(0px 32px 16px 16px); michael@0: width: 16px; michael@0: height: 16px; michael@0: } michael@0: michael@0: .ac-result-type-tag, michael@0: .autocomplete-treebody::-moz-tree-image(tag, treecolAutoCompleteImage) { michael@0: list-style-image: url("chrome://browser/skin/places/tag.png"); michael@0: width: 16px; michael@0: height: 16px; michael@0: } michael@0: michael@0: .ac-comment { michael@0: font-size: 1.06em; michael@0: } michael@0: michael@0: .ac-extra > .ac-comment { michael@0: font-size: 1em; michael@0: } michael@0: michael@0: .ac-url-text, michael@0: .ac-action-text { michael@0: font-size: 1em; michael@0: color: -moz-nativehyperlinktext; michael@0: } michael@0: michael@0: %ifndef WINDOWS_AERO michael@0: @media (-moz-windows-default-theme) { michael@0: .ac-url-text:not([selected="true"]), michael@0: .ac-action-text:not([selected="true"]) { michael@0: color: #008800; michael@0: } michael@0: } michael@0: %endif michael@0: michael@0: richlistitem[type~="action"][actiontype="switchtab"] > .ac-url-box > .ac-action-icon { michael@0: list-style-image: url("chrome://browser/skin/actionicon-tab.png"); michael@0: -moz-image-region: rect(0, 16px, 11px, 0); michael@0: padding: 0 3px; michael@0: } michael@0: michael@0: %ifdef WINDOWS_AERO michael@0: @media not all and (-moz-windows-default-theme) { michael@0: %endif michael@0: richlistitem[type~="action"][actiontype="switchtab"][selected="true"] > .ac-url-box > .ac-action-icon { michael@0: -moz-image-region: rect(11px, 16px, 22px, 0); michael@0: } michael@0: michael@0: .ac-comment[selected="true"], michael@0: .ac-url-text[selected="true"], michael@0: .ac-action-text[selected="true"] { michael@0: color: inherit !important; michael@0: } michael@0: %ifdef WINDOWS_AERO michael@0: } michael@0: %endif michael@0: michael@0: .autocomplete-treebody::-moz-tree-cell-text(treecolAutoCompleteComment) { michael@0: color: GrayText; michael@0: } michael@0: michael@0: .autocomplete-treebody::-moz-tree-cell-text(suggesthint, treecolAutoCompleteComment), michael@0: .autocomplete-treebody::-moz-tree-cell-text(suggestfirst, treecolAutoCompleteComment) michael@0: { michael@0: color: GrayText; michael@0: font-size: smaller; michael@0: } michael@0: michael@0: .autocomplete-treebody::-moz-tree-cell(suggesthint) { michael@0: border-top: 1px solid GrayText; michael@0: } michael@0: michael@0: /* combined go/reload/stop button in location bar */ michael@0: michael@0: #urlbar > toolbarbutton { michael@0: -moz-appearance: none; michael@0: padding: 0 2px; michael@0: background-origin: border-box; michael@0: border: none; michael@0: list-style-image: url("chrome://browser/skin/reload-stop-go.png"); michael@0: } michael@0: michael@0: #urlbar-reload-button { michael@0: -moz-image-region: rect(0, 14px, 14px, 0); michael@0: } michael@0: michael@0: #urlbar-reload-button:not([disabled]):hover { michael@0: background-image: radial-gradient(circle closest-side, hsla(200,100%,70%,.2), hsla(200,100%,70%,0)); michael@0: -moz-image-region: rect(14px, 14px, 28px, 0); michael@0: } michael@0: michael@0: #urlbar-reload-button:not([disabled]):hover:active { michael@0: background-image: radial-gradient(circle closest-side, hsla(200,100%,60%,.1), hsla(200,100%,60%,0)); michael@0: -moz-image-region: rect(28px, 14px, 42px, 0); michael@0: } michael@0: michael@0: #urlbar-reload-button:-moz-locale-dir(rtl) > .toolbarbutton-icon { michael@0: transform: scaleX(-1); michael@0: } michael@0: michael@0: #urlbar-go-button { michael@0: -moz-image-region: rect(0, 42px, 14px, 28px); michael@0: } michael@0: michael@0: #urlbar-go-button:hover { michael@0: background-image: radial-gradient(circle closest-side, hsla(110,70%,50%,.2), hsla(110,70%,50%,0)); michael@0: -moz-image-region: rect(14px, 42px, 28px, 28px); michael@0: } michael@0: michael@0: #urlbar-go-button:hover:active { michael@0: background-image: radial-gradient(circle closest-side, hsla(110,70%,50%,.1), hsla(110,70%,50%,0)); michael@0: -moz-image-region: rect(28px, 42px, 42px, 28px); michael@0: } michael@0: michael@0: #urlbar-go-button:-moz-locale-dir(rtl) > .toolbarbutton-icon { michael@0: transform: scaleX(-1); michael@0: } michael@0: michael@0: #urlbar-stop-button { michael@0: -moz-image-region: rect(0, 28px, 14px, 14px); michael@0: } michael@0: michael@0: #urlbar-stop-button:not([disabled]):hover { michael@0: background-image: radial-gradient(circle closest-side, hsla(5,100%,75%,.3), hsla(5,100%,75%,0)); michael@0: -moz-image-region: rect(14px, 28px, 28px, 14px); michael@0: } michael@0: michael@0: #urlbar-stop-button:hover:active { michael@0: background-image: radial-gradient(circle closest-side, hsla(5,100%,75%,.1), hsla(5,100%,75%,0)); michael@0: -moz-image-region: rect(28px, 28px, 42px, 14px); michael@0: } michael@0: michael@0: /* popup blocker button */ michael@0: michael@0: #page-report-button { michael@0: list-style-image: url("chrome://browser/skin/urlbar-popup-blocked.png"); michael@0: -moz-image-region: rect(0, 16px, 16px, 0); michael@0: } michael@0: michael@0: #page-report-button:hover { michael@0: -moz-image-region: rect(0, 32px, 16px, 16px); michael@0: } michael@0: michael@0: #page-report-button:hover:active, michael@0: #page-report-button[open="true"] { michael@0: -moz-image-region: rect(0, 48px, 16px, 32px); michael@0: } michael@0: michael@0: michael@0: /* social share panel */ michael@0: michael@0: #social-share-panel > iframe { michael@0: background: linear-gradient(to bottom, #f0f4f7, #fafbfc); michael@0: width: 300px; michael@0: height: 150px; michael@0: } michael@0: michael@0: .social-share-toolbar { michael@0: border-right: 1px solid #e2e5e8; michael@0: background: linear-gradient(to bottom, #ffffff, #f5f7fa); michael@0: } michael@0: michael@0: #social-share-provider-buttons { michael@0: padding: 6px; michael@0: } michael@0: michael@0: #social-share-provider-buttons > .share-provider-button { michael@0: -moz-appearance: none; michael@0: padding: 5px; michael@0: margin: 1px; michael@0: border: none; michael@0: background: none; michael@0: border-radius: 2px; michael@0: } michael@0: michael@0: #social-share-provider-buttons > .share-provider-button[checked="true"]:not([disabled="true"]), michael@0: #social-share-provider-buttons > .share-provider-button:hover, michael@0: #social-share-provider-buttons > .share-provider-button:active { michael@0: padding: 4px; michael@0: border: 1px solid #aeb8c1; michael@0: box-shadow: inset 1px 1px 1px rgba(10, 31, 51, 0.1); michael@0: } michael@0: michael@0: #social-share-provider-buttons > .share-provider-button[checked="true"]:not([disabled="true"]) { michael@0: background: linear-gradient(to bottom, rgba(230,232,234,.65), #d2d5d9); michael@0: } michael@0: michael@0: #social-share-provider-buttons > .share-provider-button > .toolbarbutton-text { michael@0: display: none; michael@0: } michael@0: #social-share-provider-buttons > .share-provider-button > .toolbarbutton-icon { michael@0: width: 16px; michael@0: min-height: 16px; michael@0: max-height: 16px; michael@0: } michael@0: michael@0: michael@0: toolbarbutton[type="socialmark"] > .toolbarbutton-icon { michael@0: width: auto; michael@0: height: auto; michael@0: max-width: 32px; michael@0: max-height: 24px; michael@0: } michael@0: michael@0: /* fixup corners for share panel */ michael@0: .social-panel > .social-panel-frame { michael@0: border-radius: inherit; michael@0: } michael@0: michael@0: #social-share-panel { michael@0: max-height: 600px; michael@0: min-height: 100px; michael@0: max-width: 800px; michael@0: min-width: 300px; michael@0: } michael@0: michael@0: .social-share-frame { michael@0: background: linear-gradient(to bottom, #f0f4f7, #fafbfc); michael@0: width: 330px; michael@0: height: 150px; michael@0: /* we resize our panels dynamically, make it look nice */ michael@0: transition: height 100ms ease-out, width 100ms ease-out; michael@0: } michael@0: michael@0: .social-share-frame:-moz-locale-dir(ltr) { michael@0: border-top-left-radius: 0; michael@0: border-bottom-left-radius: 0; michael@0: border-top-right-radius: inherit; michael@0: border-bottom-right-radius: inherit; michael@0: } michael@0: michael@0: .social-share-frame:-moz-locale-dir(rtl) { michael@0: border-top-left-radius: inherit; michael@0: border-bottom-left-radius: inherit; michael@0: border-top-right-radius: 0; michael@0: border-bottom-right-radius: 0; michael@0: } michael@0: michael@0: #social-share-panel > .social-share-toolbar:-moz-locale-dir(ltr) { michael@0: border-top-left-radius: inherit; michael@0: border-bottom-left-radius: inherit; michael@0: } michael@0: michael@0: #social-share-panel > .social-share-toolbar:-moz-locale-dir(rtl) { michael@0: border-top-right-radius: inherit; michael@0: border-bottom-right-radius: inherit; michael@0: } michael@0: michael@0: #social-share-provider-buttons:-moz-locale-dir(ltr) { michael@0: border-top-left-radius: inherit; michael@0: border-bottom-left-radius: inherit; michael@0: } michael@0: michael@0: #social-share-provider-buttons:-moz-locale-dir(rtl) { michael@0: border-top-right-radius: inherit; michael@0: border-bottom-right-radius: inherit; michael@0: } michael@0: michael@0: /* social recommending panel */ michael@0: michael@0: #social-mark-button { michael@0: -moz-image-region: rect(0, 16px, 16px, 0); michael@0: } michael@0: michael@0: /* bookmarks menu-button */ michael@0: michael@0: #bookmarks-menu-button.bookmark-item { michael@0: list-style-image: url("chrome://browser/skin/places/bookmark.png"); michael@0: -moz-image-region: rect(0px 16px 16px 0px); michael@0: } michael@0: michael@0: #bookmarks-menu-button.bookmark-item[starred] { michael@0: -moz-image-region: rect(0px 32px 16px 16px); michael@0: } michael@0: michael@0: #bookmarks-menu-button.bookmark-item > .toolbarbutton-menubutton-button > .toolbarbutton-icon { michael@0: -moz-margin-start: 5px; michael@0: } michael@0: michael@0: #bookmarks-menu-button[cui-areatype="toolbar"]:not(.bookmark-item):not([overflowedItem=true]) > .toolbarbutton-menubutton-dropmarker > .dropmarker-icon { michael@0: padding-top: 2px; michael@0: padding-bottom: 2px; michael@0: } michael@0: michael@0: #BMB_bookmarksPopup[side="top"], michael@0: #BMB_bookmarksPopup[side="bottom"] { michael@0: margin-left: -20px; michael@0: margin-right: -20px; michael@0: } michael@0: michael@0: #BMB_bookmarksPopup[side="left"], michael@0: #BMB_bookmarksPopup[side="right"] { michael@0: margin-top: -20px; michael@0: margin-bottom: -20px; michael@0: } michael@0: michael@0: /* bookmarking panel */ michael@0: michael@0: #editBookmarkPanelStarIcon { michael@0: list-style-image: url("chrome://browser/skin/places/starred48.png"); michael@0: width: 48px; michael@0: height: 48px; michael@0: } michael@0: michael@0: #editBookmarkPanelStarIcon[unstarred] { michael@0: list-style-image: url("chrome://browser/skin/places/unstarred48.png"); michael@0: } michael@0: michael@0: #editBookmarkPanelTitle { michael@0: font-size: 130%; michael@0: } michael@0: michael@0: #editBookmarkPanelHeader, michael@0: #editBookmarkPanelContent { michael@0: margin-bottom: .5em; michael@0: } michael@0: michael@0: /* Implements editBookmarkPanel resizing on folderTree un-collapse. */ michael@0: #editBMPanel_folderTree { michael@0: min-width: 27em; michael@0: } michael@0: michael@0: .panel-promo-box { michael@0: margin: 10px -10px -10px; michael@0: padding: 8px 10px; michael@0: border-top: 1px solid ThreeDShadow; michael@0: background-image: linear-gradient(hsla(0,0%,0%,.15), hsla(0,0%,0%,.08) 6px); michael@0: border-bottom-left-radius: 3px; michael@0: border-bottom-right-radius: 3px; michael@0: } michael@0: michael@0: @media (-moz-windows-default-theme) { michael@0: .panel-promo-box { michael@0: border-top-style: none; michael@0: background: #f1f5fb; michael@0: color: GrayText; michael@0: box-shadow: 0px 1px 2px rgb(204,214,234) inset; michael@0: } michael@0: } michael@0: michael@0: .panel-promo-icon { michael@0: list-style-image: url("chrome://browser/skin/sync-notification-24.png"); michael@0: -moz-margin-end: 10px; michael@0: vertical-align: middle; michael@0: } michael@0: michael@0: .panel-promo-closebutton { michael@0: -moz-appearance: none; michael@0: border: none; michael@0: -moz-margin-end: -10px; michael@0: margin-top: -5px; michael@0: } michael@0: michael@0: .panel-promo-closebutton > .toolbarbutton-text { michael@0: padding: 0; michael@0: margin: 0; michael@0: } michael@0: michael@0: /* ::::: content area ::::: */ michael@0: michael@0: #sidebar { michael@0: background-color: Window; michael@0: } michael@0: michael@0: #sidebar-title { michael@0: -moz-padding-start: 0px; michael@0: } michael@0: michael@0: #sidebar-header > .close-icon { michael@0: -moz-appearance: none; michael@0: padding: 4px 2px; michael@0: margin: 0; michael@0: border: none; michael@0: } michael@0: michael@0: .browserContainer > findbar { michael@0: background-color: -moz-dialog; michael@0: color: -moz-DialogText; michael@0: text-shadow: none; michael@0: } michael@0: michael@0: /* Tabstrip */ michael@0: michael@0: #TabsToolbar { michael@0: min-height: 0; michael@0: padding: 0; michael@0: } michael@0: michael@0: #main-window:not([customizing]) #TabsToolbar:not(:-moz-lwtheme) { michael@0: background-image: linear-gradient(to top, @toolbarShadowColor@ 2px, rgba(0,0,0,.05) 2px, transparent 50%); michael@0: } michael@0: michael@0: #main-window[tabsintitlebar] #TabsToolbar { michael@0: background-color: transparent; michael@0: } michael@0: michael@0: %ifndef WINDOWS_AERO michael@0: @media (-moz-windows-default-theme) { michael@0: #main-window[sizemode=normal] #TabsToolbar { michael@0: padding-left: 2px; michael@0: padding-right: 2px; michael@0: } michael@0: } michael@0: %endif michael@0: michael@0: %include ../shared/tabs.inc.css michael@0: michael@0: @media (min-resolution: 1.25dppx) { michael@0: /* image preloading hack from shared/tabs.inc.css */ michael@0: #tabbrowser-tabs::before { michael@0: background-image: michael@0: url(chrome://browser/skin/tabbrowser/tab-background-end@2x.png), michael@0: url(chrome://browser/skin/tabbrowser/tab-background-middle@2x.png), michael@0: url(chrome://browser/skin/tabbrowser/tab-background-start@2x.png); michael@0: } michael@0: michael@0: .tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected=true]), michael@0: .tabs-newtab-button:hover { michael@0: background-image: url(chrome://browser/skin/tabbrowser/tab-background-start@2x.png), michael@0: url(chrome://browser/skin/tabbrowser/tab-background-middle@2x.png), michael@0: url(chrome://browser/skin/tabbrowser/tab-background-end@2x.png); michael@0: } michael@0: michael@0: .tab-background-middle[selected=true] { michael@0: background-image: url(chrome://browser/skin/tabbrowser/tab-active-middle@2x.png), michael@0: @fgTabTexture@, michael@0: none; michael@0: } michael@0: michael@0: .tab-background-start[selected=true]:-moz-locale-dir(ltr)::after, michael@0: .tab-background-end[selected=true]:-moz-locale-dir(rtl)::after { michael@0: background-image: url(chrome://browser/skin/tabbrowser/tab-stroke-start@2x.png); michael@0: } michael@0: michael@0: .tab-background-end[selected=true]:-moz-locale-dir(ltr)::after, michael@0: .tab-background-start[selected=true]:-moz-locale-dir(rtl)::after { michael@0: background-image: url(chrome://browser/skin/tabbrowser/tab-stroke-end@2x.png); michael@0: } michael@0: } michael@0: michael@0: %ifndef WINDOWS_AERO michael@0: /* Use lighter colors of buttons and text in the titlebar on luna-blue */ michael@0: @media (-moz-windows-theme: luna-blue) { michael@0: #tabbrowser-tabs[movingtab] > .tabbrowser-tab[beforeselected]:not([last-visible-tab])::after, michael@0: .tabbrowser-tab:not([selected]):not([afterselected-visible]):not([afterhovered]):not([first-visible-tab]):not(:hover)::before, michael@0: #tabbrowser-tabs:not([overflow]) > .tabbrowser-tab[last-visible-tab]:not([selected]):not([beforehovered]):not(:hover)::after { michael@0: background-image: url("chrome://browser/skin/tabbrowser/tab-separator-luna-blue.png"); michael@0: } michael@0: } michael@0: %endif michael@0: michael@0: #TabsToolbar[brighttext] .tab-close-button:not(:hover):not([selected="true"]) { michael@0: -moz-image-region: rect(0, 64px, 16px, 48px) !important; michael@0: } michael@0: michael@0: /* tabbrowser-tab focus ring */ michael@0: .tabbrowser-tab:focus > .tab-stack > .tab-content > .tab-label { michael@0: outline: 1px dotted; michael@0: } michael@0: michael@0: /* Background tabs: michael@0: * michael@0: * Decrease the height of the hoverable region of background tabs whenever the tabs are at the top michael@0: * of the window (e.g. no menubar, tabs in titlebar, etc.) to make it easier to drag the window by michael@0: * the titlebar. We don't need this in fullscreen since window dragging is not an issue there. michael@0: */ michael@0: #main-window[tabsintitlebar][sizemode=normal] #toolbar-menubar[autohide="true"][inactive] + #TabsToolbar .tab-background-middle:not([selected=true]) { michael@0: clip-path: url(chrome://browser/content/browser.xul#tab-hover-clip-path); michael@0: } michael@0: michael@0: /* Tab DnD indicator */ michael@0: .tab-drop-indicator { michael@0: list-style-image: url(chrome://browser/skin/tabbrowser/tabDragIndicator.png); michael@0: margin-bottom: -9px; michael@0: z-index: 3; michael@0: } michael@0: michael@0: /* Tab close button */ michael@0: .tab-close-button { michael@0: -moz-appearance: none; michael@0: border: none; michael@0: } michael@0: michael@0: /* Tab scrollbox arrow, tabstrip new tab and all-tabs buttons */ michael@0: michael@0: .tabbrowser-arrowscrollbox > .scrollbutton-up, michael@0: .tabbrowser-arrowscrollbox > .scrollbutton-down { michael@0: list-style-image: url("chrome://browser/skin/tabbrowser/tab-arrow-left.png"); michael@0: margin: 0 0 @tabToolbarNavbarOverlap@; michael@0: padding-right: 2px; michael@0: border-right: 2px solid transparent; michael@0: background-origin: border-box; michael@0: } michael@0: michael@0: #TabsToolbar[brighttext] > #tabbrowser-tabs > .tabbrowser-arrowscrollbox > .scrollbutton-up, michael@0: #TabsToolbar[brighttext] > #tabbrowser-tabs > .tabbrowser-arrowscrollbox > .scrollbutton-down { michael@0: list-style-image: url(chrome://browser/skin/tabbrowser/tab-arrow-left-inverted.png); michael@0: } michael@0: michael@0: .tabbrowser-arrowscrollbox > .scrollbutton-up[disabled], michael@0: .tabbrowser-arrowscrollbox > .scrollbutton-down[disabled] { michael@0: opacity: .4; michael@0: } michael@0: michael@0: .tabbrowser-arrowscrollbox > .scrollbutton-up:-moz-locale-dir(rtl), michael@0: .tabbrowser-arrowscrollbox > .scrollbutton-down:-moz-locale-dir(ltr) { michael@0: transform: scaleX(-1); michael@0: } michael@0: michael@0: .tabbrowser-arrowscrollbox > .scrollbutton-down { michael@0: transition: 1s background-color ease-out; michael@0: } michael@0: michael@0: .tabbrowser-arrowscrollbox > .scrollbutton-down[notifybgtab] { michael@0: background-color: Highlight; michael@0: transition: none; michael@0: } michael@0: michael@0: .tabbrowser-arrowscrollbox > .scrollbutton-up:not([disabled]), michael@0: .tabbrowser-arrowscrollbox > .scrollbutton-down:not([disabled]) { michael@0: border-width: 0 2px 0 0; michael@0: border-style: solid; michael@0: border-image: url("chrome://browser/skin/tabbrowser/tab-overflow-border.png") 0 2 0 2 fill; michael@0: } michael@0: michael@0: .tabs-newtab-button > .toolbarbutton-icon { michael@0: margin-top: -1px; michael@0: margin-bottom: -1px; michael@0: } michael@0: michael@0: .tabs-newtab-button, michael@0: #TabsToolbar > #new-tab-button, michael@0: #TabsToolbar > toolbarpaletteitem > #new-tab-button { michael@0: list-style-image: url(chrome://browser/skin/tabbrowser/newtab.png); michael@0: -moz-image-region: auto; michael@0: } michael@0: michael@0: #TabsToolbar[brighttext] .tabs-newtab-button, michael@0: #TabsToolbar[brighttext] > #new-tab-button, michael@0: #TabsToolbar[brighttext] > toolbarpaletteitem > #new-tab-button { michael@0: list-style-image: url(chrome://browser/skin/tabbrowser/newtab-inverted.png); michael@0: } michael@0: michael@0: #TabsToolbar > #new-tab-button { michael@0: width: 26px; michael@0: } michael@0: michael@0: #alltabs-button { michael@0: list-style-image: url("chrome://browser/skin/toolbarbutton-dropdown-arrow.png"); michael@0: } michael@0: michael@0: #TabsToolbar[brighttext] > #alltabs-button, michael@0: #TabsToolbar[brighttext] > toolbarpaletteitem > #alltabs-button { michael@0: list-style-image: url("chrome://browser/skin/toolbarbutton-dropdown-arrow-inverted.png"); michael@0: } michael@0: michael@0: #alltabs-button > .toolbarbutton-icon { michael@0: margin: 0 2px; michael@0: } michael@0: michael@0: #alltabs-button > .toolbarbutton-menu-dropmarker { michael@0: display: none; michael@0: } michael@0: michael@0: /* All tabs menupopup */ michael@0: .alltabs-item > .menu-iconic-left > .menu-iconic-icon { michael@0: list-style-image: url("chrome://mozapps/skin/places/defaultFavicon.png"); michael@0: } michael@0: michael@0: .alltabs-item[selected="true"] { michael@0: font-weight: bold; michael@0: } michael@0: michael@0: .alltabs-item[busy] > .menu-iconic-left > .menu-iconic-icon { michael@0: list-style-image: url("chrome://global/skin/icons/loading_16.png"); michael@0: } michael@0: michael@0: .alltabs-item[tabIsVisible] { michael@0: /* box-shadow instead of background-color to work around native styling */ michael@0: box-shadow: inset -5px 0 ThreeDShadow; michael@0: } michael@0: michael@0: toolbarbutton.chevron { michael@0: list-style-image: url("chrome://global/skin/toolbar/chevron.gif") !important; michael@0: } michael@0: michael@0: toolbarbutton.chevron:-moz-locale-dir(rtl) > .toolbarbutton-icon { michael@0: transform: scaleX(-1); michael@0: } michael@0: michael@0: toolbarbutton.chevron > .toolbarbutton-text, michael@0: toolbarbutton.chevron > .toolbarbutton-menu-dropmarker { michael@0: display: none; michael@0: } michael@0: michael@0: toolbarbutton.chevron > .toolbarbutton-icon { michael@0: margin: 0; michael@0: } michael@0: michael@0: #sidebar-throbber[loading="true"] { michael@0: list-style-image: url("chrome://global/skin/icons/loading_16.png"); michael@0: -moz-margin-end: 4px; michael@0: } michael@0: michael@0: /* Bookmarks toolbar */ michael@0: #PlacesToolbarDropIndicator { michael@0: list-style-image: url(chrome://browser/skin/places/toolbarDropMarker.png); michael@0: } michael@0: michael@0: toolbarbutton.bookmark-item[dragover="true"][open="true"] { michael@0: -moz-appearance: none; michael@0: background: Highlight !important; michael@0: color: HighlightText !important; michael@0: } michael@0: michael@0: /* rules for menupopup drop indicators */ michael@0: .menupopup-drop-indicator-bar { michael@0: position: relative; michael@0: /* these two margins must together compensate the indicator's height */ michael@0: margin-top: -1px; michael@0: margin-bottom: -1px; michael@0: } michael@0: michael@0: .menupopup-drop-indicator { michael@0: list-style-image: none; michael@0: height: 2px; michael@0: -moz-margin-end: -4em; michael@0: background-color: Highlight; michael@0: } michael@0: michael@0: /* ::::: Identity Indicator Styling ::::: */ michael@0: michael@0: /* Popup Icons */ michael@0: #identity-popup-icon { michael@0: height: 64px; michael@0: width: 64px; michael@0: padding: 0; michael@0: list-style-image: url("chrome://browser/skin/identity.png"); michael@0: -moz-image-region: rect(0px, 64px, 64px, 0px); michael@0: } michael@0: michael@0: #identity-popup.verifiedDomain > #identity-popup-container > #identity-popup-icon { michael@0: -moz-image-region: rect(64px, 64px, 128px, 0px); michael@0: } michael@0: michael@0: #identity-popup.verifiedIdentity > #identity-popup-container > #identity-popup-icon { michael@0: -moz-image-region: rect(128px, 64px, 192px, 0px); michael@0: } michael@0: michael@0: /* Popup Body Text */ michael@0: .identity-popup-description { michael@0: white-space: pre-wrap; michael@0: -moz-padding-start: 15px; michael@0: margin: 2px 0 4px; michael@0: } michael@0: michael@0: .identity-popup-label { michael@0: white-space: pre-wrap; michael@0: -moz-padding-start: 15px; michael@0: margin: 0; michael@0: } michael@0: michael@0: #identity-popup-content-host, michael@0: #identity-popup-content-box.verifiedIdentity > #identity-popup-content-owner { michael@0: font-size: 1.2em; michael@0: } michael@0: michael@0: #identity-popup-content-host { michael@0: margin-top: 3px; michael@0: margin-bottom: 5px; michael@0: font-weight: bold; michael@0: max-width: 300px; michael@0: } michael@0: michael@0: #identity-popup-content-owner { michael@0: margin-top: 4px; michael@0: margin-bottom: 0 !important; michael@0: font-weight: bold; michael@0: max-width: 300px; michael@0: } michael@0: michael@0: .verifiedDomain > #identity-popup-content-owner { michael@0: font-weight: normal; michael@0: } michael@0: michael@0: #identity-popup-content-verifier { michael@0: margin: 4px 0 2px; michael@0: } michael@0: michael@0: #identity-popup-content-box.verifiedIdentity > #identity-popup-encryption , michael@0: #identity-popup-content-box.verifiedDomain > #identity-popup-encryption { michael@0: margin-top: 10px; michael@0: -moz-margin-start: -24px; michael@0: } michael@0: michael@0: #identity-popup-content-box.verifiedIdentity > #identity-popup-encryption > vbox > #identity-popup-encryption-icon , michael@0: #identity-popup-content-box.verifiedDomain > #identity-popup-encryption > vbox > #identity-popup-encryption-icon { michael@0: list-style-image: url("chrome://browser/skin/Secure24.png"); michael@0: } michael@0: michael@0: #identity-popup-help-icon { michael@0: -moz-appearance: none; michael@0: border: none; michael@0: margin: 7px 0 0 -3px; michael@0: background: none; michael@0: min-width: 0; michael@0: list-style-image: url("chrome://global/skin/icons/question-16.png"); michael@0: cursor: pointer; michael@0: } michael@0: michael@0: #identity-popup-help-icon > .button-box > .button-text { michael@0: display: none; michael@0: } michael@0: michael@0: #identity-popup-help-icon > .button-box > .button-icon { michael@0: height: 16px; michael@0: width: 16px; michael@0: } michael@0: michael@0: #identity-popup-more-info-button { michael@0: margin-top: 6px; michael@0: margin-bottom: 0; michael@0: -moz-margin-end: 0; michael@0: } michael@0: michael@0: #identity-popup > .panel-arrowcontainer > .panel-arrowcontent { michael@0: padding: 0; michael@0: } michael@0: michael@0: #identity-popup-container { michael@0: min-width: 280px; michael@0: padding: 10px; michael@0: } michael@0: michael@0: #identity-popup-button-container { michael@0: background: linear-gradient(to bottom, rgba(0,0,0,0.04) 60%, transparent); michael@0: padding: 10px; michael@0: margin-top: 5px; michael@0: } michael@0: michael@0: .popup-notification-icon { michael@0: width: 64px; michael@0: height: 64px; michael@0: -moz-margin-end: 10px; michael@0: } michael@0: michael@0: .popup-notification-icon[popupid="geolocation"] { michael@0: list-style-image: url(chrome://browser/skin/Geolocation-64.png); michael@0: } michael@0: michael@0: .popup-notification-icon[popupid="xpinstall-disabled"], michael@0: .popup-notification-icon[popupid="addon-progress"], michael@0: .popup-notification-icon[popupid="addon-install-cancelled"], michael@0: .popup-notification-icon[popupid="addon-install-blocked"], michael@0: .popup-notification-icon[popupid="addon-install-failed"], michael@0: .popup-notification-icon[popupid="addon-install-complete"] { michael@0: list-style-image: url(chrome://mozapps/skin/extensions/extensionGeneric.png); michael@0: width: 32px; michael@0: height: 32px; michael@0: } michael@0: michael@0: .popup-notification-icon[popupid="click-to-play-plugins"] { michael@0: list-style-image: url(chrome://mozapps/skin/plugins/pluginBlocked-64.png); michael@0: } michael@0: michael@0: .popup-notification-icon[popupid="plugins-not-found"] { michael@0: list-style-image: url(chrome://browser/skin/pluginInstall-64.png); michael@0: } michael@0: michael@0: .popup-notification-icon[popupid="web-notifications"] { michael@0: list-style-image: url(chrome://browser/skin/notification-64.png); michael@0: } michael@0: michael@0: .addon-progress-description { michael@0: width: 350px; michael@0: max-width: 350px; michael@0: } michael@0: michael@0: .popup-progress-label, michael@0: .popup-progress-meter { michael@0: -moz-margin-start: 0; michael@0: -moz-margin-end: 0; michael@0: } michael@0: michael@0: .popup-progress-cancel { michael@0: -moz-appearance: none; michael@0: background: transparent; michael@0: border: none; michael@0: padding: 0; michael@0: margin: 0; michael@0: min-height: 0; michael@0: min-width: 0; michael@0: list-style-image: url(chrome://mozapps/skin/downloads/downloadButtons.png); michael@0: -moz-image-region: rect(0px, 32px, 16px, 16px); michael@0: } michael@0: michael@0: .popup-progress-cancel:hover { michael@0: -moz-image-region: rect(16px, 32px, 32px, 16px); michael@0: } michael@0: michael@0: .popup-progress-cancel:active { michael@0: -moz-image-region: rect(32px, 32px, 48px, 16px); michael@0: } michael@0: michael@0: .popup-notification-icon[popupid="canvas-permissions-prompt"] { michael@0: list-style-image: url(chrome://browser/skin/canvas-popup.svg); michael@0: } michael@0: michael@0: .popup-notification-icon[popupid="indexedDB-permissions-prompt"], michael@0: .popup-notification-icon[popupid="indexedDB-quota-prompt"], michael@0: .popup-notification-icon[popupid*="offline-app-requested"], michael@0: .popup-notification-icon[popupid="offline-app-usage"] { michael@0: list-style-image: url(chrome://global/skin/icons/question-64.png); michael@0: } michael@0: michael@0: .popup-notification-icon[popupid="password-save"], michael@0: .popup-notification-icon[popupid="password-change"] { michael@0: list-style-image: url(chrome://mozapps/skin/passwordmgr/key-64.png); michael@0: } michael@0: michael@0: .popup-notification-icon[popupid="webapps-install-progress"], michael@0: .popup-notification-icon[popupid="webapps-install"] { michael@0: list-style-image: url(chrome://global/skin/icons/webapps-64.png); michael@0: } michael@0: michael@0: .popup-notification-icon[popupid="mixed-content-blocked"] { michael@0: list-style-image: url(chrome://browser/skin/mixed-content-blocked-64.png); michael@0: } michael@0: michael@0: .popup-notification-icon[popupid="webRTC-sharingDevices"], michael@0: .popup-notification-icon[popupid="webRTC-shareDevices"] { michael@0: list-style-image: url(chrome://browser/skin/webRTC-shareDevice-64.png); michael@0: } michael@0: michael@0: .popup-notification-icon[popupid="webRTC-sharingMicrophone"], michael@0: .popup-notification-icon[popupid="webRTC-shareMicrophone"] { michael@0: list-style-image: url(chrome://browser/skin/webRTC-shareMicrophone-64.png); michael@0: } michael@0: michael@0: .popup-notification-icon[popupid="pointerLock"] { michael@0: list-style-image: url(chrome://browser/skin/pointerLock-64.png); michael@0: } michael@0: michael@0: /* Notification icon box */ michael@0: #notification-popup-box { michael@0: position: relative; michael@0: background-color: #fff; michael@0: background-clip: padding-box; michael@0: padding-left: 3px; michael@0: border-radius: 2.5px 0 0 2.5px; michael@0: border-width: 0 8px 0 0; michael@0: border-style: solid; michael@0: border-image: url("chrome://browser/skin/urlbar-arrow.png") 0 8 0 0 fill; michael@0: -moz-margin-end: -8px; michael@0: } michael@0: michael@0: @conditionalForwardWithUrlbar@ > #forward-button[disabled] + #urlbar > #notification-popup-box { michael@0: padding-left: 7px; michael@0: } michael@0: michael@0: #notification-popup-box:-moz-locale-dir(rtl), michael@0: .notification-anchor-icon:-moz-locale-dir(rtl) { michael@0: transform: scaleX(-1); michael@0: } michael@0: michael@0: .notification-anchor-icon { michael@0: width: 16px; michael@0: height: 16px; michael@0: margin: 0 2px; michael@0: } michael@0: michael@0: .notification-anchor-icon:-moz-focusring { michael@0: outline: 1px dotted -moz-DialogText; michael@0: outline-offset: -3px; michael@0: } michael@0: michael@0: .default-notification-icon, michael@0: #default-notification-icon { michael@0: list-style-image: url(chrome://global/skin/icons/information-16.png); michael@0: } michael@0: michael@0: .identity-notification-icon, michael@0: #identity-notification-icon { michael@0: list-style-image: url(chrome://mozapps/skin/profile/profileicon.png); michael@0: } michael@0: michael@0: .geo-notification-icon, michael@0: #geo-notification-icon { michael@0: list-style-image: url(chrome://browser/skin/Geolocation-16.png); michael@0: } michael@0: michael@0: #addons-notification-icon { michael@0: list-style-image: url(chrome://mozapps/skin/extensions/extensionGeneric-16.png); michael@0: } michael@0: michael@0: #canvas-notification-icon { michael@0: list-style-image: url(chrome://browser/skin/canvas-popup.svg); michael@0: } michael@0: michael@0: .indexedDB-notification-icon, michael@0: #indexedDB-notification-icon { michael@0: list-style-image: url(chrome://global/skin/icons/question-16.png); michael@0: } michael@0: michael@0: #password-notification-icon { michael@0: list-style-image: url(chrome://mozapps/skin/passwordmgr/key-16.png); michael@0: } michael@0: michael@0: #webapps-notification-icon { michael@0: list-style-image: url(chrome://global/skin/icons/webapps-16.png); michael@0: } michael@0: michael@0: #plugins-notification-icon { michael@0: list-style-image: url(chrome://browser/skin/notification-pluginNormal.png); michael@0: } michael@0: #plugins-notification-icon.plugin-hidden { michael@0: list-style-image: url(chrome://browser/skin/notification-pluginAlert.png); michael@0: } michael@0: michael@0: #plugins-notification-icon.plugin-blocked { michael@0: list-style-image: url(chrome://browser/skin/notification-pluginBlocked.png); michael@0: } michael@0: michael@0: #plugins-notification-icon { michael@0: -moz-image-region: rect(0, 16px, 16px, 0); michael@0: } michael@0: michael@0: #plugins-notification-icon:hover { michael@0: -moz-image-region: rect(0, 32px, 16px, 16px); michael@0: } michael@0: michael@0: #plugins-notification-icon:active { michael@0: -moz-image-region: rect(0, 48px, 16px, 32px); michael@0: } michael@0: michael@0: #plugin-install-notification-icon { michael@0: list-style-image: url(chrome://browser/skin/pluginInstall-16.png); michael@0: } michael@0: michael@0: #notification-popup-box[hidden] { michael@0: /* Override display:none to make the pluginBlockedNotification animation work michael@0: when showing the notification repeatedly. */ michael@0: display: -moz-box; michael@0: visibility: collapse; michael@0: } michael@0: michael@0: #plugins-notification-icon.plugin-blocked[showing] { michael@0: animation: pluginBlockedNotification 500ms ease 0s 5 alternate both; michael@0: } michael@0: michael@0: @keyframes pluginBlockedNotification { michael@0: from { michael@0: opacity: 0; michael@0: } michael@0: to { michael@0: opacity: 1; michael@0: } michael@0: } michael@0: michael@0: .mixed-content-blocked-notification-icon, michael@0: #mixed-content-blocked-notification-icon { michael@0: list-style-image: url(chrome://browser/skin/mixed-content-blocked-16.png); michael@0: } michael@0: michael@0: .webRTC-shareDevices-notification-icon, michael@0: #webRTC-shareDevices-notification-icon { michael@0: list-style-image: url(chrome://browser/skin/webRTC-shareDevice-16.png); michael@0: } michael@0: michael@0: .webRTC-sharingDevices-notification-icon, michael@0: #webRTC-sharingDevices-notification-icon { michael@0: list-style-image: url(chrome://browser/skin/webRTC-sharingDevice-16.png); michael@0: } michael@0: michael@0: .webRTC-shareMicrophone-notification-icon, michael@0: #webRTC-shareMicrophone-notification-icon { michael@0: list-style-image: url(chrome://browser/skin/webRTC-shareMicrophone-16.png); michael@0: } michael@0: michael@0: .webRTC-sharingMicrophone-notification-icon, michael@0: #webRTC-sharingMicrophone-notification-icon { michael@0: list-style-image: url(chrome://browser/skin/webRTC-sharingMicrophone-16.png); michael@0: } michael@0: michael@0: .web-notifications-notification-icon, michael@0: #web-notifications-notification-icon { michael@0: list-style-image: url(chrome://browser/skin/notification-16.png); michael@0: } michael@0: michael@0: #pointerLock-notification-icon { michael@0: list-style-image: url(chrome://browser/skin/pointerLock-16.png); michael@0: } michael@0: #pointerLock-cancel { michael@0: margin: 0px; michael@0: } michael@0: michael@0: .translate-notification-icon, michael@0: #translate-notification-icon { michael@0: list-style-image: url(chrome://browser/skin/translation-16.png); michael@0: -moz-image-region: rect(0px, 16px, 16px, 0px); michael@0: } michael@0: michael@0: .translated-notification-icon, michael@0: #translated-notification-icon { michael@0: list-style-image: url(chrome://browser/skin/translation-16.png); michael@0: -moz-image-region: rect(0px, 32px, 16px, 16px); michael@0: } michael@0: michael@0: /* Bookmarks roots menu-items */ michael@0: #subscribeToPageMenuitem:not([disabled]), michael@0: #subscribeToPageMenupopup, michael@0: #BMB_subscribeToPageMenuitem:not([disabled]), michael@0: #BMB_subscribeToPageMenupopup { michael@0: list-style-image: url("chrome://browser/skin/feeds/feedIcon16.png"); michael@0: } michael@0: michael@0: #bookmarksToolbarFolderMenu, michael@0: #BMB_bookmarksToolbar, michael@0: #panelMenu_bookmarksToolbar { michael@0: list-style-image: url("chrome://browser/skin/places/bookmarksToolbar.png"); michael@0: -moz-image-region: auto; michael@0: } michael@0: michael@0: #BMB_unsortedBookmarks, michael@0: #panelMenu_unsortedBookmarks { michael@0: list-style-image: url("chrome://browser/skin/places/unsortedBookmarks.png"); michael@0: -moz-image-region: auto; michael@0: } michael@0: michael@0: /* ::::: Keyboard UI Panel ::::: */ michael@0: michael@0: .KUI-panel { michael@0: -moz-appearance: none; michael@0: background: rgba(27%,27%,27%,.9) url(KUI-background.png) repeat-x; michael@0: color: white; michael@0: border-style: none; michael@0: border-radius: 20px; michael@0: } michael@0: michael@0: .KUI-panel[level="top"] { michael@0: background-color: rgba(27%,27%,27%,.65); michael@0: } michael@0: michael@0: /* Ctrl-Tab */ michael@0: michael@0: #ctrlTab-panel { michael@0: padding: 20px 10px 10px; michael@0: font-weight: bold; michael@0: text-shadow: 0 0 1px rgb(27%,27%,27%), 0 0 2px rgb(27%,27%,27%); michael@0: } michael@0: michael@0: .ctrlTab-favicon[src] { michael@0: background-color: white; michael@0: width: 20px; michael@0: height: 20px; michael@0: padding: 2px; michael@0: } michael@0: michael@0: .ctrlTab-preview-inner > .tabPreview-canvas { michael@0: box-shadow: 1px 1px 2px rgb(12%,12%,12%); michael@0: } michael@0: michael@0: .ctrlTab-preview:not(#ctrlTab-showAll) > * > .ctrlTab-preview-inner > .tabPreview-canvas { michael@0: margin-bottom: 2px; michael@0: } michael@0: michael@0: .ctrlTab-preview-inner { michael@0: padding-bottom: 10px; michael@0: } michael@0: michael@0: #ctrlTab-showAll:not(:focus) > * > .ctrlTab-preview-inner { michael@0: padding: 10px; michael@0: background-color: rgba(255,255,255,.2); michael@0: border-radius: .5em; michael@0: } michael@0: michael@0: .ctrlTab-preview:focus > * > .ctrlTab-preview-inner { michael@0: color: white; michael@0: background-color: rgba(0,0,0,.6); michael@0: text-shadow: none; michael@0: padding: 8px; michael@0: border: 2px solid white; michael@0: border-radius: .5em; michael@0: } michael@0: michael@0: .ctrlTab-preview:not(#ctrlTab-showAll):focus > * > .ctrlTab-preview-inner { michael@0: margin: -10px -10px 0; michael@0: } michael@0: michael@0: #ctrlTab-showAll { michael@0: margin-top: .5em; michael@0: } michael@0: michael@0: /* Sync Panel */ michael@0: michael@0: .sync-panel-icon { michael@0: height:32px; michael@0: width: 32px; michael@0: background: url("chrome://browser/content/abouthome/sync.png") top left no-repeat; michael@0: } michael@0: michael@0: .sync-panel-inner { michael@0: width: 0; michael@0: padding-left: 10px; michael@0: } michael@0: michael@0: .sync-panel-button-box { michael@0: margin-top: 1em; michael@0: } michael@0: michael@0: #sync-error-panel-title, michael@0: #sync-start-panel-title { michael@0: font-size: 120%; michael@0: font-weight: bold; michael@0: margin-bottom: 5px; michael@0: } michael@0: michael@0: #sync-start-panel-subtitle, michael@0: #sync-error-panel-subtitle { michael@0: margin: 0; michael@0: } michael@0: michael@0: /* Status panel */ michael@0: michael@0: .statuspanel-label { michael@0: margin: 0; michael@0: padding: 2px 4px; michael@0: background: linear-gradient(#fff, #ddd); michael@0: border: 1px none #ccc; michael@0: border-top-style: solid; michael@0: color: #333; michael@0: text-shadow: none; michael@0: } michael@0: michael@0: .statuspanel-label:-moz-locale-dir(ltr):not([mirror]), michael@0: .statuspanel-label:-moz-locale-dir(rtl)[mirror] { michael@0: border-right-style: solid; michael@0: /* disabled for triggering grayscale AA (bug 659213) michael@0: border-top-right-radius: .3em; michael@0: */ michael@0: margin-right: 1em; michael@0: } michael@0: michael@0: .statuspanel-label:-moz-locale-dir(rtl):not([mirror]), michael@0: .statuspanel-label:-moz-locale-dir(ltr)[mirror] { michael@0: border-left-style: solid; michael@0: /* disabled for triggering grayscale AA (bug 659213) michael@0: border-top-left-radius: .3em; michael@0: */ michael@0: margin-left: 1em; michael@0: } michael@0: michael@0: #full-screen-warning-message { michael@0: background-image: url("chrome://browser/skin/fullscreen-darknoise.png"); michael@0: color: white; michael@0: border-radius: 4px; michael@0: margin-top: 30px; michael@0: padding: 30px 50px; michael@0: box-shadow: 0 0 2px white; michael@0: } michael@0: michael@0: #full-screen-warning-container[obscure-browser] { michael@0: background-color: rgba(0,0,0,0.3); michael@0: } michael@0: michael@0: .full-screen-description { michael@0: font-size: 150%; michael@0: } michael@0: michael@0: #full-screen-domain-text { michael@0: font-size: 300%; michael@0: } michael@0: michael@0: .full-screen-approval-button, michael@0: #full-screen-remember-decision { michael@0: font-size: 120%; michael@0: } michael@0: michael@0: %include ../shared/devtools/responsivedesign.inc.css michael@0: %include ../shared/devtools/highlighter.inc.css michael@0: %include ../shared/devtools/commandline.inc.css michael@0: %include ../shared/plugin-doorhanger.inc.css michael@0: michael@0: %include downloads/indicator.css michael@0: michael@0: /* Error counter */ michael@0: michael@0: #developer-toolbar-toolbox-button[error-count]:before { michael@0: color: #FDF3DE; michael@0: min-width: 16px; michael@0: text-shadow: none; michael@0: background-image: linear-gradient(#B4211B, #8A1915); michael@0: border-radius: 1px; michael@0: -moz-margin-end: 5px; michael@0: } michael@0: michael@0: /* Social toolbar item */ michael@0: michael@0: #social-provider-button { michael@0: -moz-image-region: rect(0, 16px, 16px, 0); michael@0: list-style-image: url(chrome://browser/skin/social/services-16.png); michael@0: } michael@0: michael@0: #social-provider-button > .toolbarbutton-menu-dropmarker { michael@0: display: none; michael@0: } michael@0: michael@0: #switch-to-metro-button[cui-areatype="toolbar"] { michael@0: list-style-image: url(chrome://browser/skin/Metro_Glyph.png); michael@0: } michael@0: michael@0: toolbar[brighttext] #switch-to-metro-button[cui-areatype="toolbar"] { michael@0: list-style-image: url(chrome://browser/skin/Metro_Glyph-inverted.png); michael@0: } michael@0: michael@0: #switch-to-metro-button[cui-areatype="menu-panel"], michael@0: toolbarpaletteitem[place="palette"] > #switch-to-metro-button { michael@0: list-style-image: url(chrome://browser/skin/Metro_Glyph-menuPanel.png); michael@0: } michael@0: michael@0: .toolbarbutton-badge-container { michael@0: margin: 0; michael@0: padding: 0; michael@0: position: relative; michael@0: } michael@0: michael@0: #nav-bar .toolbarbutton-1 > .toolbarbutton-badge-container { michael@0: padding: 2px 5px; michael@0: } michael@0: michael@0: .toolbarbutton-1 > .toolbarbutton-badge-container > .toolbar-icon { michael@0: position: absolute; michael@0: top: 2px; michael@0: right: 2px; michael@0: } michael@0: michael@0: .toolbarbutton-badge-container > .toolbarbutton-icon[label]:not([label=""]) { michael@0: -moz-margin-end: 0; michael@0: } michael@0: michael@0: .toolbarbutton-badge[badge=""] { michael@0: display: none; michael@0: } michael@0: .toolbarbutton-badge[badge]:not([badge=""])::after { michael@0: /* The |content| property is set in the content stylesheet. */ michael@0: font-size: 9px; michael@0: font-weight: bold; michael@0: padding: 0 1px; michael@0: color: #fff; michael@0: background-color: rgb(240,61,37); michael@0: border: 1px solid rgb(216,55,34); michael@0: border-radius: 2px; michael@0: box-shadow: 0 1px 0 rgba(0,39,121,0.77); michael@0: position: absolute; michael@0: top: 0; michael@0: right: 0; michael@0: } michael@0: michael@0: #nav-bar .toolbarbutton-badge[badge]:not([badge=""])::after { michael@0: top: 1px; michael@0: right: 1px; michael@0: } michael@0: michael@0: .toolbarbutton-badge[badge]:not([badge=""]):-moz-locale-dir(rtl)::after { michael@0: left: 0; michael@0: right: auto; michael@0: } michael@0: michael@0: #nav-bar .toolbarbutton-badge[badge]:not([badge=""]):-moz-locale-dir(rtl)::after { michael@0: left: 1px; michael@0: right: auto; michael@0: } michael@0: michael@0: .popup-notification-icon[popupid="servicesInstall"] { michael@0: list-style-image: url(chrome://browser/skin/social/services-64.png); michael@0: } michael@0: #servicesInstall-notification-icon { michael@0: list-style-image: url(chrome://browser/skin/social/services-16.png); michael@0: } michael@0: #social-undoactivation-button { michael@0: -moz-margin-start: 0; /* override default label margin to match description margin */ michael@0: } michael@0: michael@0: #socialActivatedNotification .popup-notification-button-container { michael@0: margin-left: 6px; michael@0: } michael@0: michael@0: .social-activation-icon { michael@0: width: auto; michael@0: height: auto; michael@0: max-height: 64px; michael@0: max-width: 64px; michael@0: } michael@0: michael@0: #social-activation-message { michael@0: max-width: 250px; michael@0: } michael@0: michael@0: #social-activation-message > label { michael@0: margin: 0; michael@0: } michael@0: michael@0: /* social toolbar provider menu */ michael@0: .social-statusarea-popup { michael@0: margin-top: 0; michael@0: margin-left: -12px; michael@0: margin-right: -12px; michael@0: } michael@0: michael@0: .social-statusarea-user { michael@0: -moz-appearance: none; michael@0: border-bottom: 1px solid rgb(221,221,221); michael@0: background-color: -moz-Dialog; michael@0: position: relative; michael@0: cursor: pointer; michael@0: list-style-image:url("chrome://global/skin/icons/information-32.png"); michael@0: } michael@0: michael@0: .social-statusarea-user-portrait { michael@0: width: 32px; michael@0: height: 32px; michael@0: border-radius: 2px; michael@0: margin: 10px; michael@0: } michael@0: michael@0: .social-statusarea-loggedInStatus { michael@0: -moz-appearance: none; michael@0: background: transparent; michael@0: border: none; michael@0: color: -moz-nativehyperlinktext; michael@0: min-width: 0; michael@0: margin: 0 6px; michael@0: list-style-image: none; michael@0: } michael@0: michael@0: .social-statusarea-user[_moz-menuactive] > vbox > .social-statusarea-loggedInStatus { michael@0: text-decoration: underline; michael@0: } michael@0: michael@0: .social-panel > .panel-arrowcontainer > .panel-arrowcontent { michael@0: padding: 0; michael@0: } michael@0: michael@0: .social-panel-frame { michael@0: border-radius: inherit; michael@0: } michael@0: michael@0: %include ../shared/social/chat.inc.css michael@0: michael@0: .chat-titlebar { michael@0: background-color: #c4cfde; michael@0: background-image: linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,0)); michael@0: } michael@0: michael@0: .chat-titlebar[selected] { michael@0: background-color: #dae3f0; michael@0: } michael@0: michael@0: .chatbar-button { michael@0: -moz-appearance: none; michael@0: background-color: #c4cfde; michael@0: background-image: linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,0)); michael@0: } michael@0: michael@0: .chatbar-button > .toolbarbutton-icon { michael@0: -moz-margin-end: 0; michael@0: } michael@0: michael@0: .chatbar-button:hover, michael@0: .chatbar-button[open="true"] { michael@0: background-color: #dae3f0; michael@0: } michael@0: michael@0: .chatbar-button[activity]:not([open="true"]) { michael@0: background-image: radial-gradient(circle farthest-corner at center 3px, rgb(255,255,255) 3%, rgba(186,221,251,0.75) 40%, rgba(127,179,255,0.5) 80%, rgba(127,179,255,0.25)); michael@0: } michael@0: michael@0: chatbox { michael@0: border-top-left-radius: 2.5px; michael@0: border-top-right-radius: 2.5px; michael@0: } michael@0: michael@0: /* Customization mode */ michael@0: michael@0: %include ../shared/customizableui/customizeMode.inc.css michael@0: michael@0: /** michael@0: * This next rule is a hack to disable subpixel anti-aliasing on all michael@0: * labels during the customize mode transition. Subpixel anti-aliasing michael@0: * on Windows with Direct2D layers acceleration is particularly slow to michael@0: * paint, so this hack is how we sidestep that performance bottleneck. michael@0: */ michael@0: #main-window:-moz-any([customize-entering],[customize-exiting]) label { michael@0: transform: perspective(0.01px); michael@0: } michael@0: michael@0: #main-window[customize-entered] { michael@0: background-image: url("chrome://browser/skin/customizableui/customizeMode-gridTexture.png"); michael@0: background-attachment: fixed; michael@0: } michael@0: michael@0: #main-window[customize-entered] #browser-bottombox, michael@0: #main-window[customize-entered] #customization-container { michael@0: border-left: 1px solid @toolbarShadowColor@; michael@0: border-right: 1px solid @toolbarShadowColor@; michael@0: background-clip: padding-box; michael@0: } michael@0: michael@0: #main-window[customize-entered] #browser-bottombox { michael@0: border-bottom: 1px solid @toolbarShadowColor@; michael@0: } michael@0: michael@0: #customization-tipPanel > .panel-arrowcontainer > .panel-arrowbox > .panel-arrow[side="left"] { michael@0: margin-right: -2px; michael@0: } michael@0: michael@0: #customization-tipPanel > .panel-arrowcontainer > .panel-arrowbox > .panel-arrow[side="right"] { michael@0: margin-left: -2px; michael@0: } michael@0: michael@0: /* End customization mode */ michael@0: michael@0: /* Private browsing indicators */ michael@0: michael@0: /** michael@0: * Currently, we have two places where we put private browsing indicators on michael@0: * Windows. When tabsintitlebar is enabled, we draw the indicator in the titlebar. michael@0: * When tabsintitlebar is disabled, we draw the indicator at the end of the michael@0: * tabstrip. The titlebar indicator is the fiddliest of the bunch, since we michael@0: * want the bottom border of the image to line up with the bottom of the window michael@0: * caption buttons. That's why there's so much special-casing going on in here. michael@0: */ michael@0: .private-browsing-indicator { michael@0: display: none; michael@0: pointer-events: none; michael@0: } michael@0: michael@0: #private-browsing-indicator-titlebar { michael@0: display: block; michael@0: position: absolute; michael@0: } michael@0: michael@0: #main-window[privatebrowsingmode=temporary][tabsintitlebar] #private-browsing-indicator-titlebar > .private-browsing-indicator { michael@0: display: block; michael@0: } michael@0: michael@0: #main-window[privatebrowsingmode=temporary]:-moz-any([inFullscreen],:not([tabsintitlebar])) #TabsToolbar > .private-browsing-indicator { michael@0: display: -moz-box; michael@0: } michael@0: michael@0: #TabsToolbar > .private-browsing-indicator { michael@0: background: url("chrome://browser/skin/privatebrowsing-mask-tabstrip.png") no-repeat center -3px; michael@0: -moz-margin-start: 4px; michael@0: width: 48px; michael@0: } michael@0: michael@0: /* Bug 1008183: We're intentionally using the titlebar asset here for fullscreen michael@0: * mode, since the tabstrip "mimics" the titlebar in that case with its own michael@0: * min/max/close window buttons. michael@0: */ michael@0: #private-browsing-indicator-titlebar > .private-browsing-indicator, michael@0: #main-window[inFullscreen] #TabsToolbar > .private-browsing-indicator { michael@0: background: url("chrome://browser/skin/privatebrowsing-mask-titlebar.png") no-repeat center 0px; michael@0: -moz-margin-end: 4px; michael@0: width: 40px; michael@0: height: 20px; michael@0: position: relative; michael@0: } michael@0: michael@0: %ifndef WINDOWS_AERO michael@0: #TabsToolbar > .private-browsing-indicator { michael@0: background-image: url("chrome://browser/skin/privatebrowsing-mask-tabstrip-XPVista7.png"); michael@0: } michael@0: michael@0: @media not all and (-moz-windows-classic) { michael@0: #private-browsing-indicator-titlebar > .private-browsing-indicator { michael@0: background-image: url("chrome://browser/skin/privatebrowsing-mask-titlebar-XPVista7-tall.png"); michael@0: height: 28px; michael@0: } michael@0: michael@0: /* We're intentionally using the titlebar asset here for fullscreen mode. michael@0: * See bug 1008183. michael@0: */ michael@0: #main-window[inFullscreen] #TabsToolbar > .private-browsing-indicator { michael@0: background-image: url("chrome://browser/skin/privatebrowsing-mask-titlebar-XPVista7.png"); michael@0: } michael@0: michael@0: #main-window[sizemode="maximized"] > #titlebar > #titlebar-content > #titlebar-buttonbox-container > #private-browsing-indicator-titlebar > .private-browsing-indicator { michael@0: top: -5px; michael@0: } michael@0: #main-window[sizemode="normal"] > #titlebar > #titlebar-content > #titlebar-buttonbox-container > #private-browsing-indicator-titlebar > .private-browsing-indicator { michael@0: top: -1px; michael@0: } michael@0: } michael@0: %endif michael@0: michael@0: @media (-moz-windows-classic) { michael@0: /* We're intentionally using the titlebar asset here for fullscreen mode. michael@0: * See bug 1008183. michael@0: */ michael@0: #private-browsing-indicator-titlebar > .private-browsing-indicator, michael@0: #main-window[inFullscreen] #TabsToolbar > .private-browsing-indicator { michael@0: background-image: url("chrome://browser/skin/privatebrowsing-mask-titlebar-XPVista7.png"); michael@0: } michael@0: /** michael@0: * We have to use top instead of background-position in this case, otherwise michael@0: * the bottom of the indicator would get cut off by the bounds of the michael@0: * private-browsing-indicator element. michael@0: */ michael@0: #main-window[sizemode="normal"] > #titlebar > #titlebar-content > #titlebar-buttonbox-container > #private-browsing-indicator-titlebar > .private-browsing-indicator { michael@0: top: 4px; michael@0: } michael@0: } michael@0: michael@0: /* End private browsing indicators */ michael@0: michael@0: %include ../shared/UITour.inc.css michael@0: michael@0: #UITourTooltipButtons { michael@0: margin: 24px -4px -4px; michael@0: }