summaryrefslogtreecommitdiffstats
path: root/css/linkit.autocomplete.css
blob: 8e47730400c707a4b603548fcbfc7a9d1c08f0ec (plain)
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
/**
 * @file
 * Stylesheet for the Linkit module.
 */
.js input.form-linkit-autocomplete {
  background-image: url(../../../core/misc/throbber-inactive.png);
  background-position: 100% center; /* LTR */
  background-repeat: no-repeat;
}

.js[dir="rtl"] input.form-linkit-autocomplete {
  background-position: 0 center;
}

.js input.form-linkit-autocomplete.ui-autocomplete-loading {
  background-image: url(../../../core/misc/throbber-active.gif);
  background-position: 100% center; /* LTR */
}

.js[dir="rtl"] input.form-linkit-autocomplete.ui-autocomplete-loading {
  background-position: 0 center;
}

/* Override the default jQuery UI theme */
.linkit-ui-autocomplete {
  max-height: 330px;
  overflow: auto;
}

.linkit-ui-autocomplete.ui-widget {
  font-size: .9em;
}

.linkit-ui-autocomplete.ui-menu .ui-menu-item {
  list-style: none;
  padding: 5px 7px;
}

.linkit-ui-autocomplete .ui-menu-item.ui-state-focus {
  margin: 0;
  border: 0;
  border-bottom: 1px solid #bfbfbf;
  background: #0075ba;
  color: #fff;
}

.linkit-result:not(:last-of-type) {
  border-bottom: 1px solid #bfbfbf;
}

.linkit-result--group {
  padding: 3px;
  background-color: #e7e7e7;
  border-bottom: 1px solid #bfbfbf;
  text-align: center;
  font-size: 0.9em;
  font-weight: 600;
  color: #555;
}

.linkit-result--title {
  font-weight: 600;
}

.linkit-result--description {
  display: block;
  font-size: 0.9em;
  line-height: 1.3;
}

.linkit-result--description img {
  display: block;
}