-
Notifications
You must be signed in to change notification settings - Fork 67
/
comboTreeStyle.css
159 lines (142 loc) · 3.15 KB
/
comboTreeStyle.css
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
/*!
* jQuery ComboTree Plugin
* Author: Erhan FIRAT
* Mail: [email protected]
* Licensed under the MIT license
* Version: 1.3.1
*/
:root {
--ct-bg: #fff;
--ct-border-color: #e1e1e1;
--ct-border-radius: 0.5rem;
--ct-tree-hover: #efefef;
--ct-selection: #418eff;
--ct-padding: 0.5rem;
}
.ct-wrapper {
position: relative;
text-align: left !important;
box-sizing: border-box;
}
.ct-wrapper * {
box-sizing: border-box !important;
}
.ct-input-wrapper {
position: relative;
}
.ct-input-box {
padding: var(--ct-padding) 1.5rem var(--ct-padding) var(--ct-padding);
border-radius: var(--ct-border-radius);
border: 1px solid var(--ct-border-color);
width: 100%;
}
.ct-arrow-btn {
position: absolute;
right: 0px;
bottom: 0px;
top: 0px;
padding: 0.5rem;
border: none;
background: none;
cursor: pointer;
}
.ct-arrow-btn:hover {
color: var(--ct-selection);
}
.ct-arrow-btn:active {
color: var(--ct-selection);
}
.ct-input-box:focus + .ct-arrow-btn {
color: var(--ct-selection);
}
.ct-drop-down-container,
.ct-drop-down-container *,
.ct-arrow-btn {
-webkit-user-select: none; /* Safari */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* IE10+/Edge */
user-select: none; /* Standard */
}
.ct-drop-down-container {
display: none;
background: var(--ct-bg);
border: 1px solid var(--ct-border-color);
position: absolute;
width: 100%;
z-index: 999;
max-height: 250px;
overflow-y: auto;
box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.3);
}
.ct-drop-down-container ul {
padding: 0;
margin: 0;
}
.ct-drop-down-container li {
list-style-type: none;
padding-left: 0;
cursor: pointer;
}
.ct-drop-down-container .ct-item-parent li {
padding-left: 1rem;
}
.ct-drop-down-container li .not-selectable {
color: #777;
}
.ct-drop-down-container li:hover {
background-color: var(--ct-tree-hover);
}
.ct-drop-down-container li:hover ul {
background-color: var(--ct-bg);
}
.ct-drop-down-container li span.ct-list-item-title.ct-tree-item-hover,
.ct-drop-down-container label.ct-tree-item-hover {
background-color: var(--ct-selection);
color: var(--ct-bg);
border-radius: 2px;
}
.ct-drop-down-container
li
span[data-selectable="false"].ct-list-item-title.ct-tree-item-hover,
.ct-drop-down-container label.ct-tree-item-hover {
background-color: var(--ct-border-color);
color: #777;
cursor: default;
}
span.ct-list-item-title,
.ct-drop-down-container .select-all {
display: block;
padding: 0.25rem 1rem;
margin-left: 1rem;
}
.ct-drop-down-container label {
cursor: pointer;
width: 100%;
display: block;
}
.ct-drop-down-container .ct-list-item-title input,
.ct-drop-down-container .select-all input {
position: relative;
top: 2px;
margin: 0px 4px 0px 0px;
}
.ct-parent-plus {
position: absolute;
display: inline-block;
width: 1rem;
padding-top: 0.25rem;
cursor: pointer;
font-weight: bold;
font-size: 1rem;
text-align: center;
}
.ct-input-box:focus {
border: 1px solid var(--ct-selection);
outline-width: 0;
}
.ct-drop-down-container input.ct-multiples-filter {
width: 100%;
padding: var(--ct-padding);
border: none;
border-bottom: 1px solid var(--ct-border-color);
}