]>
Commit | Line | Data |
---|---|---|
1 | @use '_variables' as *; | |
2 | @use '_mixins' as *; | |
3 | ||
4 | $ng-select-highlight: #f2690d; | |
5 | // $ng-select-primary-text: #333 !default; | |
6 | // $ng-select-disabled-text: #f9f9f9 !default; | |
7 | $ng-select-border: $input-border-color; | |
8 | // $ng-select-border-radius: 4px !default; | |
9 | // $ng-select-bg: #ffffff !default; | |
10 | // $ng-select-selected: lighten($ng-select-highlight, 46) !default; | |
11 | // $ng-select-marke d: lighten($ng-select-highlight, 48) !default; | |
12 | $ng-select-box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest); | |
13 | // $ng-select-placeholder: lighten($ng-select-primary-text, 40) !default; | |
14 | $ng-select-height: 30px; | |
15 | $ng-select-value-padding-left: 15px; | |
16 | $ng-select-value-font-size: $form-input-font-size; | |
17 | ||
18 | @import '~@ng-select/ng-select/scss/default.theme'; | |
19 | ||
20 | .ng-select { | |
21 | font-size: $ng-select-value-font-size; | |
22 | line-height: $form-input-line-height; | |
23 | ||
24 | &.ng-select-focused { | |
25 | &:not(.ng-select-opened) > .ng-select-container { | |
26 | border-color: #ccc !important; | |
27 | box-shadow: none !important; | |
28 | } | |
29 | } | |
30 | ||
31 | .ng-input > input { | |
32 | color: pvar(--inputForegroundColor) !important; | |
33 | } | |
34 | ||
35 | .ng-dropdown-panel .ng-dropdown-panel-items .ng-option { | |
36 | &:not(.ng-option-marked, .ng-option-selected) { | |
37 | color: pvar(--mainForegroundColor); | |
38 | background-color: pvar(--mainBackgroundColor); | |
39 | } | |
40 | } | |
41 | ||
42 | .ng-select-container { | |
43 | background-color: pvar(--inputBackgroundColor); | |
44 | } | |
45 | ||
46 | .ng-arrow-wrapper { | |
47 | @include padding-right(12px); | |
48 | } | |
49 | ||
50 | .ng-arrow { | |
51 | border-color: #000 transparent transparent !important; | |
52 | } | |
53 | ||
54 | &.ng-select-opened .ng-arrow { | |
55 | border-color: transparent transparent #000 !important; | |
56 | } | |
57 | ||
58 | &.ng-select-single .ng-value-container .ng-value { | |
59 | color: pvar(--inputForegroundColor); | |
60 | ||
61 | .ng-value-label { /* stylelint-disable-line */ | |
62 | display: flex; | |
63 | align-items: center; | |
64 | } | |
65 | } | |
66 | ||
67 | &.ng-select-multiple .ng-select-container .ng-value-container { | |
68 | @include padding-left(12px); | |
69 | ||
70 | .ng-value { /* stylelint-disable-line */ | |
71 | @include margin-left(12px); | |
72 | } | |
73 | } | |
74 | } |