Subversion Repositories wimsdev

Rev

Rev 8595 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. /*
  2.  * CSS for Standard tree layout
  3.  * Copyright (C) 2005 SilverStripe Limited
  4.  * Feel free to use this on your websites, but please leave this message in the fies
  5.  * http://www.silverstripe.com/blog
  6.  */
  7.  
  8. ul.tree{
  9.         width: auto;
  10.         padding-left : 0;
  11.         margin-left : 0;
  12. }
  13.  
  14. ul.tree .selected{
  15.     border:1px solid green;
  16.     border-radius:5px;
  17.     background-color: rgba(0,255,0,0.2);
  18.     padding:1px 2px;
  19. }
  20. /*ul.tree .selected:after{
  21.     color:green;
  22.     padding-left:0.5em;
  23.     content:"\221a";
  24. }*/
  25.  
  26. ul.tree img{border : none;}
  27.  
  28.  
  29. ul.tree, ul.tree ul {padding-left: 0;}
  30.  
  31. ul.tree ul {margin-left: 16px;}
  32.  
  33. ul.tree li.closed ul {display: none;}
  34.  
  35.  
  36. ul.tree li {
  37.         list-style: none;
  38.         background: url(i-repeater.gif) 0 0 repeat-y;
  39.         display: block;
  40.         width: auto;
  41.         margin:.5em 0 ;
  42.         line-height:1.5em;
  43.         /* background-color:#FFFFFF; */
  44. }
  45.  
  46. ul.tree li.last {
  47.         list-style: none;
  48.         background-image: none;
  49. }
  50.  
  51. /* Span-A: I/L/I glpyhs */
  52. ul.tree span.a {
  53.     margin-top: -6px;
  54.         background: url(t.gif) 0 50% no-repeat;
  55.         display: block;
  56. }
  57.  
  58. ul.tree span.a:visited, ul.tree span.a:active, ul.tree span.a:focus {
  59.         background-color:yellow;
  60. }
  61.  
  62. ul.tree span.a.last {
  63.         background: url(l.gif) 0 50% no-repeat;
  64. }
  65.  
  66. /* Span-B: Plus/Minus icon */
  67. ul.tree span.b {
  68. }
  69. ul.tree span.a.children span.b {
  70.         background: url(minus.gif) 0 50% no-repeat;
  71.         cursor: pointer;
  72. }
  73. ul.tree li.closed span.a.children span.b {
  74.         background: url(plus.gif) 0 50% no-repeat;
  75.         cursor: pointer;
  76. }
  77.  
  78. /* Span-C: Spacing and extending tree line below the icon */
  79. ul.tree span.c {
  80.         margin-left: 16px;
  81.     cursor: pointer;
  82. }
  83. ul.tree span.a.children span.c {
  84.         background: url(i-bottom.gif) 0 50% no-repeat;
  85.     cursor: pointer;
  86. }
  87. ul.tree span.a.spanClosed span.c {
  88.         background-image: none;
  89. }
  90.  
  91. /* Anchor tag: Page icon */
  92. ul.tree a  {
  93.         white-space: nowrap;
  94.         overflow: hidden;
  95.         padding: 0 0 0 18px;
  96.         /*line-height: 16px;*/
  97.         background: url(page-file.png) 0 50% no-repeat;
  98. }
  99. ul.tree span.a.children a {
  100.         background-image: url(page-openfoldericon.png);
  101. }
  102. ul.tree span.a.children.spanClosed a {
  103.         background-image: url(page-foldericon.png);
  104. }
  105.  
  106. /* Unformatted tree */
  107. ul.tree.unformatted li {
  108.         background-image: none;
  109.         padding-left: 16px;
  110. }
  111. ul.tree.unformatted li li {
  112.         background-image: none;
  113.         padding-left: 0px;
  114. }
  115.  
  116. /*
  117.  * Divs, by default store vertically aligned data
  118.  */
  119.  
  120. ul.tree li div {
  121.         float: right;
  122.         clear: right;
  123.         height: 1em;
  124.         margin-top: -26px;
  125. }
  126. /* As inside DIVs should be treated normally */
  127. ul.tree div a  {
  128.         padding: 0;
  129.         background-image: none;
  130.         height: auto;
  131. }
  132.  
  133. ul.tree li A:link, ul.tree li A:hover, ul.tree li A:visited {
  134.         color : #111;
  135. }
  136.  
  137. ul.tree li .over{
  138.         background-color : pink;
  139. }
  140.