Avoid showing gradients in especially small windows

This commit is contained in:
Robin
2026-07-09 12:59:29 +02:00
parent 32e30dd4f5
commit 8d826b2f31

View File

@@ -81,20 +81,22 @@ body {
-webkit-tap-highlight-color: transparent; -webkit-tap-highlight-color: transparent;
} }
body[data-background="gradient"]::before { @media (min-height: 330px) {
content: ""; body[data-background="gradient"]::before {
position: fixed; content: "";
inset: 0; position: fixed;
background-image: url("graphics/mobile-gradient.svg"); inset: 0;
background-size: auto; background-image: url("graphics/mobile-gradient.svg");
background-position: bottom; background-size: auto;
background-repeat: no-repeat; background-position: bottom;
} background-repeat: no-repeat;
}
body[data-background="gradient"][data-platform="desktop"]::before { body[data-background="gradient"][data-platform="desktop"]::before {
background-image: url("graphics/desktop-gradient.svg"); background-image: url("graphics/desktop-gradient.svg");
background-size: calc(max(1440px, 100vw)) calc(max(800px, 100vh)); background-size: calc(max(1440px, 100vw)) calc(max(800px, 100vh));
background-position: center; background-position: center;
}
} }
/* This prohibits the view to scroll for pages smaller than 122px in width /* This prohibits the view to scroll for pages smaller than 122px in width