mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-25 12:19:10 +00:00
adjust FOUC handling
This commit is contained in:
parent
04e64df35a
commit
18797afc2f
1 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue