X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fsass%2Fng-select.scss;h=ba7905c890612ae35055d058efc772abf773f559;hb=c43e50c51c3abff33b1b27db92aa64706cd76c54;hp=b0af4f763ef2c9fddec5291834472a9fcdf9531f;hpb=dec437aa46a644fb1b3cedc9afe4503c44e15308;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/sass/ng-select.scss b/client/src/sass/ng-select.scss index b0af4f763..ba7905c89 100644 --- a/client/src/sass/ng-select.scss +++ b/client/src/sass/ng-select.scss @@ -1,3 +1,6 @@ +@use 'sass:math'; +@use 'sass:color'; + @use '_variables' as *; @use '_mixins' as *; @@ -9,7 +12,7 @@ $ng-select-border: $input-border-color; $ng-select-bg: pvar(--mainBackgroundColor); // Cannot use a CSS variable as the default them use darken on this variable -$ng-select-selected: lighten($main-color, 40%); +$ng-select-selected: color.adjust($main-color, $lightness: 40%); // $ng-select-selected-text: $ng-select-primary-text !default; $ng-select-marked: pvar(--mainColorLightest); @@ -35,13 +38,13 @@ $ng-select-input-text: pvar(--mainForegroundColor); @import '@ng-select/ng-select/scss/default.theme'; .ng-select { + @include rounded-line-height-1-5($ng-select-value-font-size); + 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; + border-color: $ng-select-border !important; } } @@ -75,7 +78,7 @@ $ng-select-input-text: pvar(--mainForegroundColor); &.ng-select-single .ng-value-container .ng-value { color: pvar(--inputForegroundColor); - .ng-value-label { /* stylelint-disable-line */ + .ng-value-label { display: flex; align-items: center; } @@ -84,8 +87,14 @@ $ng-select-input-text: pvar(--mainForegroundColor); &.ng-select-multiple .ng-select-container .ng-value-container { @include padding-left(12px); - .ng-value { /* stylelint-disable-line */ + .ng-value { @include margin-left(12px); + + background-color: pvar(--mainColorLightest); + + .ng-value-icon { + border: 0 !important; + } } } }