mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-12-03 02:06:43 +00:00
1f7de003ef
The mediawiki.page.gallery.styles module is only loaded when needed, yet inside hacks.less we load gallery styles unconditionally. The hacks.less file is also only meant for css that overrides template styles, so it didn't belong there anyway. Change-Id: I4afc91ad7f67ae66544708d25541b3e8dd247873
18 lines
409 B
Plaintext
18 lines
409 B
Plaintext
@import 'minerva.variables';
|
|
@import 'minerva.mixins';
|
|
|
|
// Hacks to render galleries and multicol tables better on mobile
|
|
@media all and ( max-width: @deviceWidthTablet ) {
|
|
|
|
// Center images that might be less than the screen width.
|
|
// Image will appear centered and caption will take up full screen.
|
|
.gallery {
|
|
.gallerybox {
|
|
width: 100% !important;
|
|
div {
|
|
width: 100% !important;
|
|
}
|
|
}
|
|
}
|
|
}
|