Jump to content

Module:Gallery/styles.css

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Jdlrobson (talk | contribs) at 14:53, 11 August 2018 (Fixes https://en.wikipedia.org/wiki/Template_talk:Gallery#Did_something_change. When porting over these styles we'll need to be a little more careful. Now I'm wrapping mobile styles in a max-width they are also unnecessary). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
/* FIXME: the media query is only necessary due to the fact that Module:Gallery uses inline styles.
Module:Gallery should be updated to not use style attributes and exclusively use this.
Various other templates use Module:Gallery, so out of fear of breaking them I've done this (mixed with importants) which make me very sad.
*/
@media all and ( max-width: 720px ) {
	.mw-module-gallery {
		/* Override inline styles in Module:Gallery. !important can be removed when Module:Gallery no longer has them*/
		display: block !important;
		float: none !important;
	}
	.mw-module-gallery div {
		display: inherit !important;
		float: none !important;
		width: auto !important;
	}
}