]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/sass/ng-select.scss
Fix button/input/select heights
[github/Chocobozzz/PeerTube.git] / client / src / sass / ng-select.scss
CommitLineData
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 {
30f939c4
C
38 @include rounded-line-height-1-5($ng-select-value-font-size);
39
03a5e95c
C
40 font-size: $ng-select-value-font-size;
41
02c01341
RK
42 &.ng-select-focused {
43 &:not(.ng-select-opened) > .ng-select-container {
44 border-color: #ccc !important;
ebe9b6b3 45 box-shadow: none !important;
02c01341
RK
46 }
47 }
84065945 48
1160fd70
C
49 .ng-input > input {
50 color: pvar(--inputForegroundColor) !important;
51 }
52
b788e691 53 .ng-dropdown-panel .ng-dropdown-panel-items .ng-option {
9a0b50ab
C
54 &:not(.ng-option-marked, .ng-option-selected) {
55 color: pvar(--mainForegroundColor);
56 background-color: pvar(--mainBackgroundColor);
57 }
b788e691
C
58 }
59
84065945
C
60 .ng-select-container {
61 background-color: pvar(--inputBackgroundColor);
149e4cc5
RK
62 }
63
64 .ng-arrow-wrapper {
27bc9586 65 @include padding-right(12px);
84065945
C
66 }
67
bffee1d5
C
68 .ng-arrow {
69 border-color: #000 transparent transparent !important;
70 }
71
72 &.ng-select-opened .ng-arrow {
73 border-color: transparent transparent #000 !important;
74 }
75
84065945
C
76 &.ng-select-single .ng-value-container .ng-value {
77 color: pvar(--inputForegroundColor);
7695987e 78
1d74f897 79 .ng-value-label {
7695987e
C
80 display: flex;
81 align-items: center;
82 }
84065945 83 }
0564fc09 84
85 &.ng-select-multiple .ng-select-container .ng-value-container {
27bc9586 86 @include padding-left(12px);
931d3430 87
1d74f897 88 .ng-value {
27bc9586 89 @include margin-left(12px);
1d74f897
C
90
91 background-color: pvar(--mainColorLightest);
92
93 .ng-value-icon {
4077aecd 94 border: 0 !important;
1d74f897 95 }
0564fc09 96 }
97 }
02c01341 98}