r/csshelp • • May 02 '12

NSFW Icon Help NSFW

I'm trying to change the basic NSFW icon to look like a custom icon. I'm a newb to CSS. Can someone help me?

2 Upvotes

2 comments sorted by

2

u/tekn04 May 02 '12

If you want to change the actual image displayed, first upload your image using the CSS editor. Then use the following:

.thumbnail.nsfw {
	visibility: hidden;
}
.thumbnail.nsfw::after {
	content: "";
	background-image: url(%%yourImage%%);
	display: block;
	width: 70px;
	height: 70px;
	visibility: visible;
}

If you want to change the label in red associated with nsfw posts as well, you can use the following:

.nsfw-stamp acronym {
	visibility:hidden;
	font-size: 0px!important;
}
.nsfw-stamp acronym::after {
	content: "Label here";
	visibility: visible;
	color:#ac3939;
	font-size: x-small;
	text-decoration:none;
	padding:0 2px;
	border:1px solid #d27979 !important;
	-moz-border-radius:3px;
	-webkit-border-radius:3px;
	border-radius:3px;
	margin-left: -3px;
}

2

u/IAmTheBauss May 02 '12

Thanks my good sir. The problem has been fixed :)