1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/themes/linux/global/listbox.css Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,133 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +/* ===== listbox.css ======================================================= 1.9 + == Styles used by XUL listbox-related elements. 1.10 + ======================================================================= */ 1.11 + 1.12 +@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); 1.13 + 1.14 +/* ::::: listbox ::::: */ 1.15 + 1.16 +listbox { 1.17 + -moz-appearance: listbox; 1.18 + margin: 2px 4px; 1.19 + border: 2px solid; 1.20 + -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow; 1.21 + -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow; 1.22 + -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow; 1.23 + -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow; 1.24 + background-color: -moz-Field; 1.25 + color: -moz-FieldText; 1.26 +} 1.27 + 1.28 +listbox[disabled="true"] { 1.29 + color: GrayText; 1.30 +} 1.31 + 1.32 +/* ::::: listitem ::::: */ 1.33 + 1.34 +listitem { 1.35 + border: 1px solid transparent; 1.36 +} 1.37 + 1.38 +listbox:focus > listitem[selected="true"][current="true"] { 1.39 + outline: 1px dotted #F3D982; 1.40 +} 1.41 + 1.42 +listbox:focus > listitem[current="true"] { 1.43 + outline: 1px dotted Highlight; 1.44 + outline-offset: -1px; 1.45 +} 1.46 + 1.47 +listitem[selected="true"] { 1.48 + background-color: -moz-cellhighlight; 1.49 + color: -moz-cellhighlighttext; 1.50 +} 1.51 + 1.52 +listbox:focus > listitem[selected="true"] { 1.53 + background-color: Highlight; 1.54 + color: HighlightText; 1.55 +} 1.56 + 1.57 +/* ::::: listheader ::::: */ 1.58 + 1.59 +listheader { 1.60 + -moz-appearance: treeheadercell; 1.61 + -moz-box-align: center; 1.62 + border: 2px solid; 1.63 + -moz-border-top-colors: ThreeDHighlight ThreeDLightShadow; 1.64 + -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow; 1.65 + -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow; 1.66 + -moz-border-left-colors: ThreeDHighlight ThreeDLightShadow; 1.67 + background-color: -moz-Dialog; 1.68 + color: -moz-DialogText; 1.69 + padding: 0 2px; 1.70 +} 1.71 + 1.72 +listheader:hover { 1.73 + color: -moz-buttonhovertext; 1.74 +} 1.75 + 1.76 +listheader[sortable="true"]:hover:active { 1.77 + color: ButtonText; 1.78 + border: 2px solid; 1.79 + -moz-border-top-colors: ThreeDShadow -moz-Dialog; 1.80 + -moz-border-right-colors: ThreeDShadow transparent; 1.81 + -moz-border-bottom-colors: ThreeDShadow transparent; 1.82 + -moz-border-left-colors: ThreeDShadow -moz-Dialog; 1.83 + padding-top: 0px; 1.84 + padding-bottom: 0px; 1.85 + -moz-padding-start: 3px; 1.86 + -moz-padding-end: 1px; 1.87 +} 1.88 + 1.89 +.listheader-icon { 1.90 + -moz-margin-end: 2px; 1.91 +} 1.92 + 1.93 +.listheader-icon[sortable="true"]:hover:active { 1.94 + -moz-margin-end: 1px; 1.95 +} 1.96 + 1.97 +.listheader-label { 1.98 + margin: 0px !important; 1.99 +} 1.100 + 1.101 +/* ..... sort direction icon ..... */ 1.102 + 1.103 +.listheader-sortdirection { 1.104 + -moz-appearance: treeheadersortarrow; 1.105 +} 1.106 + 1.107 +/* ::::: listcell ::::: */ 1.108 + 1.109 +.listcell-label { 1.110 + margin: 0px !important; 1.111 + padding-top: 0px; 1.112 + padding-bottom: 1px; 1.113 + -moz-padding-start: 4px; 1.114 + -moz-padding-end: 0px; 1.115 + white-space: nowrap; 1.116 +} 1.117 + 1.118 +.listcell-icon { 1.119 + -moz-margin-end: 2px; 1.120 +} 1.121 + 1.122 +.listcell-label[disabled="true"] { 1.123 + color: GrayText; 1.124 +} 1.125 + 1.126 +/* ::::: listcell checkbox ::::: */ 1.127 + 1.128 +.listcell-check { 1.129 + -moz-appearance: checkbox; 1.130 + -moz-box-align: center; 1.131 + margin: 0px 2px; 1.132 + border: 1px solid -moz-DialogText; 1.133 + min-width: 13px; 1.134 + min-height: 13px; 1.135 + background: -moz-Field no-repeat 50% 50%; 1.136 +}