PageRenderTime 25ms CodeModel.GetById 33ms RepoModel.GetById 0ms app.codeStats 1ms

/thunderbird-14.0/comm-release/mozilla/toolkit/themes/gnomestripe/global/tree.css

#
CSS | 392 lines | 258 code | 78 blank | 56 comment | 0 complexity | d54de20c7c91a0338b1240c86aaab36a MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, JSON, LGPL-3.0, AGPL-1.0, CC-BY-SA-3.0, LGPL-2.1, BSD-3-Clause, GPL-2.0, Apache-2.0, 0BSD, MIT
  1. /* ***** BEGIN LICENSE BLOCK *****
  2. * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  3. *
  4. * The contents of this file are subject to the Mozilla Public License Version
  5. * 1.1 (the "License"); you may not use this file except in compliance with
  6. * the License. You may obtain a copy of the License at
  7. * http://www.mozilla.org/MPL/
  8. *
  9. * Software distributed under the License is distributed on an "AS IS" basis,
  10. * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  11. * for the specific language governing rights and limitations under the
  12. * License.
  13. *
  14. * The Original Code is Mozilla Communicator client code, released
  15. * March 31, 1998.
  16. *
  17. * The Initial Developer of the Original Code is
  18. * Netscape Communications Corporation.
  19. * Portions created by the Initial Developer are Copyright (C) 1998-2001
  20. * the Initial Developer. All Rights Reserved.
  21. *
  22. * Contributor(s):
  23. * Joe Hewitt (hewitt@netscape.com)
  24. *
  25. * Alternatively, the contents of this file may be used under the terms of
  26. * either the GNU General Public License Version 2 or later (the "GPL"), or
  27. * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  28. * in which case the provisions of the GPL or the LGPL are applicable instead
  29. * of those above. If you wish to allow use of your version of this file only
  30. * under the terms of either the GPL or the LGPL, and not to allow others to
  31. * use your version of this file under the terms of the MPL, indicate your
  32. * decision by deleting the provisions above and replace them with the notice
  33. * and other provisions required by the GPL or the LGPL. If you do not delete
  34. * the provisions above, a recipient may use your version of this file under
  35. * the terms of any one of the MPL, the GPL or the LGPL.
  36. *
  37. * ***** END LICENSE BLOCK ***** */
  38. /* ===== tree.css ===================================================
  39. == Styles used by the XUL outline element.
  40. ======================================================================= */
  41. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  42. /* ::::: tree ::::: */
  43. tree {
  44. margin: 0px 4px;
  45. border: 2px solid;
  46. -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow;
  47. -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow;
  48. -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow;
  49. -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow;
  50. background-color: -moz-Field;
  51. color: -moz-FieldText;
  52. -moz-appearance: listbox;
  53. }
  54. /* ::::: tree focusring ::::: */
  55. .focusring > .tree-stack > .tree-rows > .tree-bodybox {
  56. border: 1px solid transparent;
  57. }
  58. .focusring:focus > .tree-stack > .tree-rows > .tree-bodybox {
  59. border: 1px solid #000000;
  60. }
  61. /* ::::: tree rows ::::: */
  62. treechildren::-moz-tree-row {
  63. border: 1px solid transparent;
  64. min-height: 18px;
  65. height: 1.3em;
  66. }
  67. treechildren:not(.autocomplete-treebody)::-moz-tree-row(multicol, odd) {
  68. background-color: -moz-oddtreerow;
  69. }
  70. treechildren:not(.autocomplete-treebody)::-moz-tree-row(selected) {
  71. background-color: -moz-cellhighlight;
  72. }
  73. treechildren:not(.autocomplete-treebody)::-moz-tree-row(selected, focus) {
  74. background-color: Highlight;
  75. }
  76. treechildren::-moz-tree-row(current, focus) {
  77. border: 1px dotted Highlight;
  78. }
  79. treechildren::-moz-tree-row(selected, current, focus) {
  80. border: 1px dotted #F3D982;
  81. }
  82. tree[seltype="cell"] > treechildren::-moz-tree-row,
  83. tree[seltype="text"] > treechildren::-moz-tree-row {
  84. border: none;
  85. background-color: transparent;
  86. }
  87. /* ::::: tree cells ::::: */
  88. treechildren::-moz-tree-cell {
  89. padding: 0px 2px 0px 2px;
  90. }
  91. tree[seltype="cell"] > treechildren::-moz-tree-cell-text,
  92. tree[seltype="text"] > treechildren::-moz-tree-cell-text,
  93. treechildren::-moz-tree-cell-text {
  94. color: inherit;
  95. }
  96. treechildren::-moz-tree-cell-text(selected) {
  97. color: -moz-cellhighlighttext;
  98. }
  99. tree[seltype="cell"] > treechildren::-moz-tree-cell {
  100. border: 1px solid transparent;
  101. padding: 0px 1px 0px 1px;
  102. }
  103. tree[seltype="text"] > treechildren::-moz-tree-cell-text {
  104. border: 1px solid transparent;
  105. padding: 0px 1px 1px 1px;
  106. }
  107. tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected) {
  108. background-color: -moz-cellhighlight;
  109. }
  110. tree[seltype="cell"] > treechildren::-moz-tree-cell-text(active, selected) {
  111. color: -moz-cellhighlighttext;
  112. }
  113. tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected) {
  114. background-color: -moz-cellhighlight;
  115. color: -moz-cellhighlighttext;
  116. }
  117. treechildren::-moz-tree-cell-text(selected, focus) {
  118. color: HighlightText;
  119. }
  120. tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected, focus) {
  121. background-color: Highlight;
  122. }
  123. tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected, focus) {
  124. background-color: Highlight;
  125. }
  126. tree[seltype="cell"] > treechildren::-moz-tree-cell-text(active, selected, focus) {
  127. color: HighlightText;
  128. }
  129. tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected, focus) {
  130. color: HighlightText;
  131. }
  132. tree[seltype="cell"] > treechildren::-moz-tree-cell(active, current, focus) {
  133. border: 1px dotted #000000;
  134. }
  135. tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, current, focus) {
  136. border: 1px dotted #000000;
  137. }
  138. tree[seltype="cell"] > treechildren::-moz-tree-cell(active, selected, current, focus) {
  139. border: 1px dotted #C0C0C0;
  140. }
  141. tree[seltype="text"] > treechildren::-moz-tree-cell-text(active, selected, current, focus) {
  142. border: 1px dotted #C0C0C0;
  143. }
  144. /* ::::: lines connecting cells ::::: */
  145. tree[seltype="cell"] > treechildren::-moz-tree-line,
  146. tree[seltype="text"] > treechildren::-moz-tree-line,
  147. treechildren::-moz-tree-line {
  148. border: 1px dotted ThreeDShadow;
  149. }
  150. tree[seltype="cell"] > treechildren::-moz-tree-line(active, selected, focus),
  151. treechildren::-moz-tree-line(selected, focus) {
  152. border: 1px dotted HighlightText;
  153. }
  154. /* ::::: tree separator ::::: */
  155. treechildren::-moz-tree-separator {
  156. border-top: 1px solid ThreeDShadow;
  157. border-bottom: 1px solid ThreeDHighlight;
  158. }
  159. /* ::::: drop feedback ::::: */
  160. tree[seltype="cell"] > treechildren::-moz-tree-cell-text(primary, dropOn),
  161. tree[seltype="text"] > treechildren::-moz-tree-cell-text(primary, dropOn),
  162. treechildren::-moz-tree-cell-text(primary, dropOn) {
  163. background-color: Highlight;
  164. color: HighlightText;
  165. }
  166. treechildren::-moz-tree-drop-feedback {
  167. background-color: Highlight;
  168. width: 50px;
  169. height: 2px;
  170. -moz-margin-start: 5px;
  171. }
  172. /* ::::: tree progress meter ::::: */
  173. treechildren::-moz-tree-progressmeter {
  174. margin: 2px 4px;
  175. padding: 1px;
  176. border: 1px solid;
  177. border-top-color: ThreeDShadow;
  178. border-right-color: ThreeDHighlight;
  179. border-bottom-color: ThreeDHighlight;
  180. border-left-color: ThreeDShadow;
  181. background-color: -moz-Dialog;
  182. color: ThreeDShadow;
  183. }
  184. treechildren::-moz-tree-progressmeter(progressUndetermined) {
  185. list-style-image: url("chrome://global/skin/progressmeter/progressmeter-busy.gif");
  186. }
  187. treechildren::-moz-tree-cell-text(progressmeter) {
  188. margin: 2px 4px;
  189. }
  190. /* ::::: tree columns ::::: */
  191. treecol,
  192. treecolpicker {
  193. -moz-appearance: treeheadercell;
  194. -moz-box-align: center;
  195. -moz-box-pack: center;
  196. border: 2px solid;
  197. -moz-border-top-colors: ThreeDHighlight ThreeDLightShadow;
  198. -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
  199. -moz-border-bottom-colors: ThreeDDarkShadow ThreeDShadow;
  200. -moz-border-left-colors: ThreeDHighlight ThreeDLightShadow;
  201. background-color: -moz-Dialog;
  202. color: -moz-DialogText;
  203. padding: 0px 2px;
  204. }
  205. treecol:hover,
  206. treecolpicker:hover {
  207. color: -moz-buttonhovertext;
  208. }
  209. .treecol-image {
  210. padding: 0px 1px;
  211. }
  212. .treecol-text {
  213. margin: 0px !important;
  214. }
  215. treecol[hideheader="true"] {
  216. -moz-appearance: none;
  217. border: none;
  218. padding: 0;
  219. }
  220. /* ..... internal box ..... */
  221. treecol:hover:active,
  222. treecolpicker:hover:active {
  223. color: ButtonText;
  224. border: 2px solid;
  225. -moz-border-top-colors: ThreeDShadow -moz-Dialog;
  226. -moz-border-right-colors: ThreeDShadow transparent;
  227. -moz-border-bottom-colors: ThreeDShadow transparent;
  228. -moz-border-left-colors: ThreeDShadow -moz-Dialog;
  229. padding-top: 0px;
  230. padding-bottom: 0px;
  231. -moz-padding-start: 3px;
  232. -moz-padding-end: 1px;
  233. }
  234. .treecol-image:hover:active {
  235. padding: 0px;
  236. -moz-padding-start: 2px;
  237. }
  238. treecol:hover:active .treecol-text {
  239. margin: 1px 0px -1px 0px !important;
  240. }
  241. /* ::::: column drag and drop styles ::::: */
  242. treecol[dragging="true"] {
  243. -moz-border-top-colors: ThreeDDarkShadow transparent !important;
  244. -moz-border-right-colors: ThreeDDarkShadow transparent!important;
  245. -moz-border-bottom-colors: ThreeDDarkShadow transparent !important;
  246. -moz-border-left-colors: ThreeDDarkShadow transparent !important;
  247. background-color: ThreeDShadow !important;
  248. color: ThreeDHighlight !important;
  249. }
  250. treecol[insertafter="true"]:-moz-locale-dir(ltr),
  251. treecol[insertbefore="true"]:-moz-locale-dir(rtl) {
  252. -moz-border-right-colors: ThreeDDarkShadow ThreeDShadow;
  253. }
  254. treecol[insertafter="true"]:-moz-locale-dir(rtl),
  255. treecol[insertbefore="true"]:-moz-locale-dir(ltr) {
  256. -moz-border-left-colors: ThreeDDarkShadow ThreeDShadow;
  257. }
  258. treechildren::-moz-tree-column(insertbefore) {
  259. -moz-border-start: 1px solid ThreeDShadow;
  260. }
  261. treechildren::-moz-tree-column(insertafter) {
  262. -moz-border-end: 1px solid ThreeDShadow;
  263. }
  264. /* ::::: sort direction indicator ::::: */
  265. .treecol-sortdirection {
  266. -moz-appearance: treeheadersortarrow;
  267. }
  268. /* ::::: column picker ::::: */
  269. .tree-columnpicker-icon {
  270. list-style-image: url("chrome://global/skin/tree/columnpicker.gif");
  271. }
  272. /* ::::: twisty ::::: */
  273. treechildren::-moz-tree-twisty {
  274. -moz-appearance: treetwisty;
  275. -moz-padding-end: 4px;
  276. padding-top: 1px;
  277. width: 9px; /* The image's width is 9 pixels */
  278. list-style-image: url("chrome://global/skin/tree/twisty-clsd.png");
  279. }
  280. treechildren::-moz-tree-twisty(open) {
  281. -moz-appearance: treetwistyopen;
  282. width: 9px; /* The image's width is 9 pixels */
  283. list-style-image: url("chrome://global/skin/tree/twisty-open.png");
  284. }
  285. treechildren::-moz-tree-indentation {
  286. width: 18px;
  287. }
  288. /* ::::: gridline style ::::: */
  289. treechildren.gridlines::-moz-tree-cell {
  290. border-right: 1px solid transparent !important;
  291. border-bottom: 1px solid transparent !important;
  292. }
  293. treechildren.gridlines::-moz-tree-row {
  294. border: none;
  295. }
  296. /* ::::: editable tree ::::: */
  297. treechildren::-moz-tree-row(selected, editing) {
  298. background-color: transparent;
  299. border: none;
  300. }
  301. treechildren::-moz-tree-cell-text(selected, editing) {
  302. color: inherit;
  303. }
  304. .tree-input {
  305. -moz-appearance: none;
  306. border: 1px solid Highlight;
  307. -moz-border-top-colors: Highlight;
  308. -moz-border-bottom-colors: Highlight;
  309. -moz-border-left-colors: Highlight;
  310. -moz-border-right-colors: Highlight;
  311. margin: 0;
  312. -moz-margin-start: -4px;
  313. padding: 1px;
  314. }