Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reimplement Bootstrap Affix #1130

Merged
merged 4 commits into from
Aug 25, 2019
Merged

Reimplement Bootstrap Affix #1130

merged 4 commits into from
Aug 25, 2019

Conversation

stevenjoezhang
Copy link
Contributor

@stevenjoezhang stevenjoezhang commented Aug 25, 2019

See also:
#426
#431
#1039

@stevenjoezhang
Copy link
Contributor Author

Ignore Do not use 'new' for side effects warning.

@theme-next theme-next deleted a comment Aug 25, 2019
@theme-next theme-next deleted a comment Aug 25, 2019
@1v9 1v9 added this to the v7.4.0 milestone Aug 25, 2019
@1v9 1v9 merged commit 2655beb into master Aug 25, 2019
@delete-merged-branch delete-merged-branch bot deleted the affix branch August 25, 2019 07:28
bottom: footerOffset
}
});
document.querySelector('#sidebar').css({
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can ID may be faster to find than class?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question, I have not investigated it yet, but I believe this is much more efficient than jquery.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not about Jquery, this must work in CSS.

@ivan-nginx ivan-nginx mentioned this pull request Aug 27, 2019
33 tasks
tongluyang pushed a commit to tongluyang/hexo-theme-next that referenced this pull request Nov 19, 2019
@stevenjoezhang
Copy link
Contributor Author

See also next-theme/hexo-theme-next@b9968b6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants