Bläddra i källkod

Set vim-hotkeys help panels to same height

Kirill Isakov 9 år sedan
förälder
incheckning
1faf1b645b
2 ändrade filer med 19 tillägg och 3 borttagningar
  1. 16
    0
      searx/static/plugins/css/vim_hotkeys.css
  2. 3
    3
      searx/static/plugins/js/vim_hotkeys.js

+ 16
- 0
searx/static/plugins/css/vim_hotkeys.css Visa fil

@@ -7,3 +7,19 @@
7 7
     overflow-y: auto;
8 8
     max-height: 80%;
9 9
 }
10
+
11
+.dflex {
12
+    display: -webkit-box;  /* OLD - iOS 6-, Safari 3.1-6 */
13
+    display: -moz-box;     /* OLD - Firefox 19- (buggy but mostly works) */
14
+    display: -ms-flexbox;  /* TWEENER - IE 10 */
15
+    display: -webkit-flex; /* NEW - Chrome */
16
+    display: flex;         /* NEW, Spec - Opera 12.1, Firefox 20+ */
17
+}
18
+
19
+.iflex {
20
+    -webkit-box-flex: 1; /* OLD - iOS 6-, Safari 3.1-6 */
21
+    -moz-box-flex: 1;    /* OLD - Firefox 19- */
22
+    -webkit-flex: 1;     /* Chrome */
23
+    -ms-flex: 1;         /* IE 10 */
24
+    flex: 1;             /* NEW, Spec - Opera 12.1, Firefox 20+ */
25
+}

+ 3
- 3
searx/static/plugins/js/vim_hotkeys.js Visa fil

@@ -207,11 +207,11 @@ $(document).ready(function() {
207 207
             var first = i % 2 === 0;
208 208
 
209 209
             if (first) {
210
-                html += '<div class="row">';
210
+                html += '<div class="row dflex">';
211 211
             }
212
-            html += '<div class="col-sm-' + (first && lastCategory ? 12 : 6) + '">';
212
+            html += '<div class="col-sm-' + (first && lastCategory ? 12 : 6) + ' dflex">';
213 213
 
214
-            html += '<div class="panel panel-default">';
214
+            html += '<div class="panel panel-default iflex">';
215 215
             html += '<div class="panel-heading">' + cat[0].cat + '</div>';
216 216
             html += '<div class="panel-body">';
217 217
             html += '<ul class="list-unstyled">';