-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 FIX: replace createGlobalStyle from styled-components library with …
…vanilla CSS file due to flickering on page load in production and ongoing memory leak issues with Next.js styled-components/styled-components#3022 styled-components/styled-components#2134 vercel/next.js#7598
- Loading branch information
1 parent
86299e7
commit 4780e39
Showing
3 changed files
with
94 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
* { | ||
box-sizing: inherit; | ||
line-height: 1.5; | ||
transition: opacity 0.2s ease; | ||
} | ||
html { | ||
box-sizing: border-box; | ||
overflow-y: scroll; | ||
} | ||
body { | ||
margin: 0; | ||
overflow-x: hidden; | ||
background-color: #292c3e; | ||
color: #fff; | ||
font-family: "Ubunto Mono", "Lucida Console", monospace; | ||
font-size: 16px; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
} | ||
a { | ||
text-decoration: underline; | ||
color: #fff; | ||
} | ||
a:hover { | ||
opacity: 0.5; | ||
} | ||
img { | ||
max-width: 100%; | ||
} | ||
strong { | ||
font-weight: bold; | ||
} | ||
h1, | ||
h2, | ||
h3, | ||
h4, | ||
h5, | ||
h6, | ||
p, | ||
li { | ||
font-family: "Ubunto Mono", "Lucida Console", monospace; | ||
margin-left: 0; | ||
margin-right: 0; | ||
margin-top: 0; | ||
margin-bottom: 1rem; | ||
padding-bottom: 0; | ||
padding-left: 0; | ||
padding-right: 0; | ||
padding-top: 0; | ||
letter-spacing: -0.5px; | ||
color: inherit; | ||
text-rendering: optimizeLegibility; | ||
} | ||
h1 { | ||
font-size: 1.75rem; | ||
} | ||
h2 { | ||
font-size: 1.5rem; | ||
} | ||
h3, | ||
h4 { | ||
font-size: 1.25rem; | ||
} | ||
code, | ||
.code { | ||
border: 1px solid #94959e; | ||
border-radius: 4px; | ||
font-size: 0.9rem; | ||
padding: 0.1rem 0.2rem; | ||
background-color: #3f4052; | ||
color: #8bcc57; | ||
} | ||
@media (min-width: 1280px) { | ||
h1, | ||
h2, | ||
h3, | ||
h4, | ||
h5, | ||
h6, | ||
p { | ||
letter-spacing: -1px; | ||
} | ||
h1 { | ||
letter-spacing: -1px; | ||
} | ||
h2 { | ||
letter-spacing: -0.75px; | ||
} | ||
h3 { | ||
letter-spacing: -0.5px; | ||
font-weight: normal; | ||
} | ||
} |
4780e39
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Failed to assign a domain to your deployment due to the following error:
(Learn more or visit the non-aliased deployment)