Tree.css 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. /* Tree
  2. *
  3. * Styling Tree mostly means styling the TreeRow (dijitTreeRow)
  4. * There are 4 basic states to style:
  5. *
  6. * Tree Row:
  7. * 1. tree row (default styling):
  8. * .dijitTreeRow - styles for each row of the tree
  9. *
  10. * 2. hovered tree row (mouse hover on a tree row)
  11. * .dijitTreeRowHover - styles when mouse over on one row
  12. *
  13. * 3. active tree row (mouse down on a tree row)
  14. * .dijitTreeRowActive - styles when mouse down on one row
  15. *
  16. * 4. selected tree row
  17. * dijitTreeRowSelected - style when the row has been selected
  18. *
  19. * Tree Expando:
  20. * dijitTreeExpando - the expando at the left of the text of each tree row
  21. *
  22. * Drag and Drop on TreeNodes: (insert line on dijitTreeContent node so it'll aligned w/ target element)
  23. * .dijitTreeNode .dojoDndItemBefore/.dojoDndItemAfter - use border style simulate a separate line
  24. */
  25. .claro .dijitTreeNode {
  26. zoom: 1;
  27. /* force layout on IE (TODO: may not be needed anymore) */
  28. }
  29. .claro .dijitTreeIsRoot {
  30. background-image: none;
  31. }
  32. /* Styling for basic tree node (unhovered, unselected)
  33. * Also use this styling when dropping between items on the tree (in other words, don't
  34. * use hover effect)
  35. */
  36. .claro .dijitTreeRow, .claro .dijitTreeNode .dojoDndItemBefore, .claro .dijitTreeNode .dojoDndItemAfter {
  37. /* so insert line shows up on IE when dropping after a target element */
  38. padding: 4px 1px 2px 0;
  39. margin: 0 1px;
  40. /* replaced by border for selected/hovered row */
  41. background-color: none;
  42. background-color: transparent;
  43. background-color: rgba(171, 214, 255, 0);
  44. background-image: url("images/commonHighlight.png");
  45. background-position: 0 0;
  46. background-repeat: repeat-x;
  47. border-color: rgba(118, 157, 192, 0);
  48. border-width: 0;
  49. -webkit-transition-property: background-color, border-color;
  50. -moz-transition-property: background-color, border-color;
  51. transition-property: background-color, border-color;
  52. -webkit-transition-duration: 0.25s;
  53. -moz-transition-duration: 0.25s;
  54. transition-duration: 0.25s;
  55. -webkit-transition-timing-function: ease-out;
  56. -moz-transition-timing-function: ease-out;
  57. transition-timing-function: ease-out;
  58. }
  59. .dj_ie6 .claro .dijitTreeRow {
  60. background-image: none;
  61. }
  62. .claro .dijitTreeRowSelected {
  63. background-repeat: repeat-x;
  64. background-color: #cfe5fa;
  65. padding: 3px 0 1px;
  66. margin: 0;
  67. border: solid 1px #769dc0;
  68. color: #000000;
  69. }
  70. .claro .dijitTreeRowHover {
  71. background-color: #abd6ff;
  72. padding: 3px 0 1px;
  73. margin: 0;
  74. border: solid 1px #769dc0;
  75. color: #000000;
  76. -webkit-transition-duration: 0.25s;
  77. -moz-transition-duration: 0.25s;
  78. transition-duration: 0.25s;
  79. }
  80. .claro .dijitTreeRowActive {
  81. background-color: #7dbefa;
  82. background-position: 0 -177px;
  83. padding: 3px 0 1px;
  84. margin-left: 0;
  85. border: solid 1px #769dc0;
  86. color: #000000;
  87. }
  88. .dj_ie6 .claro .dijitTreeRowActive {
  89. background-image: none;
  90. }
  91. .claro .dijitTreeRowFocused {
  92. background-repeat: repeat;
  93. }
  94. /* expando (open/closed) icon */
  95. .claro .dijitTreeExpando {
  96. background-image: url('images/treeExpandImages.png');
  97. width: 16px;
  98. height: 16px;
  99. background-position: -35px 0;
  100. /* for dijitTreeExpandoOpened */
  101. }
  102. .dj_ie6 .claro .dijitTreeExpando {
  103. background-image: url('images/treeExpandImages8bit.png');
  104. }
  105. .claro .dijitTreeRowHover .dijitTreeExpandoOpened {
  106. background-position: -53px 0;
  107. }
  108. .claro .dijitTreeExpandoClosed {
  109. background-position: 1px 0;
  110. }
  111. .claro .dijitTreeRowHover .dijitTreeExpandoClosed {
  112. background-position: -17px 0;
  113. }
  114. .claro .dijitTreeExpandoLeaf, .dj_ie6 .claro .dijitTreeExpandoLeaf {
  115. background-image: none;
  116. }
  117. .claro .dijitTreeExpandoLoading {
  118. background-image: url('images/loadingAnimation.gif');
  119. }
  120. /* Drag and Drop on TreeNodes
  121. * Put insert line on dijitTreeContent node so it's aligned w/
  122. * (ie, indented equally with) target element, even
  123. * though dijitTreeRowNode is the actual "drag object"
  124. */
  125. .claro .dijitTreeNode .dojoDndItemBefore .dijitTreeContent {
  126. border-top: 2px solid #769dc0;
  127. }
  128. .claro .dijitTreeNode .dojoDndItemAfter .dijitTreeContent {
  129. border-bottom: 2px solid #769dc0;
  130. }