Add URL param to control background style

This commit is contained in:
Robin
2026-06-25 18:16:27 +02:00
parent 9d21581259
commit 8c6a16f3d7
4 changed files with 27 additions and 12 deletions

View File

@@ -74,9 +74,7 @@ layer(compound);
body {
background-color: var(--cpd-color-bg-canvas-default);
background-size: calc(max(1440px, 100vw)) calc(max(800px, 100vh));
background-repeat: no-repeat;
background-position: center;
color: var(--cpd-color-text-primary);
color-scheme: dark;
margin: 0;
@@ -85,6 +83,12 @@ body {
-webkit-tap-highlight-color: transparent;
}
body[data-background="gradient"] {
background-image: var(--background-gradient);
background-size: calc(max(1440px, 100vw)) calc(max(800px, 100vh));
background-position: center;
}
/* This prohibits the view to scroll for pages smaller than 122px in width
we use this for mobile pip webviews */
.no-scroll-body {