X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fsass%2Fng-select.scss;h=b1b82b5730a2c0771bf7d9d275aa5b51be876814;hb=f552ca84a568b77062d3e4fc06fb9e3096529b1b;hp=61da6d2664722e7b914d5c23bb63cb5d919cc2da;hpb=7695987e9dbfd2fd4a7dfe34de9bdefa9cfbc88a;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/sass/ng-select.scss b/client/src/sass/ng-select.scss index 61da6d266..b1b82b573 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; @@ -14,7 +15,7 @@ $ng-select-height: 30px; $ng-select-value-padding-left: 15px; $ng-select-value-font-size: 15px; -@import "~@ng-select/ng-select/scss/default.theme.scss"; +@import '~@ng-select/ng-select/scss/default.theme'; .ng-select { font-size: $ng-select-value-font-size; @@ -22,31 +23,51 @@ $ng-select-value-font-size: 15px; &.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); } } .ng-select-container { background-color: pvar(--inputBackgroundColor); - } .ng-arrow-wrapper { - padding-right: 12px + @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 { + .ng-value-label { /* stylelint-disable-line */ display: flex; align-items: center; } } &.ng-select-multiple .ng-select-container .ng-value-container { - padding-left: 12px; - .ng-value { - margin-left: 3px; + @include padding-left(12px); + + .ng-value { /* stylelint-disable-line */ + @include margin-left(12px); } } }