hjg
2023-11-18 bb48edb3d9faaaeab0088151c86fc24137acdb08
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
.enable_plugin_typeahead() when(@enable-plugin-typeahead = true) {
 
input.typeahead,
input.tt-query,
input.tt-hint {
  min-width: 175px;
  font-size: @font-size-typeahead-hint;
  line-height: 24px;
  border: 1px solid #CCC;
 
  border-radius: 0;
  outline: none;
}
 
input.tt-hint , .form-group input.tt-hint {
  background-color: #FFF !important;
  color: #B0B0B0 !important;
}
.tt-menu {
  text-align: left;
 
  position: absolute;
  left: 0 !important;
  right: 0 !important;
  min-width: 175px;
 
  margin-top: 2px;
  padding: 8px 0;
  background-color: #FFF;
  border: 1px solid #D0D0D0;
  border: 1px solid rgba(0, 0, 0, 0.15);
  
  border-radius: 0;
  .box-shadow(~"0 2px 4px rgba(0, 0, 0, 0.2)");
}
 
.tt-suggestion {
  padding: 3px 12px 4px;
  font-size: @font-size-typeahead-suggestion;
  line-height: 24px;
  
  &.tt-selectable:hover , &.tt-cursor {
    color: #FFF;
    background-color: #4F99C6;
    cursor: pointer;
  }
  
  p {
    margin: 0;
  }
}
 
input.typeahead.scrollable ~ .tt-menu {
  max-height: 200px;
  overflow-y: auto;
}
 
}
.enable_plugin_typeahead();