]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/sass/ng-select.scss
Translated using Weblate (German)
[github/Chocobozzz/PeerTube.git] / client / src / sass / ng-select.scss
index f55b3d2d14030b02effa06f386f6eb8e84bbc3d7..ba7905c890612ae35055d058efc772abf773f559 100644 (file)
@@ -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;
     }
   }
 
@@ -90,7 +93,7 @@ $ng-select-input-text: pvar(--mainForegroundColor);
       background-color: pvar(--mainColorLightest);
 
       .ng-value-icon {
-        border: none !important;
+        border: 0 !important;
       }
     }
   }