"Tree structure (man)"
Bootstrap 3.3.0 Snippet by mani88100ni

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
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<div class="col-md-12">
<ol class="tree-structure">
<li>
<span class="num">1</span>
<a href="#">Sources Sources Sources Sources Sources Sources Sources Sources Sources Sources Sources </a>
<ol>
<li>
<span class="num">1.1</span>
<a href="#">Sources Child</a>
</li>
<li>
<span class="num">1.2</span>
<a href="#">Sources Child</a>
</li>
<li>
<span class="num">1.3</span>
<a href="#">Sources Child</a>
</li>
<li>
<span class="num">1.4</span>
<a href="#">Sources Child</a>
</li>
</ol>
</li>
<li>
<span class="num">2</span>
<a href="#">Sources</a>
<ol>
<li>
<span class="num">2.1</span>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
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
*{
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-o-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
}
.tree-structure{
list-style: none;
clear: both;
padding-left: 15px;
}
.tree-structure li {
position: relative;
}
.tree-structure li a{
font-weight: normal;
color: red;
text-decoration: none;
font-weight: 700;
vertical-align: middle;
-webkit-transition: all 0.5s ease-in-out;
-moz-transition: all 0.5s ease-in-out;
-ms-transition: all 0.5s ease-in-out;
-o-transition: all 0.5s ease-in-out;
transition: all 0.2s ease-in-out;
display: inline-block;
max-width: calc(100% - 50px);
vertical-align: top;
}
.tree-structure li a:hover{
padding-left: 5px;
}
.tree-structure > li > .num{
display: inline-block;
background: #333;
min-width: 24px;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: