MediaWiki:Vector-dark.css: Difference between revisions
Appearance
Cdjensen94 (talk | contribs) No edit summary |
Cdjensen94 (talk | contribs) No edit summary |
||
Line 493: | Line 493: | ||
border: 2px solid #FF851B; | border: 2px solid #FF851B; | ||
border-radius: 8px; | border-radius: 8px; | ||
margin: 10px auto; | margin: 10px auto; /* Auto centers horizontally */ | ||
padding: 10px; | padding: 10px; | ||
color: #FFFFFF; | color: #FFFFFF; | ||
width: 100%; /* Or max-width if you want */ | |||
max-width: 100%; | max-width: 100%; | ||
overflow: hidden; | overflow: hidden; | ||
position: relative; | position: relative; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
display: | display: flex; | ||
justify-content: center; | |||
align-items: center; | |||
} | } | ||
Line 507: | Line 511: | ||
/* Tame the dynamically-generated slideshow div */ | /* Tame the dynamically-generated slideshow div */ | ||
.vector-body .mw-jsslideshow .slideshow { | .vector-body .mw-jsslideshow .slideshow { | ||
width: 100% !important; | width: 100% !important; | ||
height: auto !important; | height: auto !important; | ||
display: flex !important; | display: flex !important; | ||
justify-content: center; /* Center horizontally */ | |||
overflow: hidden !important; | align-items: center; /* Center vertically */ | ||
overflow: hidden !important; | |||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
/* Each dynamically generated slide (the divs inside slideshow) */ | /* Each dynamically generated slide (the divs inside slideshow) */ | ||
.vector-body .mw-jsslideshow .slideshow > div { | .vector-body .mw-jsslideshow .slideshow > div { | ||
flex: 0 0 | flex: 0 0 auto; | ||
display: flex; | |||
justify-content: center; | |||
align-items: center; | |||
width: 100% !important; | width: 100% !important; | ||
height: auto !important; | height: auto !important; | ||
overflow: hidden; | overflow: hidden; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
text-align: center; | |||
} | } | ||
/* Images inside each slide */ | /* Images inside each slide */ | ||
.vector-body .mw-jsslideshow .slideshow > div img { | .vector-body .mw-jsslideshow .slideshow > div img { | ||
width: 100% | display: block; | ||
height: auto | max-width: 100%; | ||
object-fit: contain | height: auto; | ||
object-fit: contain; | |||
margin: 0 auto; | |||
} | } | ||
/* Optional mobile-friendly tweaks */ | /* Optional mobile-friendly tweaks */ |