css tweaks for mobile mode; reintroduce mobile styles and hacks

This commit is contained in:
Ginger Wong
2020-07-19 15:12:57 -07:00
parent d775924c59
commit fdce8585d5
3 changed files with 29 additions and 17 deletions

View File

@@ -141,3 +141,9 @@ function generateUsername() {
return `User ${(Math.floor(Math.random() * 42) + 1)}`;
}
function setVHvar() {
var vh = window.innerHeight * 0.01;
// Then we set the value in the --vh custom property to the root of the document
document.documentElement.style.setProperty('--vh', `${vh}px`);
console.log("== new vh", vh)
}