Difference between revisions of "MediaWiki:Common.css"
m |
m |
||
Line 4: | Line 4: | ||
#slideshow { | #slideshow { | ||
position: relative; | position: relative; | ||
− | + | height:auto; | |
− | + | aspect-ratio: 2.375; | |
width: 100%; | width: 100%; | ||
overflow: hidden; | overflow: hidden; | ||
Line 12: | Line 12: | ||
.slide-wrapper { | .slide-wrapper { | ||
position: relative; | position: relative; | ||
− | + | height:auto; | |
− | + | aspect-ratio: 2.375; | |
width: 100%; | width: 100%; | ||
overflow: hidden; | overflow: hidden; | ||
Line 20: | Line 20: | ||
.slide { | .slide { | ||
position: absolute; | position: absolute; | ||
− | top: 0 | + | top: 0; |
left: 0; | left: 0; | ||
width: 100%; | width: 100%; | ||
− | + | height:auto; | |
+ | aspect-ratio: 2.375; | ||
opacity: 0.0; | opacity: 0.0; | ||
animation-name: pulse; | animation-name: pulse; | ||
Line 30: | Line 31: | ||
} | } | ||
− | .slide img {width:100%;} | + | .slide img {width:100%; aspect-ratio: 2.375;} |
.slide-number { | .slide-number { | ||
Line 67: | Line 68: | ||
position: absolute; | position: absolute; | ||
left: 0; | left: 0; | ||
− | top: | + | top: 50%; |
+ | transform: translateY(-50%); | ||
width: 45%; | width: 45%; | ||
− | height: | + | aspect-ratio: 1.06; |
+ | height:auto; | ||
opacity: 1.0; | opacity: 1.0; | ||
z-index: 5; | z-index: 5; | ||
Line 78: | Line 81: | ||
font-size:1.5vw; | font-size:1.5vw; | ||
color: white; | color: white; | ||
− | padding-top: | + | padding-top: 3vh; |
padding-left: 1.0vw; | padding-left: 1.0vw; | ||
padding-right: 4.0vw; | padding-right: 4.0vw; | ||
− | padding-bottom: | + | padding-bottom: 5vh; |
} | } | ||
Revision as of 21:09, 26 July 2023
/* CSS placed here will be applied to all skins */
#slideshow {
position: relative;
height:auto;
aspect-ratio: 2.375;
width: 100%;
overflow: hidden;
}
.slide-wrapper {
position: relative;
height:auto;
aspect-ratio: 2.375;
width: 100%;
overflow: hidden;
}
.slide {
position: absolute;
top: 0;
left: 0;
width: 100%;
height:auto;
aspect-ratio: 2.375;
opacity: 0.0;
animation-name: pulse;
animation-duration: 65s;
animation-iteration-count: infinite;
}
.slide img {width:100%; aspect-ratio: 2.375;}
.slide-number {
height: 0;
color: #000;
text-align: center;
font-size: 10em;
display: none;
}
.slide:nth-child(1){animation-delay: 0s}
.slide:nth-child(2){animation-delay: 5s}
.slide:nth-child(3){animation-delay: 10s}
.slide:nth-child(4){animation-delay: 15s}
.slide:nth-child(5){animation-delay: 20s}
.slide:nth-child(6){animation-delay: 25s}
.slide:nth-child(7){animation-delay: 30s}
.slide:nth-child(8){animation-delay: 35s}
.slide:nth-child(9){animation-delay: 40s}
.slide:nth-child(10){animation-delay: 45s}
.slide:nth-child(11){animation-delay: 50s}
.slide:nth-child(12){animation-delay: 55s}
.slide:nth-child(13){animation-delay: 60s}
@keyframes pulse {
0% { opacity: 0.0; visibility: hidden;}
0.77% { opacity: 1.0; visibility: visible;}
8.46% { opacity: 1.0; visibility: visible;}
9.23% { opacity: 0.0; visibility: hidden;}
100% { opacity: 0.0; visibility: hidden;}
}
.slide-cover {
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
width: 45%;
aspect-ratio: 1.06;
height:auto;
opacity: 1.0;
z-index: 5;
background-image: linear-gradient(90deg, rgb(0% 18.039% 23.137% / 0.85) 0%, rgb(0% 18.039% 23.137% / 0.8499870300292969) 6.25%, rgb(0% 18.039% 23.137% / 0.84979248046875) 12.5%, rgb(0% 18.039% 23.137% / 0.8489494323730469) 18.75%, rgb(0% 18.039% 23.137% / 0.8466796875) 25%, rgb(0% 18.039% 23.137% / 0.8418937683105469) 31.25%, rgb(0% 18.039% 23.137% / 0.83319091796875) 37.5%, rgb(0% 18.039% 23.137% / 0.8188591003417969) 43.75%, rgb(0% 18.039% 23.137% / 0.796875) 50%, rgb(0% 18.039% 23.137% / 0.7649040222167969) 56.25%, rgb(0% 18.039% 23.137% / 0.72030029296875) 62.5%, rgb(0% 18.039% 23.137% / 0.6601066589355469) 68.75%, rgb(0% 18.039% 23.137% / 0.5810546875) 75%, rgb(0% 18.039% 23.137% / 0.4795646667480469) 81.25%, rgb(0% 18.039% 23.137% / 0.35174560546875) 87.5%, rgb(0% 18.039% 23.137% / 0.19339523315429685) 93.75%, rgb(0% 18.039% 23.137% / 0) 100% );
}
.slide-cover p {
font-size:1.5vw;
color: white;
padding-top: 3vh;
padding-left: 1.0vw;
padding-right: 4.0vw;
padding-bottom: 5vh;
}
.slide-button {
width: 45%;
padding-left: 25%;
background: none;
font-size:1.5vw;
color: white;
}
.slide-button pre {
background: #0053b3;
color: white;
}
.slide-button a {
background: #0053b3;
font-weight: bold;
color: white;
}