Преглед на файлове

dropdown restyle

master
Kostiantyn Pashura преди 8 години
родител
ревизия
736b98869f
променени са 2 файла, в които са добавени 20 реда и са изтрити 0 реда
  1. 14
    0
      css/aui-components/dropdown.scss
  2. 6
    0
      modules/UI/side_pannels/settings/SettingsMenu.js

+ 14
- 0
css/aui-components/dropdown.scss Целия файл

9
     }
9
     }
10
 
10
 
11
 }
11
 }
12
+.select2-results{
13
+    &::-webkit-scrollbar {
14
+        background-color: transparent;
15
+    }
16
+    &::-webkit-scrollbar-track {
17
+        background-color: transparent;
18
+    }
19
+    &::-webkit-scrollbar-track-piece {
20
+        background-color: transparent;
21
+    }
22
+    &::-webkit-scrollbar-thumb {
23
+        background-color: #3572b0;
24
+    }
25
+}
12
 .aui-select2-drop{
26
 .aui-select2-drop{
13
     z-index: 901;
27
     z-index: 901;
14
 }
28
 }

+ 6
- 0
modules/UI/side_pannels/settings/SettingsMenu.js Целия файл

62
     return options.join('');
62
     return options.join('');
63
 }
63
 }
64
 
64
 
65
+/**
66
+ * Replace html select element to select2 custom dropdown
67
+ *
68
+ * @param {jQueryElement} $el native select element
69
+ * @param {function} onSelectedCb fired if item is selected
70
+ */
65
 function initSelect2($el, onSelectedCb) {
71
 function initSelect2($el, onSelectedCb) {
66
     $el.auiSelect2({
72
     $el.auiSelect2({
67
         minimumResultsForSearch: Infinity,
73
         minimumResultsForSearch: Infinity,

Loading…
Отказ
Запис