Common.css: Unterschied zwischen den Versionen
Aus exmediawiki
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 10: | Zeile 10: | ||
position: relative; | position: relative; | ||
max-width: 800px; | max-width: 800px; | ||
} | } | ||
| Zeile 28: | Zeile 23: | ||
} | } | ||
/* Style the images | /* Style the images | ||
.slideshow-gallery-page .mySlides img { | .slideshow-gallery-page .mySlides img { | ||
width: 100%; | width: 100%; | ||
object-fit: cover; | object-fit: cover; | ||
} | } | ||
*/ | |||
/* Next & previous buttons - CIRCULAR with black border, positioned at bottom */ | /* Next & previous buttons - CIRCULAR with black border, positioned at bottom */ | ||
| Zeile 93: | Zeile 78: | ||
} | } | ||
/* Container for image text/caption | /* Container for image text/caption | ||
.slideshow-gallery-page .caption-container { | .slideshow-gallery-page .caption-container { | ||
text-align: center; | text-align: center; | ||
| Zeile 100: | Zeile 85: | ||
color: white; | color: white; | ||
} | } | ||
*/ | |||
/* Thumbnail row | /* Thumbnail row | ||
.slideshow-gallery-page .row { | .slideshow-gallery-page .row { | ||
display: flex; | display: flex; | ||
| Zeile 114: | Zeile 99: | ||
clear: both; | clear: both; | ||
} | } | ||
*/ | |||
/* Thumbnail columns | /* Thumbnail columns | ||
.slideshow-gallery-page .column { | .slideshow-gallery-page .column { | ||
flex: 1; | flex: 1; | ||
| Zeile 121: | Zeile 106: | ||
padding: 0 2px; | padding: 0 2px; | ||
} | } | ||
*/ | |||
/* Thumbnail images | /* Thumbnail images | ||
.slideshow-gallery-page .demo { | .slideshow-gallery-page .demo { | ||
| Zeile 132: | Zeile 117: | ||
transition: opacity 0.2s ease; | transition: opacity 0.2s ease; | ||
} | } | ||
.slideshow-gallery-page .active-thumb, | .slideshow-gallery-page .active-thumb, | ||
| Zeile 139: | Zeile 124: | ||
border: 2px solid #333; | border: 2px solid #333; | ||
} | } | ||
*/ | |||
/* Text slides (for mixed content) | /* Text slides (for mixed content) | ||
.slideshow-gallery-page .slide-text-content { | .slideshow-gallery-page .slide-text-content { | ||
padding: 40px; | padding: 40px; | ||
| Zeile 161: | Zeile 146: | ||
line-height: 1.5; | line-height: 1.5; | ||
} | } | ||
*/ | |||
/* Responsive design */ | /* Responsive design */ | ||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
Version vom 24. Juli 2025, 12:37 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;
}
/* 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%;
object-fit: cover;
}
*/
/* Next & previous buttons - CIRCULAR with black border, positioned at bottom */
.slideshow-gallery-page .prev,
.slideshow-gallery-page .next {
cursor: pointer;
position: absolute;
bottom: 10px;
width: 40px;
height: 40px;
background: rgba(255, 255, 255, 0.9);
border: 2px solid #000;
border-radius: 50%;
color: #000;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
font-size: 20px;
user-select: none;
-webkit-user-select: none;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
z-index: 1000;
text-decoration: none;
line-height: 1;
}
/* Position the "previous button" to the bottom-left corner */
.slideshow-gallery-page .prev {
left: 15px;
}
/* Position the "next button" to the bottom-right corner */
.slideshow-gallery-page .next {
right: 15px;
}
/* On hover, scale and brighten background */
.slideshow-gallery-page .prev:hover,
.slideshow-gallery-page .next:hover {
background: rgba(255, 255, 255, 1);
transform: scale(1.1);
}
/* Active state */
.slideshow-gallery-page .prev:active,
.slideshow-gallery-page .next:active {
transform: 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;
}
}