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