Fix background images for mobile devices
This commit is contained in:
@ -69,25 +69,36 @@ table a {
|
||||
color: var(--main-color);
|
||||
}
|
||||
|
||||
main .background {
|
||||
background-image: var(--img);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-attachment: fixed;
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1024px) {
|
||||
main .background {
|
||||
background-attachment: unset;
|
||||
}
|
||||
}
|
||||
|
||||
main .home {
|
||||
height: 100vh;
|
||||
background: url("/res/images/Italien-1.jpg") no-repeat bottom center fixed;
|
||||
background-size: cover;
|
||||
--img: url("/res/images/Italien-1.jpg");
|
||||
}
|
||||
|
||||
main .picture-1 {
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
background: url("/res/images/Italien-2.jpg") no-repeat bottom center fixed;
|
||||
background-size: cover;
|
||||
--img: url("/res/images/Italien-2.jpg");
|
||||
height: 24em;
|
||||
}
|
||||
|
||||
main .picture-2 {
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
background: url("/res/images/Italien-3.jpg") no-repeat bottom center fixed;
|
||||
background-size: cover;
|
||||
--img: url("/res/images/Italien-3.jpg");
|
||||
height: 24em;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user