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: %define WINDOWS_AERO michael@0: %include browser.css michael@0: %undef WINDOWS_AERO michael@0: michael@0: %define glassActiveBorderColor rgb(37, 44, 51) michael@0: %define glassInactiveBorderColor rgb(102, 102, 102) michael@0: michael@0: %include downloads/indicator-aero.css michael@0: michael@0: @media not all and (-moz-windows-classic) { michael@0: #main-window[sizemode="normal"] > #tab-view-deck > #browser-panel > #navigator-toolbox > #toolbar-menubar { michael@0: margin-top: 1px; michael@0: } michael@0: michael@0: .panel-promo-message { michael@0: font-style: italic; michael@0: } michael@0: } michael@0: michael@0: @media (-moz-windows-default-theme) { michael@0: .sidebar-header, michael@0: #sidebar-header { michael@0: -moz-appearance: none; michael@0: color: black; michael@0: background-color: #EEF3FA; michael@0: border-bottom: none; michael@0: text-shadow: none; michael@0: } michael@0: michael@0: .sidebar-title, michael@0: #sidebar-title { michael@0: font-weight: bold; michael@0: } michael@0: michael@0: .sidebar-splitter { michael@0: border: 0; michael@0: -moz-border-end: 1px solid #A9B7C9; michael@0: min-width: 0; michael@0: width: 3px; michael@0: background-color: transparent; michael@0: -moz-margin-start: -3px; michael@0: position: relative; michael@0: } michael@0: michael@0: #appcontent ~ .sidebar-splitter { michael@0: -moz-border-start: 1px solid #A9B7C9; michael@0: -moz-border-end: none; michael@0: -moz-margin-start: 0; michael@0: -moz-margin-end: -3px; michael@0: } michael@0: michael@0: #urlbar:not(:-moz-lwtheme), michael@0: .searchbar-textbox:not(:-moz-lwtheme) { michael@0: border-color: hsla(210,54%,20%,.25) hsla(210,54%,20%,.27) hsla(210,54%,20%,.3); michael@0: box-shadow: 0 1px 0 hsla(0,0%,0%,.01) inset, michael@0: 0 1px 0 hsla(0,0%,100%,.1); michael@0: } michael@0: michael@0: #urlbar:not(:-moz-lwtheme)[focused], michael@0: .searchbar-textbox:not(:-moz-lwtheme)[focused] { michael@0: border-color: Highlight; michael@0: } michael@0: michael@0: .menu-accel, michael@0: .menu-iconic-accel { michael@0: color: graytext; michael@0: } michael@0: michael@0: .chatbar-button, michael@0: chatbar > chatbox { michael@0: border-color: #A9B7C9; michael@0: } michael@0: michael@0: @media (-moz-os-version: windows-vista), michael@0: (-moz-os-version: windows-win7) { michael@0: #navigator-toolbox > toolbar:not(:-moz-lwtheme), michael@0: #browser-bottombox:not(:-moz-lwtheme), michael@0: .browserContainer > findbar { michael@0: background-color: @customToolbarColor@; michael@0: } michael@0: michael@0: .tab-background-middle[selected=true]:not(:-moz-lwtheme) { michael@0: background-color: @customToolbarColor@; michael@0: } michael@0: michael@0: #navigator-toolbox:not(:-moz-lwtheme)::after { michael@0: background-color: #aabccf; michael@0: } michael@0: michael@0: #urlbar:not(:-moz-lwtheme):not([focused]):hover, michael@0: .searchbar-textbox:not(:-moz-lwtheme):not([focused]):hover { michael@0: border-color: hsla(210,54%,20%,.35) hsla(210,54%,20%,.37) hsla(210,54%,20%,.4); michael@0: } michael@0: michael@0: #urlbar:not(:-moz-lwtheme)[focused], michael@0: .searchbar-textbox:not(:-moz-lwtheme)[focused] { michael@0: border-color: hsla(206,100%,60%,.65) hsla(206,100%,55%,.65) hsla(206,100%,50%,.65); michael@0: } michael@0: } michael@0: } michael@0: michael@0: @media (-moz-windows-compositor) { michael@0: /* These should be hidden w/ glass enabled. Windows draws its own buttons. */ michael@0: .titlebar-button { michael@0: display: none; michael@0: } michael@0: michael@0: #main-window[sizemode="maximized"] #titlebar-buttonbox { michael@0: -moz-margin-end: 3px; michael@0: } michael@0: michael@0: #main-window { michael@0: -moz-appearance: -moz-win-borderless-glass; michael@0: background: transparent; michael@0: } michael@0: michael@0: #appcontent { michael@0: -moz-appearance: -moz-win-exclude-glass; michael@0: } michael@0: michael@0: /* Artificially draw window borders that are covered by lwtheme, see bug 591930. */ michael@0: #main-window[sizemode="normal"] > #titlebar > #titlebar-content:-moz-lwtheme { michael@0: border-top: 2px solid; michael@0: -moz-border-top-colors: @glassActiveBorderColor@ rgba(255,255,255,.6); michael@0: } michael@0: michael@0: #main-window[sizemode="normal"] > #titlebar > #titlebar-content:-moz-lwtheme:-moz-window-inactive { michael@0: -moz-border-top-colors: @glassInactiveBorderColor@ rgba(255,255,255,.6); michael@0: } michael@0: michael@0: #main-window[sizemode="normal"] #titlebar-buttonbox:-moz-lwtheme { michael@0: margin-top: -2px; michael@0: } michael@0: michael@0: @media (-moz-windows-default-theme) { michael@0: #toolbar-menubar:not(:-moz-lwtheme), michael@0: #TabsToolbar:not(:-moz-lwtheme) { michael@0: background-color: transparent !important; michael@0: color: black; michael@0: } michael@0: michael@0: #main-menubar > menu:not(:-moz-lwtheme) { michael@0: color: inherit; michael@0: } michael@0: michael@0: /* Use a different color only on Windows 8 and higher for inactive windows. michael@0: * On aero, the menubar fog disappears for inactive windows, and renders gray michael@0: * illegible. michael@0: */ michael@0: @media not all and (-moz-os-version: windows-vista) { michael@0: @media not all and (-moz-os-version: windows-win7) { michael@0: #toolbar-menubar:not(:-moz-lwtheme):-moz-window-inactive { michael@0: color: ThreeDShadow; michael@0: } michael@0: } michael@0: } michael@0: } michael@0: michael@0: #main-window[darkwindowframe="true"] #toolbar-menubar:not(:-moz-lwtheme):not(:-moz-window-inactive), michael@0: #main-window[darkwindowframe="true"] #TabsToolbar:not(:-moz-lwtheme):not(:-moz-window-inactive) { michael@0: color: white; michael@0: } michael@0: michael@0: #toolbar-menubar:not(:-moz-lwtheme) { michael@0: text-shadow: 0 0 .5em white, 0 0 .5em white, 0 1px 0 rgba(255,255,255,.4); michael@0: } michael@0: michael@0: /* Vertical toolbar border */ michael@0: #main-window[sizemode=normal] #navigator-toolbox::after, michael@0: #main-window[sizemode=normal] #navigator-toolbox > toolbar:not(#toolbar-menubar):not(#TabsToolbar) { michael@0: border-left: 1px solid @toolbarShadowColor@; michael@0: border-right: 1px solid @toolbarShadowColor@; michael@0: background-clip: padding-box; michael@0: } michael@0: #main-window[sizemode=normal] #browser-border-start, michael@0: #main-window[sizemode=normal] #browser-border-end { michael@0: display: -moz-box; michael@0: background-color: @toolbarShadowColor@; michael@0: width: 1px; michael@0: } michael@0: #main-window[sizemode=normal] #browser-bottombox { michael@0: border: 1px solid @toolbarShadowColor@; michael@0: border-top-style: none; michael@0: background-clip: padding-box; michael@0: } michael@0: michael@0: /* Toolbar shadow behind tabs */ michael@0: #nav-bar { michael@0: border-top: 1px solid @toolbarShadowColor@ !important; michael@0: background-clip: padding-box; michael@0: } michael@0: michael@0: /* This code is only needed for restored windows (i.e. sizemode=normal) michael@0: because of the border radius on the toolbar below the tab bar. */ michael@0: #main-window[sizemode=normal] #nav-bar { michael@0: border-top: 1px solid @toolbarShadowColor@; michael@0: background-clip: padding-box; michael@0: } michael@0: michael@0: /* Cover the top border of the adjacent toolbar */ michael@0: #TabsToolbar { michael@0: margin-bottom: -1px; michael@0: } michael@0: michael@0: #main-window[sizemode=normal] #TabsToolbar { michael@0: padding-left: 1px; michael@0: padding-right: 1px; michael@0: } michael@0: michael@0: /* Make the window draggable by glassed toolbars (bug 555081) */ michael@0: #toolbar-menubar:not([autohide="true"]), michael@0: #TabsToolbar, michael@0: #navigator-toolbox > toolbar:not(#toolbar-menubar):not(#addon-bar):-moz-lwtheme { michael@0: -moz-binding: url("chrome://browser/content/customizableui/toolbar.xml#toolbar-drag"); michael@0: } michael@0: michael@0: #appcontent:not(:-moz-lwtheme) { michael@0: background-color: -moz-dialog; michael@0: } michael@0: michael@0: #main-menubar:not(:-moz-lwtheme):not(:-moz-window-inactive) { michael@0: background-color: rgba(255,255,255,.5); michael@0: color: black; michael@0: } michael@0: michael@0: @media (-moz-os-version: windows-vista), michael@0: (-moz-os-version: windows-win7) { michael@0: #main-window[sizemode=normal] #nav-bar { michael@0: border-top-left-radius: 2.5px; michael@0: border-top-right-radius: 2.5px; michael@0: } michael@0: michael@0: #main-menubar:not(:-moz-lwtheme):not(:-moz-window-inactive) { michael@0: border-radius: 4px; michael@0: } michael@0: } michael@0: michael@0: #ctrlTab-panel { michael@0: background: transparent; michael@0: -moz-appearance: -moz-win-glass; michael@0: border-radius: 0; michael@0: border: none; michael@0: font: normal 1.2em "Segoe UI"; michael@0: color: black; michael@0: text-shadow: white -1px -1px .35em, white -1px 1px .35em, white 1px 1px .35em, white 1px -1px .35em; michael@0: } michael@0: michael@0: #tab-view:-moz-lwtheme { michael@0: background-image: url("chrome://browser/skin/tabview/grain.png"), michael@0: linear-gradient(rgba(255,255,255,0), #CCD9EA 200px, #C7D5E7); michael@0: background-attachment: fixed; michael@0: } michael@0: } michael@0: michael@0: @media (-moz-windows-glass) { michael@0: #main-window[sizemode=fullscreen]:not(:-moz-lwtheme) { michael@0: -moz-appearance: none; michael@0: background-color: #556; michael@0: } michael@0: michael@0: /* Glass Fog */ michael@0: michael@0: #TabsToolbar:not(:-moz-lwtheme) { michael@0: background-image: none; michael@0: position: relative; michael@0: } michael@0: michael@0: #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 30px 30px rgba(174,189,204,0.85); michael@0: content: ""; michael@0: display: -moz-box; michael@0: height: 0; michael@0: margin: 0 60px; /* (30px + 30px) from box-shadow */ michael@0: position: absolute; michael@0: pointer-events: none; michael@0: top: 50%; michael@0: width: -moz-available; michael@0: z-index: -1; michael@0: } michael@0: michael@0: /* Need to constrain the glass fog to avoid overlapping layers, see bug 886281. */ michael@0: #navigator-toolbox:not(:-moz-lwtheme) { michael@0: overflow: -moz-hidden-unscrollable; michael@0: } michael@0: michael@0: #main-window[sizemode=normal] .tabbrowser-arrowscrollbox > .arrowscrollbox-scrollbox > .scrollbox-innerbox:not(:-moz-lwtheme) { michael@0: position: relative; michael@0: } michael@0: michael@0: /* End Glass Fog */ michael@0: } michael@0: michael@0: michael@0: @media not all and (-moz-windows-compositor) { michael@0: @media (-moz-windows-default-theme) { michael@0: #main-window { michael@0: background-color: rgb(185,209,234); michael@0: } michael@0: #main-window:-moz-window-inactive { michael@0: background-color: rgb(215,228,242); michael@0: } michael@0: michael@0: #toolbar-menubar:not([autohide=true]):not(:-moz-lwtheme), michael@0: #TabsToolbar:not(:-moz-lwtheme) { michael@0: -moz-binding: url("chrome://browser/content/customizableui/toolbar.xml#toolbar-drag"); michael@0: background-color: transparent; michael@0: } michael@0: #toolbar-menubar[autohide=true] { michael@0: background-color: transparent !important; michael@0: } michael@0: michael@0: /* Render a window top border for lwthemes: */ michael@0: #main-window[tabsintitlebar][sizemode="normal"] #titlebar-content:-moz-lwtheme { michael@0: background-image: linear-gradient(to bottom, michael@0: @glassActiveBorderColor@ 0, @glassActiveBorderColor@ 1px, michael@0: rgba(255,255,255,.6) 1px, rgba(255,255,255,.6) 2px, transparent 2px); 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: @glassInactiveBorderColor@ 0, @glassInactiveBorderColor@ 1px, michael@0: rgba(255,255,255,.6) 1px, rgba(255,255,255,.6) 2px, transparent 2px); michael@0: } michael@0: } michael@0: michael@0: #print-preview-toolbar:not(:-moz-lwtheme) { michael@0: -moz-appearance: -moz-win-browsertabbar-toolbox; michael@0: } michael@0: } michael@0: michael@0: /* Win8 and beyond. */ michael@0: @media not all and (-moz-os-version: windows-vista) { michael@0: @media not all and (-moz-os-version: windows-win7) { michael@0: /* Introducing an additional hover state for the Bookmark button */ michael@0: #nav-bar .toolbarbutton-1[buttonover] > .toolbarbutton-menubutton-button:hover > .toolbarbutton-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: } michael@0: michael@0: /* ::::: fullscreen window controls ::::: */ michael@0: michael@0: #window-controls { michael@0: -moz-box-align: start; michael@0: } michael@0: michael@0: #minimize-button, michael@0: #restore-button, michael@0: #close-button { michael@0: -moz-appearance: none; michael@0: border-style: none; michael@0: margin: 0; michael@0: } michael@0: #close-button { michael@0: -moz-image-region: rect(0, 49px, 16px, 32px); michael@0: } michael@0: #close-button:hover { michael@0: -moz-image-region: rect(16px, 49px, 32px, 32px); michael@0: } michael@0: #close-button:hover:active { michael@0: -moz-image-region: rect(32px, 49px, 48px, 32px); michael@0: } michael@0: michael@0: #minimize-button:-moz-locale-dir(rtl), michael@0: #restore-button:-moz-locale-dir(rtl), michael@0: #close-button:-moz-locale-dir(rtl) { michael@0: transform: scaleX(-1); michael@0: } michael@0: michael@0: /* ::::: private browsing indicator ::::: */ michael@0: michael@0: @media (-moz-os-version: windows-vista), michael@0: (-moz-os-version: windows-win7) { 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: /* 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: michael@0: @media (-moz-windows-glass) { 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: #main-window[sizemode="maximized"] > #titlebar > #titlebar-content > #titlebar-buttonbox-container > #private-browsing-indicator-titlebar > .private-browsing-indicator { michael@0: top: -1px; michael@0: } michael@0: } michael@0: michael@0: /** michael@0: * This next block targets Aero Basic, which has different positioning for the michael@0: * window caption buttons, and therefore needs to be special-cased. michael@0: */ michael@0: @media (-moz-windows-default-theme) { michael@0: @media not all and (-moz-windows-compositor) { michael@0: #main-window[sizemode="normal"] > #titlebar > #titlebar-content > #titlebar-buttonbox-container > #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: }