Fix dark mode background across chrome and firefox
This commit is contained in:
17
css/main.css
17
css/main.css
@@ -13,12 +13,21 @@
|
||||
}
|
||||
|
||||
html {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: whitesmoke;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-height: 100vh;
|
||||
background-color: whitesmoke;
|
||||
}
|
||||
|
||||
.root {
|
||||
font-family: 'Open Sans', Arial, sans-serif;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
@@ -71,6 +80,7 @@ a:hover {
|
||||
}
|
||||
|
||||
canvas {
|
||||
z-index: 2;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
@@ -208,7 +218,8 @@ h1.title {
|
||||
}
|
||||
|
||||
div.header {
|
||||
margin: 20px 0 20px;
|
||||
/* this is padding instead of margin to prevent <html> from poking out behind top of page */
|
||||
padding: 20px 0 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* Dark theme */
|
||||
|
||||
html {
|
||||
body {
|
||||
filter: invert(90%);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user