annotate inkscape/firefox/content/tree_component.css @ 1454:e22df2f3bffe

Provide number of children for coords
author Thinker K.F. Li <thinker@codemud.net>
date Wed, 13 Apr 2011 19:57:58 +0800
parents 4350aa369149
children
rev   line source
352
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
1 /* TREE LAYOUT */
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
2 .tree ul {
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
3 margin:0 0 0 5px;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
4 padding:0 0 0 0;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
5 list-style-type:none;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
6 }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
7 .tree li {
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
8 display:block;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
9 min-height:18px;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
10 line-height:18px;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
11 padding:0 0 0 15px;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
12 margin:0 0 0 0;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
13
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
14 /* Background fix */
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
15 clear:both;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
16 _height:18px;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
17 #height:auto;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
18 }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
19 .tree li ul {
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
20 display:none;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
21 }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
22 .tree li a,
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
23 .tree li span {
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
24 /*
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
25 vertical-align:bottom;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
26 display:-moz-inline-stack;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
27 */
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
28 display:inline-block;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
29 line-height:16px;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
30 height:16px;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
31 padding:1px 4px 1px 23px !important;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
32 color:black;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
33 white-space:nowrap;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
34 text-decoration:none;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
35 background-color:transparent;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
36 background-repeat:no-repeat;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
37 background-position:4px 1px;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
38 border:0;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
39 margin:0;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
40 }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
41 .tree li a:hover,
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
42 .tree li a.hover {
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
43 background-color: #e7f4f9;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
44 border:1px solid #d8f0fa;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
45 padding:0px 3px 0px 22px !important;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
46 background-position:3px 0px;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
47 }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
48 .tree li a.clicked,
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
49 .tree li a.clicked:hover,
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
50 .tree li span.clicked {
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
51 background-color: #beebff;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
52 border:1px solid #99defd;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
53 padding:0px 3px 0px 22px !important;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
54 background-position:3px 0px;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
55 }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
56 .tree li span.clicked {
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
57 padding:0px 3px 0px 20px !important;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
58 }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
59
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
60 .tree li a input,
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
61 .tree li span input {
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
62 margin:0;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
63 padding:0 0;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
64 display:block;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
65 height:12px !important;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
66 border:1px solid white;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
67 background:white;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
68 font-size:10px;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
69 font-family:Verdana;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
70 }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
71 .tree li a input:not([class="xxx"]),
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
72 .tree li span input:not([class="xxx"]) {
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
73 padding:1px 0;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
74 }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
75
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
76 .locked li a {
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
77 color:gray;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
78 }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
79
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
80 /* FOR DOTS */
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
81 .tree ul {
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
82 background-position:6px 1px;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
83 background-repeat:repeat-y;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
84 }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
85 .tree li {
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
86 background-position:7px center;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
87 background-repeat:no-repeat;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
88 }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
89 .tree li.last {
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
90 background-position:5px top;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
91 background-repeat:no-repeat;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
92 float:left;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
93 }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
94 /* NO DOTS */
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
95 .no_dots ul {
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
96 background:transparent !important;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
97 }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
98 .no_dots li, .no_dots li.last {
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
99 background-color:transparent !important;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
100 }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
101 .no_dots li.leaf {
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
102 background-image:none !important;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
103 background-color:transparent !important;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
104 }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
105
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
106 /* OPEN OR CLOSE */
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
107 .tree li.open ul {
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
108 display:block;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
109 }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
110 .tree li.closed ul {
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
111 display:none !important;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
112 }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
113
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
114
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
115 /* FOR DRAGGING */
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
116 .tree #dragged {
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
117 padding:0 3px;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
118 margin:0;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
119 background:white;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
120 opacity: .85;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
121 filter: alpha(opacity=85);
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
122
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
123 position:absolute;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
124 top:-10px;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
125 left:-10px;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
126 }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
127 .tree #dragged.last,
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
128 .tree #dragged:last-child {
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
129 background:white;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
130 }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
131 .tree #dragged ul ul {
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
132 display:none;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
133 }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
134
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
135 /* RTL modification */
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
136 .rtl * {
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
137 direction:rtl;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
138 }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
139 .rtl ul {
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
140 margin:0 5px 0 0;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
141 }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
142 .rtl li {
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
143 padding:0 15px 0 0;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
144 }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
145 .rtl li.last {
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
146 background-position:right top;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
147 float:right;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
148 }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
149 .rtl li a,
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
150 .rtl li span {
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
151 float:right;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
152 padding:1px 23px 1px 4px !important;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
153 background-position:right 1px;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
154 margin-right:1px;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
155 }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
156 .rtl li a:hover,
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
157 .rtl li a.hover {
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
158 background-color: #e7f4f9;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
159 border:1px solid #d8f0fa;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
160 padding:0px 23px 0px 3px !important;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
161 background-position:right 0px;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
162 margin-right:0px;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
163 }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
164 .rtl li a.clicked,
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
165 .rtl li a.clicked:hover,
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
166 .rtl li span.clicked {
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
167 background-color: #beebff;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
168 border:1px solid #99defd;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
169 padding:0px 23px 0px 3px !important;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
170 background-position:right 0px;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
171 margin-right:0px;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
172 }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
173 .rtl li span.clicked {
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
174 padding:0px 21px 0px 3px !important;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
175 }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
176
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
177 .rtl ul {
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
178 background-position:right 1px;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
179 }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
180 .rtl li {
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
181 background-position:right center;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
182 }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
183 .rtl #dragged li.open {
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
184 background-position: right 5px;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
185 }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
186
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
187 /* CONTEXT MENU */
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
188 .tree .context {
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
189 display:none;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
190 position:absolute;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
191 list-style-type:none;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
192 margin:0;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
193 padding:0;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
194 }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
195 .tree .context .separator {
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
196 display:none;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
197 }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
198 .tree .context a {
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
199 display:block;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
200 margin:0;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
201 padding:0;
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
202 }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
203
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
204 .tree li, x:-moz-any-link { overflow:auto; #overflow:visible; }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
205 /** FF2 stuff **/
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
206 .tree li a, x:-moz-any-link { display:inline; float:left; }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
207 .tree li, .tree li ul, .tree li.open ul, x:-moz-any-link { clear:both; }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
208 .tree li a, x:-moz-any-link, x:default { display:inline-block; float:none; }
4350aa369149 Use jQuery UI components.
wycc
parents:
diff changeset
209 .tree li ul, .tree li.open ul, x:-moz-any-link, x:default { clear:none; }