-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathidx-tree.css
114 lines (114 loc) · 3.29 KB
/
idx-tree.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
/* CSS style for DokuWiki ul.idx (index trees)
*
* @author Constant Illumination (Chang Zhao) <[email protected]>
*/
.plugin__simplenavi p, .plugin__simplenavi ul {
list-style: none;
/*
margin: 0;
padding: 0;
*/
}
.plugin__simplenavi p,
.plugin__simplenavi ul ul,
.dokuwiki ul.idx ul {
margin: 0;
padding: 0;
}
.dokuwiki ul.idx div {
display: inline;
}
#dokuwiki__site div > ul.idx {
font-size: 100%;
line-height: 1.6em;
box-sizing: border-box;
padding-left: 1.0em;
}
.dokuwiki ul.idx ul {
margin-left: 0.25em;
}
ul.idx li {
list-style: none !important;
margin-left: -1.0em;
padding-left: 1.6em;
border-left: 0.1em solid #FFD800;
position: relative;
}
ul.idx li li {
border-left: 0.1em solid #6D83FF;
}
ul.idx li li li {
border-left: 0.1em solid #FF6D6D;
}
ul.idx li li li li {
border-left: 0.1em solid #50D80D;
}
ul.idx li li li li li {
border-left: 0.1em solid #7A715A;
}
ul.idx li:last-child {
border-left: none;
}
ul.idx li:before {
width: 0.8em;
height: 0.8em;
margin-left: -1.6em;
margin-right: 1.0em;
vertical-align: top;
border-bottom: thin solid #7A715A;
content: "";
display: inline-block;
}
ul.idx li:last-child:before {
border-left: 0.1em solid #FFD800;
}
ul.idx li li:last-child:before {
border-left: 0.1em solid #6D83FF;
}
ul.idx li li li:last-child:before {
border-left: 0.1em solid #FF6D6D;
}
ul.idx li li li li:last-child:before {
border-left: 0.1em solid #50D80D;
}
ul.idx li li li li li:last-child:before {
border-left: 0.1em solid #7A715A;
}
ul.idx li:after {
width: 0.8em;
height: 0.8em;
vertical-align: middle;
content: "";
display: inline-block;
left: 0.5em;
top: 0.4em;
position: absolute;
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwwAADsMBx2+oZAAAABh0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMS4zjST9ZwAAAE5JREFUOE9jKPIy/k8qBgIGGAYbQCyAqUU2hCwDQABmCNkGgACIT7IB6JgkA9AB7QwAiWHD6AAkNki9QCzAaQBIDBtGByCx4RIG5GPj/wCAfloMWncviQAAAABJRU5ErkJggg==);
/* url(images/mini/page.png); */
background-size: contain;
background-repeat: no-repeat;
}
ul.idx li:last-child:after {
left: 0.6em; /* = + .1 for the absent border of li */
}
ul.idx li.open:after {
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjEuM40k/WcAAABSSURBVDhP7dGxDQAgCERRdmILx3FnW1dQaRQCBVwtyW9fcoF64yWdI6QLoIgBEORNmANCDKCRbA6oIiGQ6QMKkF8iiAEQxAFVJAQ0ks0BNYTXBtPZ6A4VD4L0AAAAAElFTkSuQmCC);
/* url(images/mini/open.png); */
background-size: contain;
}
ul.idx li.closed:after {
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwgAADsIBFShKgAAAABh0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMS4zjST9ZwAAAF1JREFUOE9j+P//P0ORl/F/QhikDhsmSjMMo2sGYbgB/989xYtxGUKyAeiGkGUAWD2lBoD1UGoACI90AygKRJBmsg2AaSbLAGTNKAYQg9E1gzCYwKYYHSNrQuD/DAATmtHTLNM0awAAAABJRU5ErkJggg==);
/* url(images/mini/closed.png); */
background-size: contain;
}
ul.idx li:first-child {
margin-top: -0.4em;
padding-top: 0.4em;
}
ul.idx li:only-child:before {
margin-top: -0.4em;
padding-top: 0.4em;
}
ul.idx li:first-child:after {
top: 0.8em;
}