123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- /* Remove default bullets */
- ul, #tree {
- list-style-type: none;
- }
- /* Remove margins and padding from the parent ul */
- #tree {
- margin: 0;
- padding: 0;
- }
- #tree li {
- line-height: 1.2;
- position: relative;
- padding: 0 0 1em 1em;
- }
- #tree ul li { padding: 1em 0 0 1em; }
- #tree > li:last-child { padding-bottom: 0; }
- /* ————————————————————–
- Tree labels
- */
- #tree_label {
- position: relative;
- display: inline-block;
- background: #fff;
- }
- label#tree_label { cursor: pointer; }
- label#tree_label:hover { color: #666; }
- /* ————————————————————–
- Tree expanded icon
- */
- label#tree_label:before {
- background: #000;
- color: #fff;
- position: relative;
- z-index: 1;
- float: left;
- margin: 0 1em 0 -2em;
- width: 1em;
- height: 1em;
- border-radius: 1em;
- content: '+';
- text-align: center;
- line-height: .9em;
- }
- :checked ~ label#tree_label:before { content: '–'; }
- /* ————————————————————–
- Tree branches
- */
- .fa {
- margin-right: 5px;
- }
- span.tree_label:after {
- position: absolute;
- top: 0;
- left: -2em;
- display: block;
- height: 1.8em;
- width: 2.5em;
- border-bottom: 1px solid #777;
- border-left: 1px solid #777;
- border-radius: 0 0 0 0.3em;
- content: '';
- }
- #tree li:last-child:before {
- height: 1em;
- bottom: auto;
- border:0px;
- }
- #tree > li:last-child:before { display: none; }
- #tree_custom {
- display: block;
- background: #eee;
- padding: 1em;
- border-radius: 0.3em;
- }
- span.tree_seed:after {
- position: absolute;
- left: -2em;
- display: block;
- height: 1.5em;
- width: 1.8em;
- border-bottom: 1px solid #777;
- border-left: 1px solid #777;
- border-radius: 0 0 0 0.3em;
- content: '';
- }
- .tree_el {
- margin-top: 10px;
- }
- /*
- #treeView li ul li:before {
- position: absolute;
- left: 4.5em;
- display: block;
- width: 0;
- height: -webkit-fill-available;
- border-left: 1px solid #777;
- content: "";
- }
- #treeView li:last-child:before {
- height: 1em;
- bottom: auto;
- }
- #treeView > li:last-child:before { display: none; }
- */
- #treeView li {
- line-height: 1.2;
- position: relative;
- padding: 0 0 1em 1em;
- }
- #treeView ul li { padding: 1em 0 0 1em; }
- #treeView > li:last-child { padding-bottom: 0; }
- #treeView li:before {
- position: absolute;
- top: 0;
- bottom: 0;
- left: -2em;
- margin-top: -10px;
- display: block;
- width: 0;
- border-left: 1px solid #777;
- content: "";
- }
- .tree_seed:after {
- position: absolute;
- top: 0;
- left: -1.5em;
- display: block;
- height: 0.5em;
- width: 1em;
- border-bottom: 1px solid #777;
- border-left: 1px solid #777;
- border-radius: 0 0 0 .3em;
- content: '';
- }
- label.tree_seed:after {
- border-radius: 0 .3em 0 0;
- border-top: 1px solid #777;
- border-right: 1px solid #777;
- border-bottom: 0;
- border-left: 0;
- bottom: 0;
- top: 0.5em;
- height: auto;
- }
- #treeView li:last-child:before {
- height: 1em;
- bottom: auto;
- }
- #treeView > li:last-child:before { display: none; }
|