r/csshelp • • Nov 15 '11

Default Thumbnail Image Replacement

It appears Reddit updated the old default thumbnails from /static/noimage.png (etc.) to a new combined sprite:

/static/sprite-main.oJ5XDExA73c.png

That broke the custom thumbnails I had set up for my subreddit. I've tried to simply update the CSS reference to fix it, but nothing works. I've tried path, filename, type, or even class to get at it, but all are ignored. Begins-with and ends-with selectors fail. It's like Reddit's also now generating it in a way that gets around the default CSS DOM.

Am I missing something? Does anyone know a new trick to customize the default thumbnails?

9 Upvotes

8 comments sorted by

View all comments

2

u/[deleted] Nov 15 '11

My code is no longer working as well:

.thumbnail img[src^="/static/"] {
   background-image:url(%%thumbnail%%)!important;
   background-repeat:no-repeat!important;
   height:0!important;
   width:0!important;
   padding:50px 0 0 70px!important;
}

I'm still waiting 10 min. for the default stylesheet to load (link to the bottom right of your stylesheet). Search for .thumbnail, and see what they are using, so we can fix it.

2

u/kjhatch Nov 16 '11

I have solution code with explanation posted above.

Cheers

1

u/[deleted] Nov 16 '11

Awesome! May you get laid well and often!