logo

searx

My custom branche(s) on searx, a meta-search engine git clone https://hacktivis.me/git/searx.git
commit: 1faf1b645b25745ac887529605727850e0d86d84
parent 3246541bdc405f269179ec737b83772b926c43a6
Author: Kirill Isakov <ukwt@ya.ru>
Date:   Sun, 24 Apr 2016 03:02:33 +0600

Set vim-hotkeys help panels to same height

Diffstat:

Msearx/static/plugins/css/vim_hotkeys.css16++++++++++++++++
Msearx/static/plugins/js/vim_hotkeys.js6+++---
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 @@ -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 @@ -207,11 +207,11 @@ $(document).ready(function() { var first = i % 2 === 0; if (first) { - html += '<div class="row">'; + html += '<div class="row dflex">'; } - html += '<div class="col-sm-' + (first && lastCategory ? 12 : 6) + '">'; + html += '<div class="col-sm-' + (first && lastCategory ? 12 : 6) + ' dflex">'; - html += '<div class="panel panel-default">'; + html += '<div class="panel panel-default iflex">'; html += '<div class="panel-heading">' + cat[0].cat + '</div>'; html += '<div class="panel-body">'; html += '<ul class="list-unstyled">';