-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathSelect.css
56 lines (44 loc) · 939 Bytes
/
Select.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
:root {
--select-icon-width: 1.9rem;
}
.select {
&.fullWidth {
width: 100%;
}
}
.selectControl {
padding: var(--input-vertical-padding) var(--select-icon-width) var(--input-vertical-padding) var(--input-horizontal-padding);
appearance: none;
font-size: var(--font-size-medium);
line-height: var(--line-height);
& option {
background-color: var(--bg);
&:checked {
background-color: selecteditem;
color: selecteditemtext;
}
}
&.placeholder {
color: #888;
& option {
color: #444;
}
}
}
[dir="rtl"] .selectControl {
padding: var(--input-vertical-padding) var(--input-horizontal-padding) var(--input-vertical-padding) var(--select-icon-width);
}
.selectWrap {
position: relative;
}
.selectIcon {
color: var(--color-icon);
position: absolute;
right: 0.4em;
top: 0.4em;
pointer-events: none;
}
[dir="rtl"] .selectIcon {
left: 0.4em;
right: auto;
}