/
dropdown.less
65 lines (53 loc) · 1.26 KB
/
dropdown.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
/* ==============
* Dropdown
* ==============
*/
.dropdown-header {
font-size: @base-font-size; /* Bootstrap override */
}
.dropdown {
margin: 0 0 @base-spacing-unit*2 0;
.dropdown-toggle {
color: @link-color;
overflow-x: hidden;
&:active, &:focus, &:hover {
background-color: transparent;
}
&:active, &:focus {
border-color: @brand-primary;
}
}
.dropdown-menu {
border-color: @dropdown-bg-color;
border-radius: 4px;
display: block;
max-height: @sidebar-width*2;
overflow-y: scroll;
z-index: 1001; /* Override Bootstrap's 1000 base value */
.checkbox {
padding: 0 @base-spacing-unit;
border-bottom: 1px solid @dropdown-separator-color;
label {
color: @sidebar-heading-color;
&::before {
border: 1px solid @breadcrumb-text-color;
}
> span {
display: block;
overflow: hidden;
text-overflow: ellipsis;
max-width: @sidebar-width*2;
white-space: nowrap;
}
}
}
.search {
padding: @horizontal-spacing-unit @base-spacing-unit;
input[type=text] {
color: @sidebar-heading-color;
padding: @horizontal-spacing-unit;
width: 100%;
}
}
}
}