forked from benpate/hyperscript-widgets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
combobox.css
61 lines (55 loc) · 1.01 KB
/
combobox.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
59
60
61
.combobox {
position:relative;
display:inline-block;
box-sizing: border-box;
margin:0px;
padding:0px;
width:100%;
}
.combobox > .open-button {
box-sizing: border-box;
position:absolute;
display:inline-block;
vertical-align:text-bottom;
right:0px;
top: 0px;
bottom:0px;
padding: 4px 8px;
color: #999;
cursor: pointer;
background-color:#eee;
border: solid 1px #ddd;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
}
.combobox > input {
box-sizing: border-box;
border:solid 1px #ddd;
border-radius: 4px;
padding:8px 12px;
margin:0px;
width:100%;
}
.combobox > [role="menu"] {
position:absolute;
z-index:10;
left:0px;
right:0px;
border: solid 1px #ddd;
border-radius: 4px;
background-color: #f8f8f8;
box-shadow: 0px 2px 2px 2px rgba(0,0,0,0.1);
max-height: 300px;
overflow-y: scroll;
}
.combobox [role="menuitem"] {
padding: 8px 8px;
cursor: pointer;
}
.combobox [role="menuitem"].selected {
background-color:cornflowerblue;
color:white;
}
.selected .gray50 {
color:white;
}