on master help sign in
Set vim-hotkeys help panels to same height
commit1faf1b645b25745ac887529605727850e0d86d84 authorKirill Isakov <ukwt@ya.ru> dateSun 24 Apr 2016, 03:02 (10 years ago) parent3246541
2 files changed+19−3
searx/static/plugins/css/vim_hotkeys.css+16 searx/static/plugins/js/vim_hotkeys.js+3−3
searx/static/plugins/css/vim_hotkeys.css+16
@@ -7,3 +7,19 @@
77 overflow-y: auto;
88 max-height: 80%;
99}
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+}
searx/static/plugins/js/vim_hotkeys.js+3−3
@@ -207,11 +207,11 @@ $(document).ready(function() {
207207 var first = i % 2 === 0;
208208
209209 if (first) {
210− html += '<div class="row">';
210+ html += '<div class="row dflex">';
211211 }
212− html += '<div class="col-sm-' + (first && lastCategory ? 12 : 6) + '">';
212+ html += '<div class="col-sm-' + (first && lastCategory ? 12 : 6) + ' dflex">';
213213
214− html += '<div class="panel panel-default">';
214+ html += '<div class="panel panel-default iflex">';
215215 html += '<div class="panel-heading">' + cat[0].cat + '</div>';
216216 html += '<div class="panel-body">';
217217 html += '<ul class="list-unstyled">';