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; | ||
} | } | ||
.page-Welcome::before { | |||
content: ""; | |||
position: fixed; | position: fixed; | ||
top: 0; | top: 0; | ||
Line 21: | Line 12: | ||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
background: rgba(255, 255, 255, 0); | background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0)); | ||
z-index: | z-index: -1; /* Place overlay behind other content */ | ||
animation: | animation: fadeOverlay 12s infinite; | ||
} | } | ||
@keyframes | @keyframes fadeOverlay { | ||
0%, 100% { opacity: 0; } | 0%, 100% { opacity: 0; } | ||
20%, 40% { opacity: 1; } | 20%, 40% { opacity: 1; } | ||
90%, 100% { opacity: 0; } | 90%, 100% { opacity: 0; } | ||
} | |||
@keyframes fadeBackground { | |||
0%, 100% { opacity: 0; } | |||
20%, 40% { opacity: 1; } | |||
45%, 55% { background-image: url(https://christianpedia.site/images/3/37/Main_page_background.jpg); } | |||
55%, 65% { background-image: url(https://wallpapercave.com/wp/wp9066757.jpg); } | |||
70%, 80% { background-image: url(https://getwallpapers.com/wallpaper/full/f/7/2/1001822-church-wallpaper-1920x1080-laptop.jpg); } | |||
90%, 100% { opacity: 1; } | |||
} | } | ||
Revision as of 04:59, 30 March 2024
/* CSS placed here will affect users of the Tweeki skin */
.page-Welcome {
background-repeat: no-repeat;
background-size: 100% auto;
}
.page-Welcome::before {
content: "";
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));
z-index: -1; /* Place overlay behind other content */
animation: fadeOverlay 12s infinite;
}
@keyframes fadeOverlay {
0%, 100% { opacity: 0; }
20%, 40% { opacity: 1; }
90%, 100% { opacity: 0; }
}
@keyframes fadeBackground {
0%, 100% { opacity: 0; }
20%, 40% { opacity: 1; }
45%, 55% { background-image: url(https://christianpedia.site/images/3/37/Main_page_background.jpg); }
55%, 65% { background-image: url(https://wallpapercave.com/wp/wp9066757.jpg); }
70%, 80% { background-image: url(https://getwallpapers.com/wallpaper/full/f/7/2/1001822-church-wallpaper-1920x1080-laptop.jpg); }
90%, 100% { opacity: 1; }
}
.page-Welcome > * {
position: relative;
z-index: 1; /* Ensure other content appears above the background */
}
/* 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 */
}
}