-
Notifications
You must be signed in to change notification settings - Fork 127
/
typeaheadjs.less
70 lines (66 loc) · 1.48 KB
/
typeaheadjs.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
span.twitter-typeahead {
width: 100%;
.tt-menu,
.tt-dropdown-menu
{
cursor: pointer;
&:extend(.dropdown-menu);
}
.tt-suggestion {
&:extend(.dropdown-menu > li > a);
&.tt-cursor,
&:hover,
&:focus {
&:extend(.dropdown-menu > .active > a);
}
}
.input-group & {
display: block !important;
height: @input-height-base;
.tt-menu,
.tt-dropdown-menu {
top:32px !important;
}
&:not(:first-child):not(:last-child) {
.form-control {
border-radius: 0;
}
}
&:first-child {
.form-control {
border-top-left-radius: @input-border-radius;
border-bottom-left-radius: @input-border-radius;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
}
&:last-child {
.form-control {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
border-top-right-radius: @input-border-radius;
border-bottom-right-radius: @input-border-radius;
}
}
}
.input-group.input-group-sm & {
height: @input-height-small;
.tt-menu,
.tt-dropdown-menu {
top:@input-height-small !important;
}
.form-control {
&:extend(.input-group-sm > .form-control);
}
}
.input-group.input-group-lg & {
height: @input-height-large;
.tt-menu,
.tt-dropdown-menu {
top:@input-height-large !important;
}
.form-control {
&:extend(.input-group-lg > .form-control);
}
}
}