-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.css
77 lines (66 loc) · 1.24 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
list-box {
position: relative;
}
list-box,
list-box list,
list-box list-item,
list-box .input {
display: flex;
flex-direction: column;
}
list-box .input {
flex-direction: row;
padding-right: 2em;
cursor: pointer;
color: #666;
}
list-box .input:focus ~ .listbox-icon {
opacity: 1;
}
list-box .listbox-icon,
list-box .is-toggle-listbox {
position: absolute;
top: 50%;
transform: translateY(-50%);
cursor: pointer;
}
list-box .listbox-icon {
left: 0.3rem;
opacity: 0.7;
transition: all .2s ease;
}
list-box .is-toggle-listbox {
right: 0.3rem;
font-size: 1.5rem;
}
list-box list {
position: absolute;
top: 100%;
width: 100%;
max-height: 0;
background-color: #fff;
z-index: 10;
box-shadow: 0 2px 10px -2px rgba(0, 0, 0, 0.1);
font-size: 0.8rem;
overflow: hidden;
transition: max-height .2s ease;
}
list-box list.is-visible {
max-height: 100vh;
}
list-box list-item {
flex-direction: row;
align-items: center;
align-content: center;
justify-content: space-between;
padding: 0.5rem 1rem;
cursor: pointer;
}
list-box list-item:not(.is-active):hover {
background-color: whitesmoke;
}
list-box list-item.is-active {
background-color: #22adff;
color: #fff;
}
/*# sourceMappingURL=style.css.map */