mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-06-22 00:30:31 +00:00
fix #83 no Title and Edit this page text when on mobile + fixed top bar width pbm on resize by switching to sticky.js instead of sticky-kit
This commit is contained in:
parent
bb0d317af2
commit
6562adeb7b
7 changed files with 305 additions and 26 deletions
static/js
|
@ -56,9 +56,8 @@ images.each(function(index){
|
|||
});
|
||||
|
||||
// Stick the top to the top of the screen when scrolling
|
||||
$("#top-bar").stick_in_parent( {
|
||||
parent: ".sticky-parent",
|
||||
spacer: ".sticky-spacer",
|
||||
$(document).ready(function(){
|
||||
$("#top-bar").sticky({topSpacing:0, zIndex: 1000});
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue