]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/sass/ng-select.scss
Translated using Weblate (Russian)
[github/Chocobozzz/PeerTube.git] / client / src / sass / ng-select.scss
index ba8bac5e2dbcc85a4205b449cbe8a0c333096b6e..f4c908da3048dba3615fffcdca4b33568317506c 100644 (file)
@@ -1,4 +1,5 @@
-@import '_variables';
+@use '_variables' as *;
+@use '_mixins' as *;
 
 $ng-select-highlight: #f2690d;
 // $ng-select-primary-text: #333 !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,26 +23,37 @@ $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-dropdown-panel .ng-dropdown-panel-items .ng-option {
+    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-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 {
-    padding-left: 12px;
-    .ng-value {
-      margin-left: 3px;
+    @include padding-left(12px);
+
+    .ng-value { /* stylelint-disable-line */
+      @include margin-left(12px);
     }
   }
 }