]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/sass/ng-select.scss
Fix ng select input font color
[github/Chocobozzz/PeerTube.git] / client / src / sass / ng-select.scss
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: #ccc !default;
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: 15px;
17
18 @import '~@ng-select/ng-select/scss/default.theme';
19
20 .ng-select {
21 font-size: $ng-select-value-font-size;
22
23 &.ng-select-focused {
24 &:not(.ng-select-opened) > .ng-select-container {
25 border-color: #ccc !important;
26 box-shadow: none !important;
27 }
28 }
29
30 .ng-input > input {
31 color: pvar(--inputForegroundColor) !important;
32 }
33
34 .ng-dropdown-panel .ng-dropdown-panel-items .ng-option {
35 color: pvar(--mainForegroundColor);
36 background-color: pvar(--mainBackgroundColor);
37 }
38
39 .ng-select-container {
40 background-color: pvar(--inputBackgroundColor);
41 }
42
43 .ng-arrow-wrapper {
44 @include padding-right(12px);
45 }
46
47 &.ng-select-single .ng-value-container .ng-value {
48 color: pvar(--inputForegroundColor);
49
50 .ng-value-label { /* stylelint-disable-line */
51 display: flex;
52 align-items: center;
53 }
54 }
55
56 &.ng-select-multiple .ng-select-container .ng-value-container {
57 @include padding-left(12px);
58
59 .ng-value { /* stylelint-disable-line */
60 @include margin-left(12px);
61 }
62 }
63 }