-
Notifications
You must be signed in to change notification settings - Fork 0
/
select.css
75 lines (64 loc) · 1.39 KB
/
select.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
.custom-select-container,
.custom-select-value,
.custom-select-options,
.custom-select-option {
box-sizing: border-box;
}
.custom-select-container {
display: inline-block;
position: relative;
}
.custom-select-value {
display: flex;
align-items: center;
justify-content: space-between;
width: 200px;
border: 1px solid black;
padding: .25rem .5rem;
cursor: pointer;
user-select: none;
}
.custom-select-container:focus > .custom-select-value {
border-width: 2px;
outline: none;
}
.custom-select-value::after {
content: '';
display: inline-block;
border: 5px solid transparent;
border-top-color: black;
margin-left: 12px;
margin-top: 4px;
}
.custom-select-options {
display: none;
position: absolute;
padding: 0;
margin: 0;
border: 2px solid black;
width: 100%;
border-top: none;
max-height:200px;
overflow-y: auto;
}
.custom-select-options.show {
display: block;
}
.custom-select-option {
padding: .25rem .5rem;
cursor: pointer;
}
.custom-select-option:hover {
background-color: hsl(200, 100%, 70%);
}
.custom-select-option.selected {
background-color: hsl(200, 100%, 50%);
}
#footer {
position:absolute;
bottom:0;
width:100%;
height:25px; /* Height of the footer */
background:greenyellow;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}