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...")
 
m (2 revisions imported: Imported from https://strategywiki.org/)
 
(One intermediate revision by one other user not shown)
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%);
}
}

Latest revision as of 09:15, 29 October 2023

/* 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%);
}