styles refactoring: move root to css file

This commit is contained in:
tmshv committed 2020-02-13 22:37:29 +03:00
1 parent 997e44483e
commit e45c69dee0
11 files changed
+31 -89

No files matched your search

+2 -30
View File
@@ -1,3 +1,4 @@
import 'src/style.css'
import App from 'next/app'
export default class MyApp extends App {
@@ -5,36 +6,7 @@ export default class MyApp extends App {
const { Component, pageProps } = this.props
return (
<>
<style global jsx>{`
@media (max-width: 31.25em) {
:root {
--smaller-font-size: 0.9rem;
--normal-font-size: 1rem;
--bigger-font-size: 1.1rem;
--big-font-size: 1.3rem;
--biggest-font-size: 2rem;
--font-size-h1: 1.5rem;
--font-size-h2: 1.5rem;
--font-size-h3: 1.25rem;
--content-thin: 90%;
--content-wide: 90%;
}
}
.noscroll {
overflow: hidden;
}
#__next {
height: 100%;
}
`}</style>
<Component {...pageProps} />
</>
<Component {...pageProps} />
)
}
}