home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 January / 01_02.iso / software / netscape62win / browser.xpi / bin / chrome / modern.jar / skin / modern / global / tree.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2001-08-01  |  5.8 KB  |  238 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. /* ===== tree.css =======================================================
  25.   == Styles used by XUL tree-related elements.
  26.   ======================================================================= */
  27.  
  28. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  29.  
  30. /* ::::: tree ::::: */
  31.  
  32. tree {
  33.   border: none;
  34.   border-spacing: 0px;
  35.   background-color: #FFFFFF;
  36. }
  37.  
  38. tree.inset {
  39.   margin: 2px 4px;
  40.   border-top: 1px solid #BEC3D3 !important;
  41.   border-right: 1px solid #F8FAFE !important;
  42.   border-bottom: 1px solid #F8FAFE !important;
  43.   border-left: 1px solid #BEC3D3 !important;
  44. }
  45.  
  46. tree.inset > .tree-container-treerows {
  47.   border: 1px solid #5D616E;
  48. }
  49.  
  50. /* ::::: treeitem ::::: */
  51.  
  52. treeitem {
  53.   list-style-image: none;
  54. }
  55.  
  56. /* ::::: treerow ::::: */
  57.  
  58. treerow {
  59.   border-right: 1px solid transparent;
  60.   border-left: 1px solid transparent;
  61. }
  62.  
  63. treeitem[selected="true"] > treerow {
  64.   background-color: #C7D0D9;
  65.   color: #000000;
  66. }
  67.  
  68. tree:focus > treechildren treeitem[selected="true"] > treerow,
  69. treeitem[dd-dropon="true"] > treerow {
  70.   background-color: #424F63;
  71.   color: #FFFFFF;
  72. }
  73.  
  74. treehead > treeitem > treerow,
  75. treehead > treerow {
  76.   border: none;
  77. }
  78.  
  79. /* :::::: treecell ::::: */
  80.  
  81. treecell { 
  82.   border-top: 1px solid transparent;
  83.   border-bottom: 1px solid transparent;
  84.   padding: 0px 0px 1px 2px;
  85.   white-space: nowrap;
  86.  
  87. tree:focus > treechildren treeitem[selected="true"][current="true"] > treerow > treecell {
  88.   border-top-color: #000000;
  89.   border-bottom-color: #000000;
  90. }
  91.  
  92. /* ::::: iconic treecell ::::: */
  93.  
  94. .tree-cell-icon,
  95. .tree-cell-primary-icon,
  96. .tree-cell-primary-icon-inline-edit-folder {
  97.   padding-right: 2px;
  98.   list-style-image: inherit;
  99. }
  100.  
  101. .treecell-indent > .tree-cell-primary-icon {
  102.   padding-left: 14px;
  103. }
  104.  
  105. treeitem[container="true"] > treerow > .treecell-indent > .tree-cell-primary-icon {
  106.   padding-left: 0px;
  107. }
  108.  
  109. /* :::::: header treecell ::::: */
  110.  
  111. .treecell-header,
  112. .treecell-inset-header,
  113. .treecell-header-image { 
  114.   border-left: 1px solid #EEF0F3;
  115.   border-top: 1px solid #EEF0F3;
  116.   border-right: 1px solid #63676B;
  117.   border-bottom: 1px solid #63676B;
  118.   padding: 0px;
  119.   background-color: #C7D0D9;
  120.   color: #000000;
  121. }
  122.  
  123. .treecell-header-box,
  124. .treecell-header-image-box {
  125.   border-left: 1px solid #C7D0D9;
  126.   border-top: 1px solid #C7D0D9;
  127.   border-right: 1px solid #A5ABB0;
  128.   border-bottom: 1px solid #A5ABB0;
  129. }  
  130.   
  131. .treecell-header-box {
  132.   padding: 0px 4px 0px 4px;
  133. }
  134.  
  135. .treecell-header-image-box {
  136.   padding: 0px 1px 0px 1px;
  137. }
  138.  
  139. .treecell-header:hover:active,
  140. .treecell-header-image:hover:active,
  141. .treecell-inset-header:hover:active {
  142.   border: 1px solid #A5ABB0 !important;
  143. }
  144.  
  145. .treecell-header:hover:active > .treecell-header-box,
  146. .treecell-inset-header:hover:active > .treecell-header-box,
  147. .treecell-header-image:hover:active > .treecell-header-image-box {
  148.   border-top: 1px solid transparent;
  149.   border-right: none;
  150.   border-bottom: none;
  151.   border-left: 1px solid transparent;
  152. }
  153.  
  154. .treecell-header:hover:active > .treecell-header-box,
  155. .treecell-inset-header:hover:active > .treecell-header-box {
  156.   padding: 1px 4px 0px 5px;
  157. }
  158.  
  159. .treecell-header:hover:active > .treecell-header-box,
  160. .treecell-inset-header:hover:active > .treecell-header-box {
  161.   padding: 1px 4px 0px 5px;
  162. }
  163.  
  164. .treecell-header-image:hover:active > .treecell-header-image-box {
  165.   padding: 1px 1px 0px 2px;
  166. }
  167.  
  168. .treecell-image {
  169.   padding: 0px;
  170. }
  171.  
  172. /* ::::: property list treecell ::::: */
  173.  
  174. treecell.propertylist {
  175.   border-right: 1px solid #CCCCCC;
  176.   border-bottom: 1px solid #CCCCCC;
  177.   padding-left: 5px;
  178. }
  179.  
  180. /* ::::: treecell-editable ::::: */
  181.  
  182. treerow[mode="inline-edit"] {
  183.   background-color: transparent !important;
  184. }
  185.  
  186. treerow[mode="inline-edit"] > .treecell-editable {
  187.   border: none;
  188. }
  189.  
  190. .inline-edit-cell-box {
  191.   margin-left: 2px;
  192. }
  193.  
  194. .inline-edit-cell-box[mode="edit"] {
  195.   margin-left: 0px;
  196. }
  197.  
  198. /* ::::: twisty ::::: */
  199.  
  200. .tree-cell-twisty {
  201.   -moz-user-focus: ignore;
  202.   padding-right: 2px;
  203.   list-style-image: url("chrome://global/skin/tree/twisty-clsd.gif");
  204. }
  205.  
  206. treeitem[container="true"][open="true"] > treerow > treecell > .tree-cell-twisty {
  207.   list-style-image: url("chrome://global/skin/tree/twisty-open.gif");
  208. }
  209.  
  210. .tree-cell-twisty[disabled="true"] {
  211.   list-style-image: none;
  212. }
  213.  
  214. treeitem[empty="true"] > treerow > treecell > .tree-cell-twisty {               
  215.   visibility: hidden;
  216. }    
  217.  
  218. /* ::::: sort direction indicator ::::: */
  219.  
  220. .tree-header-sortdirection {
  221.   list-style-image: none;
  222. }
  223.  
  224. .sortDirectionIndicator[sortDirection="ascending"] > .treecell-header-box > .tree-header-sortdirection {
  225.   list-style-image: url("chrome://global/skin/tree/sort-asc.gif");
  226. }
  227.  
  228. .sortDirectionIndicator[sortDirection="descending"] > .treecell-header-box > .tree-header-sortdirection {
  229.   list-style-image: url("chrome://global/skin/tree/sort-dsc.gif");
  230. }
  231.  
  232. /* ::::: column picker ::::: */
  233.  
  234. .treecell-popup-icon {
  235.   list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
  236. }
  237.