MediaWiki:Vector-dark.css: Difference between revisions
Appearance
Cdjensen94 (talk | contribs) No edit summary |
Cdjensen94 (talk | contribs) No edit summary |
||
Line 514: | Line 514: | ||
/* Each slide */ | /* Each slide */ | ||
.mw-content-ltr .mw-jsslideshow .slideshow div { | .mw-content-ltr .mw-jsslideshow .slideshow div { | ||
aspect-ratio: 336 / 205; | aspect-ratio: 336 / 205; | ||
width: 100% !important; /* Override any inline width */ | |||
height: auto !important; /* Override any inline height */ | |||
max-height: 90vh !important; /* Optional max height for tall images */ | |||
display: flex !important; | |||
justify-content: center !important; | |||
align-items: center !important; | |||
overflow: hidden !important; | |||
} | } | ||
.mw-jsslideshow .slideshow div img { | |||
width: 100% !important; | |||
height: auto !important; | |||
width: 100%; | object-fit: contain !important; | ||
height: auto | max-height: 90vh !important; /* Keeps tall images in check */ | ||
object-fit: contain; | |||
max-height: 90vh; /* | |||
} | } | ||