Aktionen

MediaWiki

Common.css: Unterschied zwischen den Versionen

Aus exmediawiki

 
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
/* MediaWiki Slideshow Gallery - PAGE SPECIFIC ONLY */
/* Only applies when .slideshow-gallery-page class is present */


/* MediaWiki Slideshow Gallery - Based on W3Schools approach */
.slideshow-gallery-page * {
* {
   box-sizing: border-box;
   box-sizing: border-box;
}
}


/* Container for the slideshow gallery */
/* Container for the slideshow gallery */
.slideshow-container {
.slideshow-gallery-page .slideshow-container {
   position: relative;
   position: relative;
   max-width: 800px;
   max-width: 800px;
Zeile 18: Zeile 18:


/* Hide the slides by default */
/* Hide the slides by default */
.mySlides {
.slideshow-gallery-page .mySlides {
   display: none;
   display: none;
   position: relative;
   position: relative;
Zeile 24: Zeile 24:


/* Show the active slide */
/* Show the active slide */
.mySlides.active {
.slideshow-gallery-page .mySlides.active {
   display: block;
   display: block;
}
}


/* Style the images */
/* Style the images */
.mySlides img {
.slideshow-gallery-page .mySlides img {
   width: 100%;
   width: 100%;
   height: 400px;
   height: 400px;
Zeile 36: Zeile 36:


/* Number text (1/3 etc) */
/* Number text (1/3 etc) */
.numbertext {
.slideshow-gallery-page .numbertext {
   color: #f2f2f2;
   color: #f2f2f2;
   font-size: 12px;
   font-size: 12px;
Zeile 47: Zeile 47:


/* Next & previous buttons - CIRCULAR with black border as requested */
/* Next & previous buttons - CIRCULAR with black border as requested */
.prev,
.slideshow-gallery-page .prev,
.next {
.slideshow-gallery-page .next {
   cursor: pointer;
   cursor: pointer;
   position: absolute;
   position: absolute;
Zeile 72: Zeile 72:


/* Position the "previous button" to the left */
/* Position the "previous button" to the left */
.prev {
.slideshow-gallery-page .prev {
   left: 15px;
   left: 15px;
}
}


/* Position the "next button" to the right */
/* Position the "next button" to the right */
.next {
.slideshow-gallery-page .next {
   right: 15px;
   right: 15px;
}
}


/* On hover, scale and darken background */
/* On hover, scale and darken background */
.prev:hover,
.slideshow-gallery-page .prev:hover,
.next:hover {
.slideshow-gallery-page .next:hover {
   background: rgba(255, 255, 255, 1);
   background: rgba(255, 255, 255, 1);
   transform: translateY(-50%) scale(1.1);
   transform: translateY(-50%) scale(1.1);
Zeile 89: Zeile 89:


/* Active state */
/* Active state */
.prev:active,
.slideshow-gallery-page .prev:active,
.next:active {
.slideshow-gallery-page .next:active {
   transform: translateY(-50%) scale(0.95);
   transform: translateY(-50%) scale(0.95);
}
}


/* Container for image text/caption */
/* Container for image text/caption */
.caption-container {
.slideshow-gallery-page .caption-container {
   text-align: center;
   text-align: center;
   background-color: #222;
   background-color: #222;
Zeile 103: Zeile 103:


/* Thumbnail row */
/* Thumbnail row */
.row {
.slideshow-gallery-page .row {
   display: flex;
   display: flex;
   justify-content: center;
   justify-content: center;
Zeile 110: Zeile 110:
}
}


.row:after {
.slideshow-gallery-page .row:after {
   content: "";
   content: "";
   display: table;
   display: table;
Zeile 117: Zeile 117:


/* Thumbnail columns */
/* Thumbnail columns */
.column {
.slideshow-gallery-page .column {
   flex: 1;
   flex: 1;
   max-width: 16.66%;
   max-width: 16.66%;
Zeile 124: Zeile 124:


/* Thumbnail images */
/* Thumbnail images */
.demo {
.slideshow-gallery-page .demo {
   opacity: 0.6;
   opacity: 0.6;
   cursor: pointer;
   cursor: pointer;
Zeile 134: Zeile 134:
}
}


.active-thumb,
.slideshow-gallery-page .active-thumb,
.demo:hover {
.slideshow-gallery-page .demo:hover {
   opacity: 1;
   opacity: 1;
   border: 2px solid #333;
   border: 2px solid #333;
Zeile 141: Zeile 141:


/* Text slides (for mixed content) */
/* Text slides (for mixed content) */
.slide-text-content {
.slideshow-gallery-page .slide-text-content {
   padding: 40px;
   padding: 40px;
   text-align: center;
   text-align: center;
Zeile 152: Zeile 152:
}
}


.slide-text-content h2 {
.slideshow-gallery-page .slide-text-content h2 {
   margin-bottom: 20px;
   margin-bottom: 20px;
   font-size: 2em;
   font-size: 2em;
}
}


.slide-text-content p {
.slideshow-gallery-page .slide-text-content p {
   font-size: 1.2em;
   font-size: 1.2em;
   line-height: 1.5;
   line-height: 1.5;
Zeile 164: Zeile 164:
/* Responsive design */
/* Responsive design */
@media (max-width: 768px) {
@media (max-width: 768px) {
   .slideshow-container {
   .slideshow-gallery-page .slideshow-container {
     margin: 10px;
     margin: 10px;
   }
   }
    
    
   .mySlides img,
   .slideshow-gallery-page .mySlides img,
   .slide-text-content {
   .slideshow-gallery-page .slide-text-content {
     height: 300px;
     height: 300px;
   }
   }
    
    
   .prev,
   .slideshow-gallery-page .prev,
   .next {
   .slideshow-gallery-page .next {
     width: 35px;
     width: 35px;
     height: 35px;
     height: 35px;
Zeile 180: Zeile 180:
   }
   }
    
    
   .prev {
   .slideshow-gallery-page .prev {
     left: 10px;
     left: 10px;
   }
   }
    
    
   .next {
   .slideshow-gallery-page .next {
     right: 10px;
     right: 10px;
   }
   }
    
    
   .column {
   .slideshow-gallery-page .column {
     max-width: 33.33%;
     max-width: 33.33%;
   }
   }
    
    
   .demo {
   .slideshow-gallery-page .demo {
     height: 50px;
     height: 50px;
   }
   }
}
}

Version vom 24. Juli 2025, 10:56 Uhr

/* MediaWiki Slideshow Gallery - PAGE SPECIFIC ONLY */
/* Only applies when .slideshow-gallery-page class is present */

.slideshow-gallery-page * {
  box-sizing: border-box;
}

/* Container for the slideshow gallery */
.slideshow-gallery-page .slideshow-container {
  position: relative;
  max-width: 800px;
  margin: auto;
  background: #f1f1f1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Hide the slides by default */
.slideshow-gallery-page .mySlides {
  display: none;
  position: relative;
}

/* Show the active slide */
.slideshow-gallery-page .mySlides.active {
  display: block;
}

/* Style the images */
.slideshow-gallery-page .mySlides img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Number text (1/3 etc) */
.slideshow-gallery-page .numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
  background: rgba(0,0,0,0.5);
  border-radius: 0 0 4px 0;
}

/* Next & previous buttons - CIRCULAR with black border as requested */
.slideshow-gallery-page .prev,
.slideshow-gallery-page .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #000;
  border-radius: 50%;
  color: #000;
  font-weight: bold;
  font-size: 18px;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 100;
  text-decoration: none;
}

/* Position the "previous button" to the left */
.slideshow-gallery-page .prev {
  left: 15px;
}

/* Position the "next button" to the right */
.slideshow-gallery-page .next {
  right: 15px;
}

/* On hover, scale and darken background */
.slideshow-gallery-page .prev:hover,
.slideshow-gallery-page .next:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
}

/* Active state */
.slideshow-gallery-page .prev:active,
.slideshow-gallery-page .next:active {
  transform: translateY(-50%) scale(0.95);
}

/* Container for image text/caption */
.slideshow-gallery-page .caption-container {
  text-align: center;
  background-color: #222;
  padding: 10px 16px;
  color: white;
}

/* Thumbnail row */
.slideshow-gallery-page .row {
  display: flex;
  justify-content: center;
  background: #ddd;
  padding: 10px 0;
}

.slideshow-gallery-page .row:after {
  content: "";
  display: table;
  clear: both;
}

/* Thumbnail columns */
.slideshow-gallery-page .column {
  flex: 1;
  max-width: 16.66%;
  padding: 0 2px;
}

/* Thumbnail images */
.slideshow-gallery-page .demo {
  opacity: 0.6;
  cursor: pointer;
  width: 100%;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  transition: opacity 0.2s ease;
}

.slideshow-gallery-page .active-thumb,
.slideshow-gallery-page .demo:hover {
  opacity: 1;
  border: 2px solid #333;
}

/* Text slides (for mixed content) */
.slideshow-gallery-page .slide-text-content {
  padding: 40px;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slideshow-gallery-page .slide-text-content h2 {
  margin-bottom: 20px;
  font-size: 2em;
}

.slideshow-gallery-page .slide-text-content p {
  font-size: 1.2em;
  line-height: 1.5;
}

/* Responsive design */
@media (max-width: 768px) {
  .slideshow-gallery-page .slideshow-container {
    margin: 10px;
  }
  
  .slideshow-gallery-page .mySlides img,
  .slideshow-gallery-page .slide-text-content {
    height: 300px;
  }
  
  .slideshow-gallery-page .prev,
  .slideshow-gallery-page .next {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  .slideshow-gallery-page .prev {
    left: 10px;
  }
  
  .slideshow-gallery-page .next {
    right: 10px;
  }
  
  .slideshow-gallery-page .column {
    max-width: 33.33%;
  }
  
  .slideshow-gallery-page .demo {
    height: 50px;
  }
}