
ESC Thumbnails
By: a guest on
May 4th, 2012 | syntax:
CSS | size: 1.24 KB | hits: 22 | expires: Never
/* This is needed at the top: */
.thumbnail img[src^="/static/"] {
/* %%thumbnail%% corresponds to the default thumbnail*/
background-image:url(%%thumbnail%%) !important;
background-repeat:no-repeat !important;
height:0 !important;
width:0 !important;
padding:50px 0 0 70px !important;
}
/* Each catagory will need something similar to below */
/* All instances of "/outdoors" should be changed to the string being looked for in the title */
/* %%outdoors%% corresponds to the thumbnail for the catagory */
/* "color: DarkGreen !important" sets the hyperlink colour */
/* Outdoors Begin */
a[href*="/r/calgarysocialclub/"][href*="/outdoors"].title {
font-weight: normal;
font-family: sans-serif;
color: DarkGreen !important
}
a[href*="/r/calgarysocialclub/"][href*="/outdoors"].thumbnail {
background-image: url(%%outdoors%%) !important ;
background-position: 0px 0px;
background-repeat:no-repeat !important;
width: 48px;
}
/* Outdoors End */
/* If the default thumbnail isn't working, add this to the bottom */
a[href*="/r/calgarysocialclub/"].thumbnail {
background-image: url(%%thumbnail%%) !important ;
background-position: 0px 0px;
background-repeat:no-repeat !important;
width: 48px;
}