This commit is contained in:
Max Lynch
2020-12-20 23:02:27 -06:00
parent fdef2842ef
commit 8b2df11c87
9 changed files with 41 additions and 23 deletions
+3 -10
View File
@@ -1,10 +1,3 @@
:root {
/* Safe area contains how much space I should leave from the top and returns 0 if it's not supported */
--safe-area-inset-top: env(safe-area-inset-top);
/* A replacement for 100vh */
--screen-height: calc(100vh - var(--safe-area-inset-top));
}
#nav {
padding-top: var(--safe-area-inset-top);
}
body {
overflow: hidden;
}