MediaWiki: Common.css
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
background-repeat: no-repeat; | background-repeat: no-repeat; | ||
background-size: 100% auto; | background-size: 100% auto; | ||
animation: fadeBackground 12s infinite; | |||
} | } | ||
@keyframes fadeBackground { | |||
0%, 100% { opacity: 0; } | |||
16.66%, 50% { opacity: 1; } | |||
50.01%, 83.33% { opacity: 0; } | |||
83.34%, 100% { opacity: 1; } | |||
} | } | ||
.page-Welcome:nth-of-type(1) { | |||
background-image: url(https://christianpedia.site/images/3/37/Main_page_background.jpg); | |||
} | } | ||
.page-Welcome:nth-of-type(2) { | |||
background-image: url(https://wallpapercave.com/wp/wp9066757.jpg); | |||
} | } | ||
.page-Welcome | .page-Welcome:nth-of-type(3) { | ||
background-image: url(https://getwallpapers.com/wallpaper/full/f/7/2/1001822-church-wallpaper-1920x1080-laptop.jpg); | |||
} | } | ||
Revision as of 05:02, 30 March 2024
/* CSS placed here will affect users of the Tweeki skin */
.page-Welcome {
background-repeat: no-repeat;
background-size: 100% auto;
animation: fadeBackground 12s infinite;
}
@keyframes fadeBackground {
0%, 100% { opacity: 0; }
16.66%, 50% { opacity: 1; }
50.01%, 83.33% { opacity: 0; }
83.34%, 100% { opacity: 1; }
}
.page-Welcome:nth-of-type(1) {
background-image: url(https://christianpedia.site/images/3/37/Main_page_background.jpg);
}
.page-Welcome:nth-of-type(2) {
background-image: url(https://wallpapercave.com/wp/wp9066757.jpg);
}
.page-Welcome:nth-of-type(3) {
background-image: url(https://getwallpapers.com/wallpaper/full/f/7/2/1001822-church-wallpaper-1920x1080-laptop.jpg);
}
/* Media query for mobile devices */
@media screen and (max-width: 767px) {
.page-Welcome {
background-size: auto 94vh; /* Ensure full coverage on mobile devices */
}
.mainpage {
max-width: 95%;
}
}
@media screen and (max-width: 767px) {
body.page-Welcome .overlay-enabled,
body.page-Welcome .mw-body {
background-color: #ffffff;
background-image: url(https://christianpedia.site/images/3/37/Main_page_background.jpg);
background-repeat: no-repeat;
background-size: 100% auto;
}
.hit {
position: relative; /* Ensure the div has a positioning context */
z-index: 1; /* Ensure the div is above the background */
}
}
@media screen and (max-width: 767px) {
body.page-Welcome .overlay-enabled,
body.page-Welcome .mw-body {
background-size: auto 94vh; /* Ensure full coverage on mobile devices */
}
}