1
0
Fork 0
peertube/client/src/sass/ng-select.scss

75 lines
2.0 KiB
SCSS
Raw Normal View History

2021-05-27 16:25:00 +00:00
@use '_variables' as *;
@use '_mixins' as *;
$ng-select-highlight: #f2690d;
// $ng-select-primary-text: #333 !default;
// $ng-select-disabled-text: #f9f9f9 !default;
$ng-select-border: $input-border-color;
// $ng-select-border-radius: 4px !default;
// $ng-select-bg: #ffffff !default;
// $ng-select-selected: lighten($ng-select-highlight, 46) !default;
// $ng-select-marke d: lighten($ng-select-highlight, 48) !default;
$ng-select-box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest);
// $ng-select-placeholder: lighten($ng-select-primary-text, 40) !default;
$ng-select-height: 30px;
$ng-select-value-padding-left: 15px;
2022-06-15 12:59:25 +00:00
$ng-select-value-font-size: $form-input-font-size;
2022-10-07 13:29:53 +00:00
@import '@ng-select/ng-select/scss/default.theme';
.ng-select {
font-size: $ng-select-value-font-size;
2022-06-15 12:59:25 +00:00
line-height: $form-input-line-height;
&.ng-select-focused {
&:not(.ng-select-opened) > .ng-select-container {
border-color: #ccc !important;
2021-10-20 12:50:46 +00:00
box-shadow: none !important;
}
}
2021-01-20 09:59:47 +00:00
2022-05-02 12:40:43 +00:00
.ng-input > input {
color: pvar(--inputForegroundColor) !important;
}
2022-03-15 13:12:37 +00:00
.ng-dropdown-panel .ng-dropdown-panel-items .ng-option {
2022-05-02 12:51:19 +00:00
&:not(.ng-option-marked, .ng-option-selected) {
color: pvar(--mainForegroundColor);
background-color: pvar(--mainBackgroundColor);
}
2022-03-15 13:12:37 +00:00
}
2021-01-20 09:59:47 +00:00
.ng-select-container {
background-color: pvar(--inputBackgroundColor);
}
.ng-arrow-wrapper {
2021-06-07 15:38:31 +00:00
@include padding-right(12px);
2021-01-20 09:59:47 +00:00
}
.ng-arrow {
border-color: #000 transparent transparent !important;
}
&.ng-select-opened .ng-arrow {
border-color: transparent transparent #000 !important;
}
2021-01-20 09:59:47 +00:00
&.ng-select-single .ng-value-container .ng-value {
color: pvar(--inputForegroundColor);
2021-04-27 07:15:39 +00:00
2021-04-28 14:41:07 +00:00
.ng-value-label { /* stylelint-disable-line */
2021-04-27 07:15:39 +00:00
display: flex;
align-items: center;
}
2021-01-20 09:59:47 +00:00
}
&.ng-select-multiple .ng-select-container .ng-value-container {
2021-06-07 15:38:31 +00:00
@include padding-left(12px);
2021-04-28 14:41:07 +00:00
.ng-value { /* stylelint-disable-line */
2021-06-07 15:38:31 +00:00
@include margin-left(12px);
}
}
}