Compare commits
2 Commits
42633d9f85
...
43a09369f2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
43a09369f2 | ||
|
|
a2e3a0a561 |
@ -368,7 +368,7 @@ article {
|
||||
}
|
||||
@media only screen and (max-width: 960px) {
|
||||
article {
|
||||
margin-top: 2rem;
|
||||
margin-top: 3rem;
|
||||
}
|
||||
}
|
||||
@supports (-webkit-hyphens:auto) or (-ms-hyphens:auto) or (hyphens:auto) {
|
||||
|
||||
@ -394,16 +394,22 @@ function updateSiteNavUIState(event) {
|
||||
if (!GW.scrollState.siteNavUI[0].hasClass("hidden")) toggleSiteNavUI();
|
||||
}
|
||||
|
||||
// On mobile, make site nav UI translucent on ANY scroll down.
|
||||
// if (GW.mediaQueries.mobileNarrow.matches)
|
||||
GW.scrollState.siteNavUI.forEach(element => {
|
||||
if (GW.scrollState.unbrokenDownScrollDistance > 0) element.addClass("translucent-on-scroll");
|
||||
else element.removeClass("hidden");
|
||||
});
|
||||
// Make site nav UI translucent when scrolling down.
|
||||
GW.scrollState.siteNavUI.forEach(element => {
|
||||
if (GW.scrollState.unbrokenDownScrollDistance > 0) element.addClass("translucent-on-scroll");
|
||||
else element.removeClass("hidden");
|
||||
});
|
||||
|
||||
// Show site nav UI when scrolling a full page up, or to the top.
|
||||
if ((GW.scrollState.unbrokenUpScrollDistance > window.innerHeight ||
|
||||
GW.scrollState.lastScrollTop == 0)) showSiteNavUI();
|
||||
// On desktop, show site nav UI when scrolling a full page up, or to the
|
||||
// the top of the page.
|
||||
// On mobile, show site nav UI translucent on ANY scroll up.
|
||||
if (GW.mediaQueries.mobileNarrow.matches) {
|
||||
if (GW.scrollState.unbrokenUpScrollDistance > 0)
|
||||
showSiteNavUI();
|
||||
} else if ( GW.scrollState.unbrokenUpScrollDistance > window.innerHeight
|
||||
|| GW.scrollState.lastScrollTop == 0) {
|
||||
showSiteNavUI();
|
||||
}
|
||||
}
|
||||
|
||||
function toggleSiteNavUI() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user