MediaWiki:Common.css
Aus exmediawiki
Hinweis: Leere nach dem Veröffentlichen den Browser-Cache, um die Änderungen sehen zu können.
- Firefox/Safari: Umschalttaste drücken und gleichzeitig Aktualisieren anklicken oder entweder Strg+F5 oder Strg+R (⌘+R auf dem Mac) drücken
- Google Chrome: Umschalttaste+Strg+R (⌘+Umschalttaste+R auf dem Mac) drücken
- Edge: Strg+F5 drücken oder Strg drücken und gleichzeitig Aktualisieren anklicken
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
/* MediaWiki Slideshow Gallery - Based on W3Schools approach */
* {
box-sizing: border-box;
}
/* Container for the slideshow gallery */
.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 */
.mySlides {
display: none;
position: relative;
}
/* Show the active slide */
.mySlides.active {
display: block;
}
/* Style the images */
.mySlides img {
width: 100%;
height: 400px;
object-fit: cover;
}
/* Number text (1/3 etc) */
.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 */
.prev,
.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 */
.prev {
left: 15px;
}
/* Position the "next button" to the right */
.next {
right: 15px;
}
/* On hover, scale and darken background */
.prev:hover,
.next:hover {
background: rgba(255, 255, 255, 1);
transform: translateY(-50%) scale(1.1);
}
/* Active state */
.prev:active,
.next:active {
transform: translateY(-50%) scale(0.95);
}
/* Container for image text/caption */
.caption-container {
text-align: center;
background-color: #222;
padding: 10px 16px;
color: white;
}
/* Thumbnail row */
.row {
display: flex;
justify-content: center;
background: #ddd;
padding: 10px 0;
}
.row:after {
content: "";
display: table;
clear: both;
}
/* Thumbnail columns */
.column {
flex: 1;
max-width: 16.66%;
padding: 0 2px;
}
/* Thumbnail images */
.demo {
opacity: 0.6;
cursor: pointer;
width: 100%;
height: 60px;
object-fit: cover;
border-radius: 4px;
transition: opacity 0.2s ease;
}
.active-thumb,
.demo:hover {
opacity: 1;
border: 2px solid #333;
}
/* Text slides (for mixed content) */
.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;
}
.slide-text-content h2 {
margin-bottom: 20px;
font-size: 2em;
}
.slide-text-content p {
font-size: 1.2em;
line-height: 1.5;
}
/* Responsive design */
@media (max-width: 768px) {
.slideshow-container {
margin: 10px;
}
.mySlides img,
.slide-text-content {
height: 300px;
}
.prev,
.next {
width: 35px;
height: 35px;
font-size: 16px;
}
.prev {
left: 10px;
}
.next {
right: 10px;
}
.column {
max-width: 33.33%;
}
.demo {
height: 50px;
}
}