-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathdropdown.component.module.css
More file actions
110 lines (98 loc) · 2.3 KB
/
dropdown.component.module.css
File metadata and controls
110 lines (98 loc) · 2.3 KB
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
.select-select {
--border-select-width: 1px;
--border-select-color: var(--input-border-color);
position: relative;
width: 100%;
border: var(--border-select-width) solid var(--border-select-color);
background-color: var(--bg-input);
border-radius: var(--border-radius-xs);
transition: all 0.2s ease;
display: flex;
justify-content: space-between;
align-items: center;
padding: var(--space-xs);
text-align: left;
font-size: var(--fs-m);
font-weight: var(--fw-regular);
line-height: 1.5em;
}
.select-chosen {
display: flex;
align-items: center;
gap: 8px;
padding: var(--space-xs);
cursor: pointer;
}
.select-text {
width: 100%;
min-width: 150px;
}
.options {
--border-select-width: 1px;
--border-select-color: var(--input-border-color-active);
list-style: none;
padding: 8px;
margin: 0;
position: absolute;
text-align: left;
z-index: 3;
top: calc(100% + var(--border-select-width));
left: calc(0px - var(--border-select-width));
width: calc(100% + var(--border-select-width) * 2);
border: var(--border-select-width) solid var(--input-border-color-active);
border-top: none;
background-color: var(--bg-input);
border-radius: var(--border-radius-xs);
max-height: 300px;
overflow-y: auto;
}
.options li {
font-size: 16px;
color: var(--text-color);
cursor: pointer;
display: flex;
align-items: center;
padding: 8px;
gap: 8px;
}
.options li:hover {
color: var(--input-border-color-active);
background-color: var(--hover-input);
}
.svg {
display: flex;
align-items: center;
justify-content: center;
width: 20px;
height: 20px;
color: var(--input-border-color-active);
}
.svg.tick {
margin-right: 8px;
}
.veil {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: var(--veil-modal);
opacity: 0.5;
}
.select-select:hover {
--border-select-color: var(--input-border-color-active);
box-shadow: 0 0 4px var(--hover-checkbox);
background-color: var(--hover-input);
color: inherit;
}
.select-active {
--border-select-color: var(--input-border-color-active);
box-shadow: 0 0 4px var(--hover-checkbox);
background-color: var(--hover-input);
}
.select-error {
--border-select-color: var(--color-error);
}
.select-error.select-select:hover {
--border-select-color: var(--color-error);
}