Template:Img/styles.css: Difference between revisions

Template page
w:c:strategywiki>Prod
(Created page with "→‎Resize to fill its container div's width: .img-maxwidth { max-width: 100%; height: auto; } →‎Dark background for light images with transparent backgrounds: .img-bgb...")
 
w:c:strategywiki>Prod
(greyscale)
Line 8: Line 8:
.img-bgblack {
.img-bgblack {
background-color: black;
background-color: black;
}
/* Convert images to greyscale */
.img-grayscale,
.img-greyscale {
filter: grayscale(100%);
}
}

Revision as of 02:46, 30 January 2022

/* Resize to fill its container div's width */
.img-maxwidth {
	max-width: 100%;
	height: auto;
}

/* Dark background for light images with transparent backgrounds */
.img-bgblack {
	background-color: black;
}

/* Convert images to greyscale */
.img-grayscale,
.img-greyscale {
	filter: grayscale(100%);
}