-
Notifications
You must be signed in to change notification settings - Fork 290
/
ng-multiselect-dropdown.theme.scss
210 lines (195 loc) · 4.43 KB
/
ng-multiselect-dropdown.theme.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
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
$base-color: #337ab7;
$disable-background-color: #eceeef;
.multiselect-dropdown {
position: relative;
width: 100%;
font-size: inherit;
font-family: inherit;
.dropdown-btn {
display: inline-block;
border: 1px solid #adadad;
width: 100%;
padding: 6px 12px;
margin-bottom: 0;
font-weight: normal;
line-height: 1.52857143;
text-align: left;
vertical-align: middle;
cursor: pointer;
background-image: none;
border-radius: 4px;
.selected-item {
border: 1px solid $base-color;
margin-right: 4px;
background: $base-color;
padding: 0px 5px;
color: #fff;
border-radius: 2px;
float: left;
a {
text-decoration: none;
}
}
.selected-item:hover {
box-shadow: 1px 1px #959595;
}
.dropdown-down {
display: inline-block;
top: 10px;
width: 0;
height: 0;
border-top: 10px solid #adadad;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
}
.dropdown-up {
display: inline-block;
width: 0;
height: 0;
border-bottom: 10px solid #adadad;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
}
}
.disabled {
& > span {
background-color: $disable-background-color;
}
}
}
.dropdown-list {
position: absolute;
padding-top: 6px;
width: 100%;
z-index: 9999;
border: 1px solid #ccc;
border-radius: 3px;
background: #fff;
margin-top: 10px;
box-shadow: 0px 1px 5px #959595;
ul {
padding: 0px;
list-style: none;
overflow: auto;
margin: 0px;
}
li {
padding: 6px 10px;
cursor: pointer;
text-align: left;
}
.filter-textbox {
border-bottom: 1px solid #ccc;
position: relative;
padding: 10px;
input {
border: 0px;
width: 100%;
padding: 0px 0px 0px 26px;
}
input:focus {
outline: none;
}
}
}
.multiselect-item-checkbox input[type='checkbox'] {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
.multiselect-item-checkbox input[type='checkbox']:focus + div:before,
.multiselect-item-checkbox input[type='checkbox']:hover + div:before {
border-color: $base-color;
background-color: #f2f2f2;
}
.multiselect-item-checkbox input[type='checkbox']:active + div:before {
transition-duration: 0s;
}
.multiselect-item-checkbox input[type='checkbox'] + div {
position: relative;
padding-left: 2em;
vertical-align: middle;
user-select: none;
cursor: pointer;
margin: 0px;
color: #000;
}
.multiselect-item-checkbox input[type='checkbox'] + div:before {
box-sizing: content-box;
content: '';
color: $base-color;
position: absolute;
top: 50%;
left: 0;
width: 14px;
height: 14px;
margin-top: -9px;
border: 2px solid $base-color;
text-align: center;
transition: all 0.4s ease;
}
.multiselect-item-checkbox input[type='checkbox'] + div:after {
box-sizing: content-box;
content: '';
background-color: $base-color;
position: absolute;
top: 50%;
left: 4px;
width: 10px;
height: 10px;
margin-top: -5px;
transform: scale(0);
transform-origin: 50%;
transition: transform 200ms ease-out;
}
.multiselect-item-checkbox input[type='checkbox']:disabled + div:before {
border-color: #cccccc;
}
.multiselect-item-checkbox
input[type='checkbox']:disabled:focus
+ div:before
.multiselect-item-checkbox
input[type='checkbox']:disabled:hover
+ div:before {
background-color: inherit;
}
.multiselect-item-checkbox
input[type='checkbox']:disabled:checked
+ div:before {
background-color: #cccccc;
}
.multiselect-item-checkbox input[type='checkbox'] + div:after {
background-color: transparent;
top: 50%;
left: 4px;
width: 8px;
height: 3px;
margin-top: -4px;
border-style: solid;
border-color: #ffffff;
border-width: 0 0 3px 3px;
border-image: none;
transform: rotate(-45deg) scale(0);
}
.multiselect-item-checkbox input[type='checkbox']:checked + div:after {
content: '';
transform: rotate(-45deg) scale(1);
transition: transform 200ms ease-out;
}
.multiselect-item-checkbox input[type='checkbox']:checked + div:before {
animation: borderscale 200ms ease-in;
background: $base-color;
}
.multiselect-item-checkbox input[type='checkbox']:checked + div:after {
transform: rotate(-45deg) scale(1);
}
@keyframes borderscale {
50% {
box-shadow: 0 0 0 2px $base-color;
}
}