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 22:38, 10 August 2018. 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;
	}
}

@media all and ( min-width: 720px ) {
	.mw-module-gallery {
		display: table !important;
		float: right !important;
	}
}