Christianpedia

MediaWiki: Common.css

No edit summary
No edit summary
Line 5: Line 5:
     animation: fadeBackground 12s infinite;
     animation: fadeBackground 12s infinite;
     /* Initial background image */
     /* Initial background image */
     background-image: url(https://img.freepik.com/premium-photo/sunset-forest-white-dove-holy-cross-jesus-christ-symbolize-death-resurrection-lov_567332-708.jpg);
     background-image: url(https://christianpedia.site/images/thumb/5/5b/Image_%289%29.png/1200px-Image_%289%29.png);
}
}


Line 16: Line 16:
      
      
     /* Background image changes */
     /* Background image changes */
     0%, 16.66% { background-image: url(https://img.freepik.com/premium-photo/sunset-forest-white-dove-holy-cross-jesus-christ-symbolize-death-resurrection-lov_567332-708.jpg); }
     0%, 16.66% { background-image: url(https://christianpedia.site/images/thumb/5/5b/Image_%289%29.png/1200px-Image_%289%29.png); }
     16.66%, 33.33% { background-image: url(https://wallpapercave.com/wp/wp9066757.jpg); }
     16.66%, 33.33% { background-image: url(https://wallpapercave.com/wp/wp9066757.jpg); }
     33.33%, 66.66% { background-image: url(https://wallpapercave.com/wp/wp9066757.jpg); }
     33.33%, 66.66% { background-image: url(https://wallpapercave.com/wp/wp9066757.jpg); }
     66.66%, 83.33% { background-image: url(https://getwallpapers.com/wallpaper/full/f/7/2/1001822-church-wallpaper-1920x1080-laptop.jpg); }
     66.66%, 83.33% { background-image: url(https://getwallpapers.com/wallpaper/full/f/7/2/1001822-church-wallpaper-1920x1080-laptop.jpg); }
     83.33%, 100% { background-image: url(https://img.freepik.com/premium-photo/sunset-forest-white-dove-holy-cross-jesus-christ-symbolize-death-resurrection-lov_567332-708.jpg); }
     83.33%, 100% { background-image: url(https://christianpedia.site/images/thumb/5/5b/Image_%289%29.png/1200px-Image_%289%29.png); }
}
}



Revision as of 16:13, 30 March 2024

/* CSS placed here will affect users of the Tweeki skin */
body.page-Welcome {
    background-repeat: no-repeat;
    background-size: 100% auto;
    animation: fadeBackground 12s infinite;
    /* Initial background image */
    background-image: url(https://christianpedia.site/images/thumb/5/5b/Image_%289%29.png/1200px-Image_%289%29.png);
}

@keyframes fadeBackground {
    0%, 100% { opacity: 1; }
    16.66%, 33.33% { opacity: 1; }
    33.33%, 66.66% { opacity: 1; }
    66.66%, 83.33% { opacity: 1; }
    83.33%, 100% { opacity: 1; }
    
    /* Background image changes */
    0%, 16.66% { background-image: url(https://christianpedia.site/images/thumb/5/5b/Image_%289%29.png/1200px-Image_%289%29.png); }
    16.66%, 33.33% { background-image: url(https://wallpapercave.com/wp/wp9066757.jpg); }
    33.33%, 66.66% { background-image: url(https://wallpapercave.com/wp/wp9066757.jpg); }
    66.66%, 83.33% { background-image: url(https://getwallpapers.com/wallpaper/full/f/7/2/1001822-church-wallpaper-1920x1080-laptop.jpg); }
    83.33%, 100% { background-image: url(https://christianpedia.site/images/thumb/5/5b/Image_%289%29.png/1200px-Image_%289%29.png); }
}

/* Media query for mobile devices */
@media screen and (max-width: 767px) {
    .page-Welcome {
        background-size: auto 94vh; /* Ensure full coverage on mobile devices */
    }
}

@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;
    animation: fadeBackground 12s infinite;
}

.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