home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 114 / CDRom114.iso / internet / temathun / Charamel.jar / global / listbox.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2004-07-31  |  3.6 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.  *   Alex W. (Charamel) <lucx@shaw.ca>
  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-style: solid;
  36. background:url("chrome://global/skin/listbox/listbox-background.png") top left repeat-x #FBF8F3;
  37. border-width:0px 1px 3px 1px;
  38. -moz-border-radius:2px;
  39. -moz-border-left-colors:  #DAD0C0;
  40. -moz-border-right-colors:  #DAD0C0;
  41. -moz-border-bottom-colors:#E1D8C9 #DAD0C0 #BBAF9D;
  42. color: -moz-FieldText;
  43. }
  44.  
  45. listbox[disabled="true"] {
  46. -moz-opacity:0.5;
  47. }
  48.  
  49.  
  50. /* ::::: listitem ::::: */
  51.  
  52. listitem {
  53.   border: 1px solid transparent;
  54. }
  55.  
  56. /*focus rectangle*/
  57. /*
  58. listbox:focus > listitem[selected="true"][current="true"] {
  59. border:1px solid #66C3F0;    
  60. }*/
  61.  
  62.  
  63. /*Selected*/
  64. listbox:focus > listitem[selected="true"] {
  65.   background-color: #1D81CD;
  66.   color: white;
  67. }
  68.  
  69. /*Selected but not focused*/
  70. listitem[selected="true"] {
  71.   background-color: #E7D8CA;
  72.   color: black;
  73. }
  74.  
  75.  
  76.  
  77. /* ::::: listheader ::::: */
  78.  
  79. listheader { 
  80. -moz-box-align: center;
  81. background: url("chrome://global/skin/tree/header.png") repeat-x #E7D9C7;
  82. border-right:1px solid #D8C7B3;
  83. border-left:1px solid #EFE7DC;
  84. border-bottom:1px solid #C2B8A9;
  85. padding: 0 4px;
  86. }
  87.  
  88. listheader[sortable="true"]:hover:active {
  89. background:url("chrome://global/skin/tree/header-active.png") repeat-x;
  90. }
  91.  
  92. .listheader-icon {
  93.   margin-right: 2px;
  94. }
  95.  
  96. .listheader-label {
  97.   margin: 0px !important;
  98. }
  99.  
  100. /* ..... sort direction icon ..... */
  101.  
  102. .listheader-sortdirection {
  103.   list-style-image: none;
  104. }
  105.  
  106. .listheader-sortdirection[sortDirection="ascending"] {
  107.   list-style-image: url("chrome://global/skin/tree/sorter-up.png");
  108. }
  109.  
  110. .listheader-sortdirection[sortDirection="descending"] {
  111.   list-style-image: url("chrome://global/skin/tree/sorter-down.png");
  112. }
  113.  
  114. /* ::::: listcell ::::: */
  115.  
  116. .listcell-label {
  117.   margin: 0px !important;
  118.   padding: 0px 0px 1px 4px;
  119.   white-space: nowrap;
  120. }
  121.  
  122. .listcell-icon {
  123.   margin-right: 2px;
  124. }
  125.  
  126. .listcell-label[disabled="true"] {
  127.   color: #B49D86;
  128. }
  129.  
  130. /* ::::: listcell checkbox ::::: */
  131.  
  132. .listcell-check {
  133. list-style-image: url("chrome://global/skin/checkbox/checkbox.png");
  134. -moz-image-region:rect(0px 18px 18px 0px);
  135. }
  136.  
  137. .listcell-check[checked="true"] {
  138. -moz-image-region:rect(0px 36px 18px 18px);
  139. }
  140.  
  141. /*selected & focused list check*/
  142. listbox:focus listitem[selected] .listcell-check[checked]{
  143. -moz-image-region:rect(54px 36px 72px 18px);
  144. }
  145.  
  146. .listcell-check[disabled="true"] {
  147. -moz-opacity:0.3;
  148. }
  149.  
  150. .listcell-check[disabled="true"][checked="true"] {
  151. -moz-opacity:0.3;
  152. }