diff --git a/pages/_app.js b/pages/_app.js index d422402..1396d06 100644 --- a/pages/_app.js +++ b/pages/_app.js @@ -4,6 +4,8 @@ import Head from 'next/head' import Config from '../config.json'; +import '../styles/globals.css'; + function MyApp({ Component, pageProps }) { return ( // 2. Use at the root of your app diff --git a/pages/overlay.js b/pages/overlay.js index 3d4272c..4d80a00 100644 --- a/pages/overlay.js +++ b/pages/overlay.js @@ -310,12 +310,6 @@ export default class Overlay extends Component { render() { const { loading, isValidSteamId, data, websiteType } = this.state; - // When in the main menu, show this colour so it's actually readable - if (!isValidSteamId && !loading) { - const body = document.body; - body.style.backgroundColor = "#181a1b"; - } - if (this.state.textColor !== undefined) { const element = document.querySelector("." + styles.main); element.style.color = this.state.textColor diff --git a/styles/globals.css b/styles/globals.css index e69de29..0253b0f 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -0,0 +1,3 @@ +*, html, body { + background-color: transparent; +} \ No newline at end of file