tree.css 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. /* tree.css */
  2. ul.tree
  3. {
  4. margin-top: 2px;
  5. margin-left: 0;
  6. }
  7. ul.tree,
  8. ul.tree ul,
  9. ul.tree li
  10. {
  11. list-style: none;
  12. margin-left:6px;
  13. padding-left:0;
  14. text-align: left;
  15. }
  16. ul.tree li
  17. {
  18. text-align: left;
  19. color: #606060;
  20. vertical-align: middle;
  21. white-space: nowrap;
  22. padding-left:0px;
  23. list-style-type: none;
  24. line-height: 18px;
  25. background-size: 16px 16px;
  26. background-position: 1px 1px;
  27. background-repeat: no-repeat;
  28. }
  29. ul.tree li > button
  30. {
  31. padding:0;
  32. width:9px;
  33. height:9px;
  34. background-color: transparent;
  35. background-repeat: no-repeat;
  36. background-position: center center;
  37. border:none;
  38. text-align: center;
  39. margin-left: -11px;
  40. margin-right: 2px;
  41. vertical-align: middle;
  42. outline: none;
  43. box-shadow: none;
  44. }
  45. ul.tree li.expanded > button
  46. {
  47. background-image: url(images/collapse.svg);
  48. }
  49. ul.tree li.collapsed > button
  50. {
  51. background-image: url(images/expand.svg);
  52. }
  53. ul.tree li > button:hover
  54. {
  55. background-color: transparent;
  56. cursor: pointer;
  57. }
  58. ul.tree li > button:focus
  59. {
  60. outline-style: dotted;
  61. outline-color: black;
  62. outline-offset: 1px;
  63. outline-width: 1px;
  64. }
  65. ul.tree li a
  66. {
  67. margin-left: 18px;
  68. padding: 1px;
  69. line-height: 18px;
  70. vertical-align:middle;
  71. text-decoration: none;
  72. color: #606060;
  73. }
  74. ul.tree li a:hover
  75. {
  76. animation: item_hover 1s;
  77. background-color: #D0D0D0;
  78. color:black;
  79. }
  80. ul.tree li a:focus
  81. {
  82. outline-style: dotted;
  83. outline-color: black;
  84. outline-offset: 1px;
  85. outline-width: 1px;
  86. }
  87. ul.tree li.collapsed > ul
  88. {
  89. display: none;
  90. }
  91. ul.tree li.expanded > ul
  92. {
  93. display: block;
  94. }