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: /* ===== button.css ===================================================== michael@0: == Styles used by the XUL button element. michael@0: ======================================================================= */ michael@0: michael@0: @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); michael@0: michael@0: /* :::::::::: button :::::::::: */ michael@0: michael@0: button { michael@0: -moz-appearance: button; michael@0: margin: 1px 5px 2px 5px; michael@0: min-width: 6.3em; michael@0: border: 3px solid; michael@0: -moz-border-top-colors: transparent ThreeDHighlight ThreeDLightShadow; michael@0: -moz-border-right-colors: transparent ThreeDDarkShadow ThreeDShadow; michael@0: -moz-border-bottom-colors: transparent ThreeDDarkShadow ThreeDShadow; michael@0: -moz-border-left-colors: transparent ThreeDHighlight ThreeDLightShadow; michael@0: background-color: ThreeDFace; michael@0: color: ButtonText; michael@0: text-shadow: none; michael@0: } michael@0: michael@0: .button-box { michael@0: border: 1px solid transparent; michael@0: padding-top: 1px; michael@0: padding-bottom: 2px; michael@0: -moz-padding-start: 3px; michael@0: -moz-padding-end: 4px; michael@0: } michael@0: michael@0: .button-text { michael@0: margin: 0 !important; michael@0: text-align: center; michael@0: } michael@0: michael@0: /* .......... focused state .......... */ michael@0: michael@0: button:focus { michael@0: -moz-border-top-colors: ThreeDDarkShadow ThreeDHighlight transparent; michael@0: -moz-border-right-colors: ThreeDDarkShadow ThreeDDarkShadow ThreeDShadow; michael@0: -moz-border-bottom-colors: ThreeDDarkShadow ThreeDDarkShadow ThreeDShadow; michael@0: -moz-border-left-colors: ThreeDDarkShadow ThreeDHighlight transparent; michael@0: } michael@0: michael@0: button:-moz-focusring > .button-box { michael@0: border: 1px dotted ThreeDDarkShadow; michael@0: } michael@0: michael@0: /* .......... default state .......... */ michael@0: michael@0: button[default="true"] { michael@0: -moz-border-top-colors: ThreeDDarkShadow ThreeDHighlight ThreeDLightShadow; michael@0: -moz-border-right-colors: ThreeDDarkShadow ThreeDDarkShadow ThreeDShadow; michael@0: -moz-border-bottom-colors: ThreeDDarkShadow ThreeDDarkShadow ThreeDShadow; michael@0: -moz-border-left-colors: ThreeDDarkShadow ThreeDHighlight ThreeDLightShadow; michael@0: } michael@0: michael@0: /* .......... active/open/checked state .......... */ michael@0: michael@0: button:hover:active, michael@0: button[open="true"], michael@0: button[checked="true"] { michael@0: -moz-border-top-colors: ThreeDDarkShadow ThreeDShadow transparent; michael@0: -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow transparent; michael@0: -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow transparent; michael@0: -moz-border-left-colors: ThreeDDarkShadow ThreeDShadow transparent; michael@0: } michael@0: michael@0: button:hover:active > .button-box:-moz-system-metric(windows-classic), michael@0: button[open="true"] > .button-box:-moz-system-metric(windows-classic), michael@0: button[checked="true"] > .button-box:-moz-system-metric(windows-classic) { michael@0: padding-top: 2px; michael@0: padding-bottom: 1px; michael@0: -moz-padding-start: 4px; michael@0: -moz-padding-end: 3px; michael@0: } michael@0: michael@0: /* .......... disabled state .......... */ michael@0: michael@0: button[disabled="true"] { michael@0: -moz-border-top-colors: transparent ThreeDHighlight ThreeDLightShadow !important; michael@0: -moz-border-right-colors: transparent ThreeDDarkShadow ThreeDShadow !important; michael@0: -moz-border-bottom-colors: transparent ThreeDDarkShadow ThreeDShadow !important; michael@0: -moz-border-left-colors: transparent ThreeDHighlight ThreeDLightShadow !important; michael@0: color: GrayText; michael@0: } michael@0: michael@0: button[disabled="true"]:-moz-system-metric(windows-classic) { michael@0: color: ThreeDShadow; michael@0: text-shadow: 1px 1px ThreeDHighlight; michael@0: } michael@0: michael@0: button[disabled="true"] > .button-box { michael@0: padding-top: 1px !important; michael@0: padding-bottom: 2px !important; michael@0: -moz-padding-start: 3px !important; michael@0: -moz-padding-end: 4px !important; michael@0: } michael@0: michael@0: /* ::::: menu/menu-button buttons ::::: */ michael@0: michael@0: button[type="menu-button"] { michael@0: margin: 0; michael@0: border: none; michael@0: } michael@0: michael@0: .button-menu-dropmarker, michael@0: .button-menubutton-dropmarker { michael@0: -moz-appearance: none !important; michael@0: margin: 1px; michael@0: background-color: transparent; michael@0: border: none; michael@0: width: 11px; michael@0: height: 11px; michael@0: } michael@0: michael@0: .button-menubutton-dropmarker[open="true"] { michael@0: margin-top: 2px; michael@0: margin-bottom: 0px; michael@0: -moz-margin-start: 2px; michael@0: -moz-margin-end: 0px; michael@0: } michael@0: michael@0: /* ::::: plain buttons ::::: */ michael@0: michael@0: button.plain { michael@0: border: 0px !important; michael@0: margin: 0px !important; michael@0: padding: 0px !important; michael@0: } michael@0: michael@0: button[type="disclosure"] { michael@0: border: 0px !important; michael@0: margin: 0px !important; michael@0: padding: 0px !important; michael@0: -moz-appearance: none; michael@0: list-style-image: url("chrome://global/skin/tree/twisty-clsd.png"); michael@0: min-width: 0px !important; michael@0: background-color: transparent; michael@0: } michael@0: michael@0: button[type="disclosure"][open="true"] { michael@0: list-style-image: url("chrome://global/skin/tree/twisty-open.png"); michael@0: }