blob: 4e8733534d49f34ac516d55caa55e7d60dbee988 (
plain)
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
|
.checklist {
z-index: 20;
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: calc(100vh - 3rem);
transform: translateZ(0) translateY(100vh);
transition: transform 0.2s;
background: white;
color: black;
font-size: 16px;
padding: 1.5rem;
}
.checklist-open .checklist {
transform: translateZ(0) translateY(0);
}
/* dropdown */
.checklist-dropdown-container {
width: 12rem;
cursor: pointer;
}
.checklist-dropdown {
display: flex;
flex-flow: row nowrap;
justify-content: space-between;
align-items: center;
border: 1px solid black;
padding-left: 0.5rem;
}
.checklist-dropdown .arrow-box {
display: flex;
justify-content: center;
align-items: center;
padding: 0 0.5rem;
border-left: 1px solid black;
}
.checklist-dropdown .arrow {
width: 2.5rem;
height: 2rem;
}
.checklist-dropdown-options {
border-left: 1px solid black;
border-right: 1px solid black;
border-bottom: 1px solid black;
transition: height 0.2s;
overflow: hidden;
position: relative;
top: -1px;
}
.checklist-dropdown-options.open {
top: 0;
}
.checklist-dropdown-options div {
padding: 0.25rem 0.5rem;
transition: all 0.1s;
}
.checklist-dropdown-options div:hover {
color: white;
background: black;
}
|