From 2f706996a266e66a67c83b2d9c6a7d22152fcfb3 Mon Sep 17 00:00:00 2001 From: Roger Clotet Date: Sat, 22 May 2021 21:54:34 +0200 Subject: [PATCH] fix: match background in dark mode overscroll In macOS and iOS devices you can scroll past the body. When this happens in dark mode, the css variables are only changed from the `body`, and the ones used in `html` are not changed. This causes the overscroll background to be displayed as the light mode color. --- styles/index.css | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/styles/index.css b/styles/index.css index a15ce562d7..8679289719 100644 --- a/styles/index.css +++ b/styles/index.css @@ -12,9 +12,12 @@ body { flex: 1; font-size: var(--font-size-normal); + overflow-y: overlay; +} + +body { color: var(--gray900); background: var(--gray75); - overflow-y: overlay; } .zh-CN {