Use ordinary scrolling backgrounds on mobile
showcase/deploy Live at https://showcase.andrefiedler.de/2608_BuB/
showcase/deploy Live at https://showcase.andrefiedler.de/2608_BuB/
This commit is contained in:
+9
-11
@@ -308,20 +308,18 @@ address {
|
||||
--unit: 1px;
|
||||
}
|
||||
|
||||
body::before {
|
||||
position: absolute;
|
||||
block-size: 100%;
|
||||
background-image: url("./background-mobile.webp");
|
||||
background-size: cover;
|
||||
body {
|
||||
isolation: auto;
|
||||
background-image: url("./construction-tape.svg"), url("./background-mobile.webp");
|
||||
background-position: center top;
|
||||
background-size: 1200px 254px, cover;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
/* Mobile decoration is a normal background, with no layers in the touch path. */
|
||||
body::before,
|
||||
body::after {
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
inset: 0 0 auto;
|
||||
block-size: 254px;
|
||||
background: url("./construction-tape.svg") center top / 1200px 254px no-repeat;
|
||||
content: "";
|
||||
content: none;
|
||||
}
|
||||
|
||||
.page {
|
||||
|
||||
Reference in New Issue
Block a user