зеркало из https://github.com/telerik/docs-seed.git
fix: Footer selector fixed to be more concrete - otherwise headings could be matched only by ID
This commit is contained in:
Родитель
4b17de2e55
Коммит
e76f0b0611
|
@ -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));
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче