fix: Footer selector fixed to be more concrete - otherwise headings could be matched only by ID

This commit is contained in:
imtodor 2018-10-30 12:42:43 +02:00
Родитель 4b17de2e55
Коммит e76f0b0611
3 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -106,11 +106,11 @@ div.caption {
}
#push,
#footer {
div#footer {
min-height: 340px;
}
#footer {
div#footer {
color: #898c92;
background-color: $footer-bg;
font-size: 11px;

Просмотреть файл

@ -10,7 +10,7 @@ $(function () {
return (this.top = offset.top - NAVBAR_HEIGHT - 25);
},
bottom: function () {
return (this.bottom = $('#footer').outerHeight(true) + FOOTER_DISTANCE);
return (this.bottom = $('div#footer').outerHeight(true) + FOOTER_DISTANCE);
}
}
});

Просмотреть файл

@ -87,7 +87,7 @@ function setSideNavPosition() {
var scrollFold = $window.scrollTop() + windowHeight;
var top = Math.min($('.navbar').height(), $('aside.TK-Hat').height());
var footerHeight = $('#footer').outerHeight(true);
var footerHeight = $('div#footer').outerHeight(true);
var feedbackOffsetTop = document.body.scrollHeight - footerHeight;
var bottom = Math.max(0, Math.min(footerHeight, scrollFold - feedbackOffsetTop));