Difference between revisions of "MediaWiki:Common.css"

m
m
Line 3: Line 3:
  
 
#slideshow {
 
#slideshow {
  position: absolute;
 
 
   text-align: center;
 
   text-align: center;
   width: 100%;
+
   overflow: auto;
  height: 100%;
 
 
   margin: 0 auto;
 
   margin: 0 auto;
 
}
 
}
Line 12: Line 10:
 
.slide-wrapper {
 
.slide-wrapper {
 
   position: relative;  
 
   position: relative;  
 +
  float: left;
 
   width: 100%;
 
   width: 100%;
  height: 100%;
 
 
}
 
}
  
Line 21: Line 19:
 
   left: 0;
 
   left: 0;
 
   width: 100%;
 
   width: 100%;
  height: 100%;
 
 
   object-fit: contain;
 
   object-fit: contain;
 
   opacity: 0.0;
 
   opacity: 0.0;
Line 29: Line 26:
 
}
 
}
  
.slide img { width:100%; object-fit: contain; display: inline-block;}
+
.slide img { width:100%; object-fit: contain;}
 
   
 
   
 
.slide-number {
 
.slide-number {

Revision as of 17:10, 26 July 2023

/* CSS placed here will be applied to all skins */


#slideshow {
  text-align: center;
  overflow: auto;
  margin: 0 auto;
}

.slide-wrapper {
  position: relative; 
  float: left;
  width: 100%;
}

.slide {
  position: absolute; 
  top: 0; 
  left: 0;
  width: 100%;
  object-fit: contain;
  opacity: 0.0;
  animation-name: pulse;
  animation-duration: 65s;
  animation-iteration-count: infinite;
}

.slide img { width:100%; object-fit: contain;}
 
.slide-number {
  color: #000;
  text-align: center;
  font-size: 10em;
  visibility: hidden;
}

.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(10){animation-delay: 50s}
.slide:nth-child(10){animation-delay: 55s}
.slide:nth-child(10){animation-delay: 60s}


@keyframes pulse {
  0% { opacity: 0.0; visibility: hidden;}
  1% { opacity: 1.0; visibility: visible;}
  11% { opacity: 1.0; visibility: visible;}
  12% { opacity: 0.0; visibility: hidden;}
  100% { opacity: 0.0; visibility: hidden;}
}