forked from Brightspace/valence-ui-input
-
Notifications
You must be signed in to change notification settings - Fork 0
/
select.scss
66 lines (61 loc) · 1.41 KB
/
select.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
66
@import 'input.scss';
@import 'input-icons.scss';
@import 'bower_components/d2l-colors/d2l-colors.scss';
@mixin vui-input-select() {
@include vui-input();
option {
font-weight: 300;
}
@media screen and (-webkit-min-device-pixel-ratio :0),
screen and (min--moz-device-pixel-ratio: 0),
screen and (-ms-high-contrast: active),
(-ms-high-contrast: none) {
&:not([multiple]) {
appearance: none;
background-position: right center;
background-repeat: no-repeat;
background-size: contain;
max-height: calc(2rem + 2px);
&:focus,
&:hover,
&.vui-input-hover,
&.vui-input-focus {
&::-ms-value {
background-color: transparent;
color: $d2l-color-ferrite;
}
background-image: $vui-select-hover;
padding-right: calc(1rem + 42px - 1px);
}
&,
&:disabled,
&:focus:disabled,
&:hover:disabled {
background-image: $vui-select-normal;
padding-right: calc(1rem + 42px);
}
}
[dir='rtl'] &:not([multiple]) {
background-position: left center;
&:focus,
&:hover,
&.vui-input-hover,
&.vui-input-focus {
background-image: $vui-select-hover-rtl;
padding-left: calc(1rem + 42px - 1px);
padding-right: calc(1rem - 1px);
}
&,
&:disabled,
&:focus:disabled,
&:hover:disabled {
background-image: $vui-select-normal-rtl;
padding-right: 1rem;
padding-left: calc(1rem + 42px);
}
}
&::-ms-expand {
display: none;
}
}
}