Newer
Older
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
.select2 {
&-container {
z-index: 99995; // to override any modals
}
.select2-container--default,
&.select2-container--default {
width: 100% !important; // sass-lint:disable-line no-important
.select2-selection--single {
height: 55px;
border: 1px solid $color--mid-grey;
border-radius: 0;
&.is-active {
font-weight: $weight--bold;
border-color: $color--primary;
}
.select2-selection__clear {
position: absolute;
right: 35px;
display: none;
float: none;
@include media-query(small-tablet) {
display: block;
}
}
.select2-selection__rendered {
padding-left: 15px;
line-height: 55px;
}
.select2-selection__arrow {
right: 15px;
height: 53px;
pointer-events: none;
background: url('./../../images/dropdown.svg') transparent no-repeat 95% center;
background-size: 8px;
b[role='presentation'] {
display: none;
}
}
.select2-selection__placeholder {
color: $color--default;
}
}
}
}
.select2-container {
&--default {
.select2-results__option--highlighted[aria-selected] {
color: $color--default !important; // sass-lint:disable-line no-important
background-color: transparentize($color--primary, 0.9) !important; // sass-lint:disable-line no-important
}
}
.select2-dropdown {
border: 0;
border-bottom: 1px solid $color--mid-grey;
border-radius: 0;
@include media-query(small-tablet) {
border: 1px solid $color--mid-grey;
}
}
.select2-results__option {
padding: 0;
&[aria-selected='true'] {
.wrap {
&::before {
background: url('./../../images/tick.svg') $color--dark-blue center no-repeat;
background-size: 12px;
border: 1px solid $color--dark-blue;
content: '';
}
}
}
.wrap {
display: flex;
align-items: center;
padding: 6px;
&::before {
width: 20px;
height: 20px;
margin-right: 10px;
background: $color--white;
border: 1px solid $color--mid-grey;
content: '';
}
}
}
}