@ng-matero/ng-select 0.5.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,451 +0,0 @@
1
- /* stylelint-disable scss/no-global-function-names */
2
- @import 'mixins';
3
-
4
- $ng-select-highlight: #007eff !default;
5
- $ng-select-primary-text: #333 !default;
6
- $ng-select-disabled-text: #f9f9f9 !default;
7
- $ng-select-border: #ccc !default;
8
- $ng-select-border-radius: 4px !default;
9
- $ng-select-bg: #fff !default;
10
- $ng-select-selected: lighten($ng-select-highlight, 46) !default;
11
- $ng-select-selected-text: $ng-select-primary-text !default;
12
-
13
- $ng-select-marked: lighten($ng-select-highlight, 48) !default;
14
- $ng-select-marked-text: $ng-select-primary-text !default;
15
-
16
- $ng-select-box-shadow:
17
- inset 0 1px 1px rgba(0, 0, 0, 0.075),
18
- 0 0 0 3px rgba(0, 126, 255, 0.1) !default;
19
- $ng-select-placeholder: lighten($ng-select-primary-text, 40) !default;
20
- $ng-select-height: 36px !default;
21
- $ng-select-value-padding-left: 10px !default;
22
- $ng-select-value-font-size: 0.9em !default;
23
- $ng-select-value-text: $ng-select-primary-text !default;
24
-
25
- $ng-select-dropdown-bg: $ng-select-bg !default;
26
- $ng-select-dropdown-border: $ng-select-border !default;
27
- $ng-select-dropdown-optgroup-text: rgba(0, 0, 0, 0.54) !default;
28
- $ng-select-dropdown-optgroup-marked: $ng-select-dropdown-optgroup-text !default;
29
- $ng-select-dropdown-option-bg: $ng-select-dropdown-bg !default;
30
- $ng-select-dropdown-option-text: rgba(0, 0, 0, 0.87) !default;
31
- $ng-select-dropdown-option-disabled: lighten($ng-select-primary-text, 60) !default;
32
-
33
- $ng-select-input-text: #000 !default;
34
-
35
- .ng-select {
36
- &.ng-select-opened {
37
- > .ng-select-container {
38
- background: $ng-select-bg;
39
- border-color: darken($ng-select-border, 10) $ng-select-border lighten($ng-select-border, 5);
40
-
41
- &:hover {
42
- box-shadow: none;
43
- }
44
-
45
- .ng-arrow {
46
- top: -2px;
47
- border-color: transparent transparent darken($ng-select-border, 20);
48
- border-width: 0 5px 5px;
49
-
50
- &:hover {
51
- border-color: transparent transparent darken($ng-select-border, 60);
52
- }
53
- }
54
- }
55
-
56
- &.ng-select-top {
57
- > .ng-select-container {
58
- border-top-right-radius: 0;
59
- border-top-left-radius: 0;
60
- }
61
- }
62
-
63
- &.ng-select-right {
64
- > .ng-select-container {
65
- border-top-right-radius: 0;
66
- border-bottom-right-radius: 0;
67
- }
68
- }
69
-
70
- &.ng-select-bottom {
71
- > .ng-select-container {
72
- border-bottom-right-radius: 0;
73
- border-bottom-left-radius: 0;
74
- }
75
- }
76
-
77
- &.ng-select-left {
78
- > .ng-select-container {
79
- border-top-left-radius: 0;
80
- border-bottom-left-radius: 0;
81
- }
82
- }
83
- }
84
-
85
- &.ng-select-focused {
86
- &:not(.ng-select-opened) > .ng-select-container {
87
- border-color: $ng-select-highlight;
88
- box-shadow: $ng-select-box-shadow;
89
- }
90
- }
91
-
92
- &.ng-select-disabled {
93
- > .ng-select-container {
94
- background-color: $ng-select-disabled-text;
95
- }
96
- }
97
-
98
- .ng-has-value .ng-placeholder {
99
- display: none;
100
- }
101
-
102
- .ng-select-container {
103
- color: $ng-select-primary-text;
104
- background-color: $ng-select-bg;
105
- border-radius: $ng-select-border-radius;
106
- border: 1px solid $ng-select-border;
107
- min-height: $ng-select-height;
108
- align-items: center;
109
-
110
- &:hover {
111
- box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
112
- }
113
-
114
- .ng-value-container {
115
- align-items: center;
116
- padding-left: $ng-select-value-padding-left;
117
- @include rtl {
118
- padding-right: $ng-select-value-padding-left;
119
- padding-left: 0;
120
- }
121
-
122
- .ng-placeholder {
123
- color: $ng-select-placeholder;
124
- }
125
- }
126
- }
127
-
128
- &.ng-select-single {
129
- .ng-select-container {
130
- height: $ng-select-height;
131
-
132
- .ng-value-container {
133
- .ng-input {
134
- top: 5px;
135
- left: 0;
136
- padding-left: $ng-select-value-padding-left;
137
- padding-right: 50px;
138
- @include rtl {
139
- padding-right: $ng-select-value-padding-left;
140
- padding-left: 50px;
141
- }
142
- }
143
- }
144
- }
145
- }
146
-
147
- &.ng-select-multiple {
148
- &.ng-select-disabled {
149
- > .ng-select-container .ng-value-container .ng-value {
150
- background-color: $ng-select-disabled-text;
151
- border: 1px solid lighten($ng-select-border, 10);
152
-
153
- .ng-value-label {
154
- padding: 0 5px;
155
- }
156
- }
157
- }
158
-
159
- .ng-select-container {
160
- .ng-value-container {
161
- padding-top: 5px;
162
- padding-left: 7px;
163
- @include rtl {
164
- padding-right: 7px;
165
- padding-left: 0;
166
- }
167
-
168
- .ng-value {
169
- font-size: $ng-select-value-font-size;
170
- margin-bottom: 5px;
171
- color: $ng-select-value-text;
172
- background-color: $ng-select-selected;
173
- border-radius: 2px;
174
- margin-right: 5px;
175
- @include rtl {
176
- margin-right: 0;
177
- margin-left: 5px;
178
- }
179
-
180
- &.ng-value-disabled {
181
- background-color: $ng-select-disabled-text;
182
-
183
- .ng-value-label {
184
- padding-left: 5px;
185
- @include rtl {
186
- padding-left: 0;
187
- padding-right: 5px;
188
- }
189
- }
190
- }
191
-
192
- .ng-value-label {
193
- display: inline-block;
194
- padding: 1px 5px;
195
- }
196
-
197
- .ng-value-remove {
198
- display: inline-block;
199
- padding: 1px 5px;
200
-
201
- &:hover {
202
- background-color: darken($ng-select-selected, 5);
203
- }
204
-
205
- &.left {
206
- border-right: 1px solid darken($ng-select-selected, 10);
207
- @include rtl {
208
- border-left: 1px solid darken($ng-select-selected, 10);
209
- border-right: none;
210
- }
211
- }
212
-
213
- &.right {
214
- border-left: 1px solid darken($ng-select-selected, 10);
215
- @include rtl {
216
- border-left: 0;
217
- border-right: 1px solid darken($ng-select-selected, 10);
218
- }
219
- }
220
- }
221
- }
222
-
223
- .ng-input {
224
- padding: 0 0 3px 3px;
225
- @include rtl {
226
- padding: 0 3px 3px 0;
227
- }
228
-
229
- > input {
230
- color: $ng-select-input-text;
231
- }
232
- }
233
-
234
- .ng-placeholder {
235
- top: 5px;
236
- padding-bottom: 5px;
237
- padding-left: 3px;
238
- @include rtl {
239
- padding-right: 3px;
240
- padding-left: 0;
241
- }
242
- }
243
- }
244
- }
245
- }
246
-
247
- .ng-clear-wrapper {
248
- color: darken($ng-select-border, 20);
249
-
250
- &:hover .ng-clear {
251
- color: #d0021b;
252
- }
253
-
254
- &:focus .ng-clear {
255
- color: #d0021b;
256
- }
257
-
258
- &:focus {
259
- outline: none;
260
- }
261
- }
262
-
263
- .ng-spinner-zone {
264
- padding: 5px 5px 0 0;
265
-
266
- @include rtl {
267
- padding: 5px 0 0 5px;
268
- }
269
- }
270
-
271
- .ng-arrow-wrapper {
272
- width: 25px;
273
- padding-right: 5px;
274
- @include rtl {
275
- padding-left: 5px;
276
- padding-right: 0;
277
- }
278
-
279
- &:hover {
280
- .ng-arrow {
281
- border-top-color: darken($ng-select-border, 40);
282
- }
283
- }
284
-
285
- .ng-arrow {
286
- border-color: darken($ng-select-border, 20) transparent transparent;
287
- border-style: solid;
288
- border-width: 5px 5px 2.5px;
289
- }
290
- }
291
- }
292
-
293
- .ng-dropdown-panel {
294
- background-color: $ng-select-dropdown-bg;
295
- border: 1px solid $ng-select-dropdown-border;
296
- box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
297
- left: 0;
298
-
299
- &.ng-select-top {
300
- bottom: 100%;
301
- border-top-right-radius: $ng-select-border-radius;
302
- border-top-left-radius: $ng-select-border-radius;
303
- border-bottom-color: lighten($ng-select-border, 10);
304
- margin-bottom: -1px;
305
-
306
- .ng-dropdown-panel-items {
307
- .ng-option {
308
- &:first-child {
309
- border-top-right-radius: $ng-select-border-radius;
310
- border-top-left-radius: $ng-select-border-radius;
311
- }
312
- }
313
- }
314
- }
315
-
316
- &.ng-select-right {
317
- left: 100%;
318
- top: 0;
319
- border-top-right-radius: $ng-select-border-radius;
320
- border-bottom-right-radius: $ng-select-border-radius;
321
- border-bottom-left-radius: $ng-select-border-radius;
322
- border-bottom-color: lighten($ng-select-border, 10);
323
- margin-bottom: -1px;
324
-
325
- .ng-dropdown-panel-items {
326
- .ng-option {
327
- &:first-child {
328
- border-top-right-radius: $ng-select-border-radius;
329
- }
330
- }
331
- }
332
- }
333
-
334
- &.ng-select-bottom {
335
- top: 100%;
336
- border-bottom-right-radius: $ng-select-border-radius;
337
- border-bottom-left-radius: $ng-select-border-radius;
338
- border-top-color: lighten($ng-select-border, 10);
339
- margin-top: -1px;
340
-
341
- .ng-dropdown-panel-items {
342
- .ng-option {
343
- &:last-child {
344
- border-bottom-right-radius: $ng-select-border-radius;
345
- border-bottom-left-radius: $ng-select-border-radius;
346
- }
347
- }
348
- }
349
- }
350
-
351
- &.ng-select-left {
352
- left: -100%;
353
- top: 0;
354
- border-top-left-radius: $ng-select-border-radius;
355
- border-bottom-right-radius: $ng-select-border-radius;
356
- border-bottom-left-radius: $ng-select-border-radius;
357
- border-bottom-color: lighten($ng-select-border, 10);
358
- margin-bottom: -1px;
359
-
360
- .ng-dropdown-panel-items {
361
- .ng-option {
362
- &:first-child {
363
- border-top-left-radius: $ng-select-border-radius;
364
- }
365
- }
366
- }
367
- }
368
-
369
- .ng-dropdown-header {
370
- border-bottom: 1px solid $ng-select-border;
371
- padding: 5px 7px;
372
- }
373
-
374
- .ng-dropdown-footer {
375
- border-top: 1px solid $ng-select-border;
376
- padding: 5px 7px;
377
- }
378
-
379
- .ng-dropdown-panel-items {
380
- .ng-optgroup {
381
- user-select: none;
382
- padding: 8px 10px;
383
- font-weight: 500;
384
- color: $ng-select-dropdown-optgroup-text;
385
- cursor: pointer;
386
-
387
- &.ng-option-disabled {
388
- cursor: default;
389
- }
390
-
391
- &.ng-option-marked {
392
- background-color: $ng-select-marked;
393
- }
394
-
395
- &.ng-option-selected,
396
- &.ng-option-selected.ng-option-marked {
397
- color: $ng-select-dropdown-optgroup-marked;
398
- background-color: $ng-select-selected;
399
- font-weight: 600;
400
- }
401
- }
402
-
403
- .ng-option {
404
- background-color: $ng-select-dropdown-option-bg;
405
- color: $ng-select-dropdown-option-text;
406
- padding: 8px 10px;
407
-
408
- &.ng-option-selected,
409
- &.ng-option-selected.ng-option-marked {
410
- color: $ng-select-selected-text;
411
- background-color: $ng-select-selected;
412
-
413
- .ng-option-label {
414
- font-weight: 600;
415
- }
416
- }
417
-
418
- &.ng-option-marked {
419
- background-color: $ng-select-marked;
420
- color: $ng-select-marked-text;
421
- }
422
-
423
- &.ng-option-disabled {
424
- color: $ng-select-dropdown-option-disabled;
425
- }
426
-
427
- &.ng-option-child {
428
- padding-left: 22px;
429
- @include rtl {
430
- padding-right: 22px;
431
- padding-left: 0;
432
- }
433
- }
434
-
435
- .ng-tag-label {
436
- font-size: 80%;
437
- font-weight: 400;
438
- padding-right: 5px;
439
- @include rtl {
440
- padding-left: 5px;
441
- padding-right: 0;
442
- }
443
- }
444
- }
445
- }
446
-
447
- @include rtl {
448
- direction: rtl;
449
- text-align: right;
450
- }
451
- }