MediaWiki:Vector-dark.css: Difference between revisions
Appearance
Cdjensen94 (talk | contribs) No edit summary |
Cdjensen94 (talk | contribs) No edit summary |
||
Line 490: | Line 490: | ||
/* Ensure mw-jsslideshow fits inside vector-body */ | /* Ensure mw-jsslideshow fits inside vector-body */ | ||
.vector-body .mw-jsslideshow { | .vector-body .mw-jsslideshow { | ||
width: 100%; | |||
margin: | max-width: 100%; | ||
margin: 10px auto; | |||
padding: 10px; | |||
background-color: #002B5C; | background-color: #002B5C; | ||
border: 2px solid #FF851B; | border: 2px solid #FF851B; | ||
border-radius: 8px; | border-radius: 8px; | ||
overflow: hidden; /* No floating garbage */ | |||
box-sizing: border-box; | |||
position: relative; /* Keep it in normal page flow */ | |||
} | } | ||
Line 501: | Line 505: | ||
display: flex; | display: flex; | ||
flex-wrap: nowrap; | flex-wrap: nowrap; | ||
justify-content: center; | width: 100% !important; /* Force full width */ | ||
height: auto !important; /* Let content define height */ | |||
overflow: hidden; | |||
position: relative; /* Keep it within mw-jsslideshow */ | |||
justify-content: center; /* Center slides */ | |||
align-items: center; | align-items: center; | ||
} | } | ||
.vector-body .mw-jsslideshow .slideshow div { | /* Each slide container */ | ||
.vector-body .mw-jsslideshow .slideshow > div { | |||
flex: 0 0 100%; /* Each slide is full width */ | |||
display: flex; | display: flex; | ||
justify-content: center; | justify-content: center; | ||
align-items: center; | align-items: center; | ||
overflow: hidden; | |||
box-sizing: border-box; | |||
} | } | ||
.vector-body .mw-jsslideshow .slideshow | /* Images themselves */ | ||
.vector-body .mw-jsslideshow .slideshow img { | |||
width: 100%; | |||
height: auto; | height: auto; | ||
object-fit: contain; | object-fit: contain; | ||
max-height: 90vh; /* Optional: keep tall images in check */ | |||
} | } | ||