Browse Source

Set vim-hotkeys help panels to same height

Kirill Isakov 9 years ago
parent
commit
1faf1b645b
2 changed files with 19 additions and 3 deletions
  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 View File

7
     overflow-y: auto;
7
     overflow-y: auto;
8
     max-height: 80%;
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 View File

207
             var first = i % 2 === 0;
207
             var first = i % 2 === 0;
208
 
208
 
209
             if (first) {
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
             html += '<div class="panel-heading">' + cat[0].cat + '</div>';
215
             html += '<div class="panel-heading">' + cat[0].cat + '</div>';
216
             html += '<div class="panel-body">';
216
             html += '<div class="panel-body">';
217
             html += '<ul class="list-unstyled">';
217
             html += '<ul class="list-unstyled">';