-
Notifications
You must be signed in to change notification settings - Fork 0
/
CustomDropdown.css
72 lines (62 loc) · 1.17 KB
/
CustomDropdown.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
.custom-select {
position: relative;
display: flex;
flex-direction: column;
}
.custom-select__input {
padding: 0.5em;
width: 100%;
box-sizing: border-box;
border-radius: 5px;
outline: none;
box-sizing: border-box;
}
.custom-select__input.required {
border-color: #fd7e14;
}
.custom-select__options {
position: absolute;
top: 100%;
left: 0;
width: 100%;
list-style: none;
margin: 0;
padding: 0;
background-color: white;
border: 1px solid #ccc;
border-top: 0;
border-radius: 0 0 5px 5px;
box-shadow: 0 5px 10px rgba(0,0,0,0.2);
z-index: 9999;
opacity: 0;
transition: all 0.2s ease-out;
}
.custom-select__options.show {
opacity: 1;
}
.custom-select__options.hide {
opacity: 0;
visibility: hidden;
}
.custom-select__options li {
padding: 0.5em;
cursor: pointer;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.custom-select__options li:hover {
background-color: #f2f2f2;
}
.custom-select__options li.selected {
background-color: #ccc;
}
.required-message {
font-size: small;
font-size: 14px;
margin-top: 0;
text-align: center;
background-color: #fd7e14;
color: #ffffff;
padding: 2px;
}