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 / tree.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2003-12-06  |  6.4 KB  |  266 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. /* ===== tree.css ===================================================
  26.   == Styles used by the XUL outline element.
  27.   ======================================================================= */
  28.  
  29. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  30.  
  31. /* ::::: tree ::::: */
  32.  
  33. tree {
  34.   margin: 0px 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. /* ::::: tree rows ::::: */
  46.  
  47. treechildren:-moz-tree-row {
  48.   border: 1px solid transparent;
  49.   min-height: 18px;
  50.   height: 1.3em;
  51. }
  52.  
  53. treechildren:-moz-tree-row(selected) {
  54.   background-color: -moz-Dialog;
  55. }
  56.  
  57. treechildren:-moz-tree-row(selected, focus) {
  58.   background-color: Highlight;
  59. }
  60.  
  61. treechildren:-moz-tree-row(current, focus) {
  62.   border: 1px dotted #000000;
  63. }
  64.  
  65. treechildren:-moz-tree-row(selected, current, focus) {
  66.   border: 1px dotted #C0C0C0;
  67. }
  68.  
  69. /* ::::: tree cells ::::: */
  70.  
  71. treechildren:-moz-tree-cell {
  72.   padding: 0px 2px 0px 2px;
  73. }
  74.  
  75. treechildren:-moz-tree-cell-text {
  76.   color: inherit;
  77. }
  78.  
  79. treechildren:-moz-tree-cell-text(selected) {
  80.   color: -moz-DialogText;
  81. }
  82.  
  83. treechildren:-moz-tree-cell-text(selected, focus) {
  84.   color: HighlightText;
  85. }
  86.  
  87.  
  88. /* ::::: lines connecting cells ::::: */
  89.  
  90. treechildren:-moz-tree-line {
  91.   border: 1px dotted ThreeDShadow;
  92. }
  93.  
  94. treechildren:-moz-tree-line(selected, focus) {
  95.   border: 1px dotted HighlightText;
  96. }
  97.  
  98.  
  99. /* ::::: tree separator ::::: */
  100.  
  101. treechildren:-moz-tree-separator {
  102.   border-top: 1px solid ThreeDShadow;
  103.   border-bottom: 1px solid ThreeDHighlight;
  104. }
  105.  
  106.  
  107. /* ::::: drop feedback ::::: */
  108.  
  109. treechildren:-moz-tree-cell-text(primary, dropOn) {
  110.   background-color: Highlight;
  111.   color: HighlightText;
  112. }
  113.  
  114. treechildren:-moz-tree-drop-feedback {
  115.   background-color: Highlight;
  116.   width: 50px;
  117.   height: 2px;
  118.   margin-left: 5px;
  119. }
  120.  
  121. /* ::::: tree progress meter ::::: */
  122.  
  123. treechildren:-moz-tree-progressmeter {
  124.   margin: 2px 4px;
  125.   border: 2px solid;
  126.   -moz-border-top-colors: ThreeDShadow -moz-Dialog;
  127.   -moz-border-right-colors: ThreeDHighlight -moz-Dialog;
  128.   -moz-border-bottom-colors: ThreeDHighlight -moz-Dialog;
  129.   -moz-border-left-colors: ThreeDShadow -moz-Dialog;
  130.   background-color: -moz-Dialog;
  131.   color: ThreeDShadow;
  132. }
  133.  
  134. treechildren:-moz-tree-progressmeter(progressUndetermined) {
  135.   list-style-image: url("chrome://global/skin/progressmeter/progressmeter-busy.gif");
  136. }
  137.  
  138. treechildren:-moz-tree-cell-text(progressmeter) {
  139.   margin: 2px 4px;
  140. }
  141.  
  142. /* ::::: tree columns ::::: */
  143.  
  144. treecol,
  145. treecolpicker { 
  146.   -moz-appearance: treeheadercell;
  147.   -moz-box-align: center;
  148.   -moz-box-pack: center;
  149.   border: 2px solid;
  150.   -moz-border-top-colors: ThreeDHighlight ThreeDLightShadow;
  151.   -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
  152.   -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
  153.   -moz-border-left-colors: ThreeDHighlight ThreeDLightShadow;
  154.   background-color: -moz-Dialog;
  155.   color: -moz-DialogText;
  156.   padding: 0px 4px;
  157. }
  158.  
  159. .treecol-image {
  160.   padding: 0px 1px;
  161. }
  162.  
  163. .treecol-text {
  164.   margin: 0px !important;
  165. }
  166.  
  167. treecol[hideheader="true"] {
  168.   -moz-appearance: none;
  169.   border: none;
  170.   padding: 0;
  171. }
  172.  
  173. /* ..... internal box ..... */
  174.  
  175. treecol:hover:active,
  176. treecolpicker:hover:active {
  177.   border-top: 2px solid;
  178.   border-right: 1px solid;
  179.   border-bottom: 1px solid;
  180.   border-left: 2px solid;
  181.   -moz-border-top-colors: ThreeDShadow -moz-Dialog;
  182.   -moz-border-right-colors: ThreeDShadow;
  183.   -moz-border-bottom-colors: ThreeDShadow;
  184.   -moz-border-left-colors: ThreeDShadow -moz-Dialog;
  185.   padding: 1px 4px 0px 5px;
  186. }
  187.  
  188. .treecol-image:hover:active {
  189.   padding: 1px 1px 0px 2px;
  190. }
  191.  
  192. /* ::::: column drag and drop styles ::::: */
  193.  
  194. treecol[dragging="true"] {
  195.   -moz-border-top-colors: ThreeDDarkShadow transparent !important;
  196.   -moz-border-right-colors: ThreeDDarkShadow transparent!important;
  197.   -moz-border-bottom-colors: ThreeDDarkShadow transparent !important;
  198.   -moz-border-left-colors: ThreeDDarkShadow transparent !important;
  199.   background-color: ThreeDShadow !important;
  200.   color: ThreeDHighlight !important;
  201. }
  202.  
  203. treecol[insertafter="true"] {
  204.   -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
  205. }
  206.  
  207. treecol[insertbefore="true"] {
  208.   -moz-border-left-colors: ThreeDDarkShadow ThreeDShadow;
  209. }
  210.  
  211. treechildren:-moz-tree-column(insertbefore) {
  212.   border-left: 1px solid ThreeDShadow;
  213. }
  214.  
  215. treechildren:-moz-tree-column(insertafter) {
  216.   border-right: 1px solid ThreeDShadow;
  217. }
  218.  
  219. /* ::::: sort direction indicator :::::  */
  220.  
  221. .treecol-sortdirection {
  222.   list-style-image: none;
  223. }
  224.  
  225. .treecol-sortdirection[sortDirection="ascending"] {
  226.   list-style-image: url("chrome://global/skin/tree/sort-asc.gif");
  227. }
  228.  
  229. .treecol-sortdirection[sortDirection="descending"] {
  230.   list-style-image: url("chrome://global/skin/tree/sort-dsc.gif");
  231. }
  232.  
  233. /* ::::: column picker :::::  */
  234.  
  235. .tree-columnpicker-icon {
  236.   list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
  237. }
  238.  
  239. /* ::::: twisty :::::  */
  240.  
  241. treechildren:-moz-tree-twisty {
  242.   padding-right: 3px;
  243.   width: 9px; /* The image's width is 9 pixels */
  244.   list-style-image: url("chrome://global/skin/tree/twisty-clsd.gif");
  245. }
  246.  
  247. treechildren:-moz-tree-twisty(open) {
  248.   width: 9px; /* The image's width is 9 pixels */
  249.   list-style-image: url("chrome://global/skin/tree/twisty-open.gif");
  250. }
  251.  
  252. treechildren:-moz-tree-indentation {
  253.   width: 16px;
  254. }
  255.  
  256. /* ::::: gridline style ::::: */
  257.  
  258. treechildren.gridlines:-moz-tree-cell {
  259.   border-right: 1px solid GrayText;
  260.   border-bottom: 1px solid GrayText;
  261. }
  262.  
  263. treechildren.gridlines:-moz-tree-row {
  264.   border: none;
  265. }
  266.