_s: Add basic Infinite Scroll support. Fixes #107. Fixes #105. Props @ethitter.

This commit is contained in:
Philip Arthur Moore 2013-02-03 02:03:40 -05:00
parent c2dca5db27
commit 16906d44c5
3 changed files with 38 additions and 0 deletions

View file

@ -554,3 +554,18 @@ object {
#searchsubmit {
display: none;
}
/* =Infinite Scroll
----------------------------------------------- */
/* Globally hidden elements when Infinite Scroll is supported and in use. */
.infinite-scroll #nav-above, /* Older / Newer Posts Navigation (always hidden) */
.infinite-scroll #nav-below,
.infinite-scroll.neverending #colophon { /* Theme Footer (when set to scrolling) */
display: none;
}
/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before */
.infinity-end.neverending #colophon {
display: block;
}