From 0847cb5c4d108cad3dcb9e78c75c981e966682f3 Mon Sep 17 00:00:00 2001 From: Magnus Hovland Hoff Date: Tue, 21 Aug 2018 19:06:53 +0200 Subject: [PATCH] Attempt to improve overscroll in Apple browsers --- assets/style.css | 10 +++++++++- templates/layout.html | 4 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/assets/style.css b/assets/style.css index 4c2e286..39605f8 100644 --- a/assets/style.css +++ b/assets/style.css @@ -8,6 +8,14 @@ html { "Source Serif Pro", serif; } +/* For overscroll in Apple browsers */ +html { + background: var(--theme-main); +} +body { + background: white; +} + h1 { font-weight: normal; font-style: normal; @@ -187,11 +195,11 @@ nav { /* Sticky footer */ html, body { - height: 100%; margin: 0; padding: 0; } body { + min-height: 100vh; display: flex; flex-direction: column; } diff --git a/templates/layout.html b/templates/layout.html index 2123814..46c7109 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -1,5 +1,5 @@ - + {{title}} @@ -9,7 +9,7 @@ - + {{>search_input.html}} {{{body}}}