From 18797afc2f81cb3cfe721fafdbccdfea20c74f78 Mon Sep 17 00:00:00 2001 From: Kata Date: Mon, 18 Mar 2019 04:51:29 -0500 Subject: [PATCH] adjust FOUC handling --- ui/components/global-colors.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ui/components/global-colors.js b/ui/components/global-colors.js index 3ab116c..565a3ed 100644 --- a/ui/components/global-colors.js +++ b/ui/components/global-colors.js @@ -26,7 +26,7 @@ export default createGlobalStyle` body { margin: 0; padding: 0; - font-family: "source-han-sans-japanese", "Source Sans Pro", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; + font-family: "source-han-sans-japanese", "Source Sans Pro", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; @@ -35,12 +35,12 @@ body { opacity: 0; } -.wf-active body { - opacity: 1; +* { + box-sizing: border-box; } -// FOUC guard if we take too long -.force-active body { + +.wf-active body, .force-active body { opacity: 1; }