X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fsass%2Fng-select.scss;h=e231e4fedd1cc57614022b7d5bf5a869c6f01f31;hb=f6a0ee89d16e836fc961507b1efb32aa1cbc86ac;hp=d7ea73d483b5d32706989e42d50621d86b0b9352;hpb=840659455ff320853488ebb9904ee3a768863ddb;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/sass/ng-select.scss b/client/src/sass/ng-select.scss index d7ea73d48..e231e4fed 100644 --- a/client/src/sass/ng-select.scss +++ b/client/src/sass/ng-select.scss @@ -1,9 +1,10 @@ -@import '_variables'; +@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: #ccc !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; @@ -11,19 +12,30 @@ $ng-select-highlight: #f2690d; $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: 10px !default; -// $ng-select-value-font-size: 0.9em !default; +$ng-select-value-padding-left: 15px; +$ng-select-value-font-size: $form-input-font-size; -@import "~@ng-select/ng-select/scss/default.theme.scss"; - -.ng-input { - font-size: .9em; -} +@import '@ng-select/ng-select/scss/default.theme'; .ng-select { + font-size: $ng-select-value-font-size; + line-height: $form-input-line-height; + &.ng-select-focused { &:not(.ng-select-opened) > .ng-select-container { border-color: #ccc !important; + box-shadow: none !important; + } + } + + .ng-input > input { + color: pvar(--inputForegroundColor) !important; + } + + .ng-dropdown-panel .ng-dropdown-panel-items .ng-option { + &:not(.ng-option-marked, .ng-option-selected) { + color: pvar(--mainForegroundColor); + background-color: pvar(--mainBackgroundColor); } } @@ -31,7 +43,32 @@ $ng-select-height: 30px; background-color: pvar(--inputBackgroundColor); } + .ng-arrow-wrapper { + @include padding-right(12px); + } + + .ng-arrow { + border-color: #000 transparent transparent !important; + } + + &.ng-select-opened .ng-arrow { + border-color: transparent transparent #000 !important; + } + &.ng-select-single .ng-value-container .ng-value { color: pvar(--inputForegroundColor); + + .ng-value-label { /* stylelint-disable-line */ + display: flex; + align-items: center; + } + } + + &.ng-select-multiple .ng-select-container .ng-value-container { + @include padding-left(12px); + + .ng-value { /* stylelint-disable-line */ + @include margin-left(12px); + } } }