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: /* ===== listbox.css ======================================================= michael@0: == Styles used by XUL listbox-related elements. michael@0: ======================================================================= */ michael@0: michael@0: @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); michael@0: michael@0: /* ::::: listbox ::::: */ michael@0: michael@0: listbox { michael@0: -moz-appearance: listbox; 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: } michael@0: michael@0: listbox[disabled="true"] { michael@0: color: GrayText; michael@0: } michael@0: michael@0: /* ::::: listitem ::::: */ michael@0: michael@0: listitem { michael@0: border: 1px solid transparent; michael@0: } michael@0: michael@0: listbox:focus > listitem[selected="true"][current="true"] { michael@0: outline: 1px dotted #F3D982; michael@0: } michael@0: michael@0: listbox:focus > listitem[current="true"] { michael@0: outline: 1px dotted Highlight; michael@0: outline-offset: -1px; michael@0: } michael@0: michael@0: listitem[selected="true"] { michael@0: background-color: -moz-cellhighlight; michael@0: color: -moz-cellhighlighttext; michael@0: } michael@0: michael@0: listbox:focus > listitem[selected="true"] { michael@0: background-color: Highlight; michael@0: color: HighlightText; michael@0: } michael@0: michael@0: /* ::::: listheader ::::: */ michael@0: michael@0: listheader { michael@0: -moz-appearance: treeheadercell; michael@0: -moz-box-align: center; 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: -moz-Dialog; michael@0: color: -moz-DialogText; michael@0: padding: 0 2px; michael@0: } michael@0: michael@0: listheader:hover { michael@0: color: -moz-buttonhovertext; michael@0: } michael@0: michael@0: listheader[sortable="true"]:hover:active { michael@0: color: ButtonText; michael@0: border: 2px solid; michael@0: -moz-border-top-colors: ThreeDShadow -moz-Dialog; michael@0: -moz-border-right-colors: ThreeDShadow transparent; michael@0: -moz-border-bottom-colors: ThreeDShadow transparent; michael@0: -moz-border-left-colors: ThreeDShadow -moz-Dialog; michael@0: padding-top: 0px; michael@0: padding-bottom: 0px; michael@0: -moz-padding-start: 3px; michael@0: -moz-padding-end: 1px; michael@0: } michael@0: michael@0: .listheader-icon { michael@0: -moz-margin-end: 2px; michael@0: } michael@0: michael@0: .listheader-icon[sortable="true"]:hover:active { michael@0: -moz-margin-end: 1px; michael@0: } michael@0: michael@0: .listheader-label { michael@0: margin: 0px !important; michael@0: } michael@0: michael@0: /* ..... sort direction icon ..... */ michael@0: michael@0: .listheader-sortdirection { michael@0: -moz-appearance: treeheadersortarrow; michael@0: } michael@0: michael@0: /* ::::: listcell ::::: */ michael@0: michael@0: .listcell-label { michael@0: margin: 0px !important; michael@0: padding-top: 0px; michael@0: padding-bottom: 1px; michael@0: -moz-padding-start: 4px; michael@0: -moz-padding-end: 0px; michael@0: white-space: nowrap; michael@0: } michael@0: michael@0: .listcell-icon { michael@0: -moz-margin-end: 2px; michael@0: } michael@0: michael@0: .listcell-label[disabled="true"] { michael@0: color: GrayText; michael@0: } michael@0: michael@0: /* ::::: listcell checkbox ::::: */ michael@0: michael@0: .listcell-check { michael@0: -moz-appearance: checkbox; michael@0: -moz-box-align: center; michael@0: margin: 0px 2px; michael@0: border: 1px solid -moz-DialogText; michael@0: min-width: 13px; michael@0: min-height: 13px; michael@0: background: -moz-Field no-repeat 50% 50%; michael@0: }