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: border: 2px solid; michael@0: -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow; michael@0: -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow; michael@0: -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow; michael@0: -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow; michael@0: background-color: -moz-Field; michael@0: color: -moz-FieldText; michael@0: text-shadow: none; michael@0: } michael@0: michael@0: .menulist-label-box { michael@0: -moz-box-align: center; michael@0: -moz-box-pack: center; michael@0: margin: 1px; michael@0: border: 1px solid transparent; michael@0: background-color: transparent; michael@0: color: inherit; michael@0: } michael@0: michael@0: .menulist-icon[src] { michael@0: margin: 0px 2px 0px 2px; michael@0: } michael@0: michael@0: .menulist-label { michael@0: margin-top: 0 !important; michael@0: -moz-margin-end: 0 !important; michael@0: margin-bottom: 0 !important; michael@0: -moz-margin-start: 1px !important; 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: /* ..... dropmarker ..... */ michael@0: michael@0: menulist[disabled="true"]:hover:active > .menulist-dropmarker { michael@0: -moz-border-top-colors: ThreeDLightShadow ThreeDHighlight; michael@0: -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow; michael@0: -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow; michael@0: -moz-border-left-colors: ThreeDLightShadow ThreeDHighlight; michael@0: padding: 1px; michael@0: } michael@0: michael@0: menulist:hover:active > .menulist-dropmarker { michael@0: -moz-border-top-colors: ThreeDShadow ThreeDFace; michael@0: -moz-border-right-colors: ThreeDShadow ThreeDFace; michael@0: -moz-border-bottom-colors: ThreeDShadow ThreeDFace; michael@0: -moz-border-left-colors: ThreeDShadow ThreeDFace; michael@0: padding-top: 2px; michael@0: padding-bottom: 0px; michael@0: -moz-padding-start: 2px; michael@0: -moz-padding-end: 0px; michael@0: } michael@0: michael@0: /* ..... focused state ..... */ michael@0: michael@0: menulist:focus:not([open="true"]):not(.menulist-compact) > .menulist-label-box { michael@0: background-color: Highlight; michael@0: color: HighlightText; michael@0: } michael@0: michael@0: menulist:-moz-focusring:not([open="true"]) > .menulist-label-box { michael@0: border: 1px dotted #F5DB95; michael@0: } michael@0: michael@0: /* ..... disabled state ..... */ michael@0: michael@0: menulist[disabled="true"] { michael@0: background-color: -moz-Dialog; michael@0: color: GrayText; michael@0: } michael@0: michael@0: /* ::::: editable menulists ::::: */ michael@0: michael@0: .menulist-editable-box { 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: html|*.menulist-editable-input { michael@0: margin: 0px !important; michael@0: border: none !important; michael@0: padding: 0px !important; michael@0: background: inherit; michael@0: font: inherit; 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: -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 > .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:-moz-focusring:not([open="true"]) > .menulist-label-box { michael@0: border: 1px dotted; michael@0: }