Fixed background

This commit is contained in:
Liam 2022-10-10 19:53:39 +01:00
parent cd406a3e74
commit 7a73c7db1d
3 changed files with 5 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -0,0 +1,3 @@
*, html, body {
background-color: transparent;
}