From 1faf1b645b25745ac887529605727850e0d86d84 Mon Sep 17 00:00:00 2001 From: Kirill Isakov Date: Sun, 24 Apr 2016 03:02:33 +0600 Subject: [PATCH] Set vim-hotkeys help panels to same height --- searx/static/plugins/css/vim_hotkeys.css | 16 ++++++++++++++++ searx/static/plugins/js/vim_hotkeys.js | 6 +++--- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/searx/static/plugins/css/vim_hotkeys.css b/searx/static/plugins/css/vim_hotkeys.css index 19745d94..3e9eaddf 100644 --- a/searx/static/plugins/css/vim_hotkeys.css +++ b/searx/static/plugins/css/vim_hotkeys.css @@ -7,3 +7,19 @@ overflow-y: auto; max-height: 80%; } + +.dflex { + display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6 */ + display: -moz-box; /* OLD - Firefox 19- (buggy but mostly works) */ + display: -ms-flexbox; /* TWEENER - IE 10 */ + display: -webkit-flex; /* NEW - Chrome */ + display: flex; /* NEW, Spec - Opera 12.1, Firefox 20+ */ +} + +.iflex { + -webkit-box-flex: 1; /* OLD - iOS 6-, Safari 3.1-6 */ + -moz-box-flex: 1; /* OLD - Firefox 19- */ + -webkit-flex: 1; /* Chrome */ + -ms-flex: 1; /* IE 10 */ + flex: 1; /* NEW, Spec - Opera 12.1, Firefox 20+ */ +} diff --git a/searx/static/plugins/js/vim_hotkeys.js b/searx/static/plugins/js/vim_hotkeys.js index 3aadae28..fd47463b 100644 --- a/searx/static/plugins/js/vim_hotkeys.js +++ b/searx/static/plugins/js/vim_hotkeys.js @@ -207,11 +207,11 @@ $(document).ready(function() { var first = i % 2 === 0; if (first) { - html += '
'; + html += '
'; } - html += '
'; + html += '
'; - html += '
'; + html += '
'; html += '
' + cat[0].cat + '
'; html += '
'; html += '
    ';