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