fixed bg aligment

This commit is contained in:
8BitBiscotti
2024-12-13 13:30:29 +01:00
parent c5a87e8a53
commit 210b456cf1
+2 -4
View File
@@ -25,14 +25,12 @@ body {
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
} }
#mainDiv { #mainDiv {
top: 0%;
left: 0%;
height: 100vh; height: 100vh;
} }
.bgGradient { .bgGradient {
image-rendering: pixelated; image-rendering: pixelated;
min-width: 100vw; width: calc(256px * var(--pxDensity));
min-height: 100vh; height: calc(164px * var(--pxDensity));
aspect-ratio: auto; aspect-ratio: auto;
position: absolute; position: absolute;
top: round(50%, var(--pxDensityPx)); top: round(50%, var(--pxDensityPx));