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: %include shared.inc 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-image: /* Texture */ michael@0: url("chrome://global/skin/inContentUI/background-texture.png"), michael@0: /* Gradient */ michael@0: linear-gradient(#ADB5C2, #BFC6D1); michael@0: } michael@0: michael@0: html|html { michael@0: font: message-box; michael@0: } 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-image: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0.05)); michael@0: border: 1px solid rgba(50, 65, 92, 0.4); michael@0: border-radius: 5px; michael@0: } michael@0: michael@0: /* Buttons */ michael@0: *|button, michael@0: menulist, michael@0: colorpicker[type="button"] { michael@0: -moz-appearance: none; michael@0: padding: 1px 4px; michael@0: min-width: 60px; michael@0: border-radius: 3px; michael@0: border: 1px solid rgba(60,73,97,0.5); michael@0: box-shadow: inset 0 1px rgba(255,255,255,0.25), 0 1px rgba(255,255,255,0.25); michael@0: background-color: transparent; michael@0: background-image: linear-gradient(rgba(255,255,255,0.45), rgba(255,255,255,0.2)); michael@0: background-clip: padding-box; michael@0: color: #252F3B; michael@0: text-shadow: @loweredShadow@; michael@0: } michael@0: michael@0: button:-moz-focusring > .button-box, michael@0: menulist:-moz-focusring:not([open="true"]) > .menulist-label-box, michael@0: colorpicker[type="button"]:-moz-focusring:not([open="true"]) > .colorpicker-button-colorbox { michael@0: outline: 1px dotted #252F3B; 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: 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: box-shadow: inset 0 1px 3px rgba(0,0,0,.2), 0 1px rgba(255,255,255,0.25); michael@0: background-image: linear-gradient(rgba(45,54,71,0.3), rgba(45,54,71,0.1)); michael@0: border-color: rgba(60,73,97,0.7); michael@0: } michael@0: michael@0: menulist { michael@0: -moz-padding-end: 0; michael@0: margin-left: 5px; michael@0: margin-right: 5px; michael@0: } michael@0: michael@0: /* Tweak margins so the focus ring is in the right place. */ michael@0: menulist > .menulist-label-box { michael@0: -moz-margin-end: 3px; michael@0: margin-top: 1px; michael@0: } michael@0: michael@0: menulist > .menulist-label-box > .menulist-label { michael@0: margin-top: 0px !important; michael@0: margin-bottom: 0px !important; michael@0: } michael@0: michael@0: menulist > .menulist-dropmarker { michael@0: -moz-appearance: none; michael@0: display: -moz-box; michael@0: background: transparent; michael@0: border: none; michael@0: -moz-border-start: 1px solid rgba(60,73,97,0.5); michael@0: margin-top: -1px; michael@0: margin-bottom: -1px; michael@0: } michael@0: michael@0: colorpicker[type="button"] { michael@0: margin: 1px 5px 2px 5px; michael@0: padding: 3px; michael@0: height: 25px; michael@0: } michael@0: michael@0: spinbuttons { michael@0: -moz-appearance: none; michael@0: } michael@0: michael@0: spinbuttons > .spinbuttons-box > .spinbuttons-button { michael@0: min-width: 12px; michael@0: } michael@0: michael@0: .spinbuttons-button > .button-box > .button-text { michael@0: display: none; michael@0: } michael@0: michael@0: .spinbuttons-button[disabled="true"] > .button-box > .button-icon { michael@0: opacity: 0.5; 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: border-bottom-left-radius: 0; michael@0: border-bottom-right-radius: 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: border-top-left-radius: 0; michael@0: border-top-right-radius: 0; michael@0: }