Explorar el Código

dropdown restyle

master
Kostiantyn Pashura hace 8 años
padre
commit
736b98869f

+ 14
- 0
css/aui-components/dropdown.scss Ver fichero

@@ -9,6 +9,20 @@ form.aui {
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 26
 .aui-select2-drop{
13 27
     z-index: 901;
14 28
 }

+ 6
- 0
modules/UI/side_pannels/settings/SettingsMenu.js Ver fichero

@@ -62,6 +62,12 @@ function generateDevicesOptions(items, selectedId, permissionGranted) {
62 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 71
 function initSelect2($el, onSelectedCb) {
66 72
     $el.auiSelect2({
67 73
         minimumResultsForSearch: Infinity,

Loading…
Cancelar
Guardar