mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-12-31 09:07:38 +01:00
load base css on client entry
This commit is contained in:
parent
b92be34818
commit
c5cbe446f5
3
gatsby-browser.js
Normal file
3
gatsby-browser.js
Normal file
@ -0,0 +1,3 @@
|
||||
exports.onClientEntry = () => {
|
||||
require('./src/styles/base.scss')
|
||||
}
|
@ -49,7 +49,6 @@
|
||||
"vcf": "^2.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/prop-types": "^15.5.3",
|
||||
"babel-eslint": "^8.2.3",
|
||||
"eslint": "^5.0.0",
|
||||
"eslint-config-prettier": "^2.9.0",
|
||||
|
@ -7,7 +7,6 @@ import Head from './atoms/Head'
|
||||
import Header from './organisms/Header'
|
||||
import Footer from './organisms/Footer'
|
||||
import { FadeIn } from './atoms/Animations'
|
||||
import './Layout.scss'
|
||||
|
||||
class TransitionHandler extends Component {
|
||||
shouldComponentUpdate() {
|
||||
|
@ -15,11 +15,6 @@ body {
|
||||
|
||||
html {
|
||||
font-size: $font-size-root;
|
||||
|
||||
&.wf-loading,
|
||||
&.wf-inactive {
|
||||
font-size: $font-size-root - 2px;
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
@ -115,11 +110,11 @@ svg {
|
||||
display: flex;
|
||||
min-height: 100vh;
|
||||
flex-direction: column;
|
||||
background: $body-background-color;
|
||||
background-color: $body-background-color;
|
||||
transition: background .6s $easing;
|
||||
|
||||
.dark & {
|
||||
background: $body-background-color--dark;
|
||||
background-color: $body-background-color--dark;
|
||||
color: $text-color--dark;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user