| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- /* 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;
- }
|