Skip to content

Commit 1fe584f

Browse files
committed
Fixed styling error on short documentation pages
1 parent 1274278 commit 1fe584f

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

docs/theme/deis/static/searchtools.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,11 @@ var Search = {
475475
$('.nav-border').css('height', pageHeight);
476476

477477
var margin = pageHeight - 511 - 158;
478+
if (pageHeight < 800){
479+
margin = 270;
480+
$('body').css('height', '930');
481+
$('.nav-border').css('height', '930');
482+
}
478483
$('footer').css('margin-top', margin);
479484

480485
if($(window).width() > 1171){$('.docs-sidebar').css({'position': 'absolute', 'right': '0'})};

web/static/js/adjustments.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ $(function(){
99
console.log(pageHeight);
1010
$('.nav-border').css('height', pageHeight);
1111

12-
var margin = pageHeight - 511 - 165;
12+
var margin = pageHeight - 511 - 158;
13+
if (pageHeight < 800){
14+
margin = 270;
15+
$('body').css('height', '930');
16+
$('.nav-border').css('height', '930');
17+
}
1318
$('footer').css('margin-top', margin);
1419

1520
if($(window).width() > 1171){$('.docs-sidebar').css({'position': 'absolute', 'right': '0'})};

0 commit comments

Comments
 (0)