home *** CD-ROM | disk | FTP | other *** search
- /*
- * The contents of this file are subject to the Netscape Public
- * License Version 1.1 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.mozilla.org/NPL/
- *
- * Software distributed under the License is distributed on an "AS
- * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
- * implied. See the License for the specific language governing
- * rights and limitations under the License.
- *
- * The Original Code is Mozilla Communicator client code, released
- * March 31, 1998.
- *
- * The Initial Developer of the Original Code is Netscape
- * Communications Corporation. Portions created by Netscape are
- * Copyright (C) 1998-2001 Netscape Communications Corporation. All
- * Rights Reserved.
- *
- * Contributor(s):
- * Joe Hewitt (hewitt@netscape.com)
- * Alex W. (Charamel) <lucx@shaw.ca>
- */
-
- /* ===== listbox.css =======================================================
- == Styles used by XUL listbox-related elements.
- ======================================================================= */
-
- @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
-
- /* ::::: listbox ::::: */
-
- listbox {
- margin: 2px 4px;
- border-style: solid;
- background:url("chrome://global/skin/listbox/listbox-background.png") top left repeat-x #FBF8F3;
- border-width:0px 1px 3px 1px;
- -moz-border-radius:2px;
- -moz-border-left-colors: #DAD0C0;
- -moz-border-right-colors: #DAD0C0;
- -moz-border-bottom-colors:#E1D8C9 #DAD0C0 #BBAF9D;
- color: -moz-FieldText;
- }
-
- listbox[disabled="true"] {
- -moz-opacity:0.5;
- }
-
-
- /* ::::: listitem ::::: */
-
- listitem {
- border: 1px solid transparent;
- }
-
- /*focus rectangle*/
- /*
- listbox:focus > listitem[selected="true"][current="true"] {
- border:1px solid #66C3F0;
- }*/
-
-
- /*Selected*/
- listbox:focus > listitem[selected="true"] {
- background-color: #1D81CD;
- color: white;
- }
-
- /*Selected but not focused*/
- listitem[selected="true"] {
- background-color: #E7D8CA;
- color: black;
- }
-
-
-
- /* ::::: listheader ::::: */
-
- listheader {
- -moz-box-align: center;
- background: url("chrome://global/skin/tree/header.png") repeat-x #E7D9C7;
- border-right:1px solid #D8C7B3;
- border-left:1px solid #EFE7DC;
- border-bottom:1px solid #C2B8A9;
- padding: 0 4px;
- }
-
- listheader[sortable="true"]:hover:active {
- background:url("chrome://global/skin/tree/header-active.png") repeat-x;
- }
-
- .listheader-icon {
- margin-right: 2px;
- }
-
- .listheader-label {
- margin: 0px !important;
- }
-
- /* ..... sort direction icon ..... */
-
- .listheader-sortdirection {
- list-style-image: none;
- }
-
- .listheader-sortdirection[sortDirection="ascending"] {
- list-style-image: url("chrome://global/skin/tree/sorter-up.png");
- }
-
- .listheader-sortdirection[sortDirection="descending"] {
- list-style-image: url("chrome://global/skin/tree/sorter-down.png");
- }
-
- /* ::::: listcell ::::: */
-
- .listcell-label {
- margin: 0px !important;
- padding: 0px 0px 1px 4px;
- white-space: nowrap;
- }
-
- .listcell-icon {
- margin-right: 2px;
- }
-
- .listcell-label[disabled="true"] {
- color: #B49D86;
- }
-
- /* ::::: listcell checkbox ::::: */
-
- .listcell-check {
- list-style-image: url("chrome://global/skin/checkbox/checkbox.png");
- -moz-image-region:rect(0px 18px 18px 0px);
- }
-
- .listcell-check[checked="true"] {
- -moz-image-region:rect(0px 36px 18px 18px);
- }
-
- /*selected & focused list check*/
- listbox:focus listitem[selected] .listcell-check[checked]{
- -moz-image-region:rect(54px 36px 72px 18px);
- }
-
- .listcell-check[disabled="true"] {
- -moz-opacity:0.3;
- }
-
- .listcell-check[disabled="true"][checked="true"] {
- -moz-opacity:0.3;
- }