applib
Version:
Cross-platform JavaScript and CSS library for Wikimedia apps
56 lines (49 loc) • 1.36 kB
CSS
.wideImageOverride {
/* Center images. */
display: block;
margin-left: auto;
margin-right: auto;
/* Ensure widening can take effect with proportional height change */
height: auto ;
}
@media (orientation: portrait) {
.wideImageOverride {
width: 100% ;
max-width: 100% ;
height: auto ;
}
/* Tablet override */
@media (min-device-width: 768px) {
.wideImageOverride {
width: 60% ;
max-width: 60% ;
height: auto ;
}
}
}
@media (orientation: landscape) {
.wideImageOverride {
width: 50% ;
max-width: 50% ;
height: auto ;
}
}
/* Center text beneath images now that images are centered. */
.thumbinner, .gallerytext {
text-align: center;
}
/* Parsoid: center text beneath images now that images are centered. */
figcaption {
text-align: center;
}
/* Add a little breathing room beneath thumb captions - see enwiki "Vincent van Gogh > Paris (1886-1888)" */
.thumbcaption {
margin-bottom: 1.5em ;
}
/* Wrangle extra margin - see enwiki "Claude Monet > Impressionism" */
li.gallerybox div.thumb > div {
margin: 0px ;
}
div.gallerytext > p {
margin-top: 0px ;
}