Christianpedia

MediaWiki: Common.css

No edit summary
No edit summary
Line 8: Line 8:
@keyframes fadeBackground {
@keyframes fadeBackground {
     0%, 100% { opacity: 0; }
     0%, 100% { opacity: 0; }
     10%, 50% { opacity: 1; }
     25%, 75% { opacity: 1; }
     25%, 40% { background-image: url(https://christianpedia.site/images/3/37/Main_page_background.jpg); }
     33.33%, 66.66% { background-image: url(https://christianpedia.site/images/3/37/Main_page_background.jpg); }
     40%, 55% { background-image: url(https://wallpapercave.com/wp/wp9066757.jpg); }
     50%, 100% { background-image: url(https://wallpapercave.com/wp/wp9066757.jpg); }
     55%, 70% { background-image: url(https://getwallpapers.com/wallpaper/full/f/7/2/1001822-church-wallpaper-1920x1080-laptop.jpg); }
     66.66%, 33.33% { background-image: url(https://getwallpapers.com/wallpaper/full/f/7/2/1001822-church-wallpaper-1920x1080-laptop.jpg); }
    70%, 85% { background-image: url(https://images5.alphacoders.com/851/851599.jpg); }
}
/* Ensure other content appears above the background */
.page-Welcome > * {
    position: relative;
    z-index: 1; /* Adjust as needed */
}
}
/* Media query for mobile devices */
/* Media query for mobile devices */
@media screen and (max-width: 767px) {
@media screen and (max-width: 767px) {

Revision as of 04:44, 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 24s infinite;
}

@keyframes fadeBackground {
    0%, 100% { opacity: 0; }
    25%, 75% { opacity: 1; }
    33.33%, 66.66% { background-image: url(https://christianpedia.site/images/3/37/Main_page_background.jpg); }
    50%, 100% { background-image: url(https://wallpapercave.com/wp/wp9066757.jpg); }
    66.66%, 33.33% { 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 */
    }
}
Discuss this page