forked from dowjones/react-dropdown-tree-select
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
69 lines (58 loc) · 1.26 KB
/
index.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
/* component styles */
.hide:not(.match-in-children) {
display: none;
}
.react-dropdown-tree-select {
.dropdown {
position: relative;
display: table;
.dropdown-trigger {
padding: 4px;
line-height: 20px;
max-height: 200px;
display: inline-block;
overflow: auto;
border: 1px solid rgb(185, 185, 185);
&.arrow {
cursor: pointer;
&.bottom::after,
&.top::after {
vertical-align: middle;
color: #3c3c3c;
/*equivalent to margin-right*/
margin-inline-end: 2px;
}
&.bottom::after {
content: '\25BC';
}
&.top::after {
content: '\25B2';
}
&.disabled {
cursor: not-allowed;
&.bottom::after {
color: rgb(185, 185, 185);
}
}
}
}
.dropdown-content {
position: absolute;
padding: 4px;
z-index: 1;
background: white;
border-top: rgba(0, 0, 0, 0.05) 1px solid;
box-shadow: 0 5px 8px rgba(0, 0, 0, 0.15);
.search {
width: 100%;
border: none;
border-bottom: solid 1px #ccc;
outline: none;
}
ul {
margin: 0;
padding: 0;
}
}
}
}