Don't like ads? PRO users don't see any ads ;-)
Guest

ESC Thumbnails

By: a guest on May 4th, 2012  |  syntax: CSS  |  size: 1.24 KB  |  hits: 22  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. /* This is needed at the top: */
  2.  
  3. .thumbnail img[src^="/static/"] {
  4.    /* %%thumbnail%% corresponds to the default thumbnail*/
  5.    background-image:url(%%thumbnail%%) !important;
  6.    background-repeat:no-repeat !important;
  7.    height:0 !important;
  8.    width:0 !important;
  9.    padding:50px 0 0 70px !important;
  10. }
  11.  
  12. /* Each catagory will need something similar to below */
  13. /* All instances of "/outdoors" should be changed to the string being looked for in the title */
  14. /* %%outdoors%% corresponds to the thumbnail for the catagory */
  15. /* "color: DarkGreen  !important" sets the hyperlink colour */
  16. /* Outdoors Begin */
  17. a[href*="/r/calgarysocialclub/"][href*="/outdoors"].title {
  18. font-weight: normal;
  19. font-family: sans-serif;
  20. color: DarkGreen  !important
  21. }
  22.  
  23. a[href*="/r/calgarysocialclub/"][href*="/outdoors"].thumbnail {
  24.   background-image: url(%%outdoors%%) !important ;
  25.   background-position: 0px 0px;
  26.   background-repeat:no-repeat !important;
  27.   width: 48px;
  28. }
  29. /* Outdoors End */
  30.  
  31. /* If the default thumbnail isn't working, add this to the bottom */
  32. a[href*="/r/calgarysocialclub/"].thumbnail {
  33.   background-image: url(%%thumbnail%%) !important ;
  34.   background-position: 0px 0px;
  35.   background-repeat:no-repeat !important;
  36.   width: 48px;
  37. }