Skip to content

Commit 35ab9c2

Browse files
committed
Export css ninja tree: simplif et améliorations.
1 parent d4d0153 commit 35ab9c2

1 file changed

Lines changed: 6 additions & 19 deletions

File tree

web/css-ninja-tree/css-ninja-tree.css

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,6 @@ ol.tree
1111
margin-left: -15px;
1212
list-style: none;
1313
}
14-
ol.tree li.file
15-
{
16-
margin-left: -1px !important;
17-
}
18-
ol.tree li.file a
19-
{
20-
background: url(document.png) 0 0 no-repeat;
21-
color: #fff;
22-
padding-left: 21px;
23-
text-decoration: none;
24-
display: block;
25-
}
26-
ol.tree li.file a[href *= '.pdf'] { background: url(document.png) 0 0 no-repeat; }
27-
ol.tree li.file a[href *= '.html'] { background: url(document.png) 0 0 no-repeat; }
28-
ol.tree li.file a[href $= '.css'] { background: url(document.png) 0 0 no-repeat; }
29-
ol.tree li.file a[href $= '.js'] { background: url(document.png) 0 0 no-repeat; }
3014
ol.tree li input
3115
{
3216
position: absolute;
@@ -41,22 +25,25 @@ ol.tree
4125
}
4226
ol.tree li input + ol
4327
{
44-
background: url(toggle-small-expand.png) 40px 0 no-repeat;
28+
background: url(toggle-small-expand.png) 50px -3px no-repeat;
4529
margin: -0.938em 0 0 -44px; /* 15px */
4630
height: 1em;
4731
}
4832
ol.tree li input + ol > li { display: none; margin-left: -14px !important; padding-left: 1px; }
33+
ol.tree li label:before
34+
{
35+
content: "(";
36+
}
4937
ol.tree li label
5038
{
51-
background: url(folder-horizontal.png) 15px 1px no-repeat;
5239
cursor: pointer;
5340
display: block;
5441
padding-left: 24px;
5542
}
5643

5744
ol.tree li input:checked + ol
5845
{
59-
background: url(toggle-small.png) 40px 5px no-repeat;
46+
background: url(toggle-small.png) 50px 0px no-repeat;
6047
margin: -1.25em 0 0 -44px; /* 20px */
6148
padding: 1.563em 0 0 80px;
6249
height: auto;

0 commit comments

Comments
 (0)