home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / CMCD0404.ISO / Software / Complet / thunderbird / chrome / qute.jar / skin / classic / global / listbox.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2002-09-24  |  4.1 KB  |  152 lines

  1. /*
  2.  * The contents of this file are subject to the Netscape Public
  3.  * License Version 1.1 (the "License"); you may not use this file
  4.  * except in compliance with the License. You may obtain a copy of
  5.  * the License at http://www.mozilla.org/NPL/
  6.  *
  7.  * Software distributed under the License is distributed on an "AS
  8.  * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  9.  * implied. See the License for the specific language governing
  10.  * rights and limitations under the License.
  11.  *
  12.  * The Original Code is Mozilla Communicator client code, released
  13.  * March 31, 1998.
  14.  *
  15.  * The Initial Developer of the Original Code is Netscape
  16.  * Communications Corporation. Portions created by Netscape are
  17.  * Copyright (C) 1998-2001 Netscape Communications Corporation. All
  18.  * Rights Reserved.
  19.  *
  20.  * Contributor(s):
  21.  *   Joe Hewitt (hewitt@netscape.com)
  22.  */
  23.  
  24. /* ===== listbox.css =======================================================
  25.   == Styles used by XUL listbox-related elements.
  26.   ======================================================================= */
  27.  
  28. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  29.  
  30. /* ::::: listbox ::::: */
  31.  
  32. listbox {
  33.   -moz-appearance: listbox;
  34.   margin: 2px 4px;
  35.   border: 2px solid;
  36.   -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow;
  37.   -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow;
  38.   -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow;
  39.   -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow;
  40.   background-color: -moz-Field;
  41.   color: -moz-FieldText;
  42. }
  43.  
  44. /* ::::: listitem ::::: */
  45.  
  46. listitem {
  47.   border: 1px solid transparent;
  48. }
  49.  
  50. listbox:focus > listitem[selected="true"][current="true"] {
  51.   border: 1px dotted #F5DB95;
  52. }
  53.  
  54. listitem[selected="true"] {
  55.   background-color: -moz-Dialog;
  56.   color: -moz-DialogText;
  57. }
  58.  
  59. listbox:focus > listitem[selected="true"] {
  60.   background-color: Highlight;
  61.   color: HighlightText;
  62. }
  63.  
  64. /* ::::: listheader ::::: */
  65.  
  66. listheader { 
  67.   -moz-appearance: treeheadercell;
  68.   -moz-box-align: center;
  69.   border: 2px solid;
  70.   -moz-border-top-colors: ThreeDHighlight ThreeDLightShadow;
  71.   -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
  72.   -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
  73.   -moz-border-left-colors: ThreeDHighlight ThreeDLightShadow;
  74.   background-color: -moz-Dialog;
  75.   color: -moz-DialogText;
  76.   padding: 0 4px;
  77. }
  78.  
  79. listheader[sortable="true"]:hover:active {
  80.   border-top: 2px solid;
  81.   border-right: 1px solid;
  82.   border-bottom: 1px solid;
  83.   border-left: 2px solid;
  84.   -moz-border-top-colors: ThreeDShadow -moz-Dialog;
  85.   -moz-border-right-colors: ThreeDShadow;
  86.   -moz-border-bottom-colors: ThreeDShadow;
  87.   -moz-border-left-colors: ThreeDShadow -moz-Dialog;
  88.   padding: 1px 4px 0 5px;
  89. }
  90.  
  91. .listheader-icon {
  92.   margin-right: 2px;
  93. }
  94.  
  95. .listheader-label {
  96.   margin: 0px !important;
  97. }
  98.  
  99. /* ..... sort direction icon ..... */
  100.  
  101. .listheader-sortdirection {
  102.   list-style-image: none;
  103. }
  104.  
  105. .listheader-sortdirection[sortDirection="ascending"] {
  106.   list-style-image: url("chrome://global/skin/tree/sort-asc.gif");
  107. }
  108.  
  109. .listheader-sortdirection[sortDirection="descending"] {
  110.   list-style-image: url("chrome://global/skin/tree/sort-dsc.gif");
  111. }
  112.  
  113. /* ::::: listcell ::::: */
  114.  
  115. .listcell-label {
  116.   margin: 0px !important;
  117.   padding: 0px 0px 1px 4px;
  118.   white-space: nowrap;
  119. }
  120.  
  121. .listcell-icon {
  122.   margin-right: 2px;
  123. }
  124.  
  125. .listcell-label[disabled="true"] {
  126.   color: GrayText;
  127. }
  128.  
  129. /* ::::: listcell checkbox ::::: */
  130.  
  131. .listcell-check {
  132.   -moz-appearance: checkbox;
  133.   -moz-box-align: center;
  134.   margin: 0px 2px;
  135.   border: 1px solid -moz-DialogText;
  136.   min-width: 13px;
  137.   min-height: 13px;
  138.   background: -moz-Field no-repeat 50% 50%;
  139. }
  140.  
  141. .listcell-check[checked="true"] {
  142.   background-image: url("chrome://global/skin/checkbox/cbox-check.gif");
  143. }
  144.  
  145. .listcell-check[disabled="true"] {
  146.   border-color: GrayText;
  147.   background-image: url("chrome://global/skin/checkbox/cbox-dis.gif");
  148. }
  149.  
  150. .listcell-check[disabled="true"][checked="true"] {
  151.   background-image: url("chrome://global/skin/checkbox/cbox-check-dis.gif");
  152. }