]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/sass/ng-select.scss
Merge remote-tracking branch 'weblate/develop' into develop
[github/Chocobozzz/PeerTube.git] / client / src / sass / ng-select.scss
index d7ea73d483b5d32706989e42d50621d86b0b9352..df0e0aaf471d1ed9646aff4a7671fc332744b4d6 100644 (file)
@@ -1,4 +1,5 @@
-@import '_variables';
+@use '_variables' as *;
+@use '_mixins' as *;
 
 $ng-select-highlight: #f2690d;
 // $ng-select-primary-text: #333 !default;
@@ -11,19 +12,18 @@ $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: 15px;
 
-@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;
+
   &.ng-select-focused {
     &:not(.ng-select-opened) > .ng-select-container {
       border-color: #ccc !important;
+      box-shadow: none !important;
     }
   }
 
@@ -31,7 +31,24 @@ $ng-select-height: 30px;
     background-color: pvar(--inputBackgroundColor);
   }
 
+  .ng-arrow-wrapper {
+    @include padding-right(12px);
+  }
+
   &.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);
+    }
   }
 }