home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 April / Chip_2004-04_cd1.bin / tema / mozilla / skin / MozCurveBlue-1.4-0.99.jar / global / listbox.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2003-12-06  |  4.0 KB  |  157 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.  *   Dean Tessman (dean_tessman@hotmail.com)
  23.  */
  24.  
  25. /* ===== listbox.css =======================================================
  26.   == Styles used by XUL listbox-related elements.
  27.   ======================================================================= */
  28.  
  29. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  30.  
  31. /* ::::: listbox ::::: */
  32.  
  33. 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.   -moz-appearance: listbox;
  43. }
  44.  
  45. /* ::::: listitem ::::: */
  46.  
  47. listitem {
  48.   border: 1px solid transparent;
  49. }
  50.  
  51. listbox:focus > listitem[current="true"] {
  52.   border: 1px dotted #000000;
  53. }
  54.  
  55. listbox:focus > listitem[current="true"][selected="true"] {
  56.   border: 1px dotted #C0C0C0;
  57. }
  58.  
  59. listitem[selected="true"] {
  60.   background-color: -moz-Dialog;
  61.   color: -moz-DialogText;
  62. }
  63.  
  64. listbox:focus > listitem[selected="true"] {
  65.   background-color: Highlight;
  66.   color: HighlightText;
  67. }
  68.  
  69. /* ::::: listheader ::::: */
  70.  
  71. listheader { 
  72.   -moz-appearance: treeheadercell;
  73.   -moz-box-align: center;
  74.   border: 2px solid;
  75.   -moz-border-top-colors: ThreeDHighlight ThreeDLightShadow;
  76.   -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
  77.   -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
  78.   -moz-border-left-colors: ThreeDHighlight ThreeDLightShadow;
  79.   background-color: -moz-Dialog;
  80.   color: -moz-DialogText;
  81.   padding: 0 4px;
  82. }
  83.  
  84. listheader[sortable="true"]:hover:active {
  85.   border-top: 2px solid;
  86.   border-right: 1px solid;
  87.   border-bottom: 1px solid;
  88.   border-left: 2px solid;
  89.   -moz-border-top-colors: ThreeDShadow -moz-Dialog;
  90.   -moz-border-right-colors: ThreeDShadow;
  91.   -moz-border-bottom-colors: ThreeDShadow;
  92.   -moz-border-left-colors: ThreeDShadow -moz-Dialog;
  93.   padding: 1px 4px 0 5px;
  94. }
  95.  
  96. .listheader-icon {
  97.   margin-right: 2px;
  98. }
  99.  
  100. .listheader-label {
  101.   margin: 0px !important;
  102. }
  103.  
  104. /* ..... sort direction icon ..... */
  105.  
  106. .listheader-sortdirection {
  107.   list-style-image: none;
  108. }
  109.  
  110. .listheader-sortdirection[sortDirection="ascending"] {
  111.   list-style-image: url("chrome://global/skin/tree/sort-asc.gif");
  112. }
  113.  
  114. .listheader-sortdirection[sortDirection="descending"] {
  115.   list-style-image: url("chrome://global/skin/tree/sort-dsc.gif");
  116. }
  117.  
  118. /* ::::: listcell ::::: */
  119.  
  120. .listcell-label {
  121.   margin: 0px !important;
  122.   padding: 0px 0px 1px 4px;
  123.   white-space: nowrap;
  124. }
  125.  
  126. .listcell-icon {
  127.   margin-right: 2px;
  128. }
  129.  
  130. .listcell-label[disabled="true"] {
  131.   color: GrayText;
  132. }
  133.  
  134. /* ::::: listcell checkbox ::::: */
  135.  
  136. .listcell-check {
  137.   -moz-appearance: checkbox;
  138.   -moz-box-align: center;
  139.   margin: 0px 2px;
  140.   border: 1px solid -moz-DialogText;
  141.   min-width: 13px;
  142.   min-height: 13px;
  143.   background: -moz-Field no-repeat 50% 50%;
  144. }
  145.  
  146. .listcell-check[checked="true"] {
  147.   background-image: url("chrome://global/skin/checkbox/cbox-check.gif");
  148. }
  149.  
  150. .listcell-check[disabled="true"] {
  151.   border-color: GrayText;
  152.   background-image: url("chrome://global/skin/checkbox/cbox-dis.gif");
  153. }
  154.  
  155. .listcell-check[disabled="true"][checked="true"] {
  156.   background-image: url("chrome://global/skin/checkbox/cbox-check-dis.gif");
  157. }