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: /* michael@0: * The default namespace for this file is XUL. Be sure to prefix rules that michael@0: * are applicable to both XUL and HTML with '*|'. 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: michael@0: /* Page background */ michael@0: *|*:root { michael@0: -moz-appearance: none; michael@0: padding: 18px; michael@0: background-repeat: repeat; michael@0: color: -moz-dialogText; michael@0: background-color: -moz-dialog; michael@0: background-image: /* Texture */ michael@0: url("chrome://global/skin/inContentUI/background-texture.png"); michael@0: } michael@0: michael@0: html|html { michael@0: font: message-box; michael@0: } michael@0: michael@0: %ifdef WINDOWS_AERO michael@0: @media (-moz-windows-default-theme) and (-moz-os-version: windows-vista), michael@0: (-moz-windows-default-theme) and (-moz-os-version: windows-win7) { michael@0: *|*:root { michael@0: color: #000; michael@0: background-color: #CCD9EA; michael@0: } michael@0: } michael@0: michael@0: @media (-moz-windows-glass) { michael@0: *|*:root { michael@0: /* Blame shorlander for this monstrosity. */ michael@0: background-image: /* Side gradients */ michael@0: linear-gradient(to right, michael@0: rgba(255,255,255,0.2), rgba(255,255,255,0) 40%, michael@0: rgba(255,255,255,0) 60%, rgba(255,255,255,0.2)), michael@0: /* Aero-style light beams */ michael@0: -moz-linear-gradient(left 32deg, michael@0: /* First light beam */ michael@0: rgba(255,255,255,0) 19.5%, rgba(255,255,255,0.1) 20%, michael@0: rgba(255,255,255,0.1) 21.5%, rgba(255,255,255,0.2) 22%, michael@0: rgba(255,255,255,0.2) 25.5%, rgba(255,255,255,0.1) 26%, michael@0: rgba(255,255,255,0.1) 27.5%, rgba(255,255,255,0) 28%, michael@0: /* Second light beam */ michael@0: rgba(255,255,255,0) 49.5%, rgba(255,255,255,0.1) 50%, michael@0: rgba(255,255,255,0.1) 52.5%, rgba(255,255,255,0.2) 53%, michael@0: rgba(255,255,255,0.2) 54.5%, rgba(255,255,255,0.1) 55%, michael@0: rgba(255,255,255,0.1) 57.5%, rgba(255,255,255,0) 58%, michael@0: /* Third light beam */ michael@0: rgba(255,255,255,0) 87%, rgba(255,255,255,0.2) 90%), michael@0: /* Texture */ michael@0: url("chrome://global/skin/inContentUI/background-texture.png"); michael@0: } michael@0: } michael@0: %endif michael@0: michael@0: /* Content */ michael@0: *|*.main-content { michael@0: /* Needed to allow the radius to clip the inner content, see bug 595656 */ michael@0: overflow: hidden; michael@0: background-color: rgba(255, 255, 255, 0.35); michael@0: background-image: linear-gradient(rgba(255, 255, 255, 0), michael@0: rgba(255, 255, 255, 0.75)); michael@0: border: 1px solid #C3CEDF; 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: *|*.main-content { michael@0: border-radius: 5px; michael@0: } michael@0: %ifdef WINDOWS_AERO michael@0: } michael@0: michael@0: @media (-moz-windows-glass) { michael@0: /* Buttons */ michael@0: *|button, michael@0: menulist, michael@0: colorpicker[type="button"] { michael@0: -moz-appearance: none; michael@0: color: black; michael@0: padding: 0 5px; michael@0: background: linear-gradient(rgba(251, 252, 253, 0.95), rgba(246, 247, 248, 0) 49%, michael@0: rgba(211, 212, 213, 0.45) 51%, rgba(225, 226, 229, 0.3)); michael@0: background-clip: padding-box; michael@0: border-radius: 3px; michael@0: border: 1px solid rgba(31, 64, 100, 0.4); michael@0: border-top-color: rgba(31, 64, 100, 0.3); michael@0: box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset, michael@0: 0 0 2px 1px rgba(255, 255, 255, 0.25) inset; michael@0: } michael@0: michael@0: menulist { michael@0: -moz-padding-end: 0; michael@0: } michael@0: michael@0: colorpicker[type="button"]:-moz-focusring:not([open="true"]) > .colorpicker-button-colorbox { michael@0: outline: 1px dotted ThreeDDarkShadow; michael@0: } michael@0: michael@0: html|button[disabled], michael@0: button[disabled="true"], michael@0: menulist[disabled="true"], michael@0: colorpicker[type="button"][disabled="true"] { michael@0: -moz-border-top-colors: rgba(31, 64, 100, 0.3) !important; michael@0: -moz-border-right-colors: rgba(31, 64, 100, 0.4) !important; michael@0: -moz-border-bottom-colors: rgba(31, 64, 100, 0.4) !important; michael@0: -moz-border-left-colors: rgba(31, 64, 100, 0.4) !important; michael@0: opacity: 0.8; michael@0: color: #505050; michael@0: } michael@0: michael@0: html|button:not([disabled]):active:hover, michael@0: button:not([disabled="true"]):active:hover, michael@0: menulist[open="true"]:not([disabled="true"]), michael@0: colorpicker[type="button"][open="true"]:not([disabled="true"]) { michael@0: background-color: rgba(61, 76, 92, 0.2); michael@0: border-color: rgba(39, 53, 68, 0.5); michael@0: box-shadow: 0 0 3px 1px rgba(39, 53, 68, 0.2) inset; michael@0: } michael@0: michael@0: button > .button-box { michael@0: padding: 1px !important; michael@0: } michael@0: michael@0: spinbuttons > .spinbuttons-box > .spinbuttons-button { michael@0: border-radius: 0; michael@0: padding: 0 4px; michael@0: } michael@0: michael@0: spinbuttons > .spinbuttons-box > .spinbuttons-up { michael@0: list-style-image: url("chrome://global/skin/arrow/arrow-up.gif"); michael@0: border-bottom-width: 0; michael@0: } michael@0: michael@0: spinbuttons > .spinbuttons-box > .spinbuttons-down { michael@0: list-style-image: url("chrome://global/skin/arrow/arrow-dn.gif"); michael@0: } michael@0: } michael@0: %endif michael@0: michael@0: colorpicker[type="button"] { michael@0: margin: 1px 5px 2px 5px; michael@0: padding: 3px; michael@0: height: 25px; michael@0: }