MediaWiki:Vector-dark.css: Difference between revisions
Appearance
Cdjensen94 (talk | contribs) |
Cdjensen94 (talk | contribs) |
||
| Line 494: | Line 494: | ||
padding: 10px; | padding: 10px; | ||
width: 100%; /* Full-width unless constrained by a parent */ | width: 100%; /* Full-width unless constrained by a parent */ | ||
aspect-ratio: 16 / 9; /* Maintain 16:9 ratio - change if needed */ | |||
max-width: 100%; /* No overflow */ | max-width: 100%; /* No overflow */ | ||
height: auto; /* Maintain aspect ratio based on content */ | height: auto; /* Maintain aspect ratio based on content */ | ||
overflow: hidden; /* Just in case | overflow: hidden; /* Just in case */ | ||
position: relative; /* Allows overlays/captions if you want */ | |||
position: relative; /* Allows | display: block; | ||
color: #FFFFFF; | color: #FFFFFF; | ||
} | } | ||
/* | /* Images inside the slideshow */ | ||
.mw-jsslideshow img { | .mw-jsslideshow img { | ||
width: 100%; /* | width: 100%; /* Images scale with container */ | ||
height: | height: 100%; /* Fill the height fully (optional) */ | ||
object-fit: cover; /* Crop nicely */ | |||
display: block; | display: block; | ||
} | } | ||
/* Optional: Responsive tweaks for smaller screens */ | |||
@media (max-width: 768px) { | |||
.mw-jsslideshow { | |||
aspect-ratio: 4 / 3; /* More square-like for phones */ | |||
} | |||
} | |||
/* Even smaller screens — tall and narrow */ | |||
@media (max-width: 480px) { | |||
.mw-jsslideshow { | |||
aspect-ratio: 1 / 1; /* Perfect square for the smallest screens */ | |||
} | |||
} | |||
/* ===== Table of Contents (TOC) ===== */ | /* ===== Table of Contents (TOC) ===== */ | ||
#toc { | #toc { | ||