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 : 0px;
|
11
|
margin-left : 0px;
|
12
|
}
|
13
|
|
14
|
ul.tree img{
|
15
|
border : none;
|
16
|
}
|
17
|
|
18
|
|
19
|
ul.tree, ul.tree ul {
|
20
|
padding-left: 0;
|
21
|
}
|
22
|
|
23
|
ul.tree ul {
|
24
|
margin-left: 16px;
|
25
|
|
26
|
}
|
27
|
ul.tree li.closed ul {
|
28
|
display: none;
|
29
|
}
|
30
|
|
31
|
|
32
|
ul.tree li {
|
33
|
list-style: none;
|
34
|
background: url(i-repeater.gif) 0 0 repeat-y;
|
35
|
display: block;
|
36
|
width: auto;
|
37
|
/* background-color:#FFFFFF; */
|
38
|
}
|
39
|
|
40
|
|
41
|
|
42
|
ul.tree li.last {
|
43
|
list-style: none;
|
44
|
background-image: none;
|
45
|
}
|
46
|
|
47
|
|
48
|
|
49
|
/* Span-A: I/L/I glpyhs */
|
50
|
ul.tree span.a {
|
51
|
background: url(t.gif) 0 50% no-repeat;
|
52
|
display: block;
|
53
|
}
|
54
|
ul.tree span.a.last {
|
55
|
background: url(l.gif) 0 50% no-repeat;
|
56
|
}
|
57
|
|
58
|
/* Span-B: Plus/Minus icon */
|
59
|
ul.tree span.b {
|
60
|
}
|
61
|
ul.tree span.a.children span.b {
|
62
|
background: url(minus.gif) 0 50% no-repeat;
|
63
|
cursor: pointer;
|
64
|
}
|
65
|
ul.tree li.closed span.a.children span.b {
|
66
|
background: url(plus.gif) 0 50% no-repeat;
|
67
|
cursor: pointer;
|
68
|
}
|
69
|
|
70
|
/* Span-C: Spacing and extending tree line below the icon */
|
71
|
ul.tree span.c {
|
72
|
margin-left: 16px;
|
73
|
}
|
74
|
ul.tree span.a.children span.c {
|
75
|
background: url(i-bottom.gif) 0 50% no-repeat;
|
76
|
}
|
77
|
ul.tree span.a.spanClosed span.c {
|
78
|
background-image: none;
|
79
|
}
|
80
|
|
81
|
|
82
|
/* Anchor tag: Page icon */
|
83
|
ul.tree a {
|
84
|
white-space: nowrap;
|
85
|
overflow: hidden;
|
86
|
|
87
|
/* padding: 10px 0px 10px 18px; */
|
88
|
padding: 3px 0px 3px 18px;
|
89
|
line-height: 16px;
|
90
|
|
91
|
/* background: url(page-file.png) 0 50% no-repeat; */
|
92
|
background: url(page-file.png) 0 0 no-repeat;
|
93
|
}
|
94
|
ul.tree span.a.children a {
|
95
|
background-image: url(page-openfoldericon.png);
|
96
|
}
|
97
|
ul.tree span.a.children.spanClosed a {
|
98
|
background-image: url(page-foldericon.png);
|
99
|
}
|
100
|
|
101
|
/* Unformatted tree */
|
102
|
ul.tree.unformatted li {
|
103
|
background-image: none;
|
104
|
padding-left: 16px;
|
105
|
}
|
106
|
ul.tree.unformatted li li {
|
107
|
background-image: none;
|
108
|
padding-left: 0px;
|
109
|
}
|
110
|
|
111
|
/*
|
112
|
* Divs, by default store vertically aligned data
|
113
|
*/
|
114
|
|
115
|
ul.tree li div {
|
116
|
float: right;
|
117
|
clear: right;
|
118
|
height: 1em;
|
119
|
margin-top: -26px;
|
120
|
}
|
121
|
/* As inside DIVs should be treated normally */
|
122
|
ul.tree div a {
|
123
|
padding: 0;
|
124
|
background-image: none;
|
125
|
min-height: auto;
|
126
|
height: auto;
|
127
|
}
|
128
|
|
129
|
ul.tree li A:link, ul.tree li A:hover, ul.tree li A:visited {
|
130
|
color : #111111;
|
131
|
}
|
132
|
|
133
|
|
134
|
ul.tree li .over{
|
135
|
background-color : pink;
|
136
|
}
|