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