Skip to content

Commit ba7d671

Browse files
committed
Updated documentatipon theme. Removed elements from Search Results page and adjusted the Search box in the sidebar. Changed searchtools.js to resize footer to align with bottom of content
1 parent 3953b9f commit ba7d671

2 files changed

Lines changed: 30 additions & 2 deletions

File tree

docs/theme/deis/static/searchtools.js

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,12 +458,40 @@ var Search = {
458458
// search finished, update title and status message
459459
else {
460460
Search.stopPulse();
461-
Search.title.text(_('Search Results'));
461+
Search.title.text(_('Search: ' + '"' + query + '"'));
462462
if (!resultCount)
463463
Search.status.text(_('Your search did not match any documents. Please make sure that all words are spelled correctly and that you\'ve selected enough categories.'));
464464
else
465465
Search.status.text(_('Search finished, found %s page(s) matching the search query.').replace('%s', resultCount));
466466
Search.status.fadeIn(500);
467+
468+
//Edit by Ben Grunfeld - when search finished, make footer align with bottom of content
469+
function set_columns(is_server_reference) {
470+
is_server_reference = typeof is_server_reference !== 'undefined' ? is_server_reference : false;
471+
var margin = 0;
472+
var maxHeight = 0;
473+
474+
//find the tallest column
475+
$('.column_calc').each(function() {
476+
if (maxHeight < $(this).height()) {
477+
maxHeight = $(this).height();
478+
console.log("M: " + maxHeight + " T: " + $(this).height());
479+
}
480+
});
481+
482+
//511: height of the navigation. 96: height of the footer
483+
if (maxHeight > 923) {margin = maxHeight - 511 - 96;}
484+
if (is_server_reference == true){margin = margin + 80;}
485+
console.log("Max Height: " + maxHeight + " Margin: " + margin);
486+
487+
//Set the margin above the footer
488+
$('.social-menu').css({'margin-top': (margin)});
489+
}
490+
//End BG Edit
491+
492+
set_columns();
493+
494+
467495
}
468496
}
469497
displayNextItem();

web/static/css/main.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)