Christianpedia

MediaWiki:Common.css

Revision as of 04:45, 30 March 2024 by Admin (talk | contribs)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* CSS placed here will affect users of the Tweeki skin */
.page-Welcome {
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    animation: fadeBackground 24s infinite;
}

@keyframes fadeBackground {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 1; }
    25%, 40% { background-image: url(https://christianpedia.site/images/3/37/Main_page_background.jpg); }
    40%, 55% { 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); }
}

.page-Welcome > * {
    position: relative;
    z-index: 1;
}

/* Ensure the fading effect only applies to background images */
.page-Welcome::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));
    animation: fadeInOut 24s infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 1; }
}


/* 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