mobile style variables
This commit is contained in:
1 parent
a6e528d59b
commit
5d672842f3
2 files changed
+36
-15
No files matched your search
@@ -0,0 +1,36 @@
|
||||
import React from 'react'
|
||||
import App, { Container } from 'next/app'
|
||||
|
||||
class MyApp extends App {
|
||||
render() {
|
||||
const { Component, pageProps } = this.props
|
||||
|
||||
return (
|
||||
<Container>
|
||||
<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.75rem;
|
||||
--font-size-h2: 1.5rem;
|
||||
--font-size-h3: 1.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
#__next {
|
||||
height: 100%;
|
||||
}
|
||||
`}</style>
|
||||
|
||||
<Component {...pageProps} />
|
||||
</Container>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
export default MyApp
|
||||
@@ -75,18 +75,3 @@
|
||||
//OTHER
|
||||
--block-border-radius: 3px;
|
||||
}
|
||||
|
||||
@media (max-width: var(--mobile-width)) {
|
||||
:root {
|
||||
//FONTS
|
||||
--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.75rem;
|
||||
--font-size-h2: 1.5rem;
|
||||
--font-size-h3: 1.25rem;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user