forked from vufind-org/vufind
-
Notifications
You must be signed in to change notification settings - Fork 1
/
js-tree.less
130 lines (125 loc) · 2.95 KB
/
js-tree.less
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
/* --- Layout --- */
.hierarchy-tree {
max-height: 75vh;
overflow-y: auto;
}
@media (min-width: 768px) {
.collection-hierarchytree { display: flex; }
.collection-hierarchytree .tree-panel,
.collection-hierarchytree #tree-preview {
flex-basis: 50%;
padding: 1rem;
}
#modal .collection-hierarchytree { display: block; }
#modal .tree-panel {
flex-basis: 100%;
padding: 0;
}
#modal #tree-preview { display: none; }
}
/* --- Look --- */
.hierarchy-tree,
.jstree-facet {
/* jsTree arrows */
.jstree-ocl:before {
float: left;
width: 10px;
padding: 0;
margin-left: -10px;
font-family: 'FontAwesome';
font-style: normal;
font-weight: normal;
cursor: pointer;
text-decoration: inherit;
speak: none;
}
.jstree-open > .jstree-ocl:before {content: "\f0d7";} // .fa-caret-down
.jstree-closed > .jstree-ocl:before {content: "\f0da";} // .fa-caret-right
.jstree-leaf > .jstree-ocl:before {content: " ";}
.jstree-icon {
width: 16px;
color: #000;
}
.jstree-anchor { padding-left: 5px; }
.jstree-container-ul,
.jstree-children {
padding-left: 16px;
}
.jstree-initial-node {display: none;}
.jstree-clicked {
.jstree-icon {
color: #fff;
}
}
.jstree-search a {
font-style: italic;
color: #8b0000;
font-weight: bold;
}
}
.jstree-node.list-group-item {
margin-bottom: 0;
border: 0;
border-bottom: 1px solid @list-group-border;
border-radius: 0;
}
/* --- Record --- */
#hierarchyTreeHolder {
overflow-x: hidden;
border-right: 1px solid @gray-lighter;
}
#hierarchyTree .currentHierarchy > a,
#hierarchyTree .currentRecord a {
font-weight: bold;
color: #000;
}
.collection-hierarchytree {
.jstree-clicked {
color: @list-group-active-color;
background-color: @list-group-active-bg;
.jstree-icon {
color: #fff;
}
}
}
/* --- Facets --- */
.facet .jstree-ocl:before {
float: left;
width: 10px;
padding: 0;
margin-left: -10px;
font-family: 'FontAwesome';
font-weight: normal;
font-style: normal;
text-decoration:inherit;
cursor: pointer;
speak: none;
}
.facet .jstree-default {
& .jstree-open > .jstree-ocl:before {content: "\f0d7";}
& .jstree-closed > .jstree-ocl:before {content: "\f0da";}
& .jstree-leaf > .jstree-ocl:before {content: " ";}
}
/* facet list styling */
.jstree-facet li span.main {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.jstree-facet .main.applied .fa-check {
margin-top: 2px;
margin-right: 4px;
}
.jstree-facet .jstree-container-ul { padding: 0; }
.jstree-facet .active,
.jstree-facet .active a.jstree-anchor {
background-color: @list-group-active-bg;
color: #fff;
}
li.jstree-facet,
li.jstree-node { list-style: none; }
li.jstree-facet .badge { cursor: text; }
li.jstree-facet ul { padding-left: 20px; }
.facet .jstree-node.list-group-item { padding-left: 19px; }
.facet .jstree-icon::before { margin-left: -12px; }
.facet .jstree-facet li span.main { padding: 1px; }