-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.scss
65 lines (65 loc) · 1.45 KB
/
style.scss
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
list-box {
position: relative;
&,
list,
list-item,
.input {
display: flex;
flex-direction: column;
}
.input {
flex-direction: row;
padding-right: 2em;
cursor: pointer;
color: #666;
&:focus~.listbox-icon {
opacity: 1;
}
}
.listbox-icon,
.is-toggle-listbox {
position: absolute;
top: 50%;
transform: translateY(-50%);
cursor: pointer;
}
.listbox-icon {
left: 0.3rem;
opacity: 0.7;
transition: all .2s ease;
}
.is-toggle-listbox {
right: 0.3rem;
font-size: 1.5rem;
}
list {
position: absolute;
top: 100%;
width: 100%;
max-height: 0;
background-color: #fff;
z-index: 10;
box-shadow: 0 2px 10px -2px rgba(#000, .1);
font-size: 0.8rem;
overflow: hidden;
transition: max-height .2s ease;
&.is-visible {
max-height: 100vh;
}
&-item {
flex-direction: row;
align-items: center;
align-content: center;
justify-content: space-between;
padding: 0.5rem 1rem;
cursor: pointer;
&:not(.is-active):hover {
background-color: whitesmoke;
}
&.is-active {
background-color: #22adff;
color: #fff;
}
}
}
}