Difference between revisions of "Template:Gallery/styles.css"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
(fix for thumb background)
imported>Frietjes
(lighter image borders)
Line 17: Line 17:
 
.mw-module-gallery .gallerybox .thumb img {
 
.mw-module-gallery .gallerybox .thumb img {
 
background: none;
 
background: none;
 +
}
 +
.mw-module-gallery .bordered-images img {
 +
border: solid #eee 1px;
 
}
 
}

Revision as of 18:14, 1 November 2018

/* 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;
	}
}
.mw-module-gallery .gallerybox .thumb img {
	background: none;
}
.mw-module-gallery .bordered-images img {
	border: solid #eee 1px;
}