]>
Commit | Line | Data |
---|---|---|
ffc42425 C |
1 | @use 'sass:math'; |
2 | @use 'sass:color'; | |
3 | ||
8cbc40b2 C |
4 | @use '_variables' as *; |
5 | @use '_mixins' as *; | |
02c01341 | 6 | |
dec437aa C |
7 | $ng-select-highlight: pvar(--mainColor); |
8 | $ng-select-primary-text: pvar(--mainForegroundColor); | |
02c01341 | 9 | // $ng-select-disabled-text: #f9f9f9 !default; |
bffee1d5 | 10 | $ng-select-border: $input-border-color; |
02c01341 | 11 | // $ng-select-border-radius: 4px !default; |
dec437aa C |
12 | $ng-select-bg: pvar(--mainBackgroundColor); |
13 | ||
14 | // Cannot use a CSS variable as the default them use darken on this variable | |
ffc42425 | 15 | $ng-select-selected: color.adjust($main-color, $lightness: 40%); |
dec437aa C |
16 | // $ng-select-selected-text: $ng-select-primary-text !default; |
17 | ||
18 | $ng-select-marked: pvar(--mainColorLightest); | |
19 | // $ng-select-marked-text: $ng-select-primary-text !default; | |
20 | ||
02c01341 | 21 | $ng-select-box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest); |
dec437aa | 22 | $ng-select-placeholder: pvar(--greyForegroundColor); |
02c01341 | 23 | $ng-select-height: 30px; |
0564fc09 | 24 | $ng-select-value-padding-left: 15px; |
5b0ec7cd | 25 | $ng-select-value-font-size: $form-input-font-size; |
dec437aa C |
26 | // $ng-select-value-text: $ng-select-primary-text !default; |
27 | ||
28 | // $ng-select-dropdown-bg: $ng-select-bg !default; | |
29 | // $ng-select-dropdown-border: $ng-select-border !default; | |
30 | // $ng-select-dropdown-optgroup-text: rgba(0, 0, 0, 0.54) !default; | |
31 | // $ng-select-dropdown-optgroup-marked: $ng-select-dropdown-optgroup-text !default; | |
32 | // $ng-select-dropdown-option-bg: $ng-select-dropdown-bg !default; | |
33 | // $ng-select-dropdown-option-text: rgba(0, 0, 0, 0.87) !default; | |
34 | $ng-select-dropdown-option-disabled: pvar(--greyForegroundColor); | |
35 | ||
36 | $ng-select-input-text: pvar(--mainForegroundColor); | |
02c01341 | 37 | |
a0da6f90 | 38 | @import '@ng-select/ng-select/scss/default.theme'; |
02c01341 | 39 | |
02c01341 | 40 | .ng-select { |
30f939c4 C |
41 | @include rounded-line-height-1-5($ng-select-value-font-size); |
42 | ||
03a5e95c C |
43 | font-size: $ng-select-value-font-size; |
44 | ||
02c01341 RK |
45 | &.ng-select-focused { |
46 | &:not(.ng-select-opened) > .ng-select-container { | |
dc9c9500 | 47 | border-color: $ng-select-border !important; |
02c01341 RK |
48 | } |
49 | } | |
84065945 | 50 | |
1160fd70 C |
51 | .ng-input > input { |
52 | color: pvar(--inputForegroundColor) !important; | |
53 | } | |
54 | ||
b788e691 | 55 | .ng-dropdown-panel .ng-dropdown-panel-items .ng-option { |
9a0b50ab C |
56 | &:not(.ng-option-marked, .ng-option-selected) { |
57 | color: pvar(--mainForegroundColor); | |
58 | background-color: pvar(--mainBackgroundColor); | |
59 | } | |
b788e691 C |
60 | } |
61 | ||
84065945 C |
62 | .ng-select-container { |
63 | background-color: pvar(--inputBackgroundColor); | |
149e4cc5 RK |
64 | } |
65 | ||
66 | .ng-arrow-wrapper { | |
27bc9586 | 67 | @include padding-right(12px); |
84065945 C |
68 | } |
69 | ||
bffee1d5 C |
70 | .ng-arrow { |
71 | border-color: #000 transparent transparent !important; | |
72 | } | |
73 | ||
74 | &.ng-select-opened .ng-arrow { | |
75 | border-color: transparent transparent #000 !important; | |
76 | } | |
77 | ||
84065945 C |
78 | &.ng-select-single .ng-value-container .ng-value { |
79 | color: pvar(--inputForegroundColor); | |
7695987e | 80 | |
1d74f897 | 81 | .ng-value-label { |
7695987e C |
82 | display: flex; |
83 | align-items: center; | |
84 | } | |
84065945 | 85 | } |
0564fc09 | 86 | |
87 | &.ng-select-multiple .ng-select-container .ng-value-container { | |
27bc9586 | 88 | @include padding-left(12px); |
931d3430 | 89 | |
1d74f897 | 90 | .ng-value { |
27bc9586 | 91 | @include margin-left(12px); |
1d74f897 C |
92 | |
93 | background-color: pvar(--mainColorLightest); | |
94 | ||
95 | .ng-value-icon { | |
4077aecd | 96 | border: 0 !important; |
1d74f897 | 97 | } |
0564fc09 | 98 | } |
99 | } | |
02c01341 | 100 | } |