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: /* ===== menulist.css =================================================== michael@0: == Styles used by the XUL menulist element. michael@0: ====================================================================== */ 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: /* :::::::::: menulist :::::::::: */ michael@0: michael@0: menulist { michael@0: -moz-appearance: menulist; michael@0: margin: 2px 4px; michael@0: color: -moz-DialogText; michael@0: font: menu; michael@0: text-shadow: none; michael@0: } michael@0: michael@0: .menulist-label-box { michael@0: -moz-appearance: menulist-text; michael@0: -moz-box-align: center; michael@0: -moz-box-pack: center; michael@0: color: inherit; michael@0: } michael@0: michael@0: .menulist-label { michael@0: margin: 1px 3px !important; michael@0: } michael@0: michael@0: .menulist-dropmarker { michael@0: display: none; michael@0: } michael@0: michael@0: menulist:hover { michael@0: color: -moz-buttonhovertext; michael@0: } michael@0: michael@0: menulist:hover:active, michael@0: menulist[open="true"] { michael@0: color: ButtonText; michael@0: } michael@0: michael@0: menulist[disabled="true"], michael@0: menulist[disabled="true"]:hover, michael@0: menulist[disabled="true"]:hover:active { michael@0: color: GrayText; michael@0: } michael@0: michael@0: .menulist-description { michael@0: font-style: italic; michael@0: color: GrayText; michael@0: -moz-margin-start: 1ex !important; michael@0: } michael@0: michael@0: /* ::::: editable menulists ::::: */ michael@0: michael@0: menulist[editable="true"] { michael@0: -moz-appearance: none; michael@0: color: -moz-FieldText; michael@0: } michael@0: michael@0: .menulist-editable-box { michael@0: -moz-appearance: menulist-textfield; michael@0: padding-top: 3px; michael@0: padding-bottom: 3px; michael@0: -moz-padding-start: 2px; michael@0: -moz-padding-end: 0px; michael@0: } michael@0: michael@0: menulist[editable="true"] > .menulist-dropmarker { michael@0: display: -moz-box; michael@0: -moz-appearance: menulist-button; michael@0: } michael@0: michael@0: html|*.menulist-editable-input { michael@0: margin: 0px !important; michael@0: border: none !important; michael@0: padding: 0px !important; michael@0: font: inherit; michael@0: } michael@0: michael@0: michael@0: /* ::::: compact menulists ::::: */ michael@0: michael@0: .menulist-compact { michael@0: -moz-appearance: none; michael@0: -moz-box-align: center; michael@0: -moz-box-pack: center; michael@0: margin: 0; michael@0: border: 2px solid; michael@0: -moz-border-top-colors: ThreeDHighlight ThreeDLightShadow; michael@0: -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow; michael@0: -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow; michael@0: -moz-border-left-colors: ThreeDHighlight ThreeDLightShadow; michael@0: background-color: ThreeDFace; michael@0: color: ButtonText; michael@0: list-style-image: url("chrome://global/skin/arrow/arrow-dn.gif"); michael@0: } michael@0: michael@0: .menulist-compact:hover { michael@0: color: ButtonText; michael@0: } michael@0: michael@0: .menulist-compact > .menulist-label-box > .menulist-label { michael@0: margin: 0 3px !important; michael@0: text-align: end; michael@0: } michael@0: michael@0: .menulist-compact > .menulist-label-box > .menulist-icon { michael@0: -moz-margin-start: 2px; michael@0: } michael@0: michael@0: .menulist-compact[open="true"] { michael@0: -moz-border-top-colors: ThreeDDarkShadow ThreeDShadow; michael@0: -moz-border-right-colors: ThreeDDarkShadow ThreeDHighlight; michael@0: -moz-border-bottom-colors: ThreeDDarkShadow ThreeDHighlight; michael@0: -moz-border-left-colors: ThreeDDarkShadow ThreeDShadow; michael@0: } michael@0: michael@0: .menulist-compact[disabled="true"] { michael@0: list-style-image: url("chrome://global/skin/arrow/arrow-dn-dis.gif"); michael@0: } michael@0: michael@0: .menulist-compact > .menulist-label-box, michael@0: .menulist-compact[open="true"]:focus > .menulist-label-box { michael@0: border: 1px solid transparent; michael@0: -moz-appearance: none; michael@0: } michael@0: michael@0: .menulist-compact:focus > .menulist-label-box { michael@0: border: 1px dotted; michael@0: }