forked from DanmarksAdresser/dawa-autocomplete-guide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
58 lines (50 loc) · 1.4 KB
/
style.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
label {
color: red;
}
.autocomplete-container {
/* relative position for at de absolut positionerede forslag får korrekt placering.*/
position: relative;
width: 100%;
max-width: 30em;
}
.autocomplete-container input {
/* Både input og forslag får samme bredde som omkringliggende DIV */
width: 100%;
box-sizing: border-box;
}
.dawa-autocomplete-suggestions {
margin: 0.3em 0 0 0;
padding: 0;
text-align: left;
border-radius: 0.3125em;
background: #fcfcfc;
box-shadow: 0 0.0625em 0.15625em rgba(0,0,0,.15);
position: absolute;
left: 0;
right: 0;
z-index: 9999;
overflow-y: auto;
box-sizing: border-box;
}
.dawa-autocomplete-suggestions .dawa-autocomplete-suggestion {
margin: 0;
list-style: none;
cursor: pointer;
padding: 0.4em 0.6em;
color: #333;
border: 0.0625em solid #ddd;
border-bottom-width: 0;
}
.dawa-autocomplete-suggestions .dawa-autocomplete-suggestion:first-child {
border-top-left-radius: inherit;
border-top-right-radius: inherit;
}
.dawa-autocomplete-suggestions .dawa-autocomplete-suggestion:last-child {
border-bottom-left-radius: inherit;
border-bottom-right-radius: inherit;
border-bottom-width: 0.0625em;
}
.dawa-autocomplete-suggestions .dawa-autocomplete-suggestion.dawa-selected,
.dawa-autocomplete-suggestions .dawa-autocomplete-suggestion:hover {
background: #f0f0f0;
}