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