summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorKirill Isakov <ukwt@ya.ru>2016-04-24 03:02:33 +0600
committerKirill Isakov <ukwt@ya.ru>2016-04-24 03:02:33 +0600
commit1faf1b645b25745ac887529605727850e0d86d84 (patch)
tree576ede5687b7755370a24756575d4335abb4a871 /searx
parent3246541bdc405f269179ec737b83772b926c43a6 (diff)
downloadsearxng-1faf1b645b25745ac887529605727850e0d86d84.tar.gz
searxng-1faf1b645b25745ac887529605727850e0d86d84.zip
Set vim-hotkeys help panels to same height
Diffstat (limited to 'searx')
-rw-r--r--searx/static/plugins/css/vim_hotkeys.css16
-rw-r--r--searx/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
index 19745d942..3e9eaddf0 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 3aadae288..fd47463ba 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 += '<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">';